Skip to content

Commit

Permalink
新增微信登录,搜索界面
Browse files Browse the repository at this point in the history
  • Loading branch information
crlang committed Mar 9, 2018
1 parent 8ffe6a8 commit e536843
Show file tree
Hide file tree
Showing 58 changed files with 2,667 additions and 635 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,22 @@ ECShop 微信小程序商城,基于3.6版本 appserver 接口,100% 兼容原
+ [ ] 文章:文章列表、文章详情、自动加载列表
+ [ ] 密码:修改密码
+ [ ] 分成:推荐记录、分成规则、推荐规则
+ [ ] 微信:微信登陆、微信支付
+ [ ] 微信:v微信登陆、微信支付
+ [ ] 其它功能正在开发中...

# 预览 Previews

![首页](./images/ScreenShot01.png)

![列表](./images/ScreenShot02.png)

![购物](./images/ScreenShot03.png)

![我的](./images/ScreenShot04.png)

![列表](./images/ScreenShot05.png)

![支付](./images/ScreenShot06.png)

## 进度 progress
目前已经完善基本商城购物流程,可余额支付
目前已经完善基本商城购物流程,支持余额支付,支持微信登录

## 反馈 Issues
本人博客文章关联了该项目,如果有疑问,可通过文章评论功能提交你的疑问。
Expand Down
15 changes: 9 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//app.js
// app.js
const util = require('./utils/util.js');
var openid = '',session_key = '',loginCode = '';

App({
onLaunch: function() {
//调用API从本地缓存中获取数据
Expand All @@ -24,14 +27,14 @@ App({
},

getSystemInfo: function(cb){
var that = this;
if(that.globalData.systemInfo){
typeof cb == "function" && cb(that.globalData.systemInfo);
var self = this;
if(self.globalData.systemInfo){
typeof cb == "function" && cb(self.globalData.systemInfo);
}else{
wx.getSystemInfo({
success: function(res) {
that.globalData.systemInfo = res;
typeof cb == "function" && cb(that.globalData.systemInfo);
self.globalData.systemInfo = res;
typeof cb == "function" && cb(self.globalData.systemInfo);
}
})
}
Expand Down
4 changes: 4 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"pages/goods/list/list",
"pages/goods/detail/detail",
"pages/catalog/catalog",
"pages/search/search",
"pages/shopping/cart/cart",
"pages/shopping/checkout/checkout",
"pages/shopping/payment/payment",
Expand Down Expand Up @@ -31,12 +32,14 @@
"pages/wechat/auth/auth",
"pages/wechat/pay/pay"
],

"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fafafa",
"navigationBarTitleText": "",
"navigationBarTextStyle": "black"
},

"tabBar": {
"color": "#2c2c2c",
"selectedColor": "#d81e06",
Expand Down Expand Up @@ -69,5 +72,6 @@
}
]
},

"debug": false
}
2 changes: 1 addition & 1 deletion app.wxss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**app.wxss**/
/** app.wxss **/

page{
background: #f4f4f4;
Expand Down
Binary file added images/qq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e536843

Please sign in to comment.