Commit 00b76663ee08b23fc9d5e146320d31e49d854c35

Authored by yvan.ni
1 parent d398beb7

不需要get_user_info来登录,这个老版本

app.json
@@ -22,7 +22,6 @@ @@ -22,7 +22,6 @@
22 "pages/user/return_goods_info/return_goods_info", 22 "pages/user/return_goods_info/return_goods_info",
23 "pages/user/return_goods/return_goods", 23 "pages/user/return_goods/return_goods",
24 "pages/user/express/express", 24 "pages/user/express/express",
25 - "pages/user/get_user_info/get_user_info",  
26 "pages/activity/seckill_list/seckill_list", 25 "pages/activity/seckill_list/seckill_list",
27 "pages/activity/pind_list/pind_list", 26 "pages/activity/pind_list/pind_list",
28 "pages/team/team_success/team_success", 27 "pages/team/team_success/team_success",
pages/user/get_user_info/get_user_info.js deleted
1 -var e = getApp();  
2 -  
3 -e.request;  
4 -  
5 -Page({  
6 - data: {  
7 - url: e.globalData.setting.url,  
8 - resourceUrl: e.globalData.setting.resourceUrl,  
9 - requestData: null  
10 - },  
11 - onLoad: function() {},  
12 - onShow: function() {},  
13 - bindGetUserinfo: function(t) {  
14 - if (void 0 != t.detail.userInfo) try {  
15 - wx.setStorageSync("wx_user_info", t.detail.encryptedData), e.globalData.wechatUser = t.detail.userInfo,  
16 - e.auth.login(e.globalData.code, t.detail, function(t) {  
17 - e.showSuccess("登录成功", function() {  
18 - wx.navigateBack();  
19 - });  
20 - });  
21 - } catch (e) {  
22 - console.log(e);  
23 - } else console.log("bindGetUserinfo fail . res.detail.userInfo is undefined");  
24 - }  
25 -});  
26 \ No newline at end of file 0 \ No newline at end of file
pages/user/get_user_info/get_user_info.json deleted
1 -{  
2 - "navigationBarTitleText": "登录"  
3 -}  
4 \ No newline at end of file 0 \ No newline at end of file
pages/user/get_user_info/get_user_info.wxml deleted
1 -<view class="no-data">  
2 - <image class="cart-image"></image>  
3 - <view class="no-data-title">请先登录, 以便操作更多功能</view>  
4 - <button bindgetuserinfo="bindGetUserinfo" class="getuse_info" openType="getUserInfo">获取用户信息</button>  
5 - <navigator class="similer" url="/pages/index/index/index">返回首页</navigator>  
6 -</view>  
pages/user/get_user_info/get_user_info.wxss deleted
1 -page {  
2 - background-color: #fff;  
3 -}  
4 -  
5 -.container {  
6 - display: flex;  
7 - height: 100%;  
8 - align-items: center;  
9 - justify-content: center;  
10 - background-color: #fff;  
11 - padding-bottom: 100rpx;  
12 -}  
13 -  
14 -.login-in {  
15 - width: 100%;  
16 - box-sizing: border-box;  
17 -}  
18 -  
19 -.order-item {  
20 - display: flex;  
21 - justify-content: space-around;  
22 - height: 200rpx;  
23 - padding: 10rpx 0;  
24 - border-bottom: 1px solid #ddd;  
25 -}  
26 -  
27 -.goods-ico {  
28 - display: flex;  
29 - align-items: center;  
30 -}  
31 -  
32 -.goods-img {  
33 - width: 180rpx;  
34 - height: 180rpx;  
35 - font-size: 0;  
36 - margin-top: 10rpx;  
37 -}  
38 -  
39 -.goods-cont {  
40 - position: relative;  
41 - width: 430rpx;  
42 - height: 200rpx;  
43 - font-size: 28rpx;  
44 -}  
45 -  
46 -.goods-name {  
47 - width: 370rpx;  
48 - height: 64rpx;  
49 - margin: 8rpx 0;  
50 - line-height: 32rpx;  
51 - color: #333;  
52 -}  
53 -  
54 -.goods-attribute {  
55 - max-height: 52rpx;  
56 - line-height: 26rpx;  
57 - font-size: 24rpx;  
58 - color: #999;  
59 -}  
60 -  
61 -.goods-price {  
62 - height: 40rpx;  
63 - line-height: 40rpx;  
64 - margin-top: 10rpx;  
65 -}  
66 -  
67 -.btn-del {  
68 - position: absolute;  
69 - right: 0;  
70 - top: 8rpx;  
71 - width: 34rpx;  
72 - height: 34rpx;  
73 -}  
74 -  
75 -.count {  
76 - position: absolute;  
77 - right: 0;  
78 - bottom: 5rpx;  
79 - width: 156rpx;  
80 - height: 50rpx;  
81 - border: 1px solid #ddd;  
82 -}  
83 -  
84 -.count>view,.count>input {  
85 - float: left;  
86 - width: 50rpx;  
87 - height: 50rpx;  
88 - line-height: 50rpx;  
89 - text-align: center;  
90 -}  
91 -  
92 -.sub {  
93 - border-right: 1px solid #ddd;  
94 -}  
95 -  
96 -.add {  
97 - border-left: 1px solid #ddd;  
98 -}  
99 -  
100 -.pay-for {  
101 - width: 100%;  
102 - height: 100rpx;  
103 - position: fixed;  
104 - left: 0;  
105 - bottom: 0;  
106 - font-size: 28rpx;  
107 - color: #666;  
108 - background-color: #f0f2f5;  
109 -}  
110 -  
111 -.pay-for .pay-btn {  
112 - float: right;  
113 - width: 200rpx;  
114 - height: 100rpx;  
115 - line-height: 100rpx;  
116 - text-align: center;  
117 - background-color: #f23030;  
118 - color: #fff;  
119 - border-radius: 0;  
120 -}  
121 -  
122 -.pay-for .consumer {  
123 - float: right;  
124 - margin-right: 20rpx;  
125 - line-height: 50rpx;  
126 -}  
127 -  
128 -.pay-for .checkbox {  
129 - float: left;  
130 - padding-left: 40rpx;  
131 - line-height: 100rpx;  
132 - display: flex;  
133 - align-items: center;  
134 -}  
135 -  
136 -.pay-for .ico-check {  
137 - display: flex;  
138 - align-items: center;  
139 - margin-right: 20rpx;  
140 -}  
141 -  
142 -.getuse_info {  
143 - width: 60%;  
144 - background-color: #ff354d;  
145 - color: #fff;  
146 - border: none;  
147 - border-radius: 8rpx;  
148 -}  
149 -  
150 -.similer {  
151 - margin: 0 auto;  
152 - margin-top: 20px;  
153 - width: 60%;  
154 - height: 64rpx;  
155 - line-height: 64rpx;  
156 - font-size: 28rpx;  
157 - border-radius: 8rpx;  
158 - border: 1px solid #999;  
159 -}  
160 \ No newline at end of file 0 \ No newline at end of file