Commit f986009b8a6a677e9e7498d9f9e5f82dec578126
Merge branch 'dev' into 'test'
Dev See merge request !1116
Showing
89 changed files
with
532 additions
and
864 deletions
app.js
... | ... | @@ -115,6 +115,14 @@ App({ |
115 | 115 | } else { |
116 | 116 | app.globalData.userInfo = user; |
117 | 117 | app.globalData.user_id = user.user_id; |
118 | + | |
119 | + //调用接口判断是不是会员 | |
120 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + user.user_id, {}).then(res => { | |
121 | + if (res.data.code == 0) { | |
122 | + getApp().globalData.guide_id = res.data.data.id; | |
123 | + } | |
124 | + }) | |
125 | + | |
118 | 126 | } |
119 | 127 | wx.setStorageSync("userinfo", user); |
120 | 128 | } else { |
... | ... | @@ -474,6 +482,7 @@ App({ |
474 | 482 | "/pages/goods/categoryList/categoryList?type=1", |
475 | 483 | "/pages/cart/cart/cart", "/pages/user/index/index", |
476 | 484 | "/pages/distribution/distribution"]; |
485 | + | |
477 | 486 | if (arr_tabbar.indexOf(url) != -1) { |
478 | 487 | if (url.indexOf("categoryList?type=1") != -1) this.globalData.cat_type = 1; |
479 | 488 | if (url.indexOf("categoryList?type=2") != -1) this.globalData.cat_type = 2; |
... | ... | @@ -811,7 +820,7 @@ App({ |
811 | 820 | let user_info = getApp().globalData.userInfo; |
812 | 821 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
813 | 822 | wx.navigateTo({ |
814 | - url: '/pages/togoin/togoin', | |
823 | + url: '/packageE/pages/togoin/togoin', | |
815 | 824 | }) |
816 | 825 | return false; |
817 | 826 | } else { |
... | ... | @@ -1033,17 +1042,31 @@ App({ |
1033 | 1042 | }, |
1034 | 1043 | |
1035 | 1044 | //获取佣金的比例 |
1036 | - get_commission(first_money,second_money,third_money,th) { | |
1045 | + get_commission(dis_config,gd_data,goods_num) { | |
1046 | + | |
1047 | + var fir_num=0; | |
1048 | + var sec_num=0; | |
1049 | + var thi_num=0; | |
1050 | + if(dis_config.pattern==1){ | |
1051 | + fir_num=(gd_data.fir_rate || 0)*goods_num; | |
1052 | + sec_num=(gd_data.sec_rate || 0)*goods_num; | |
1053 | + thi_num=(gd_data.thi_rate || 0)*goods_num; | |
1054 | + }else{ | |
1055 | + fir_num=parseFloat((gd_data.commission || 0) *goods_num*(dis_config.firstRate || 0)/100).toFixed(2); | |
1056 | + sec_num=parseFloat((gd_data.commission || 0)*goods_num*(dis_config.secondRate || 0)/100).toFixed(2); | |
1057 | + thi_num=parseFloat((gd_data.commission || 0)*goods_num*(dis_config.thirdRate || 0)/100).toFixed(2); | |
1058 | + } | |
1059 | + | |
1037 | 1060 | if(getApp().globalData.userInfo.is_distribut){ |
1038 | - var pattern = th.data.dis_config.pattern; // 分销模式 | |
1039 | - var first_rate = th.data.dis_config.first_rate; // 一级比例 | |
1040 | - var second_rate = th.data.dis_config.second_rate; // 二级比例 | |
1041 | - var third_rate = th.data.dis_config.third_rate; // 三级比例 | |
1061 | + var pattern = dis_config.pattern; // 分销模式 | |
1062 | + var first_rate = dis_config.first_rate; // 一级比例 | |
1063 | + var second_rate = dis_config.second_rate; // 二级比例 | |
1064 | + var third_rate = dis_config.third_rate; // 三级比例 | |
1042 | 1065 | |
1043 | 1066 | if(this.globalData.userInfo.first_leader){ |
1044 | 1067 | return parseFloat(parseFloat(first_money).toFixed(2)); |
1045 | 1068 | }else{ |
1046 | - return parseFloat((parseFloat(first_money)+parseFloat(second_money)+parseFloat(third_money)).toFixed(2)); | |
1069 | + return parseFloat((parseFloat(fir_num)+parseFloat(sec_num)+parseFloat(thi_num)).toFixed(2)); | |
1047 | 1070 | } |
1048 | 1071 | } |
1049 | 1072 | }, | ... | ... |
app.json
... | ... | @@ -24,16 +24,14 @@ |
24 | 24 | "pages/user/express/express", |
25 | 25 | "pages/user/get_user_info/get_user_info", |
26 | 26 | "pages/activity/seckill_list/seckill_list", |
27 | - "pages/activity/pind_list/pind_list", | |
28 | - "pages/togoin/togoin", | |
27 | + "pages/activity/pind_list/pind_list", | |
29 | 28 | "pages/team/team_success/team_success", |
30 | 29 | "pages/team/team_show/team_show", |
31 | 30 | "pages/team/team_ping/team_ping", |
32 | 31 | "pages/cart/cart2_pt/cart2_pt", |
33 | 32 | "pages/cart/cart_wk/cart_wk", |
34 | 33 | |
35 | - | |
36 | - | |
34 | + | |
37 | 35 | "pages/user/userqy/userqy", |
38 | 36 | "pages/user/user_spsy/user_spsy", |
39 | 37 | "pages/user/user_fw/user_fw", |
... | ... | @@ -206,9 +204,18 @@ |
206 | 204 | "pages/shop/order_detail/order_detail", |
207 | 205 | "pages/error/error" |
208 | 206 | ] |
207 | + }, | |
208 | + { | |
209 | + "root": "packageE/", | |
210 | + "name": "pack5", | |
211 | + "pages": [ | |
212 | + "pages/togoin/togoin" | |
213 | + ] | |
209 | 214 | } |
210 | 215 | |
211 | 216 | ], |
217 | + | |
218 | + | |
212 | 219 | "permission": { |
213 | 220 | "scope.userLocation": { |
214 | 221 | "desc": "获取你的位置信息" | ... | ... |
app.wxss
components/diy_service/diy_service.js
components/diy_store_select/diy_store_select.js
packageA/pages/activity_share/activity_share.js
... | ... | @@ -676,7 +676,7 @@ Page({ |
676 | 676 | var user_info = getApp().globalData.userInfo; |
677 | 677 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
678 | 678 | //getApp().my_warnning("请先登录",0,this); |
679 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
679 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
680 | 680 | return false; |
681 | 681 | } |
682 | 682 | //类型 0普通商品 1秒杀商品 2商家和会员团 3阶梯团 |
... | ... | @@ -1088,7 +1088,7 @@ Page({ |
1088 | 1088 | var user_info = getApp().globalData.userInfo; |
1089 | 1089 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1090 | 1090 | //getApp().my_warnning("请先登录",0,this); |
1091 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1091 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1092 | 1092 | return false; |
1093 | 1093 | } |
1094 | 1094 | |
... | ... | @@ -1107,7 +1107,7 @@ Page({ |
1107 | 1107 | var user_info = getApp().globalData.userInfo; |
1108 | 1108 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1109 | 1109 | //getApp().my_warnning("请先登录",0,this); |
1110 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1110 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1111 | 1111 | return false; |
1112 | 1112 | } |
1113 | 1113 | var index=e.currentTarget.dataset.index; |
... | ... | @@ -1129,7 +1129,7 @@ Page({ |
1129 | 1129 | var user_info = getApp().globalData.userInfo; |
1130 | 1130 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1131 | 1131 | //getApp().my_warnning("请先登录",0,this); |
1132 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1132 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1133 | 1133 | return false; |
1134 | 1134 | } |
1135 | 1135 | |
... | ... | @@ -1147,7 +1147,7 @@ Page({ |
1147 | 1147 | var user_info = getApp().globalData.userInfo; |
1148 | 1148 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1149 | 1149 | //getApp().my_warnning("请先登录",0,this); |
1150 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1150 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1151 | 1151 | return false; |
1152 | 1152 | } |
1153 | 1153 | ... | ... |
packageA/pages/checkin/checkin.js
... | ... | @@ -33,6 +33,8 @@ Page({ |
33 | 33 | |
34 | 34 | flag: true, |
35 | 35 | isLogin: false, |
36 | + imgUrl: app.globalData.setting.imghost, | |
37 | + show_no_integral:false | |
36 | 38 | |
37 | 39 | }, |
38 | 40 | |
... | ... | @@ -46,11 +48,16 @@ Page({ |
46 | 48 | }); |
47 | 49 | self.loadCheckedRecord(); |
48 | 50 | }else{ |
49 | - wx.showToast({ | |
50 | - title: "网络繁忙,请重试", | |
51 | - icon: 'none', | |
52 | - duration: 2000 | |
53 | - }) | |
51 | + if(res.data.msg.indexOf('未开启签到')!=-1){ | |
52 | + self.setData({ show_no_integral: true }); | |
53 | + }else{ | |
54 | + wx.showToast({ | |
55 | + title: res.data.msg, | |
56 | + icon: 'none', | |
57 | + duration: 2000 | |
58 | + }) | |
59 | + } | |
60 | + | |
54 | 61 | } |
55 | 62 | }, |
56 | 63 | }); |
... | ... | @@ -126,7 +133,7 @@ Page({ |
126 | 133 | let user_info = getApp().globalData.userInfo; |
127 | 134 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
128 | 135 | wx.navigateTo({ |
129 | - url: '/pages/togoin/togoin', | |
136 | + url: '/packageE/pages/togoin/togoin', | |
130 | 137 | }) |
131 | 138 | return false; |
132 | 139 | } else { |
... | ... | @@ -390,5 +397,10 @@ Page({ |
390 | 397 | if(url){ |
391 | 398 | getApp().goto(url); |
392 | 399 | } |
400 | + }, | |
401 | + | |
402 | + back_to(){ | |
403 | + wx.navigateBack(); | |
393 | 404 | } |
405 | + | |
394 | 406 | }) | ... | ... |
packageA/pages/checkin/checkin.wxml
... | ... | @@ -139,4 +139,20 @@ |
139 | 139 | </view> |
140 | 140 | </view> |
141 | 141 | |
142 | + <view bindtap="back_to" wx:if="{{show_no_integral}}"> | |
143 | + <view class="cover-layer"></view> | |
144 | + <view class="pop_up_no"> | |
145 | + <view class="title" style="position:relative"> | |
146 | + 提示 | |
147 | + <image class="close_img" src="{{imgUrl}}/miniapp/images/close.png"></image> | |
148 | + </view> | |
149 | + <view class="content"> | |
150 | + <image style="width:270rpx; height:270rpx; margin:20rpx 0" | |
151 | + src="{{imgUrl}}/miniapp/images/fenxiao.png"></image> | |
152 | + <view style="margin-top:10rpx">商家暂时未开启积分签到,敬请期待哦! </view> | |
153 | + </view> | |
154 | + </view> | |
155 | + </view> | |
156 | + | |
157 | + | |
142 | 158 | </view> |
143 | 159 | \ No newline at end of file | ... | ... |
packageA/pages/checkin/checkin.wxss
... | ... | @@ -354,3 +354,44 @@ page, |
354 | 354 | flex-wrap: wrap; |
355 | 355 | text-align:center; |
356 | 356 | } |
357 | + | |
358 | +.cover-layer { | |
359 | + position: fixed; | |
360 | + left: 0; | |
361 | + top: 0; | |
362 | + right: 0; | |
363 | + bottom: 0; | |
364 | + z-index: 1000; | |
365 | + background: rgba(0,0,0,0.4); | |
366 | + width: 100%; | |
367 | + height: 100%; | |
368 | +} | |
369 | + | |
370 | +.pop_up_no{ | |
371 | + z-index: 2000; | |
372 | + position: fixed; | |
373 | + width:80%; | |
374 | + height:500rpx; | |
375 | + left: 50%; | |
376 | + top:50%; | |
377 | + transform:translate(-50%,-50%); | |
378 | + background-color: #fff; | |
379 | + font-size: 28rpx; | |
380 | + border-radius: 20rpx; | |
381 | +} | |
382 | + | |
383 | +.pop_up_no .title{ | |
384 | + height: 90rpx; | |
385 | + background-color: #ffd601; | |
386 | + text-align: center; | |
387 | + line-height: 90rpx; | |
388 | + border-top-right-radius: 20rpx; | |
389 | + border-top-left-radius: 20rpx; | |
390 | +} | |
391 | + | |
392 | +.pop_up_no .content{ | |
393 | + text-align: center; | |
394 | +} | |
395 | +.pop_up_no .close_img{ | |
396 | + width:60rpx; height:60rpx;position:absolute; right:-15px; top:-15rpx; | |
397 | + } | |
357 | 398 | \ No newline at end of file | ... | ... |
packageA/pages/chongzhiDetails/chongzhiDetails.js
packageA/pages/goodsInfo/goodsInfo.js
... | ... | @@ -1328,7 +1328,7 @@ Page({ |
1328 | 1328 | var user_info = getApp().globalData.userInfo; |
1329 | 1329 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1330 | 1330 | wx.navigateTo({ |
1331 | - url: '/pages/togoin/togoin', | |
1331 | + url: '/packageE/pages/togoin/togoin', | |
1332 | 1332 | }) |
1333 | 1333 | return false; |
1334 | 1334 | } |
... | ... | @@ -1870,7 +1870,7 @@ Page({ |
1870 | 1870 | var user_info = getApp().globalData.userInfo; |
1871 | 1871 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1872 | 1872 | //getApp().my_warnning("请先登录",0,this); |
1873 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1873 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1874 | 1874 | return false; |
1875 | 1875 | } |
1876 | 1876 | |
... | ... | @@ -3702,7 +3702,7 @@ Page({ |
3702 | 3702 | var user_info = getApp().globalData.userInfo; |
3703 | 3703 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
3704 | 3704 | wx.navigateTo({ |
3705 | - url: '/pages/togoin/togoin', | |
3705 | + url: '/packageE/pages/togoin/togoin', | |
3706 | 3706 | }) |
3707 | 3707 | return false; |
3708 | 3708 | } |
... | ... | @@ -3739,7 +3739,7 @@ Page({ |
3739 | 3739 | let user_info = getApp().globalData.userInfo; |
3740 | 3740 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
3741 | 3741 | wx.navigateTo({ |
3742 | - url: '/pages/togoin/togoin', | |
3742 | + url: '/packageE/pages/togoin/togoin', | |
3743 | 3743 | }) |
3744 | 3744 | return false; |
3745 | 3745 | }; | ... | ... |
packageA/pages/goods_share/goods_share.js
... | ... | @@ -115,7 +115,7 @@ Page({ |
115 | 115 | }) |
116 | 116 | |
117 | 117 | if(!app.globalData.userInfo) { |
118 | - getApp().goto("/pages/togoin/togoin"); | |
118 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
119 | 119 | } |
120 | 120 | |
121 | 121 | |
... | ... | @@ -371,7 +371,7 @@ Page({ |
371 | 371 | var user_info = getApp().globalData.userInfo; |
372 | 372 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
373 | 373 | //getApp().my_warnning("请先登录",0,this); |
374 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
374 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
375 | 375 | return false; |
376 | 376 | } |
377 | 377 | //类型 0普通商品 1秒杀商品 2商家和会员团 3阶梯团 |
... | ... | @@ -752,7 +752,7 @@ Page({ |
752 | 752 | var user_info = getApp().globalData.userInfo; |
753 | 753 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
754 | 754 | //getApp().my_warnning("请先登录",0,this); |
755 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
755 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
756 | 756 | return false; |
757 | 757 | } |
758 | 758 | ... | ... |
packageA/pages/hongBao/hongBao.js
... | ... | @@ -54,7 +54,7 @@ Page({ |
54 | 54 | let user_info = app.globalData.userInfo; |
55 | 55 | if(user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
56 | 56 | wx.navigateTo({ |
57 | - url: '/pages/togoin/togoin', | |
57 | + url: '/packageE/pages/togoin/togoin', | |
58 | 58 | }) |
59 | 59 | } else { |
60 | 60 | resolve(); | ... | ... |
packageA/pages/hongBaoDetails/hongBaoDetails.js
... | ... | @@ -108,7 +108,7 @@ Page({ |
108 | 108 | let user_info = app.globalData.userInfo; |
109 | 109 | if(user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
110 | 110 | wx.navigateTo({ |
111 | - url: '/pages/togoin/togoin', | |
111 | + url: '/packageE/pages/togoin/togoin', | |
112 | 112 | }) |
113 | 113 | } else { |
114 | 114 | resolve(); | ... | ... |
packageA/pages/liveStreamDetails/liveStreamDetails.js
packageA/pages/live_share/live_share.js
... | ... | @@ -169,7 +169,7 @@ Page({ |
169 | 169 | var user_info = getApp().globalData.userInfo; |
170 | 170 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
171 | 171 | //getApp().my_warnning("请先登录",0,this); |
172 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
172 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
173 | 173 | return false; |
174 | 174 | } |
175 | 175 | ... | ... |
packageA/pages/my_service2/appment_main.js
... | ... | @@ -548,7 +548,7 @@ Page({ |
548 | 548 | var user_info = getApp().globalData.userInfo; |
549 | 549 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
550 | 550 | wx.navigateTo({ |
551 | - url: '/pages/togoin/togoin', | |
551 | + url: '/packageE/pages/togoin/togoin', | |
552 | 552 | }) |
553 | 553 | return false; |
554 | 554 | } | ... | ... |
packageA/pages/prom_list/prom_list.js
... | ... | @@ -662,7 +662,7 @@ Page({ |
662 | 662 | var user_info = getApp().globalData.userInfo; |
663 | 663 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
664 | 664 | wx.navigateTo({ |
665 | - url: '/pages/togoin/togoin', | |
665 | + url: '/packageE/pages/togoin/togoin', | |
666 | 666 | }) |
667 | 667 | return false; |
668 | 668 | } | ... | ... |
packageA/pages/quan/quan.js
... | ... | @@ -132,7 +132,7 @@ Page({ |
132 | 132 | var user_info = getApp().globalData.userInfo; |
133 | 133 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
134 | 134 | //getApp().my_warnning("请先登录",0,this); |
135 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
135 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
136 | 136 | return false; |
137 | 137 | } |
138 | 138 | |
... | ... | @@ -155,7 +155,7 @@ Page({ |
155 | 155 | var user_info = getApp().globalData.userInfo; |
156 | 156 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
157 | 157 | //getApp().my_warnning("请先登录",0,this); |
158 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
158 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
159 | 159 | return false; |
160 | 160 | } |
161 | 161 | ... | ... |
packageA/pages/quan_list/quan_list.js
... | ... | @@ -98,7 +98,7 @@ Page({ |
98 | 98 | var user_info = getApp().globalData.userInfo; |
99 | 99 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
100 | 100 | wx.navigateTo({ |
101 | - url: '/pages/togoin/togoin', | |
101 | + url: '/packageE/pages/togoin/togoin', | |
102 | 102 | }) |
103 | 103 | return false; |
104 | 104 | } | ... | ... |
packageA/pages/quan_pro/quan_pro.js
... | ... | @@ -82,7 +82,7 @@ Page({ |
82 | 82 | var user_info = getApp().globalData.userInfo; |
83 | 83 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
84 | 84 | wx.navigateTo({ |
85 | - url: '/pages/togoin/togoin', | |
85 | + url: '/packageE/pages/togoin/togoin', | |
86 | 86 | }) |
87 | 87 | return false; |
88 | 88 | } | ... | ... |
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.js
... | ... | @@ -1216,7 +1216,7 @@ Page({ |
1216 | 1216 | var user_info = getApp().globalData.userInfo; |
1217 | 1217 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1218 | 1218 | wx.navigateTo({ |
1219 | - url: '/pages/togoin/togoin', | |
1219 | + url: '/packageE/pages/togoin/togoin', | |
1220 | 1220 | }) |
1221 | 1221 | return false; |
1222 | 1222 | } |
... | ... | @@ -1742,7 +1742,7 @@ Page({ |
1742 | 1742 | var user_info = getApp().globalData.userInfo; |
1743 | 1743 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1744 | 1744 | //getApp().my_warnning("请先登录",0,this); |
1745 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
1745 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
1746 | 1746 | return false; |
1747 | 1747 | } |
1748 | 1748 | |
... | ... | @@ -3568,7 +3568,7 @@ Page({ |
3568 | 3568 | var user_info = getApp().globalData.userInfo; |
3569 | 3569 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
3570 | 3570 | wx.navigateTo({ |
3571 | - url: '/pages/togoin/togoin', | |
3571 | + url: '/packageE/pages/togoin/togoin', | |
3572 | 3572 | }) |
3573 | 3573 | return false; |
3574 | 3574 | } |
... | ... | @@ -3606,7 +3606,7 @@ Page({ |
3606 | 3606 | let user_info = getApp().globalData.userInfo; |
3607 | 3607 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
3608 | 3608 | wx.navigateTo({ |
3609 | - url: '/pages/togoin/togoin', | |
3609 | + url: '/packageE/pages/togoin/togoin', | |
3610 | 3610 | }) |
3611 | 3611 | return false; |
3612 | 3612 | }; |
... | ... | @@ -4175,7 +4175,7 @@ Page({ |
4175 | 4175 | var user_info = getApp().globalData.userInfo; |
4176 | 4176 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
4177 | 4177 | wx.navigateTo({ |
4178 | - url: '/pages/togoin/togoin', | |
4178 | + url: '/packageE/pages/togoin/togoin', | |
4179 | 4179 | }) |
4180 | 4180 | return false; |
4181 | 4181 | } | ... | ... |
packageA/pages/serviceCard_pd/team_show/team_show.js
... | ... | @@ -162,7 +162,7 @@ Page({ |
162 | 162 | //--先判断会员状态-- |
163 | 163 | var user_info=getApp().globalData.userInfo; |
164 | 164 | if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){ |
165 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
165 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
166 | 166 | return false; |
167 | 167 | } |
168 | 168 | ... | ... |
packageA/pages/serviceCard_pd/team_success/team_success.js
packageA/pages/service_record/service_record.js
... | ... | @@ -57,7 +57,7 @@ Page({ |
57 | 57 | let user_info = app.globalData.userInfo; |
58 | 58 | if(user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
59 | 59 | wx.navigateTo({ |
60 | - url: '/pages/togoin/togoin', | |
60 | + url: '/packageE/pages/togoin/togoin', | |
61 | 61 | }) |
62 | 62 | } else { |
63 | 63 | resolve(); | ... | ... |
packageA/pages/service_share/service_share.js
... | ... | @@ -344,7 +344,7 @@ Page({ |
344 | 344 | var user_info = getApp().globalData.userInfo; |
345 | 345 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
346 | 346 | //getApp().my_warnning("请先登录",0,this); |
347 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
347 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
348 | 348 | return false; |
349 | 349 | } |
350 | 350 | //类型 0普通商品 1秒杀商品 2商家和会员团 3阶梯团 |
... | ... | @@ -731,7 +731,7 @@ Page({ |
731 | 731 | var user_info = getApp().globalData.userInfo; |
732 | 732 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
733 | 733 | //getApp().my_warnning("请先登录",0,this); |
734 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
734 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
735 | 735 | return false; |
736 | 736 | } |
737 | 737 | ... | ... |
packageB/pages/boxes-list/boxes-list.js
... | ... | @@ -109,7 +109,7 @@ Page({ |
109 | 109 | let user_info = getApp().globalData.userInfo; |
110 | 110 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
111 | 111 | wx.navigateTo({ |
112 | - url: '/pages/togoin/togoin', | |
112 | + url: '/packageE/pages/togoin/togoin', | |
113 | 113 | }) |
114 | 114 | return false; |
115 | 115 | }; | ... | ... |
packageB/pages/evaluate/evaluate.js
packageB/pages/luckactivity/luckinfo/luckinfo.js
packageB/pages/luckactivity/luckinfo/luckinfo.wxml
packageB/pages/zuhegou/index/index.js
... | ... | @@ -369,7 +369,7 @@ Page({ |
369 | 369 | }) |
370 | 370 | |
371 | 371 | } else { |
372 | - getApp().goto("/pages/togoin/togoin"); | |
372 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
373 | 373 | return false; |
374 | 374 | } |
375 | 375 | }) |
... | ... | @@ -521,7 +521,7 @@ Page({ |
521 | 521 | var index = e.currentTarget.dataset.index; |
522 | 522 | var userInfo = getApp().globalData.userInfo; |
523 | 523 | if (!userInfo) { |
524 | - getApp().goto("/pages/togoin/togoin"); | |
524 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
525 | 525 | return false; |
526 | 526 | } |
527 | 527 | let haveAdded = this.data.list[index].haveAdded; |
... | ... | @@ -656,7 +656,7 @@ Page({ |
656 | 656 | var th = this; |
657 | 657 | var userInfo = getApp().globalData.userInfo; |
658 | 658 | if (!userInfo) { |
659 | - getApp().goto("/pages/togoin/togoin"); | |
659 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
660 | 660 | return false; |
661 | 661 | } |
662 | 662 | |
... | ... | @@ -679,7 +679,7 @@ Page({ |
679 | 679 | sub(e) { |
680 | 680 | var userInfo = getApp().globalData.userInfo; |
681 | 681 | if (!userInfo) { |
682 | - getApp().goto("/pages/togoin/togoin"); | |
682 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
683 | 683 | return false; |
684 | 684 | } |
685 | 685 | |
... | ... | @@ -784,7 +784,7 @@ Page({ |
784 | 784 | var th = this; |
785 | 785 | var userInfo = getApp().globalData.userInfo; |
786 | 786 | if (!userInfo) { |
787 | - getApp().goto("/pages/togoin/togoin"); | |
787 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
788 | 788 | return false; |
789 | 789 | } |
790 | 790 | wx.showLoading(); |
... | ... | @@ -1694,7 +1694,7 @@ Page({ |
1694 | 1694 | user_id = getApp().globalData.user_id; |
1695 | 1695 | |
1696 | 1696 | if (user_id == null) { |
1697 | - getApp().goto("/pages/togoin/togoin"); | |
1697 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1698 | 1698 | return false; |
1699 | 1699 | } |
1700 | 1700 | if (map && map.has(gd.goods_id)) { |
... | ... | @@ -1792,7 +1792,7 @@ Page({ |
1792 | 1792 | choose_store: function (e) { |
1793 | 1793 | var userInfo = getApp().globalData.userInfo; |
1794 | 1794 | if (!userInfo) { |
1795 | - getApp().goto("/pages/togoin/togoin"); | |
1795 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1796 | 1796 | return false; |
1797 | 1797 | } |
1798 | 1798 | this.data.only = 1; | ... | ... |
packageB/pages/zuhegou/preindex/index.js
... | ... | @@ -370,7 +370,7 @@ Page({ |
370 | 370 | }) |
371 | 371 | |
372 | 372 | } else { |
373 | - getApp().goto("/pages/togoin/togoin"); | |
373 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
374 | 374 | return false; |
375 | 375 | } |
376 | 376 | }) |
... | ... | @@ -523,7 +523,7 @@ Page({ |
523 | 523 | var index = e.currentTarget.dataset.index; |
524 | 524 | var userInfo = getApp().globalData.userInfo; |
525 | 525 | if (!userInfo) { |
526 | - getApp().goto("/pages/togoin/togoin"); | |
526 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
527 | 527 | return false; |
528 | 528 | } |
529 | 529 | let haveAdded = this.data.list[index].haveAdded; |
... | ... | @@ -658,7 +658,7 @@ Page({ |
658 | 658 | var th = this; |
659 | 659 | var userInfo = getApp().globalData.userInfo; |
660 | 660 | if (!userInfo) { |
661 | - getApp().goto("/pages/togoin/togoin"); | |
661 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
662 | 662 | return false; |
663 | 663 | } |
664 | 664 | |
... | ... | @@ -681,7 +681,7 @@ Page({ |
681 | 681 | sub(e) { |
682 | 682 | var userInfo = getApp().globalData.userInfo; |
683 | 683 | if (!userInfo) { |
684 | - getApp().goto("/pages/togoin/togoin"); | |
684 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
685 | 685 | return false; |
686 | 686 | } |
687 | 687 | |
... | ... | @@ -786,7 +786,7 @@ Page({ |
786 | 786 | var th = this; |
787 | 787 | var userInfo = getApp().globalData.userInfo; |
788 | 788 | if (!userInfo) { |
789 | - getApp().goto("/pages/togoin/togoin"); | |
789 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
790 | 790 | return false; |
791 | 791 | } |
792 | 792 | wx.showLoading(); |
... | ... | @@ -1695,7 +1695,7 @@ Page({ |
1695 | 1695 | user_id = getApp().globalData.user_id; |
1696 | 1696 | |
1697 | 1697 | if (user_id == null) { |
1698 | - getApp().goto("/pages/togoin/togoin"); | |
1698 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1699 | 1699 | return false; |
1700 | 1700 | } |
1701 | 1701 | if (map && map.has(gd.goods_id)) { |
... | ... | @@ -1793,7 +1793,7 @@ Page({ |
1793 | 1793 | choose_store: function (e) { |
1794 | 1794 | var userInfo = getApp().globalData.userInfo; |
1795 | 1795 | if (!userInfo) { |
1796 | - getApp().goto("/pages/togoin/togoin"); | |
1796 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1797 | 1797 | return false; |
1798 | 1798 | } |
1799 | 1799 | this.data.only = 1; | ... | ... |
packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
... | ... | @@ -447,7 +447,7 @@ Page({ |
447 | 447 | var user_info = getApp().globalData.userInfo; |
448 | 448 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
449 | 449 | //getApp().my_warnning("请先登录",0,this); |
450 | - // wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
450 | + // wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
451 | 451 | // return false; |
452 | 452 | } |
453 | 453 | |
... | ... | @@ -1011,7 +1011,7 @@ Page({ |
1011 | 1011 | |
1012 | 1012 | clickShare() { |
1013 | 1013 | if(!getApp().globalData.user_id){ |
1014 | - getApp().goto("/pages/togoin/togoin"); | |
1014 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1015 | 1015 | return false; |
1016 | 1016 | } |
1017 | 1017 | this.setData({ | ... | ... |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... | ... | @@ -540,7 +540,7 @@ Page({ |
540 | 540 | |
541 | 541 | getApp().is_Single_page(th, function () { |
542 | 542 | wx.navigateTo({ |
543 | - url: '/pages/togoin/togoin', | |
543 | + url: '/packageE/pages/togoin/togoin', | |
544 | 544 | }) |
545 | 545 | return false; |
546 | 546 | }) |
... | ... | @@ -2064,7 +2064,7 @@ Page({ |
2064 | 2064 | var user_info = getApp().globalData.userInfo; |
2065 | 2065 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2066 | 2066 | wx.navigateTo({ |
2067 | - url: '/pages/togoin/togoin', | |
2067 | + url: '/packageE/pages/togoin/togoin', | |
2068 | 2068 | }) |
2069 | 2069 | return false; |
2070 | 2070 | } |
... | ... | @@ -3917,7 +3917,7 @@ Page({ |
3917 | 3917 | var user_info = getApp().globalData.userInfo; |
3918 | 3918 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
3919 | 3919 | wx.navigateTo({ |
3920 | - url: '/pages/togoin/togoin', | |
3920 | + url: '/packageE/pages/togoin/togoin', | |
3921 | 3921 | }) |
3922 | 3922 | return false; |
3923 | 3923 | }; |
... | ... | @@ -4491,7 +4491,7 @@ Page({ |
4491 | 4491 | var user_info = getApp().globalData.userInfo; |
4492 | 4492 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
4493 | 4493 | wx.navigateTo({ |
4494 | - url: '/pages/togoin/togoin', | |
4494 | + url: '/packageE/pages/togoin/togoin', | |
4495 | 4495 | }) |
4496 | 4496 | return false; |
4497 | 4497 | } |
... | ... | @@ -4643,7 +4643,7 @@ Page({ |
4643 | 4643 | var user_info = getApp().globalData.userInfo; |
4644 | 4644 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
4645 | 4645 | //getApp().my_warnning("请先登录",0,this); |
4646 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
4646 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
4647 | 4647 | return false; |
4648 | 4648 | } |
4649 | 4649 | |
... | ... | @@ -6224,7 +6224,7 @@ Page({ |
6224 | 6224 | |
6225 | 6225 | clickShare() { |
6226 | 6226 | if(!getApp().globalData.user_id){ |
6227 | - getApp().goto("/pages/togoin/togoin"); | |
6227 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
6228 | 6228 | return false; |
6229 | 6229 | } |
6230 | 6230 | this.setData({ |
... | ... | @@ -6533,7 +6533,7 @@ Page({ |
6533 | 6533 | let user_info = getApp().globalData.userInfo; |
6534 | 6534 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
6535 | 6535 | wx.navigateTo({ |
6536 | - url: '/pages/togoin/togoin', | |
6536 | + url: '/packageE/pages/togoin/togoin', | |
6537 | 6537 | }) |
6538 | 6538 | return false; |
6539 | 6539 | }; | ... | ... |
packageC/pages/presell/cart/cart.js
packageC/pages/presell/goodsInfo/goodsInfo.js
... | ... | @@ -1260,7 +1260,7 @@ Page({ |
1260 | 1260 | var user_info = getApp().globalData.userInfo; |
1261 | 1261 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1262 | 1262 | wx.navigateTo({ |
1263 | - url: '/pages/togoin/togoin', | |
1263 | + url: '/packageE/pages/togoin/togoin', | |
1264 | 1264 | }) |
1265 | 1265 | return false; |
1266 | 1266 | } |
... | ... | @@ -2656,7 +2656,7 @@ Page({ |
2656 | 2656 | var user_info = getApp().globalData.userInfo; |
2657 | 2657 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2658 | 2658 | wx.navigateTo({ |
2659 | - url: '/pages/togoin/togoin', | |
2659 | + url: '/packageE/pages/togoin/togoin', | |
2660 | 2660 | }) |
2661 | 2661 | return false; |
2662 | 2662 | } |
... | ... | @@ -2719,7 +2719,7 @@ Page({ |
2719 | 2719 | var user_info = getApp().globalData.userInfo; |
2720 | 2720 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2721 | 2721 | //getApp().my_warnning("请先登录",0,this); |
2722 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
2722 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
2723 | 2723 | return false; |
2724 | 2724 | } |
2725 | 2725 | |
... | ... | @@ -3873,7 +3873,7 @@ Page({ |
3873 | 3873 | |
3874 | 3874 | clickShare() { |
3875 | 3875 | if(!getApp().globalData.user_id){ |
3876 | - getApp().goto("/pages/togoin/togoin"); | |
3876 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
3877 | 3877 | return false; |
3878 | 3878 | } |
3879 | 3879 | this.setData({ share_hidden: true, }); |
... | ... | @@ -4076,7 +4076,7 @@ Page({ |
4076 | 4076 | let user_info = getApp().globalData.userInfo; |
4077 | 4077 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
4078 | 4078 | wx.navigateTo({ |
4079 | - url: '/pages/togoin/togoin', | |
4079 | + url: '/packageE/pages/togoin/togoin', | |
4080 | 4080 | }) |
4081 | 4081 | return false; |
4082 | 4082 | }; | ... | ... |
packageC/pages/presell/list/list.js
packageC/pages/presell/pregoodsInfo/goodsInfo.js
... | ... | @@ -1254,7 +1254,7 @@ Page({ |
1254 | 1254 | var user_info = getApp().globalData.userInfo; |
1255 | 1255 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1256 | 1256 | wx.navigateTo({ |
1257 | - url: '/pages/togoin/togoin', | |
1257 | + url: '/packageE/pages/togoin/togoin', | |
1258 | 1258 | }) |
1259 | 1259 | return false; |
1260 | 1260 | } |
... | ... | @@ -2619,7 +2619,7 @@ Page({ |
2619 | 2619 | var user_info = getApp().globalData.userInfo; |
2620 | 2620 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2621 | 2621 | wx.navigateTo({ |
2622 | - url: '/pages/togoin/togoin', | |
2622 | + url: '/packageE/pages/togoin/togoin', | |
2623 | 2623 | }) |
2624 | 2624 | return false; |
2625 | 2625 | } |
... | ... | @@ -2682,7 +2682,7 @@ Page({ |
2682 | 2682 | var user_info = getApp().globalData.userInfo; |
2683 | 2683 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2684 | 2684 | //getApp().my_warnning("请先登录",0,this); |
2685 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
2685 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
2686 | 2686 | return false; |
2687 | 2687 | } |
2688 | 2688 | |
... | ... | @@ -3837,7 +3837,7 @@ Page({ |
3837 | 3837 | |
3838 | 3838 | clickShare() { |
3839 | 3839 | if(!getApp().globalData.user_id){ |
3840 | - getApp().goto("/pages/togoin/togoin"); | |
3840 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
3841 | 3841 | return false; |
3842 | 3842 | } |
3843 | 3843 | this.setData({ share_hidden: true, }); | ... | ... |
packageD/pages/AI-test-skin/index/aiskin.js
... | ... | @@ -33,7 +33,7 @@ Page({ |
33 | 33 | let user_id=getApp().globalData.user_id; |
34 | 34 | if(!user_id) { |
35 | 35 | setTimeout(function () { |
36 | - let url = "/pages/togoin/togoin"; | |
36 | + let url = "/packageE/pages/togoin/togoin"; | |
37 | 37 | app.goto(url); |
38 | 38 | }, 1000) |
39 | 39 | } |
... | ... | @@ -86,7 +86,7 @@ Page({ |
86 | 86 | }); |
87 | 87 | |
88 | 88 | setTimeout(function () { |
89 | - let url = "/pages/togoin/togoin"; | |
89 | + let url = "/packageE/pages/togoin/togoin"; | |
90 | 90 | app.goto(url); |
91 | 91 | }, 1000) |
92 | 92 | return false; | ... | ... |
packageD/pages/AI-test-skin/success_result/success_result.js
... | ... | @@ -845,7 +845,7 @@ Page({ |
845 | 845 | //--先判断会员状态-- |
846 | 846 | var user_info = getApp().globalData.userInfo; |
847 | 847 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
848 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
848 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
849 | 849 | return false; |
850 | 850 | } |
851 | 851 | if (this.data.share_hidden) { |
... | ... | @@ -1140,7 +1140,7 @@ Page({ |
1140 | 1140 | var user_info = getApp().globalData.userInfo; |
1141 | 1141 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1142 | 1142 | wx.navigateTo({ |
1143 | - url: '/pages/togoin/togoin', | |
1143 | + url: '/packageE/pages/togoin/togoin', | |
1144 | 1144 | }) |
1145 | 1145 | return false; |
1146 | 1146 | } | ... | ... |
packageD/pages/user/coupons/coupons.js
... | ... | @@ -42,16 +42,23 @@ Page({ |
42 | 42 | by_list:[], |
43 | 43 | isloading:0, |
44 | 44 | pageNum: 1, |
45 | + currentIndex:0 | |
45 | 46 | }, |
46 | 47 | /** |
47 | 48 | * 生命周期函数--监听页面加载 |
48 | 49 | */ |
49 | 50 | onLoad: function (options) { |
50 | - _this = this; | |
51 | - this.setData({ | |
52 | - details: [] | |
53 | - }); | |
54 | - this.wjquery(); | |
51 | + _this = this; | |
52 | + // this.setData({ | |
53 | + // details: [] | |
54 | + // }); | |
55 | + // this.wjquery(); | |
56 | + if(options.index){ | |
57 | + this.setData({currentIndex:options.index}); | |
58 | + } | |
59 | + | |
60 | + | |
61 | + | |
55 | 62 | }, |
56 | 63 | /** |
57 | 64 | * 生命周期函数--监听页面显示 |
... | ... | @@ -68,18 +75,26 @@ Page({ |
68 | 75 | * by sty |
69 | 76 | */ |
70 | 77 | getApp().getConfig2(function (ee) { |
71 | - var json_d = JSON.parse(ee.switch_list); | |
78 | + var json_d = JSON.parse(ee.switch_list); | |
72 | 79 | let is_show_dhwz = json_d.dhwz_switch; |
73 | 80 | let grades = th.data.grades; |
74 | 81 | // console.log('is_show_dhwz----------------------------',is_show_dhwz); |
75 | - if(is_show_dhwz) { | |
76 | - if(grades.indexOf('微券兑换') == -1) { | |
82 | + if (is_show_dhwz) { | |
83 | + if (grades.indexOf('微券兑换') == -1) { | |
77 | 84 | grades.push('微券兑换'); |
78 | - th.setData({ grades }); | |
79 | - }; | |
80 | - }; | |
81 | - th.setData({ is_show_dhwz }); | |
85 | + th.setData({grades}); | |
86 | + } | |
87 | + | |
88 | + } | |
89 | + | |
90 | + th.setData({is_show_dhwz}); | |
91 | + th.init_data(th.data.currentIndex); | |
92 | + | |
82 | 93 | },1); |
94 | + | |
95 | + | |
96 | + | |
97 | + | |
83 | 98 | }, |
84 | 99 | |
85 | 100 | |
... | ... | @@ -155,6 +170,30 @@ Page({ |
155 | 170 | this.wjquery(); |
156 | 171 | }; |
157 | 172 | }, |
173 | + | |
174 | + init_data(idx){ | |
175 | + | |
176 | + var name=this.data.grades[idx]; | |
177 | + this.setData({ | |
178 | + is_get: 0, | |
179 | + pageNum: 1, | |
180 | + grade_name: name, | |
181 | + currentIndex: idx, | |
182 | + is_no_more: 0, | |
183 | + current_page: 1, | |
184 | + noMore: false, | |
185 | + details: [], | |
186 | + by_list: [], | |
187 | + showQr: false, | |
188 | + }); | |
189 | + | |
190 | + if(idx == 3) {//微券兑换 | |
191 | + this.exchange(); | |
192 | + } else {//其他 | |
193 | + this.wjquery(); | |
194 | + }; | |
195 | + }, | |
196 | + | |
158 | 197 | |
159 | 198 | /** |
160 | 199 | * 点击"立即使用" | ... | ... |
packageD/pages/user/deposit/deposit.js
... | ... | @@ -28,7 +28,7 @@ Page({ |
28 | 28 | // --先判断会员状态-- |
29 | 29 | var user_info = getApp().globalData.userInfo; |
30 | 30 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
31 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
31 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | wx.setNavigationBarTitle({ | ... | ... |
packageD/pages/user/deposit/prepaid/prepaid.js
packageD/pages/user/integral/integral.js
... | ... | @@ -311,7 +311,7 @@ Page({ |
311 | 311 | //--先判断会员状态-- |
312 | 312 | var user_info = getApp().globalData.userInfo; |
313 | 313 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
314 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
314 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
315 | 315 | return false; |
316 | 316 | } |
317 | 317 | ... | ... |
packageD/pages/user/member/bring/bring.js
... | ... | @@ -337,7 +337,7 @@ Page({ |
337 | 337 | var user_info = getApp().globalData.userInfo; |
338 | 338 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == " " || user_info.mobile == null) { |
339 | 339 | wx.navigateTo({ |
340 | - url: '/pages/togoin/togoin', | |
340 | + url: '/packageE/pages/togoin/togoin', | |
341 | 341 | }) |
342 | 342 | return false; |
343 | 343 | } | ... | ... |
packageD/pages/user/member/menber.js
... | ... | @@ -25,7 +25,7 @@ Page({ |
25 | 25 | //--先判断会员状态-- |
26 | 26 | var user_info = getApp().globalData.userInfo; |
27 | 27 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
28 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
28 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
29 | 29 | return false; |
30 | 30 | } |
31 | 31 | this.init_fir(); | ... | ... |
pages/togoin/togoin.js renamed to packageE/pages/togoin/togoin.js
1 | -var t = require("../../utils/common.js"); | |
1 | +var t = require("../../../utils/common.js"); | |
2 | 2 | const app=getApp(); |
3 | 3 | var os = app.globalData.setting; |
4 | -var regeneratorRuntime = require('../../utils/runtime.js'); | |
4 | +var regeneratorRuntime = require('../../../utils/runtime.js'); | |
5 | 5 | |
6 | 6 | Page({ |
7 | 7 | data: { |
... | ... | @@ -19,7 +19,6 @@ Page({ |
19 | 19 | canIUseGetUserProfile: true |
20 | 20 | }) |
21 | 21 | } |
22 | - | |
23 | 22 | getApp().globalData.isLoad_ad=1; |
24 | 23 | //--判断是否有接受到邀请人的ID-- |
25 | 24 | if(options.first_leader){ |
... | ... | @@ -122,6 +121,14 @@ Page({ |
122 | 121 | //把会员的信息存在内存 |
123 | 122 | wx.setStorageSync("userinfo",e.data.data); |
124 | 123 | |
124 | + //调用接口判断是不是会员 | |
125 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | |
126 | + if (res.data.code == 0) { | |
127 | + getApp().globalData.guide_id = res.data.data.id; | |
128 | + } | |
129 | + }) | |
130 | + | |
131 | + | |
125 | 132 | setTimeout(function () { |
126 | 133 | getApp().globalData.login_back=1; |
127 | 134 | wx.navigateBack({ delta: 1}) //返回上一页 |
... | ... | @@ -258,7 +265,15 @@ Page({ |
258 | 265 | getApp().globalData.login_back=1; |
259 | 266 | wx.setStorageSync("userinfo",e.data.data); |
260 | 267 | wx.setStorageSync("isAuth", !0), app.globalData.userInfo = e.data.data, app.globalData.userInfo.head_pic = t.getFullUrl(app.globalData.userInfo.head_pic); |
261 | - wx.navigateBack({ delta: 1}) | |
268 | + | |
269 | + //调用接口判断是不是会员 | |
270 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | |
271 | + if (res.data.code == 0) { | |
272 | + getApp().globalData.guide_id = res.data.data.id; | |
273 | + } | |
274 | + }) | |
275 | + | |
276 | + wx.navigateBack({ delta: 1}) | |
262 | 277 | |
263 | 278 | }, |
264 | 279 | failStatus: function (t) { |
... | ... | @@ -321,6 +336,14 @@ Page({ |
321 | 336 | //把会员的信息存在内存 |
322 | 337 | wx.setStorageSync("userinfo",e.data.data); |
323 | 338 | |
339 | + //调用接口判断是不是会员 | |
340 | + app.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + e.data.data.user_id, {}).then(res => { | |
341 | + if (res.data.code == 0) { | |
342 | + getApp().globalData.guide_id = res.data.data.id; | |
343 | + } | |
344 | + }) | |
345 | + | |
346 | + | |
324 | 347 | setTimeout(function () { |
325 | 348 | getApp().globalData.login_back=1; |
326 | 349 | wx.navigateBack({ delta: 1}) //返回上一页 | ... | ... |
pages/togoin/togoin.json renamed to packageE/pages/togoin/togoin.json
pages/togoin/togoin.wxml renamed to packageE/pages/togoin/togoin.wxml
pages/togoin/togoin.wxss renamed to packageE/pages/togoin/togoin.wxss
pages/cart/cart/cart.js
... | ... | @@ -50,13 +50,7 @@ Page({ |
50 | 50 | onLoad: function () { |
51 | 51 | var a = this, |
52 | 52 | ee = a; |
53 | - //----获取系统参数----- | |
54 | - // getApp().getConfig2(function (e) { | |
55 | - // ee.setData({ | |
56 | - // bconfig: e, | |
57 | - // sales_rules: e.sales_rules | |
58 | - // }); | |
59 | - // }) | |
53 | + | |
60 | 54 | |
61 | 55 | wx.setNavigationBarTitle({ |
62 | 56 | title: "购物车", |
... | ... | @@ -122,7 +116,7 @@ Page({ |
122 | 116 | enabled: 1 |
123 | 117 | } |
124 | 118 | }).then(res => { |
125 | - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ | |
119 | + if( ut.ajax_ok(res)){ | |
126 | 120 | var a = res.data.data.pageData; |
127 | 121 | var narr=[]; |
128 | 122 | for(var i in a){ |
... | ... | @@ -150,7 +144,7 @@ Page({ |
150 | 144 | getApp().request.promiseGet("/api/ms/flash_sale/spikepage", { |
151 | 145 | data: req_d, |
152 | 146 | }).then(res => { |
153 | - if (res.data.code == 0 && res.data.data && res.data.data.pageData.length > 0) { | |
147 | + if (ut.ajax_ok(res)) { | |
154 | 148 | th.setData({ |
155 | 149 | is_has_flash: 1 |
156 | 150 | }) |
... | ... | @@ -269,7 +263,7 @@ Page({ |
269 | 263 | |
270 | 264 | }, |
271 | 265 | }).then(res => { |
272 | - if (res.data.code == 0 && res.data.data && res.data.data.length > 0) { | |
266 | + if(ut.ajax_ok2(res)) { | |
273 | 267 | by_map = {}; |
274 | 268 | for (let i in res.data.data) { |
275 | 269 | let item = res.data.data[i]; | ... | ... |
pages/cart/cart2/cart2.js
... | ... | @@ -1267,19 +1267,8 @@ Page({ |
1267 | 1267 | //-- 计算获得佣金的金额 -- |
1268 | 1268 | if( getApp().globalData.userInfo.is_distribut |
1269 | 1269 | && th.data.dis_config && th.data.dis_config.is_yongjin_dk){ |
1270 | - var fir_num=0; | |
1271 | - var sec_num=0; | |
1272 | - var thi_num=0; | |
1273 | - if(th.data.dis_config.pattern==1){ | |
1274 | - fir_num=(t.data.data.fir_rate || 0)*gg.goods_num; | |
1275 | - sec_num=(t.data.data.sec_rate || 0)*gg.goods_num; | |
1276 | - thi_num=(t.data.data.thi_rate || 0)*gg.goods_num; | |
1277 | - }else{ | |
1278 | - fir_num=parseFloat((t.data.data.commission || 0) *gg.goods_num*(th.data.dis_config.firstRate || 0)/100).toFixed(2); | |
1279 | - sec_num=parseFloat((t.data.data.commission || 0)*gg.goods_num*(th.data.dis_config.secondRate || 0)/100).toFixed(2); | |
1280 | - thi_num=parseFloat((t.data.data.commission || 0)*gg.goods_num*(th.data.dis_config.thirdRate || 0)/100).toFixed(2); | |
1281 | - } | |
1282 | - var c_num=getApp().get_commission(fir_num,sec_num,thi_num,th); | |
1270 | + | |
1271 | + var c_num=getApp().get_commission(th.data.dis_config,t.data.data,gg.goods_num); | |
1283 | 1272 | |
1284 | 1273 | gd.use_commission=c_num; |
1285 | 1274 | t.data.data.use_commission=c_num; |
... | ... | @@ -1327,19 +1316,8 @@ Page({ |
1327 | 1316 | //-- 计算获得佣金的金额 -- |
1328 | 1317 | if( getApp().globalData.userInfo.is_distribut |
1329 | 1318 | && th.data.dis_config && th.data.dis_config.is_yongjin_dk){ |
1330 | - var fir_num=0; | |
1331 | - var sec_num=0; | |
1332 | - var thi_num=0; | |
1333 | - if(th.data.dis_config.pattern==1){ | |
1334 | - fir_num=(t.data.data.fir_rate || 0)*gg.goods_num; | |
1335 | - sec_num=(t.data.data.sec_rate || 0)*gg.goods_num; | |
1336 | - thi_num=(t.data.data.thi_rate || 0)*gg.goods_num; | |
1337 | - }else{ | |
1338 | - fir_num=parseFloat((t.data.data.commission || 0) *gg.goods_num*(th.data.dis_config.firstRate || 0)/100).toFixed(2); | |
1339 | - sec_num=parseFloat((t.data.data.commission || 0)*gg.goods_num*(th.data.dis_config.secondRate || 0)/100).toFixed(2); | |
1340 | - thi_num=parseFloat((t.data.data.commission || 0)*gg.goods_num*(th.data.dis_config.thirdRate || 0)/100).toFixed(2); | |
1341 | - } | |
1342 | - var c_num=getApp().get_commission(fir_num,sec_num,thi_num,th); | |
1319 | + | |
1320 | + var c_num=getApp().get_commission(th.data.dis_config,t.data.data,gg.goods_num); | |
1343 | 1321 | |
1344 | 1322 | gd.use_commission=c_num; |
1345 | 1323 | t.data.data.use_commission=c_num; | ... | ... |
pages/cart/cart2_inte/cart2_inte.js
... | ... | @@ -401,20 +401,7 @@ Page({ |
401 | 401 | //-- 计算获得佣金的金额 -- |
402 | 402 | if (getApp().globalData.userInfo.is_distribut |
403 | 403 | && th.data.dis_config && th.data.dis_config.is_yongjin_dk) { |
404 | - var fir_num = 0; | |
405 | - var sec_num = 0; | |
406 | - var thi_num = 0; | |
407 | - if (th.data.dis_config.pattern == 1) { | |
408 | - fir_num = (inte_data.fir_rate || 0) * gg.goods_num; | |
409 | - sec_num = (inte_data.sec_rate || 0) * gg.goods_num; | |
410 | - thi_num = (inte_data.thi_rate || 0) * gg.goods_num; | |
411 | - } else { | |
412 | - fir_num = parseFloat((inte_data.commission || 0) * gg.goods_num * (th.data.dis_config.firstRate || 0) / 100).toFixed(2); | |
413 | - sec_num = parseFloat((inte_data.commission || 0) * gg.goods_num * (th.data.dis_config.secondRate || 0) / 100).toFixed(2); | |
414 | - thi_num = parseFloat((inte_data.commission || 0) * gg.goods_num * (th.data.dis_config.thirdRate || 0) / 100).toFixed(2); | |
415 | - } | |
416 | - var c_num = getApp().get_commission(fir_num, sec_num, thi_num, th); | |
417 | - | |
404 | + var c_num = getApp().get_commission(th.data.dis_config,inte_data, gg.goods_num); | |
418 | 405 | t.data.data.use_commission = c_num; |
419 | 406 | |
420 | 407 | } | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
... | ... | @@ -283,19 +283,8 @@ Page({ |
283 | 283 | //-- 计算获得佣金的金额 -- |
284 | 284 | if (getApp().globalData.userInfo.is_distribut |
285 | 285 | && th.data.dis_config && th.data.dis_config.is_yongjin_dk) { |
286 | - var fir_num = 0; | |
287 | - var sec_num = 0; | |
288 | - var thi_num = 0; | |
289 | - if (th.data.dis_config.pattern == 1) { | |
290 | - fir_num = (t.data.data.fir_rate || 0) * gg.goods_num; | |
291 | - sec_num = (t.data.data.sec_rate || 0) * gg.goods_num; | |
292 | - thi_num = (t.data.data.thi_rate || 0) * gg.goods_num; | |
293 | - } else { | |
294 | - fir_num = parseFloat((t.data.data.commission || 0) * gg.goods_num * (th.data.dis_config.firstRate || 0) / 100).toFixed(2); | |
295 | - sec_num = parseFloat((t.data.data.commission || 0) * gg.goods_num * (th.data.dis_config.secondRate || 0) / 100).toFixed(2); | |
296 | - thi_num = parseFloat((t.data.data.commission || 0) * gg.goods_num * (th.data.dis_config.thirdRate || 0) / 100).toFixed(2); | |
297 | - } | |
298 | - var c_num = getApp().get_commission(fir_num, sec_num, thi_num, th); | |
286 | + | |
287 | + var c_num = getApp().get_commission(th.data.dis_config, t.data.data, gg.goods_num); | |
299 | 288 | |
300 | 289 | gd.use_commission = c_num; |
301 | 290 | t.data.data.use_commission = c_num; | ... | ... |
pages/distribution/distribution.js
... | ... | @@ -22,7 +22,7 @@ Page({ |
22 | 22 | userInfo: app.globalData.userInfo, |
23 | 23 | }); |
24 | 24 | }else{ |
25 | - getApp().goto("/pages/togoin/togoin") //跳到非tabbar页 | |
25 | + getApp().goto("/packageE/pages/togoin/togoin") //跳到非tabbar页 | |
26 | 26 | } |
27 | 27 | wx.setNavigationBarTitle({ |
28 | 28 | title: "我的分销", |
... | ... | @@ -340,6 +340,6 @@ Page({ |
340 | 340 | }, |
341 | 341 | |
342 | 342 | go_login(){ |
343 | - getApp().goto("/pages/togoin/togoin") //跳到非tabbar页 | |
343 | + getApp().goto("/packageE/pages/togoin/togoin") //跳到非tabbar页 | |
344 | 344 | } |
345 | 345 | }) |
346 | 346 | \ No newline at end of file | ... | ... |
pages/giftpack/birthdaygift/birthdaygift.js
... | ... | @@ -127,7 +127,7 @@ Page({ |
127 | 127 | //--先判断会员状态-- |
128 | 128 | var user_info = getApp().globalData.userInfo; |
129 | 129 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
130 | - getApp().goto('/pages/togoin/togoin'); | |
130 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
131 | 131 | return false; |
132 | 132 | } |
133 | 133 | this.GetList(); | ... | ... |
pages/giftpack/buygiftpack/giftpackbuy.js
... | ... | @@ -135,7 +135,7 @@ Page({ |
135 | 135 | getApp().is_Single_page(this, function () { |
136 | 136 | var user_info = getApp().globalData.userInfo; |
137 | 137 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
138 | - getApp().goto('/pages/togoin/togoin'); | |
138 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
139 | 139 | return false; |
140 | 140 | } |
141 | 141 | com.wait_for_store_config(th); | ... | ... |
pages/giftpack/evaluategift/evaluategift.js
... | ... | @@ -160,7 +160,7 @@ Page({ |
160 | 160 | //--先判断会员状态-- |
161 | 161 | var user_info = getApp().globalData.userInfo; |
162 | 162 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
163 | - getApp().goto('/pages/togoin/togoin'); | |
163 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
164 | 164 | return false; |
165 | 165 | } |
166 | 166 | ... | ... |
pages/giftpack/festival/festival.js
... | ... | @@ -133,7 +133,7 @@ Page({ |
133 | 133 | //--先判断会员状态-- |
134 | 134 | var user_info = getApp().globalData.userInfo; |
135 | 135 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
136 | - getApp().goto('/pages/togoin/togoin'); | |
136 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
137 | 137 | return false; |
138 | 138 | } |
139 | 139 | this.is_festival(); | ... | ... |
pages/giftpack/giftpacklist/giftpacklist.js
... | ... | @@ -167,7 +167,7 @@ Page({ |
167 | 167 | //--先判断会员状态-- |
168 | 168 | var user_info = getApp().globalData.userInfo; |
169 | 169 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
170 | - getApp().goto('/pages/togoin/togoin'); | |
170 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
171 | 171 | return false; |
172 | 172 | } |
173 | 173 | this.init(); |
... | ... | @@ -903,7 +903,7 @@ Page({ |
903 | 903 | |
904 | 904 | clickShare() { |
905 | 905 | if (!getApp().globalData.user_id) { |
906 | - getApp().goto("/pages/togoin/togoin"); | |
906 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
907 | 907 | return false; |
908 | 908 | } |
909 | 909 | this.setData({ |
... | ... | @@ -930,7 +930,7 @@ Page({ |
930 | 930 | var user_info = getApp().globalData.userInfo; |
931 | 931 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
932 | 932 | //getApp().my_warnning("请先登录",0,this); |
933 | - wx.navigateTo({url: '/pages/togoin/togoin',}) | |
933 | + wx.navigateTo({url: '/packageE/pages/togoin/togoin',}) | |
934 | 934 | return false; |
935 | 935 | } |
936 | 936 | |
... | ... | @@ -957,9 +957,6 @@ Page({ |
957 | 957 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + |
958 | 958 | os.stoid + "?sceneValue=" + scene + "&pageValue=pages/giftpack/giftpacklist/giftpacklist"; |
959 | 959 | |
960 | - console.log("11111"); | |
961 | - console.log(path3); | |
962 | - | |
963 | 960 | // 读取文件成功则OK-- |
964 | 961 | wx.getImageInfo({ |
965 | 962 | src: path3, |
... | ... | @@ -982,9 +979,6 @@ Page({ |
982 | 979 | canvasId: 'share', |
983 | 980 | success: function (res) { |
984 | 981 | |
985 | - | |
986 | - console.log(res.tempFilePath) | |
987 | - | |
988 | 982 | that.setData({ |
989 | 983 | shareImgPath: res.tempFilePath, |
990 | 984 | canvasHidden: true | ... | ... |
pages/giftpack/mygiftpack/mygiftpack.js
... | ... | @@ -83,7 +83,7 @@ Page({ |
83 | 83 | getApp().is_Single_page(this, function () { |
84 | 84 | var user_info = getApp().globalData.userInfo; |
85 | 85 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
86 | - getApp().goto('/pages/togoin/togoin'); | |
86 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
87 | 87 | return false; |
88 | 88 | } |
89 | 89 | this.init() | ... | ... |
pages/giftpack/newvipgift/newvipgift.js
... | ... | @@ -126,7 +126,7 @@ Page({ |
126 | 126 | //--先判断会员状态-- |
127 | 127 | var user_info = getApp().globalData.userInfo; |
128 | 128 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
129 | - getApp().goto('/pages/togoin/togoin'); | |
129 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
130 | 130 | return false; |
131 | 131 | } |
132 | 132 | this.GetList(); | ... | ... |
pages/goods/categoryList/categoryList.js
... | ... | @@ -604,7 +604,7 @@ Page({ |
604 | 604 | } |
605 | 605 | |
606 | 606 | //进行排序,只有是默认排序的时候,才按首字母排序 |
607 | - if(parseInt(s.data.is_used_share)!=0) continue; | |
607 | + // if(parseInt(s.data.is_used_share)!=0) continue; | |
608 | 608 | |
609 | 609 | if (arr.length>0){ |
610 | 610 | var find = 0; |
... | ... | @@ -625,14 +625,14 @@ Page({ |
625 | 625 | arr.push(item); |
626 | 626 | } |
627 | 627 | } |
628 | - if(parseInt(s.data.is_used_share)==0){ | |
629 | - arr.sort(compare("zm")); | |
630 | - }else{ | |
631 | - var ob={array:dda}; | |
632 | - arr.push(ob); | |
633 | - } | |
628 | + // if(parseInt(s.data.is_used_share)==0){ | |
629 | + // arr.sort(compare("zm")); | |
630 | + // }else{ | |
631 | + // var ob={array:dda}; | |
632 | + // arr.push(ob); | |
633 | + // } | |
634 | 634 | |
635 | - | |
635 | + arr.sort(compare("zm")); | |
636 | 636 | |
637 | 637 | s.setData({ groups: arr }); |
638 | 638 | //console.log(s.data.groups) | ... | ... |
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -82,6 +82,9 @@ |
82 | 82 | </scroll-view> |
83 | 83 | |
84 | 84 | <view class="nav box box-tb my-nav" catchtouchmove="touchmove" catchtouchend="touchend" > |
85 | +<!-- <image src="/images/up.png" style="width:36rpx;height:36rpx;margin-right:10rpx;"></image> --> | |
86 | + <!-- <icon color="icon-close" color="#000" size="30" type="icon-shangjiantou" style=""></icon> --> | |
87 | + <view class="iconfont icon-shangjiantou"></view> | |
85 | 88 | <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" |
86 | 89 | class="flex box box-align-center box-pack-center letter"> |
87 | 90 | <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text> |
... | ... | @@ -226,7 +229,7 @@ |
226 | 229 | </view> |
227 | 230 | </block> |
228 | 231 | <!-- 品牌 --> |
229 | - <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
232 | +<!-- <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
230 | 233 | |
231 | 234 | <view class="classify_name fs28 flex-space-between"> |
232 | 235 | <view>{{classify_name}}</view> |
... | ... | @@ -246,7 +249,36 @@ |
246 | 249 | |
247 | 250 | </block> |
248 | 251 | </view> |
249 | - </block> | |
252 | + </block> --> | |
253 | + <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
254 | + <scroll-view scroll-y="true" class="fenlei-list" | |
255 | + style="height: 100%;padding-bottom:100rpx;" scroll-into-view="{{scrollIntoView}}"> | |
256 | + <view class="classify_name fs28 flex-space-between"> | |
257 | + <view>{{classify_name}}</view> | |
258 | + </view> | |
259 | + <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx"> | |
260 | + <view id="{{brand_list.zm}}" class="group-name">{{brand_list.zm}}</view> | |
261 | + <view class="classify_content-frame flex flex-wrap"> | |
262 | + <view class="brand_img_frame "wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" > | |
263 | + <view class="t-c"> | |
264 | + <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> | |
265 | + <view class="brand_img_name ellipsis-1 fs24">{{user.name}}2</view> | |
266 | + </view> | |
267 | + </view> | |
268 | + </view> | |
269 | + </block> | |
270 | + </scroll-view> | |
271 | + <view class="nav box box-tb my-nav" style="top:140rpx;" catchtouchmove="touchmove" catchtouchend="touchend" > | |
272 | + <view class="iconfont icon-shangjiantou"></view> | |
273 | + <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" | |
274 | + class="flex box box-align-center box-pack-center letter"> | |
275 | + <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text> | |
276 | + </view> | |
277 | + </view> | |
278 | + </block> | |
279 | + | |
280 | + | |
281 | + | |
250 | 282 | |
251 | 283 | <!-- 卡项 --> |
252 | 284 | <!-- <block wx:if="{{select_classify_on==220&&is_show_xm}}"> --> |
... | ... | @@ -462,7 +494,7 @@ |
462 | 494 | |
463 | 495 | |
464 | 496 | <!-- 品牌 --> |
465 | - <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
497 | +<!-- <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
466 | 498 | |
467 | 499 | <view class="classify_name fs28 flex-space-between"> |
468 | 500 | <view>{{classify_name}}</view> |
... | ... | @@ -478,11 +510,40 @@ |
478 | 510 | <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> |
479 | 511 | </view> |
480 | 512 | </view> |
481 | - | |
482 | - | |
483 | 513 | </block> |
484 | 514 | </view> |
485 | - </block> | |
515 | + </block> --> | |
516 | + | |
517 | + <!-- 品牌 --> | |
518 | + <block wx:if="{{select_classify_on==220&&is_show_pp}}"> | |
519 | + <scroll-view scroll-y="true" class="fenlei-list" | |
520 | + style="height: 100%;padding-bottom:100rpx;" scroll-into-view="{{scrollIntoView}}"> | |
521 | + <view class="classify_name fs28 flex-space-between"> | |
522 | + <view>{{classify_name}}</view> | |
523 | + </view> | |
524 | + <block wx:for="{{groups}}" wx:for-item="brand_list" wx:for-index="pidx"> | |
525 | + <view id="{{brand_list.zm}}" class="group-name">{{brand_list.zm}}</view> | |
526 | + <view class="classify_content-frame flex flex-wrap"> | |
527 | + <view class="brand_img_frame "wx:for="{{brand_list.array}}" wx:for-item="user" wx:for-index="idx" bindtap="go_brand" data-bid="{{user.id}}" > | |
528 | + <view class="t-c"> | |
529 | + <image class="brand_img" src="{{user.logo}}" data-pix="{{pidx}}" data-idx="{{idx}}" data-errorimg="groups[{{pidx}}].array[{{idx}}].logo" binderror="bind_bnerr_pp"></image> | |
530 | + <view class="brand_img_name ellipsis-1 fs24">{{user.name}}</view> | |
531 | + </view> | |
532 | + </view> | |
533 | + </view> | |
534 | + </block> | |
535 | + </scroll-view> | |
536 | + <view class="nav box box-tb my-nav" style="top:140rpx;" catchtouchmove="touchmove" catchtouchend="touchend" > | |
537 | + <!-- <image src="/images/up.png" style="width:36rpx;height:36rpx;margin-right:10rpx;"></image> --> | |
538 | + <view class="iconfont icon-shangjiantou"></view> | |
539 | + <view bindtap="tabLetter" data-index="{{item.zm}}" wx:for="{{groups}}" | |
540 | + class="flex box box-align-center box-pack-center letter"> | |
541 | + <text class="letter-text {{selected == item.zm ? 'letter-actived' : ''}}" wx:if="{{item.zm}}">{{item.zm}}</text> | |
542 | + </view> | |
543 | + </view> | |
544 | + </block> | |
545 | + | |
546 | + | |
486 | 547 | |
487 | 548 | |
488 | 549 | <!-- 卡项 --> | ... | ... |
pages/goods/categoryList/categoryList.wxss
... | ... | @@ -329,6 +329,15 @@ width: 60%; |
329 | 329 | flex-wrap:wrap; |
330 | 330 | overflow-y:scroll; |
331 | 331 | } |
332 | + | |
333 | + .classify_content-frame2{ | |
334 | + box-sizing: border-box; | |
335 | + width: 100%; | |
336 | + padding: 0 12rpx; | |
337 | + flex-wrap:wrap; | |
338 | + } | |
339 | + | |
340 | + | |
332 | 341 | .country_img-frame{ |
333 | 342 | width: 48%; |
334 | 343 | height: 140rpx; | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -2272,7 +2272,7 @@ Page({ |
2272 | 2272 | var user_info = getApp().globalData.userInfo; |
2273 | 2273 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2274 | 2274 | wx.navigateTo({ |
2275 | - url: '/pages/togoin/togoin', | |
2275 | + url: '/packageE/pages/togoin/togoin', | |
2276 | 2276 | }) |
2277 | 2277 | return false; |
2278 | 2278 | } |
... | ... | @@ -2297,7 +2297,7 @@ Page({ |
2297 | 2297 | var user_info = getApp().globalData.userInfo; |
2298 | 2298 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
2299 | 2299 | wx.navigateTo({ |
2300 | - url: '/pages/togoin/togoin', | |
2300 | + url: '/packageE/pages/togoin/togoin', | |
2301 | 2301 | }) |
2302 | 2302 | return false; |
2303 | 2303 | } |
... | ... | @@ -4234,7 +4234,7 @@ Page({ |
4234 | 4234 | var user_info = getApp().globalData.userInfo; |
4235 | 4235 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
4236 | 4236 | wx.navigateTo({ |
4237 | - url: '/pages/togoin/togoin', | |
4237 | + url: '/packageE/pages/togoin/togoin', | |
4238 | 4238 | }) |
4239 | 4239 | return false; |
4240 | 4240 | } |
... | ... | @@ -4833,7 +4833,7 @@ Page({ |
4833 | 4833 | var user_info = getApp().globalData.userInfo; |
4834 | 4834 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
4835 | 4835 | wx.navigateTo({ |
4836 | - url: '/pages/togoin/togoin', | |
4836 | + url: '/packageE/pages/togoin/togoin', | |
4837 | 4837 | }) |
4838 | 4838 | return false; |
4839 | 4839 | } |
... | ... | @@ -5028,7 +5028,7 @@ Page({ |
5028 | 5028 | var user_info = getApp().globalData.userInfo; |
5029 | 5029 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
5030 | 5030 | //getApp().my_warnning("请先登录",0,this); |
5031 | - wx.navigateTo({url: '/pages/togoin/togoin',}) | |
5031 | + wx.navigateTo({url: '/packageE/pages/togoin/togoin',}) | |
5032 | 5032 | return false; |
5033 | 5033 | } |
5034 | 5034 | |
... | ... | @@ -6516,7 +6516,7 @@ Page({ |
6516 | 6516 | |
6517 | 6517 | clickShare() { |
6518 | 6518 | if(!getApp().globalData.user_id){ |
6519 | - getApp().goto("/pages/togoin/togoin"); | |
6519 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
6520 | 6520 | return false; |
6521 | 6521 | } |
6522 | 6522 | this.setData({ |
... | ... | @@ -6817,7 +6817,7 @@ Page({ |
6817 | 6817 | let user_info = getApp().globalData.userInfo; |
6818 | 6818 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
6819 | 6819 | wx.navigateTo({ |
6820 | - url: '/pages/togoin/togoin', | |
6820 | + url: '/packageE/pages/togoin/togoin', | |
6821 | 6821 | }) |
6822 | 6822 | return false; |
6823 | 6823 | }; | ... | ... |
pages/goods/goodsList/goodsList.js
... | ... | @@ -462,8 +462,8 @@ Page({ |
462 | 462 | |
463 | 463 | go_url:function (e) { |
464 | 464 | var url = e.currentTarget.dataset.url; |
465 | - var rq_data = JSON.stringify(this.data.rq_data); | |
466 | - url += `&o=${rq_data}`; | |
465 | + //var rq_data = JSON.stringify(this.data.rq_data); | |
466 | + //url += `&o=${rq_data}`; | |
467 | 467 | // console.log('url!!!=======<<<<', url); |
468 | 468 | getApp().goto(url); |
469 | 469 | } | ... | ... |
pages/index/index/full_screen.js
... | ... | @@ -13,14 +13,18 @@ |
13 | 13 | getApp().promiseGet("/api/weshop/ad/page?pid=1001&store_id=" + stoid,{ |
14 | 14 | data: { enabled: 1 } |
15 | 15 | }).then(res=>{ |
16 | + | |
16 | 17 | //判断是不是有全屏广告 |
18 | + // res.data.data.pageData[0].show_type=1 | |
17 | 19 | if(res.data.code==0 && res.data.data.pageData && res.data.data.pageData.length>0){ |
18 | 20 | getApp().globalData.full_screen=res.data.data.pageData[0]; |
19 | 21 | th.setData({ |
20 | 22 | is_full_screen_show:1, |
21 | 23 | full_ad:res.data.data.pageData[0], |
24 | + sec_show: res.data.data.pageData[0].show_second || 3 | |
22 | 25 | }) |
23 | - //--定时关闭-- | |
26 | + //--定时关闭-- | |
27 | + console.log(th.data.sec_show) | |
24 | 28 | th.data.full_screen=setInterval(function(){ |
25 | 29 | if(!th.data.sec_show) { |
26 | 30 | clearInterval(th.data.full_screen); |
... | ... | @@ -30,6 +34,10 @@ |
30 | 34 | th.data.sec_show--; |
31 | 35 | th.setData({sec_show:th.data.sec_show}); |
32 | 36 | },1000) |
37 | + | |
38 | + if(res.data.data.pageData[0].show_type==1){ | |
39 | + clearInterval(th.data.full_screen); | |
40 | + } | |
33 | 41 | }else{ |
34 | 42 | getApp().globalData.full_screen=true; |
35 | 43 | } | ... | ... |
pages/index/index/index.js
... | ... | @@ -1031,7 +1031,7 @@ Page({ |
1031 | 1031 | var user_info = getApp().globalData.userInfo; |
1032 | 1032 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
1033 | 1033 | wx.navigateTo({ |
1034 | - url: '/pages/togoin/togoin', | |
1034 | + url: '/packageE/pages/togoin/togoin', | |
1035 | 1035 | //url: '/pages/getphone/getphone', |
1036 | 1036 | }) |
1037 | 1037 | return false; |
... | ... | @@ -1219,7 +1219,7 @@ Page({ |
1219 | 1219 | go_pre: function (e) { |
1220 | 1220 | var userInfo = getApp().globalData.userInfo; |
1221 | 1221 | if (!userInfo) { |
1222 | - getApp().goto("/pages/togoin/togoin"); | |
1222 | + getApp().goto("/packageE/pages/togoin/togoin"); | |
1223 | 1223 | return false; |
1224 | 1224 | } |
1225 | 1225 | var url = e.currentTarget.dataset.url; | ... | ... |
pages/index/index/index.wxml
1 | -<!-- <view hidden="{{f_hidden}}" class="full_screen" style="background-color: #fff;"></view> --> | |
2 | -<!-- <full_screen id="full_screen"></full_screen> --> | |
3 | 1 | |
4 | -<!-- 全屏控制 --> | |
5 | -<view wx:if="{{is_full_screen_show}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');"> | |
6 | - <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view> | |
2 | + <!-- 全屏控制 --> | |
3 | +<view wx:if="{{is_full_screen_show && full_ad && full_ad.show_type==0}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');"> | |
4 | + <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view> | |
7 | 5 | </view> |
8 | 6 | |
7 | + <!-- 居中弹窗广告 --> | |
8 | +<view wx:if="{{is_full_screen_show && full_ad && full_ad.show_type==1}}" class="full_screen full_img_main" catchtap="close_full_screen"> | |
9 | + <icon catchtap="close_full_screen" color="#fff" size="30" type="cancel" style="margin-bottom:40rpx;align-self: flex-end;margin-right:30rpx;"></icon> | |
10 | + <image bindtap="go_full_ad" src="{{url+full_ad.ad_code}}" style="width:615rpx;" mode="widthFix"></image> | |
11 | + <!-- <image catchtap="close_full_screen" src="/images/close.png" style="width:72rpx;height:72rpx;margin-top:30rpx;"></image> --> | |
12 | +</view> | |
13 | + | |
14 | + | |
9 | 15 | <!--普通界面--> |
10 | 16 | <wxs module="filter" src="../../../utils/filter.wxs"></wxs> |
11 | 17 | |
... | ... | @@ -27,10 +33,6 @@ |
27 | 33 | <view class="search-box flex-center white"> |
28 | 34 | <view class="classify-frame t-c" bindtap="go_cate"> |
29 | 35 | <image class="classify-img" src="{{url}}/miniapp/images/classify.png"></image> |
30 | - <!-- <view class="fs20">分类</view> --> | |
31 | - <!-- <view class="fs20">分类 | |
32 | - <text class="white fs22">类</text> | |
33 | - </view> --> | |
34 | 36 | </view> |
35 | 37 | <view class="search-inner"> |
36 | 38 | <view class="search-img"> |
... | ... | @@ -40,7 +42,6 @@ |
40 | 42 | </view> |
41 | 43 | <view class="classify-frame t-c" bindtap="getScancode"> |
42 | 44 | <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image> |
43 | - <!-- <view class="fs20">扫一扫</view> --> | |
44 | 45 | </view> |
45 | 46 | </view> |
46 | 47 | </view> |
... | ... | @@ -59,33 +60,8 @@ |
59 | 60 | </swiper-item> |
60 | 61 | </swiper> |
61 | 62 | |
62 | - <!-- <view class="flex-center-around translation abs"> | |
63 | - <view class="circle spot" wx:for="{{banner}}" wx:key="{{index}}" style="background-color:{{index==banner_index?'#fff':'rgba(255,255,255,.5)'}}"> | |
64 | - </view> | |
65 | - </view> --> | |
66 | 63 | </view> |
67 | - <!-- <view class="pd-view" wx:else></view> --> | |
68 | - | |
69 | - <!-- <view class="flex-center-around {{banner==null?'mar-top':'mar-tops'}}"> | |
70 | - <view class="flex-vertical"> | |
71 | - <image class="xc-hook" src="{{url}}/miniapp/images/index/youxuan.png"> | |
72 | - </image> | |
73 | - <text bindtap='go_test' class="yellow-co fs26 margin-left" data-url="../../../packageA/pages/prom_list/prom_list">人工优先</text> | |
74 | - </view> | |
75 | - | |
76 | - | |
77 | - <view class="flex-vertical"> | |
78 | - <image class="xc-hook" src="{{url}}/miniapp/images/index/zhengpin.png"> | |
79 | - </image> | |
80 | - <text class="yellow-co fs26 margin-left">正品保证</text> | |
81 | - </view> | |
82 | - | |
83 | - <view class="flex-vertical"> | |
84 | - <image class="xc-hook" src="{{url}}/miniapp/images/index/shouhou.png"> | |
85 | - </image> | |
86 | - <text class="yellow-co fs26 margin-left">售后无忧</text> | |
87 | - </view> | |
88 | - </view> --> | |
64 | + | |
89 | 65 | |
90 | 66 | <!---导航--> |
91 | 67 | <view class="venues_box"> |
... | ... | @@ -153,9 +129,6 @@ |
153 | 129 | </swiper> |
154 | 130 | </block> |
155 | 131 | |
156 | - <!-- <view class="split-line"></view> --> | |
157 | - | |
158 | - | |
159 | 132 | <!--秒杀--> |
160 | 133 | <view class="seckill" wx:if="{{saleGoods!=null && saleGoods.length!=0 }}"> |
161 | 134 | <navigator url="/pages/activity/seckill_list/seckill_list" hover-class="none"> |
... | ... | @@ -185,17 +158,13 @@ |
185 | 158 | <!-- <view class="red-co mar-top10 is_seckill_height"> --> |
186 | 159 | <view class="co-red mar-top10"> |
187 | 160 | <text class="fs20">¥</text>{{aitem.price}} |
188 | -<!-- <text class="un_line">¥{{aitem.shop_price}}</text>--> | |
189 | 161 | </view> |
190 | 162 | </navigator> |
191 | 163 | |
192 | 164 | |
193 | 165 | </swiper-item> |
194 | 166 | </swiper> |
195 | - <!-- <view class="flex-center-around translation"> | |
196 | - <view class="circle spot" wx:for="{{saleGoods}}" wx:key="{{index}}" style="background:{{index==flash_index?'#fff':'#999'}}"> | |
197 | - </view> | |
198 | - </view> --> | |
167 | + | |
199 | 168 | </view> |
200 | 169 | </view> |
201 | 170 | |
... | ... | @@ -364,10 +333,6 @@ |
364 | 333 | </swiper-item> |
365 | 334 | </swiper> |
366 | 335 | |
367 | - <!-- <view class="flex-center-around translations abs"> | |
368 | - <view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}"> | |
369 | - </view> | |
370 | - </view> --> | |
371 | 336 | </view> |
372 | 337 | </view> |
373 | 338 | |
... | ... | @@ -392,13 +357,6 @@ |
392 | 357 | </view> |
393 | 358 | </view> |
394 | 359 | |
395 | - <!-- 英文标题 --> | |
396 | - <!-- <view class="english flex-center"> | |
397 | - <view class="silk"></view> | |
398 | - <view class="esh five-level-word">GOOD HOT THING</view> | |
399 | - <view class="silk"></view> | |
400 | - </view> --> | |
401 | - | |
402 | 360 | </view> |
403 | 361 | <!-- 商品列表组件 --> |
404 | 362 | <goods_recommend id="goods_list"></goods_recommend> |
... | ... | @@ -434,17 +392,7 @@ |
434 | 392 | </block> |
435 | 393 | </view> |
436 | 394 | <!-- 撑开层 --> |
437 | - <view> | |
438 | - <!-- 关注层的撑开 --> | |
439 | - <!-- <view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px"></view> --> | |
440 | - <!-- <block wx:for="{{template_arr}}" > | |
441 | - <block wx:if="{{item.content.is_top==1 && item.ename=='searchbox'}}"> | |
442 | - <view wx:if="{{item.content.style==1}}" style="height: 115rpx;"></view> | |
443 | - <view wx:if="{{item.content.style==2}}" style="height: 89rpx;"></view> | |
444 | - </block> | |
445 | - <view wx:if="{{item.content.is_top==1 && item.ename=='store_select'}}" style="height: 100rpx;"></view> | |
446 | - </block> --> | |
447 | - </view> | |
395 | + <view></view> | |
448 | 396 | |
449 | 397 | <block wx:for="{{template_arr}}" wx:key="{{index}}"> |
450 | 398 | <view> |
... | ... | @@ -536,11 +484,7 @@ |
536 | 484 | </view> |
537 | 485 | |
538 | 486 | </block> |
539 | - | |
540 | - <!-- 直播 --> | |
541 | - <!-- <block wx:if="{{item.ename=='nav'}}"> --> | |
542 | - | |
543 | - | |
487 | + | |
544 | 488 | <!-- 技术支持 --> |
545 | 489 | <view class="logo-container t-c"> |
546 | 490 | <view class="flex ai_c fs24 jc-center pdv20 white"><image src="{{url + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持</view> | ... | ... |
pages/index/index/index.wxss
... | ... | @@ -1215,3 +1215,22 @@ page { |
1215 | 1215 | background-color: #ccc; |
1216 | 1216 | } |
1217 | 1217 | |
1218 | + | |
1219 | +/* 居中广告 */ | |
1220 | +.full_img_main{ | |
1221 | + display: flex; | |
1222 | + align-items: center; | |
1223 | + justify-content: center; | |
1224 | + flex-direction: column; | |
1225 | +} | |
1226 | + | |
1227 | +.full_img_close{ | |
1228 | + width: 80rpx; | |
1229 | + height: 80rpx; | |
1230 | + border-radius: 100%; | |
1231 | + border: 2rpx solid #000; | |
1232 | + background-color: #fff; | |
1233 | + display: flex; | |
1234 | + align-items: center; | |
1235 | + justify-items: center; | |
1236 | +} | ... | ... |
pages/team/team_show/team_show.js
... | ... | @@ -163,7 +163,7 @@ Page({ |
163 | 163 | //--先判断会员状态-- |
164 | 164 | var user_info=getApp().globalData.userInfo; |
165 | 165 | if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){ |
166 | - wx.navigateTo({ url: '/pages/togoin/togoin', }) | |
166 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | |
167 | 167 | return false; |
168 | 168 | } |
169 | 169 | ... | ... |
pages/team/team_success/team_success.js
pages/user/assistance/assistance.js
... | ... | @@ -54,7 +54,7 @@ Page({ |
54 | 54 | getApp().is_Single_page(this, function () { |
55 | 55 | var user_info = getApp().globalData.userInfo; |
56 | 56 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
57 | - getApp().goto('/pages/togoin/togoin'); | |
57 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
58 | 58 | return false; |
59 | 59 | } |
60 | 60 | // 助力活动 | ... | ... |
pages/user/assistance/friend_assistance.js
... | ... | @@ -58,7 +58,7 @@ Page({ |
58 | 58 | //--先判断会员状态-- |
59 | 59 | var user_info = getApp().globalData.userInfo; |
60 | 60 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
61 | - getApp().goto('/pages/togoin/togoin'); | |
61 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
62 | 62 | return false; |
63 | 63 | } |
64 | 64 | |
... | ... | @@ -118,7 +118,7 @@ Page({ |
118 | 118 | var user_info = getApp().globalData.userInfo; |
119 | 119 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
120 | 120 | wx.navigateTo({ |
121 | - url: '/pages/togoin/togoin', | |
121 | + url: '/packageE/pages/togoin/togoin', | |
122 | 122 | }) |
123 | 123 | return false; |
124 | 124 | } | ... | ... |
pages/user/assistance/giftpacklist.js
... | ... | @@ -71,7 +71,7 @@ Page({ |
71 | 71 | //--先判断会员状态-- |
72 | 72 | var user_info = getApp().globalData.userInfo; |
73 | 73 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
74 | - getApp().goto('/pages/togoin/togoin'); | |
74 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
75 | 75 | return false; |
76 | 76 | } |
77 | 77 | ... | ... |
pages/user/assistance/task_assistance.js
... | ... | @@ -143,7 +143,7 @@ Page({ |
143 | 143 | //--先判断会员状态-- |
144 | 144 | var user_info = getApp().globalData.userInfo; |
145 | 145 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
146 | - getApp().goto('/pages/togoin/togoin'); | |
146 | + getApp().goto('/packageE/pages/togoin/togoin'); | |
147 | 147 | return false; |
148 | 148 | } |
149 | 149 | ... | ... |
pages/user/cardinfo/cardinfo.js
... | ... | @@ -53,7 +53,7 @@ Page({ |
53 | 53 | //--先判断会员状态-- |
54 | 54 | var user_info = getApp().globalData.userInfo; |
55 | 55 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
56 | - wx.navigateTo({ url: '/pages/togoin/togoin' }) | |
56 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin' }) | |
57 | 57 | return false; |
58 | 58 | } |
59 | 59 | ... | ... |
pages/user/index/filter.wxs
pages/user/index/index.js
... | ... | @@ -47,6 +47,9 @@ Page({ |
47 | 47 | add_card_data: '', //等级卡的内容 |
48 | 48 | getusercode_vailtime:10,//会员二维码时效 |
49 | 49 | hiddenCS: true, |
50 | + | |
51 | + is_show_recommend:false | |
52 | + | |
50 | 53 | }, |
51 | 54 | goto_nav: function (e) { |
52 | 55 | var th = this; |
... | ... | @@ -55,7 +58,7 @@ Page({ |
55 | 58 | getApp().goto(url); |
56 | 59 | } else { |
57 | 60 | wx.navigateTo({ |
58 | - url: '/pages/togoin/togoin', | |
61 | + url: '/packageE/pages/togoin/togoin', | |
59 | 62 | }) |
60 | 63 | } |
61 | 64 | }, |
... | ... | @@ -152,24 +155,7 @@ Page({ |
152 | 155 | }) |
153 | 156 | var th = this; |
154 | 157 | |
155 | - // 判断是否开启美业 | |
156 | - getApp().promiseGet('/api/weshop/store/getTabSys/' + os.stoid, {}).then(res => { | |
157 | - if (res.data.code == 0) { | |
158 | - th.setData({ | |
159 | - enableMeiye: res.data.data.EnableMeiye, | |
160 | - }); | |
161 | - }; | |
162 | - }); | |
163 | - | |
164 | 158 | |
165 | - getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + os.stoid, {}).then(res => { | |
166 | - if (res.data.code == 0) { | |
167 | - var plusCard = res.data.data; | |
168 | - for (var i = 0; i < plusCard.length; i++) { | |
169 | - if (!plusCard[i].IsStopBuy) { th.setData({ show_buy_plus: 1 }); break; } | |
170 | - } | |
171 | - } | |
172 | - }) | |
173 | 159 | |
174 | 160 | if (typeof this.getTabBar === 'function' && this.getTabBar()) { |
175 | 161 | var index = getApp().getPageIndex(this); |
... | ... | @@ -189,6 +175,26 @@ Page({ |
189 | 175 | var e = getApp().globalData.userInfo; |
190 | 176 | if (e != undefined && e != null && e.mobile) { |
191 | 177 | |
178 | + | |
179 | + // 判断是否开启美业 | |
180 | + getApp().promiseGet('/api/weshop/store/getTabSys/' + os.stoid, {}).then(res => { | |
181 | + if (res.data.code == 0) { | |
182 | + th.setData({ | |
183 | + enableMeiye: res.data.data.EnableMeiye, | |
184 | + }); | |
185 | + }; | |
186 | + }); | |
187 | + | |
188 | + getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + os.stoid, {}).then(res => { | |
189 | + if (res.data.code == 0) { | |
190 | + var plusCard = res.data.data; | |
191 | + for (var i = 0; i < plusCard.length; i++) { | |
192 | + if (!plusCard[i].IsStopBuy) { th.setData({ show_buy_plus: 1 }); break; } | |
193 | + } | |
194 | + } | |
195 | + }) | |
196 | + | |
197 | + | |
192 | 198 | this.birthday(); |
193 | 199 | this.is_assistance(); |
194 | 200 | |
... | ... | @@ -451,15 +457,22 @@ Page({ |
451 | 457 | } |
452 | 458 | }) |
453 | 459 | //th.requestRecommend(); |
460 | + | |
461 | + //自定义组件一定要等到页面加载完了,才来调用selectComponnent | |
462 | + setTimeout(function () { | |
463 | + | |
464 | + th.setData({ is_show_recommend:true }) | |
465 | + | |
466 | + if (getApp().globalData.user_id) getApp().requestCardNum(th); | |
467 | + var goods_list = th.selectComponent("#goods_recommend"); //组件的id | |
468 | + goods_list.init(); | |
469 | + goods_list.get_list(); | |
470 | + }, 800) | |
454 | 471 | } |
455 | 472 | |
456 | - //自定义组件一定要等到页面加载完了,才来调用selectComponnent | |
457 | - setTimeout(function () { | |
458 | - if (getApp().globalData.user_id) getApp().requestCardNum(th); | |
459 | - var goods_list = th.selectComponent("#goods_recommend"); //组件的id | |
460 | - goods_list.init(); | |
461 | - goods_list.get_list(); | |
462 | - }, 800) | |
473 | + | |
474 | + | |
475 | + | |
463 | 476 | }, |
464 | 477 | |
465 | 478 | //判断会员是后有改服务项目 |
... | ... | @@ -498,11 +511,14 @@ Page({ |
498 | 511 | */ |
499 | 512 | onReachBottom: function () { |
500 | 513 | //!this.nomore && this.requestRecommend(); |
501 | - var goods_list = this.selectComponent("#goods_recommend"); //组件的id | |
502 | - goods_list.init(); | |
503 | - setTimeout(function () { | |
504 | - goods_list.get_list(); | |
505 | - }, 300) | |
514 | + var e = getApp().globalData.userInfo; | |
515 | + if (e != undefined && e != null && e.mobile) { | |
516 | + var goods_list = this.selectComponent("#goods_recommend"); //组件的id | |
517 | + goods_list.init(); | |
518 | + setTimeout(function () { | |
519 | + goods_list.get_list(); | |
520 | + }, 300) | |
521 | + } | |
506 | 522 | }, |
507 | 523 | |
508 | 524 | /** |
... | ... | @@ -581,7 +597,7 @@ Page({ |
581 | 597 | //--跳到绑定页面-- |
582 | 598 | gobindtel: function () { |
583 | 599 | wx.navigateTo({ |
584 | - url: '/pages/togoin/togoin', | |
600 | + url: '/packageE/pages/togoin/togoin', | |
585 | 601 | }) |
586 | 602 | }, |
587 | 603 | |
... | ... | @@ -956,7 +972,7 @@ Page({ |
956 | 972 | let user_info = getApp().globalData.userInfo; |
957 | 973 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) { |
958 | 974 | wx.navigateTo({ |
959 | - url: '/pages/togoin/togoin', | |
975 | + url: '/packageE/pages/togoin/togoin', | |
960 | 976 | }) |
961 | 977 | return false; |
962 | 978 | }; | ... | ... |
pages/user/index/index.wxml
... | ... | @@ -296,7 +296,9 @@ |
296 | 296 | |
297 | 297 | </view> |
298 | 298 | </view> |
299 | - <view style='width:100%;height:73rpx;'> | |
299 | + | |
300 | + <!-- 显示推荐 --> | |
301 | + <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}"> | |
300 | 302 | <view class="xc-recommend-goods flex-center"> |
301 | 303 | |
302 | 304 | <view class="circle xc-small"> |
... | ... | @@ -318,7 +320,9 @@ |
318 | 320 | |
319 | 321 | <!-- 显示商品 --> |
320 | 322 | <!-- 好物推荐 --> |
323 | + <block wx:if="{{is_show_recommend}}"> | |
321 | 324 | <goods_recommend id="goods_recommend"></goods_recommend> |
325 | + </block> | |
322 | 326 | |
323 | 327 | <!-- 技术支持 --> |
324 | 328 | <view class="logo-container t-c"> | ... | ... |
pages/user/my_service/tment_details.js
pages/user/plus/plus.js
... | ... | @@ -72,7 +72,7 @@ Page({ |
72 | 72 | var user_info = getApp().globalData.userInfo; |
73 | 73 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
74 | 74 | wx.navigateTo({ |
75 | - url: '/pages/togoin/togoin?first_leader=' + fir_leader, | |
75 | + url: '/packageE/pages/togoin/togoin?first_leader=' + fir_leader, | |
76 | 76 | }) |
77 | 77 | return false; |
78 | 78 | } |
... | ... | @@ -543,7 +543,7 @@ Page({ |
543 | 543 | var user_info = getApp().globalData.userInfo; |
544 | 544 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
545 | 545 | wx.navigateTo({ |
546 | - url: '/pages/togoin/togoin?first_leader=' + fir_leader, | |
546 | + url: '/packageE/pages/togoin/togoin?first_leader=' + fir_leader, | |
547 | 547 | }) |
548 | 548 | return false; |
549 | 549 | } | ... | ... |
project.config.json
1 | 1 | { |
2 | - "description": "项目配置文件", | |
3 | - "packOptions": { | |
4 | - "ignore": [] | |
5 | - }, | |
2 | + "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | |
6 | 3 | "setting": { |
7 | 4 | "urlCheck": false, |
8 | 5 | "es6": true, |
... | ... | @@ -16,15 +13,13 @@ |
16 | 13 | "autoAudits": false, |
17 | 14 | "showShadowRootInWxmlPanel": true, |
18 | 15 | "scopeDataCheck": false, |
19 | - "uglifyFileName": false, | |
16 | + "uglifyFileName": true, | |
20 | 17 | "checkInvalidKey": true, |
21 | 18 | "checkSiteMap": true, |
22 | 19 | "uploadWithSourceMap": true, |
23 | 20 | "compileHotReLoad": false, |
24 | 21 | "lazyloadPlaceholderEnable": false, |
25 | 22 | "useMultiFrameRuntime": true, |
26 | - "useApiHook": true, | |
27 | - "useApiHostProcess": false, | |
28 | 23 | "babelSetting": { |
29 | 24 | "ignore": [], |
30 | 25 | "disablePlugins": [], |
... | ... | @@ -35,1031 +30,884 @@ |
35 | 30 | "packNpmManually": false, |
36 | 31 | "packNpmRelationList": [], |
37 | 32 | "minifyWXSS": true, |
38 | - "showES6CompileOption": false | |
33 | + "showES6CompileOption": false, | |
34 | + "disableUseStrict": false, | |
35 | + "useCompilerPlugins": false, | |
36 | + "ignoreUploadUnusedFiles": true, | |
37 | + "useStaticServer": true, | |
38 | + "minifyWXML": true, | |
39 | + "useApiHostProcess": false | |
39 | 40 | }, |
40 | 41 | "compileType": "miniprogram", |
41 | - "libVersion": "2.16.0", | |
42 | - "appid": "wx2ea7cdd3ef52cdff", | |
43 | - "projectname": "MShopWeApp", | |
44 | - "debugOptions": { | |
45 | - "hidedInDevtools": [] | |
46 | - }, | |
47 | - "isGameTourist": false, | |
48 | 42 | "simulatorType": "wechat", |
49 | 43 | "simulatorPluginLibVersion": {}, |
50 | 44 | "condition": { |
51 | - "search": { | |
52 | - "list": [] | |
53 | - }, | |
54 | - "conversation": { | |
55 | - "list": [] | |
56 | - }, | |
57 | - "plugin": { | |
58 | - "list": [] | |
59 | - }, | |
60 | - "game": { | |
61 | - "currentL": -1, | |
62 | - "list": [] | |
63 | - }, | |
64 | - "gamePlugin": { | |
65 | - "list": [] | |
66 | - }, | |
67 | 45 | "miniprogram": { |
68 | 46 | "list": [ |
69 | 47 | { |
70 | - "id": 0, | |
71 | 48 | "name": "启动直播列表页", |
72 | 49 | "pathName": "pages/justTest/justTest", |
73 | 50 | "query": "", |
74 | 51 | "scene": null |
75 | 52 | }, |
76 | 53 | { |
77 | - "id": 1, | |
78 | 54 | "name": "liveStreamDetails", |
79 | 55 | "pathName": "packageA/pages/liveStreamDetails/liveStreamDetails", |
80 | 56 | "query": "", |
81 | 57 | "scene": null |
82 | 58 | }, |
83 | 59 | { |
84 | - "id": 2, | |
85 | 60 | "name": "justTest", |
86 | 61 | "pathName": "pages/justTest/justTest", |
87 | 62 | "query": "", |
88 | 63 | "scene": null |
89 | 64 | }, |
90 | 65 | { |
91 | - "id": 3, | |
92 | 66 | "name": "pages/goods/goodsInfo/goodsInfo", |
93 | 67 | "pathName": "pages/goods/goodsInfo/goodsInfo", |
94 | 68 | "query": "", |
95 | 69 | "scene": null |
96 | 70 | }, |
97 | 71 | { |
98 | - "id": -1, | |
99 | 72 | "name": "pages/team/team_show/team_show", |
100 | 73 | "pathName": "pages/team/team_show/team_show", |
101 | 74 | "query": "", |
102 | 75 | "scene": null |
103 | 76 | }, |
104 | 77 | { |
105 | - "id": -1, | |
106 | 78 | "name": "pages/index/index/index", |
107 | 79 | "pathName": "pages/index/index/index", |
108 | 80 | "query": "", |
109 | 81 | "scene": null |
110 | 82 | }, |
111 | 83 | { |
112 | - "id": -1, | |
113 | 84 | "name": "pages/store/index", |
114 | 85 | "pathName": "pages/store/index", |
115 | 86 | "query": "", |
116 | 87 | "scene": null |
117 | 88 | }, |
118 | 89 | { |
119 | - "id": 7, | |
120 | 90 | "name": "packageA/pages/goods_share/goods_share", |
121 | 91 | "pathName": "packageA/pages/goods_share/goods_share", |
122 | 92 | "query": "", |
123 | 93 | "scene": null |
124 | 94 | }, |
125 | 95 | { |
126 | - "id": 8, | |
127 | 96 | "name": "packageA/pages/live_share/live_share", |
128 | 97 | "pathName": "packageA/pages/live_share/live_share", |
129 | 98 | "query": "", |
130 | 99 | "scene": null |
131 | 100 | }, |
132 | 101 | { |
133 | - "id": -1, | |
134 | 102 | "name": "pages/cart/cart2_pt/cart2_pt", |
135 | 103 | "pathName": "pages/cart/cart2_pt/cart2_pt", |
136 | 104 | "query": "", |
137 | 105 | "scene": null |
138 | 106 | }, |
139 | 107 | { |
140 | - "id": -1, | |
141 | 108 | "name": "pages/cart/cart2_pt/cart2_pt", |
142 | 109 | "pathName": "pages/cart/cart2_pt/cart2_pt", |
143 | 110 | "query": "", |
144 | 111 | "scene": null |
145 | 112 | }, |
146 | 113 | { |
147 | - "id": -1, | |
148 | 114 | "name": "pages/cart/cart_wk/cart_wk", |
149 | 115 | "pathName": "pages/index/index/index", |
150 | 116 | "query": "", |
151 | 117 | "scene": null |
152 | 118 | }, |
153 | 119 | { |
154 | - "id": -1, | |
155 | 120 | "name": "pages/cart_wk/cart_wk/cart_wk", |
156 | 121 | "pathName": "pages/cart_wk/cart_wk/cart_wk", |
157 | 122 | "query": "", |
158 | 123 | "scene": null |
159 | 124 | }, |
160 | 125 | { |
161 | - "id": -1, | |
162 | 126 | "name": "pages/cart/cart_wk/cart_wk", |
163 | 127 | "pathName": "pages/cart/cart_wk/cart_wk", |
164 | 128 | "query": "", |
165 | 129 | "scene": null |
166 | 130 | }, |
167 | 131 | { |
168 | - "id": -1, | |
169 | 132 | "name": "pages/user/assistance/assistance", |
170 | 133 | "pathName": "pages/user/assistance/assistance", |
171 | 134 | "query": "", |
172 | 135 | "scene": null |
173 | 136 | }, |
174 | 137 | { |
175 | - "id": -1, | |
176 | 138 | "name": "pages/goods/search/search", |
177 | 139 | "pathName": "pages/goods/search/search", |
178 | 140 | "query": "", |
179 | 141 | "scene": null |
180 | 142 | }, |
181 | 143 | { |
182 | - "id": -1, | |
183 | 144 | "name": "pages/goods/search/search", |
184 | 145 | "pathName": "pages/goods/search/search", |
185 | 146 | "query": "", |
186 | 147 | "scene": null |
187 | 148 | }, |
188 | 149 | { |
189 | - "id": -1, | |
190 | 150 | "name": "pages/user/userinfo/userinfo", |
191 | 151 | "pathName": "pages/user/userinfo/userinfo", |
192 | 152 | "query": "", |
193 | 153 | "scene": null |
194 | 154 | }, |
195 | 155 | { |
196 | - "id": -1, | |
197 | 156 | "name": "pages/user/goods_share/goods_share", |
198 | 157 | "pathName": "pages/user/goods_share/goods_share", |
199 | 158 | "query": "", |
200 | 159 | "scene": null |
201 | 160 | }, |
202 | 161 | { |
203 | - "id": -1, | |
204 | 162 | "name": "packageA//pages/user/goods_share/goods_share", |
205 | 163 | "pathName": "packageA//pages/user/goods_share/goods_share", |
206 | 164 | "query": "", |
207 | 165 | "scene": null |
208 | 166 | }, |
209 | 167 | { |
210 | - "id": -1, | |
211 | 168 | "name": "packageA/pages/user/goods_share/goods_share", |
212 | 169 | "pathName": "packageA/pages/user/goods_share/goods_share", |
213 | 170 | "query": "", |
214 | 171 | "scene": null |
215 | 172 | }, |
216 | 173 | { |
217 | - "id": 21, | |
218 | 174 | "name": "packageA/pages/goods_share/goods_share", |
219 | 175 | "pathName": "packageA/pages/addCustomer/addCustomer", |
220 | 176 | "query": "", |
221 | 177 | "scene": null |
222 | 178 | }, |
223 | 179 | { |
224 | - "id": -1, | |
225 | 180 | "name": "packageA/pages/goods_share/goods_share", |
226 | 181 | "pathName": "packageA/pages/goods_share/goods_share", |
227 | 182 | "query": "", |
228 | 183 | "scene": null |
229 | 184 | }, |
230 | 185 | { |
231 | - "id": -1, | |
232 | 186 | "name": "packageA/pages/goods_share/goods_share", |
233 | 187 | "pathName": "packageA/pages/goods_share/goods_share", |
234 | 188 | "query": "", |
235 | 189 | "scene": null |
236 | 190 | }, |
237 | 191 | { |
238 | - "id": -1, | |
239 | 192 | "name": "packageA/pages/activity_share/activity_share", |
240 | 193 | "pathName": "packageA/pages/activity_share/activity_share", |
241 | 194 | "query": "", |
242 | 195 | "scene": null |
243 | 196 | }, |
244 | 197 | { |
245 | - "id": -1, | |
246 | 198 | "name": "packageA/pages/quan_list/quan_list", |
247 | 199 | "pathName": "packageA/pages/quan_list/quan_list", |
248 | 200 | "query": "", |
249 | 201 | "scene": null |
250 | 202 | }, |
251 | 203 | { |
252 | - "id": -1, | |
253 | 204 | "name": "packageA/pages/quan_pro/quan_pro", |
254 | 205 | "pathName": "packageA/pages/quan_pro/quan_pro", |
255 | 206 | "query": "", |
256 | 207 | "scene": null |
257 | 208 | }, |
258 | 209 | { |
259 | - "id": -1, | |
260 | 210 | "name": "packageA/pages/quan_list/quan_list", |
261 | 211 | "pathName": "packageA/pages/quan_list/quan_list", |
262 | 212 | "query": "", |
263 | 213 | "scene": null |
264 | 214 | }, |
265 | 215 | { |
266 | - "id": -1, | |
267 | 216 | "name": "packageA/pages/quan/quan", |
268 | 217 | "pathName": "packageA/pages/quan/quan", |
269 | 218 | "query": "", |
270 | 219 | "scene": null |
271 | 220 | }, |
272 | 221 | { |
273 | - "id": -1, | |
274 | 222 | "name": "packageA/pages/addCustomer/addCustomer", |
275 | 223 | "pathName": "packageA/pages/addCustomer/addCustomer", |
276 | 224 | "query": "", |
277 | 225 | "scene": null |
278 | 226 | }, |
279 | 227 | { |
280 | - "id": -1, | |
281 | 228 | "name": "packageA/pages/quan/quan", |
282 | 229 | "pathName": "packageA/pages/quan/quan", |
283 | 230 | "query": "", |
284 | 231 | "scene": null |
285 | 232 | }, |
286 | 233 | { |
287 | - "id": -1, | |
288 | 234 | "name": "pages/user/assistance/assistance", |
289 | 235 | "pathName": "pages/user/assistance/assistance", |
290 | 236 | "query": "", |
291 | 237 | "scene": null |
292 | 238 | }, |
293 | 239 | { |
294 | - "id": -1, | |
295 | 240 | "name": "packageA/pages/live_share/live_share", |
296 | 241 | "pathName": "packageA/pages/live_share/live_share", |
297 | 242 | "query": "", |
298 | 243 | "scene": null |
299 | 244 | }, |
300 | 245 | { |
301 | - "id": -1, | |
302 | 246 | "name": "packageA/pages/quan/quan", |
303 | 247 | "pathName": "packageA/pages/quan/quan", |
304 | 248 | "query": "", |
305 | 249 | "scene": null |
306 | 250 | }, |
307 | 251 | { |
308 | - "id": -1, | |
309 | 252 | "name": "pages/user/assistance/assistance", |
310 | 253 | "pathName": "pages/user/assistance/assistance", |
311 | 254 | "query": "", |
312 | 255 | "scene": null |
313 | 256 | }, |
314 | 257 | { |
315 | - "id": -1, | |
316 | 258 | "name": "packageA/pages/live_share/live_share", |
317 | 259 | "pathName": "packageA/pages/live_share/live_share", |
318 | 260 | "query": "", |
319 | 261 | "scene": null |
320 | 262 | }, |
321 | 263 | { |
322 | - "id": -1, | |
323 | 264 | "name": "packageA/pages/jfbuy/jfbuy", |
324 | 265 | "pathName": "packageA/pages/jfbuy/jfbuy", |
325 | 266 | "query": "", |
326 | 267 | "scene": null |
327 | 268 | }, |
328 | 269 | { |
329 | - "id": -1, | |
330 | 270 | "name": "packageA/pages/goods_share/goods_share", |
331 | 271 | "pathName": "packageA/pages/goods_share/goods_share", |
332 | 272 | "query": "", |
333 | 273 | "scene": null |
334 | 274 | }, |
335 | 275 | { |
336 | - "id": -1, | |
337 | 276 | "name": "packageA/pages/live_share/live_share", |
338 | 277 | "pathName": "packageA/pages/live_share/live_share", |
339 | 278 | "query": "", |
340 | 279 | "scene": null |
341 | 280 | }, |
342 | 281 | { |
343 | - "id": -1, | |
344 | 282 | "name": "packageA/pages/activity_share/activity_share", |
345 | 283 | "pathName": "packageA/pages/activity_share/activity_share", |
346 | 284 | "query": "", |
347 | 285 | "scene": null |
348 | 286 | }, |
349 | 287 | { |
350 | - "id": -1, | |
351 | 288 | "name": "packageA/pages/jfbuy/jfbuy", |
352 | 289 | "pathName": "packageA/pages/jfbuy/jfbuy", |
353 | 290 | "query": "", |
354 | 291 | "scene": null |
355 | 292 | }, |
356 | 293 | { |
357 | - "id": -1, | |
358 | 294 | "name": "packageA/pages/jfbuy/jfbuy", |
359 | 295 | "pathName": "packageA/pages/jfbuy/jfbuy", |
360 | 296 | "query": "", |
361 | 297 | "scene": null |
362 | 298 | }, |
363 | 299 | { |
364 | - "id": -1, | |
365 | 300 | "name": "pages/user/order_list/order_list", |
366 | 301 | "pathName": "pages/user/order_list/order_list", |
367 | 302 | "query": "", |
368 | 303 | "scene": null |
369 | 304 | }, |
370 | 305 | { |
371 | - "id": -1, | |
372 | 306 | "name": "pages/shop_details/shop_details", |
373 | 307 | "pathName": "pages/shop_details/shop_details", |
374 | 308 | "query": "", |
375 | 309 | "scene": null |
376 | 310 | }, |
377 | 311 | { |
378 | - "id": -1, | |
379 | 312 | "name": "pages/index/index/index", |
380 | 313 | "pathName": "pages/index/index/index", |
381 | 314 | "query": "", |
382 | 315 | "scene": null |
383 | 316 | }, |
384 | 317 | { |
385 | - "id": -1, | |
386 | 318 | "name": "packageA/pages/quan/quan", |
387 | 319 | "pathName": "packageA/pages/quan/quan", |
388 | 320 | "query": "", |
389 | 321 | "scene": null |
390 | 322 | }, |
391 | 323 | { |
392 | - "id": -1, | |
393 | 324 | "name": "packageA/pages/quan/quan", |
394 | 325 | "pathName": "packageA/pages/quan/quan", |
395 | 326 | "query": "", |
396 | 327 | "scene": null |
397 | 328 | }, |
398 | 329 | { |
399 | - "id": -1, | |
400 | 330 | "name": "pages/user/order_list/order_list", |
401 | 331 | "pathName": "pages/user/order_list/order_list", |
402 | 332 | "query": "", |
403 | 333 | "scene": null |
404 | 334 | }, |
405 | 335 | { |
406 | - "id": -1, | |
407 | 336 | "name": "packageA/pages/chongzhi/chongzhi", |
408 | 337 | "pathName": "packageA/pages/chongzhi/chongzhi", |
409 | 338 | "query": "", |
410 | 339 | "scene": null |
411 | 340 | }, |
412 | 341 | { |
413 | - "id": -1, | |
414 | 342 | "name": "packageA/pages/chongzhiDetails/chongzhiDetails", |
415 | 343 | "pathName": "packageA/pages/chongzhiDetails/chongzhiDetails", |
416 | 344 | "query": "", |
417 | 345 | "scene": null |
418 | 346 | }, |
419 | 347 | { |
420 | - "id": -1, | |
421 | 348 | "name": "packageA/pages/chongzhi/chongzhi", |
422 | 349 | "pathName": "packageA/pages/chongzhi/chongzhi", |
423 | 350 | "query": "", |
424 | 351 | "scene": null |
425 | 352 | }, |
426 | 353 | { |
427 | - "id": -1, | |
428 | 354 | "name": "packageA/pages/chongzhiDetails/chongzhiDetails", |
429 | 355 | "pathName": "packageA/pages/chongzhiDetails/chongzhiDetails", |
430 | 356 | "query": "", |
431 | 357 | "scene": null |
432 | 358 | }, |
433 | 359 | { |
434 | - "id": -1, | |
435 | 360 | "name": "pages/user/deposit/prepaid/prepaid", |
436 | 361 | "pathName": "pages/user/deposit/prepaid/prepaid", |
437 | 362 | "query": "", |
438 | 363 | "scene": null |
439 | 364 | }, |
440 | 365 | { |
441 | - "id": -1, | |
442 | 366 | "name": "packageA/pages/chongzhi/chongzhi", |
443 | 367 | "pathName": "packageA/pages/chongzhi/chongzhi", |
444 | 368 | "query": "", |
445 | 369 | "scene": null |
446 | 370 | }, |
447 | 371 | { |
448 | - "id": -1, | |
449 | 372 | "name": "packageA/pages/chongzhi/chongzhi", |
450 | 373 | "pathName": "packageA/pages/chongzhi/chongzhi", |
451 | 374 | "query": "", |
452 | 375 | "scene": null |
453 | 376 | }, |
454 | 377 | { |
455 | - "id": -1, | |
456 | 378 | "name": "packageA/pages/chongzhi/chongzhi", |
457 | 379 | "pathName": "packageA/pages/chongzhi/chongzhi", |
458 | 380 | "query": "", |
459 | 381 | "scene": null |
460 | 382 | }, |
461 | 383 | { |
462 | - "id": -1, | |
463 | 384 | "name": "packageA/pages/chongzhiDetails/chongzhiDetails", |
464 | 385 | "pathName": "packageA/pages/chongzhiDetails/chongzhiDetails", |
465 | 386 | "query": "", |
466 | 387 | "scene": null |
467 | 388 | }, |
468 | 389 | { |
469 | - "id": -1, | |
470 | 390 | "name": "packageA/pages/chongzhi/chongzhi", |
471 | 391 | "pathName": "packageA/pages/chongzhi/chongzhi", |
472 | 392 | "query": "", |
473 | 393 | "scene": null |
474 | 394 | }, |
475 | 395 | { |
476 | - "id": -1, | |
477 | 396 | "name": "packageA/pages/chongzhiDetails/chongzhiDetails", |
478 | 397 | "pathName": "packageA/pages/chongzhiDetails/chongzhiDetails", |
479 | 398 | "query": "", |
480 | 399 | "scene": null |
481 | 400 | }, |
482 | 401 | { |
483 | - "id": -1, | |
484 | 402 | "name": "packageA/pages/chongzhi/chongzhi", |
485 | 403 | "pathName": "packageA/pages/chongzhi/chongzhi", |
486 | 404 | "query": "", |
487 | 405 | "scene": null |
488 | 406 | }, |
489 | 407 | { |
490 | - "id": -1, | |
491 | 408 | "name": "packageA/pages/checkin/checkin", |
492 | 409 | "pathName": "packageA/pages/checkin/checkin", |
493 | 410 | "query": "", |
494 | 411 | "scene": null |
495 | 412 | }, |
496 | 413 | { |
497 | - "id": -1, | |
498 | 414 | "name": "packageA/pages/jfbuy/jfbuy", |
499 | 415 | "pathName": "packageA/pages/jfbuy/jfbuy", |
500 | 416 | "query": "", |
501 | 417 | "scene": null |
502 | 418 | }, |
503 | 419 | { |
504 | - "id": -1, | |
505 | 420 | "name": "packageA/pages/checkin/checkin", |
506 | 421 | "pathName": "packageA/pages/checkin/checkin", |
507 | 422 | "query": "", |
508 | 423 | "scene": null |
509 | 424 | }, |
510 | 425 | { |
511 | - "id": -1, | |
512 | 426 | "name": "pages/user/integral/integral", |
513 | 427 | "pathName": "pages/user/integral/integral", |
514 | 428 | "query": "", |
515 | 429 | "scene": null |
516 | 430 | }, |
517 | 431 | { |
518 | - "id": -1, | |
519 | 432 | "name": "packageA/pages/checkin/checkin", |
520 | 433 | "pathName": "packageA/pages/checkin/checkin", |
521 | 434 | "query": "", |
522 | 435 | "scene": null |
523 | 436 | }, |
524 | 437 | { |
525 | - "id": -1, | |
526 | 438 | "name": "packageA/pages/checkin/checkin", |
527 | 439 | "pathName": "packageA/pages/checkin/checkin", |
528 | 440 | "query": "", |
529 | 441 | "scene": null |
530 | 442 | }, |
531 | 443 | { |
532 | - "id": -1, | |
533 | 444 | "name": "packageA/pages/jfbuy/jfbuy", |
534 | 445 | "pathName": "packageA/pages/jfbuy/jfbuy", |
535 | 446 | "query": "", |
536 | 447 | "scene": null |
537 | 448 | }, |
538 | 449 | { |
539 | - "id": -1, | |
540 | 450 | "name": "packageA/pages/checkin/checkin", |
541 | 451 | "pathName": "packageA/pages/checkin/checkin", |
542 | 452 | "query": "", |
543 | 453 | "scene": null |
544 | 454 | }, |
545 | 455 | { |
546 | - "id": -1, | |
547 | 456 | "name": "packageA/pages/quan_list/quan_list", |
548 | 457 | "pathName": "packageA/pages/quan_list/quan_list", |
549 | 458 | "query": "", |
550 | 459 | "scene": null |
551 | 460 | }, |
552 | 461 | { |
553 | - "id": -1, | |
554 | 462 | "name": "packageA/pages/quan/quan", |
555 | 463 | "pathName": "packageA/pages/quan/quan", |
556 | 464 | "query": "", |
557 | 465 | "scene": null |
558 | 466 | }, |
559 | 467 | { |
560 | - "id": -1, | |
561 | 468 | "name": "packageA/pages/quan_list/quan_list", |
562 | 469 | "pathName": "packageA/pages/quan_list/quan_list", |
563 | 470 | "query": "", |
564 | 471 | "scene": null |
565 | 472 | }, |
566 | 473 | { |
567 | - "id": -1, | |
568 | 474 | "name": "packageA/pages/quan/quan", |
569 | 475 | "pathName": "packageA/pages/quan/quan", |
570 | 476 | "query": "", |
571 | 477 | "scene": null |
572 | 478 | }, |
573 | 479 | { |
574 | - "id": -1, | |
575 | 480 | "name": "packageA/pages/quan/quan", |
576 | 481 | "pathName": "packageA/pages/quan/quan", |
577 | 482 | "query": "", |
578 | 483 | "scene": null |
579 | 484 | }, |
580 | 485 | { |
581 | - "id": -1, | |
582 | 486 | "name": "packageA/pages/checkin/checkin", |
583 | 487 | "pathName": "packageA/pages/checkin/checkin", |
584 | 488 | "query": "", |
585 | 489 | "scene": null |
586 | 490 | }, |
587 | 491 | { |
588 | - "id": -1, | |
589 | 492 | "name": "packageA/pages/chongzhi/chongzhi", |
590 | 493 | "pathName": "packageA/pages/chongzhi/chongzhi", |
591 | 494 | "query": "", |
592 | 495 | "scene": null |
593 | 496 | }, |
594 | 497 | { |
595 | - "id": -1, | |
596 | 498 | "name": "pages/user/assistance/assistance", |
597 | 499 | "pathName": "pages/user/assistance/assistance", |
598 | 500 | "query": "", |
599 | 501 | "scene": null |
600 | 502 | }, |
601 | 503 | { |
602 | - "id": -1, | |
603 | 504 | "name": "pages/giftpack/mygiftpack/mygiftpack", |
604 | 505 | "pathName": "pages/giftpack/mygiftpack/mygiftpack", |
605 | 506 | "query": "", |
606 | 507 | "scene": null |
607 | 508 | }, |
608 | 509 | { |
609 | - "id": -1, | |
610 | 510 | "name": "packageA/pages/quan_list/quan_list", |
611 | 511 | "pathName": "packageA/pages/quan_list/quan_list", |
612 | 512 | "query": "", |
613 | 513 | "scene": null |
614 | 514 | }, |
615 | 515 | { |
616 | - "id": -1, | |
617 | 516 | "name": "packageA/pages/service_record/service_record", |
618 | 517 | "pathName": "packageA/pages/service_record/service_record", |
619 | 518 | "query": "", |
620 | 519 | "scene": null |
621 | 520 | }, |
622 | 521 | { |
623 | - "id": -1, | |
624 | 522 | "name": "packageA/pages/hongBao/hongBao", |
625 | 523 | "pathName": "packageA/pages/hongBao/hongBao", |
626 | 524 | "query": "", |
627 | 525 | "scene": null |
628 | 526 | }, |
629 | 527 | { |
630 | - "id": -1, | |
631 | 528 | "name": "packageA/pages/hongBaoDetails/hongBaoDetails", |
632 | 529 | "pathName": "packageA/pages/hongBao/hongBao", |
633 | 530 | "query": "", |
634 | 531 | "scene": null |
635 | 532 | }, |
636 | 533 | { |
637 | - "id": -1, | |
638 | 534 | "name": "packageA/pages/hongBaoDetails/hongBaoDetails", |
639 | 535 | "pathName": "packageA/pages/hongBaoDetails/hongBaoDetails", |
640 | 536 | "query": "", |
641 | 537 | "scene": null |
642 | 538 | }, |
643 | 539 | { |
644 | - "id": -1, | |
645 | 540 | "name": "packageA/pages/hongBaoDetails/hongBaoDetails", |
646 | 541 | "pathName": "packageA/pages/hongBaoDetails/hongBaoDetails", |
647 | 542 | "query": "", |
648 | 543 | "scene": null |
649 | 544 | }, |
650 | 545 | { |
651 | - "id": -1, | |
652 | 546 | "name": "packageA/pages/hongBao/hongBao", |
653 | 547 | "pathName": "packageA/pages/hongBao/hongBao", |
654 | 548 | "query": "", |
655 | 549 | "scene": null |
656 | 550 | }, |
657 | 551 | { |
658 | - "id": -1, | |
659 | 552 | "name": "packageA/pages/hongBaoDetails/hongBaoDetails", |
660 | 553 | "pathName": "packageA/pages/hongBaoDetails/hongBaoDetails", |
661 | 554 | "query": "", |
662 | 555 | "scene": null |
663 | 556 | }, |
664 | 557 | { |
665 | - "id": -1, | |
666 | 558 | "name": "packageA/pages/hongBao/hongBao", |
667 | 559 | "pathName": "packageA/pages/hongBao/hongBao", |
668 | 560 | "query": "", |
669 | 561 | "scene": null |
670 | 562 | }, |
671 | 563 | { |
672 | - "id": -1, | |
673 | 564 | "name": "packageA/pages/service_record/service_record", |
674 | 565 | "pathName": "packageA/pages/service_record/service_record", |
675 | 566 | "query": "", |
676 | 567 | "scene": null |
677 | 568 | }, |
678 | 569 | { |
679 | - "id": -1, | |
680 | 570 | "name": "packageA/pages/distribution/main/main", |
681 | 571 | "pathName": "packageA/pages/distribution/main/main", |
682 | 572 | "query": "", |
683 | 573 | "scene": null |
684 | 574 | }, |
685 | 575 | { |
686 | - "id": -1, | |
687 | 576 | "name": "packageA/pages/distribution/myteam/myteam", |
688 | 577 | "pathName": "packageA/pages/distribution/myteam/myteam", |
689 | 578 | "query": "", |
690 | 579 | "scene": null |
691 | 580 | }, |
692 | 581 | { |
693 | - "id": -1, | |
694 | 582 | "name": "packageA/pages/distribution/myteam/myteam", |
695 | 583 | "pathName": "packageA/pages/distribution/myteam/myteam", |
696 | 584 | "query": "", |
697 | 585 | "scene": null |
698 | 586 | }, |
699 | 587 | { |
700 | - "id": -1, | |
701 | 588 | "name": "packageA/pages/myteam/myteam", |
702 | 589 | "pathName": "packageA/pages/myteam/myteam", |
703 | 590 | "query": "", |
704 | 591 | "scene": null |
705 | 592 | }, |
706 | 593 | { |
707 | - "id": -1, | |
708 | 594 | "name": "pages/giftpack/newvipgift/newvipgift", |
709 | 595 | "pathName": "pages/giftpack/newvipgift/newvipgift", |
710 | 596 | "query": "", |
711 | 597 | "scene": null |
712 | 598 | }, |
713 | 599 | { |
714 | - "id": -1, | |
715 | 600 | "name": "packageA/pages/distribution/myteam/myteam", |
716 | 601 | "pathName": "packageA/pages/distribution/myteam/myteam", |
717 | 602 | "query": "", |
718 | 603 | "scene": null |
719 | 604 | }, |
720 | 605 | { |
721 | - "id": -1, | |
722 | 606 | "name": "packageA/pages/distribution/order/order", |
723 | 607 | "pathName": "packageA/pages/distribution/order/order", |
724 | 608 | "query": "", |
725 | 609 | "scene": null |
726 | 610 | }, |
727 | 611 | { |
728 | - "id": -1, | |
729 | 612 | "name": "packageA/pages/distribution/myteam/myteam", |
730 | 613 | "pathName": "packageA/pages/distribution/myteam/myteam", |
731 | 614 | "query": "", |
732 | 615 | "scene": null |
733 | 616 | }, |
734 | 617 | { |
735 | - "id": -1, | |
736 | 618 | "name": "packageA/pages/distribution/order/order", |
737 | 619 | "pathName": "packageA/pages/distribution/order/order", |
738 | 620 | "query": "", |
739 | 621 | "scene": null |
740 | 622 | }, |
741 | 623 | { |
742 | - "id": -1, | |
743 | 624 | "name": "packageA/pages/distribution/commision/commision", |
744 | 625 | "pathName": "packageA/pages/distribution/commision/commision", |
745 | 626 | "query": "", |
746 | 627 | "scene": null |
747 | 628 | }, |
748 | 629 | { |
749 | - "id": -1, | |
750 | 630 | "name": "packageA/pages/distribution/commision/commision", |
751 | 631 | "pathName": "packageA/pages/distribution/commision/commision", |
752 | 632 | "query": "", |
753 | 633 | "scene": null |
754 | 634 | }, |
755 | 635 | { |
756 | - "id": -1, | |
757 | 636 | "name": "packageA/pages/distribution/commision/commision", |
758 | 637 | "pathName": "packageA/pages/distribution/commision/commision", |
759 | 638 | "query": "", |
760 | 639 | "scene": null |
761 | 640 | }, |
762 | 641 | { |
763 | - "id": -1, | |
764 | 642 | "name": "packageA/pages/distribution/rank/rank", |
765 | 643 | "pathName": "packageA/pages/distribution/rank/rank", |
766 | 644 | "query": "", |
767 | 645 | "scene": null |
768 | 646 | }, |
769 | 647 | { |
770 | - "id": -1, | |
771 | 648 | "name": "packageA/pages/distribution/commision/commision", |
772 | 649 | "pathName": "packageA/pages/distribution/commision/commision", |
773 | 650 | "query": "", |
774 | 651 | "scene": null |
775 | 652 | }, |
776 | 653 | { |
777 | - "id": -1, | |
778 | 654 | "name": "packageA/pages/distribution/order/order", |
779 | 655 | "pathName": "packageA/pages/distribution/order/order", |
780 | 656 | "query": "", |
781 | 657 | "scene": null |
782 | 658 | }, |
783 | 659 | { |
784 | - "id": -1, | |
785 | 660 | "name": "packageA/pages/distribution/myteam/myteam", |
786 | 661 | "pathName": "packageA/pages/distribution/myteam/myteam", |
787 | 662 | "query": "", |
788 | 663 | "scene": null |
789 | 664 | }, |
790 | 665 | { |
791 | - "id": -1, | |
792 | 666 | "name": "packageA/pages/distribution/main/main", |
793 | 667 | "pathName": "packageA/pages/distribution/main/main", |
794 | 668 | "query": "", |
795 | 669 | "scene": null |
796 | 670 | }, |
797 | 671 | { |
798 | - "id": -1, | |
799 | 672 | "name": "packageA/pages/distribution/card/card", |
800 | 673 | "pathName": "packageA/pages/distribution/card/card", |
801 | 674 | "query": "", |
802 | 675 | "scene": null |
803 | 676 | }, |
804 | 677 | { |
805 | - "id": -1, | |
806 | 678 | "name": "packageA/pages/distribution/rank/rank", |
807 | 679 | "pathName": "packageA/pages/distribution/rank/rank", |
808 | 680 | "query": "", |
809 | 681 | "scene": null |
810 | 682 | }, |
811 | 683 | { |
812 | - "id": -1, | |
813 | 684 | "name": "packageA/pages/distribution/goods/goods", |
814 | 685 | "pathName": "packageA/pages/distribution/goods/goods", |
815 | 686 | "query": "", |
816 | 687 | "scene": null |
817 | 688 | }, |
818 | 689 | { |
819 | - "id": -1, | |
820 | 690 | "name": "packageA/pages/distribution/main/main", |
821 | 691 | "pathName": "packageA/pages/distribution/main/main", |
822 | 692 | "query": "", |
823 | 693 | "scene": null |
824 | 694 | }, |
825 | 695 | { |
826 | - "id": -1, | |
827 | 696 | "name": "packageA/pages/distribution/shop/shop", |
828 | 697 | "pathName": "packageA/pages/distribution/shop/shop", |
829 | 698 | "query": "", |
830 | 699 | "scene": null |
831 | 700 | }, |
832 | 701 | { |
833 | - "id": -1, | |
834 | 702 | "name": "packageA/pages/distribution/rookie/rookie", |
835 | 703 | "pathName": "packageA/pages/distribution/rookie/rookie", |
836 | 704 | "query": "", |
837 | 705 | "scene": null |
838 | 706 | }, |
839 | 707 | { |
840 | - "id": -1, | |
841 | 708 | "name": "packageA/pages/distribution/main/main", |
842 | 709 | "pathName": "packageA/pages/distribution/main/main", |
843 | 710 | "query": "", |
844 | 711 | "scene": null |
845 | 712 | }, |
846 | 713 | { |
847 | - "id": -1, | |
848 | 714 | "name": "pages/index/index/index", |
849 | 715 | "pathName": "pages/index/index/index", |
850 | 716 | "query": "", |
851 | 717 | "scene": null |
852 | 718 | }, |
853 | 719 | { |
854 | - "id": -1, | |
855 | 720 | "name": "packageA/pages/distribution/main/main", |
856 | 721 | "pathName": "packageA/pages/distribution/main/main", |
857 | 722 | "query": "", |
858 | 723 | "scene": null |
859 | 724 | }, |
860 | 725 | { |
861 | - "id": -1, | |
862 | 726 | "name": "packageA/pages/distribution/order/order", |
863 | 727 | "pathName": "packageA/pages/distribution/order/order", |
864 | 728 | "query": "", |
865 | 729 | "scene": null |
866 | 730 | }, |
867 | 731 | { |
868 | - "id": -1, | |
869 | 732 | "name": "packageA/pages/distribution/order/order", |
870 | 733 | "pathName": "packageA/pages/distribution/order/order", |
871 | 734 | "query": "", |
872 | 735 | "scene": null |
873 | 736 | }, |
874 | 737 | { |
875 | - "id": -1, | |
876 | 738 | "name": "packageA/pages/distribution/rank/rank", |
877 | 739 | "pathName": "packageA/pages/distribution/rank/rank", |
878 | 740 | "query": "", |
879 | 741 | "scene": null |
880 | 742 | }, |
881 | 743 | { |
882 | - "id": -1, | |
883 | 744 | "name": "packageA/pages/distribution/myteam/myteam", |
884 | 745 | "pathName": "packageA/pages/distribution/myteam/myteam", |
885 | 746 | "query": "", |
886 | 747 | "scene": null |
887 | 748 | }, |
888 | 749 | { |
889 | - "id": -1, | |
890 | 750 | "name": "packageA/pages/distribution/myteam/myteam", |
891 | 751 | "pathName": "packageA/pages/distribution/myteam/myteam", |
892 | 752 | "query": "", |
893 | 753 | "scene": null |
894 | 754 | }, |
895 | 755 | { |
896 | - "id": -1, | |
897 | 756 | "name": "packageA/pages/distribution/main/main", |
898 | 757 | "pathName": "packageA/pages/distribution/main/main", |
899 | 758 | "query": "", |
900 | 759 | "scene": null |
901 | 760 | }, |
902 | 761 | { |
903 | - "id": -1, | |
904 | 762 | "name": "packageA/pages/distribution/commision/commision", |
905 | 763 | "pathName": "packageA/pages/distribution/commision/commision", |
906 | 764 | "query": "", |
907 | 765 | "scene": null |
908 | 766 | }, |
909 | 767 | { |
910 | - "id": -1, | |
911 | 768 | "name": "packageA/pages/distribution/shop/shop", |
912 | 769 | "pathName": "packageA/pages/distribution/shop/shop", |
913 | 770 | "query": "", |
914 | 771 | "scene": null |
915 | 772 | }, |
916 | 773 | { |
917 | - "id": -1, | |
918 | 774 | "name": "packageA/pages/distribution/shop/shop", |
919 | 775 | "pathName": "packageA/pages/distribution/shop/shop", |
920 | 776 | "query": "", |
921 | 777 | "scene": null |
922 | 778 | }, |
923 | 779 | { |
924 | - "id": -1, | |
925 | 780 | "name": "packageA/pages/distribution/shop/shop", |
926 | 781 | "pathName": "packageA/pages/distribution/shop/shop", |
927 | 782 | "query": "", |
928 | 783 | "scene": null |
929 | 784 | }, |
930 | 785 | { |
931 | - "id": -1, | |
932 | 786 | "name": "packageA/pages/distribution/card/card", |
933 | 787 | "pathName": "packageA/pages/distribution/card/card", |
934 | 788 | "query": "", |
935 | 789 | "scene": null |
936 | 790 | }, |
937 | 791 | { |
938 | - "id": -1, | |
939 | 792 | "name": "packageA/pages/distribution/main/main", |
940 | 793 | "pathName": "packageA/pages/distribution/main/main", |
941 | 794 | "query": "", |
942 | 795 | "scene": null |
943 | 796 | }, |
944 | 797 | { |
945 | - "id": -1, | |
946 | 798 | "name": "packageA/pages/distribution/card/card", |
947 | 799 | "pathName": "packageA/pages/distribution/card/card", |
948 | 800 | "query": "", |
949 | 801 | "scene": null |
950 | 802 | }, |
951 | 803 | { |
952 | - "id": -1, | |
953 | 804 | "name": "packageA/pages/distribution/main/main", |
954 | 805 | "pathName": "packageA/pages/distribution/main/main", |
955 | 806 | "query": "", |
956 | 807 | "scene": null |
957 | 808 | }, |
958 | 809 | { |
959 | - "id": -1, | |
960 | 810 | "name": "pages/index/index/index", |
961 | 811 | "pathName": "pages/index/index/index", |
962 | 812 | "query": "", |
963 | 813 | "scene": null |
964 | 814 | }, |
965 | 815 | { |
966 | - "id": -1, | |
967 | 816 | "name": "packageA/pages/distribution/main/main", |
968 | 817 | "pathName": "packageA/pages/distribution/main/main", |
969 | 818 | "query": "", |
970 | 819 | "scene": null |
971 | 820 | }, |
972 | 821 | { |
973 | - "id": -1, | |
974 | 822 | "name": "pages/index/index/index", |
975 | 823 | "pathName": "pages/index/index/index", |
976 | 824 | "query": "", |
977 | 825 | "scene": null |
978 | 826 | }, |
979 | 827 | { |
980 | - "id": -1, | |
981 | 828 | "name": "packageA/pages/distribution/main/main", |
982 | 829 | "pathName": "packageA/pages/distribution/main/main", |
983 | 830 | "query": "", |
984 | 831 | "scene": null |
985 | 832 | }, |
986 | 833 | { |
987 | - "id": -1, | |
988 | 834 | "name": "packageA/pages/activity_share/activity_share", |
989 | 835 | "pathName": "packageA/pages/activity_share/activity_share", |
990 | 836 | "query": "", |
991 | 837 | "scene": null |
992 | 838 | }, |
993 | 839 | { |
994 | - "id": -1, | |
995 | 840 | "name": "packageA/pages/goods_share/goods_share", |
996 | 841 | "pathName": "packageA/pages/goods_share/goods_share", |
997 | 842 | "query": "", |
998 | 843 | "scene": null |
999 | 844 | }, |
1000 | 845 | { |
1001 | - "id": -1, | |
1002 | 846 | "name": "packageA/pages/service_share/service_share", |
1003 | 847 | "pathName": "packageA/pages/service_share/service_share", |
1004 | 848 | "query": "", |
1005 | 849 | "scene": null |
1006 | 850 | }, |
1007 | 851 | { |
1008 | - "id": -1, | |
1009 | 852 | "name": "packageA/pages/distribution/main/main", |
1010 | 853 | "pathName": "packageA/pages/distribution/main/main", |
1011 | 854 | "query": "", |
1012 | 855 | "scene": null |
1013 | 856 | }, |
1014 | 857 | { |
1015 | - "id": -1, | |
1016 | 858 | "name": "packageA/pages/cardDetails/cardDetails", |
1017 | 859 | "pathName": "packageA/pages/cardDetails/cardDetails", |
1018 | 860 | "query": "", |
1019 | 861 | "scene": null |
1020 | 862 | }, |
1021 | 863 | { |
1022 | - "id": -1, | |
1023 | 864 | "name": "pages/user/my_service/i_service", |
1024 | 865 | "pathName": "pages/user/appment_main/appment_main", |
1025 | 866 | "query": "", |
1026 | 867 | "scene": null |
1027 | 868 | }, |
1028 | 869 | { |
1029 | - "id": -1, | |
1030 | 870 | "name": "pages/user/appment_main/appment_main", |
1031 | 871 | "pathName": "pages/user/my_service/appment_main/appment_main", |
1032 | 872 | "query": "", |
1033 | 873 | "scene": null |
1034 | 874 | }, |
1035 | 875 | { |
1036 | - "id": -1, | |
1037 | 876 | "name": "pages/user/my_service/appment_main", |
1038 | 877 | "pathName": "pages/user/my_service/appment_main", |
1039 | 878 | "query": "", |
1040 | 879 | "scene": null |
1041 | 880 | }, |
1042 | 881 | { |
1043 | - "id": -1, | |
1044 | 882 | "name": "packageA/pages/distribution/main/main", |
1045 | 883 | "pathName": "packageA/pages/distribution/main/main", |
1046 | 884 | "query": "", |
1047 | 885 | "scene": null |
1048 | 886 | }, |
1049 | 887 | { |
1050 | - "id": -1, | |
1051 | 888 | "name": "pages/index/index/index", |
1052 | 889 | "pathName": "pages/index/index/index", |
1053 | 890 | "query": "", |
1054 | 891 | "scene": null |
1055 | 892 | }, |
1056 | 893 | { |
1057 | - "id": -1, | |
1058 | 894 | "name": "packageA/pages/distribution/main/main", |
1059 | 895 | "pathName": "packageA/pages/distribution/main/main", |
896 | + "query": "", | |
1060 | 897 | "scene": null |
1061 | 898 | } |
1062 | 899 | ] |
1063 | 900 | } |
1064 | - } | |
901 | + }, | |
902 | + "editorSetting": { | |
903 | + "tabIndent": "insertSpaces", | |
904 | + "tabSize": 2 | |
905 | + }, | |
906 | + "packOptions": { | |
907 | + "ignore": [], | |
908 | + "include": [] | |
909 | + }, | |
910 | + "appid": "wx2ea7cdd3ef52cdff", | |
911 | + "projectname": "Dev_MShopWeApp", | |
912 | + "libVersion": "2.25.4" | |
1065 | 913 | } |
1066 | 914 | \ No newline at end of file | ... | ... |
utils/auth.js
... | ... | @@ -113,7 +113,7 @@ module.exports = { |
113 | 113 | |
114 | 114 | app.globalData.getu = r; |
115 | 115 | wx.navigateTo({ |
116 | - url: '/pages/togoin/togoin', | |
116 | + url: '/packageE/pages/togoin/togoin', | |
117 | 117 | }) |
118 | 118 | }else{ |
119 | 119 | app.globalData.user_id = e.data.data.user_id; |
... | ... | @@ -225,7 +225,7 @@ module.exports = { |
225 | 225 | var a = wx.getStorageSync("wx_user_info"); |
226 | 226 | var userInfo = a.userInfo; |
227 | 227 | if (userInfo==undefined){ |
228 | - n.goto("/pages/togoin/togoin"); | |
228 | + n.goto("/packageE/pages/togoin/togoin"); | |
229 | 229 | }else{ |
230 | 230 | a && void 0 != a ? (n.globalData.wechatUser = a, o.login(t, a, e)) : o.goGetUserInfo(); |
231 | 231 | } | ... | ... |
utils/common.js
... | ... | @@ -13,7 +13,6 @@ module.exports = { |
13 | 13 | app: function() { |
14 | 14 | return getApp(); |
15 | 15 | }, |
16 | - | |
17 | 16 | //------------获取全路径的图片地址----------- |
18 | 17 | getFullUrl: function(e) { |
19 | 18 | if(e==undefined || e=="") return ""; |
... | ... | @@ -21,11 +20,7 @@ module.exports = { |
21 | 20 | e=this.app().globalData.setting.imghost + e; |
22 | 21 | return e; |
23 | 22 | }, |
24 | - getConfigByName: function(e, t, r) { | |
25 | - for (var a = 0; a < e.length; a++) if (e[a].name === t && (void 0 === r || void 0 !== r && e[a].inc_type === r)) return e[a].value; | |
26 | - return console.warn(t), console.warn(e), null; | |
27 | - }, | |
28 | - | |
23 | + | |
29 | 24 | //--------跳转到支付页面-------- |
30 | 25 | jumpToCart4: function(e, r) { |
31 | 26 | var a = { |
... | ... | @@ -43,9 +38,6 @@ module.exports = { |
43 | 38 | url: n |
44 | 39 | }); |
45 | 40 | }, |
46 | - getCapache: function() { | |
47 | - return this.app().request.modifyUrl("/api/user/verify?is_image=1&t=" + Date.parse(new Date())); | |
48 | - }, | |
49 | 41 | wxParseAddFullImageUrl: function(t, r) { |
50 | 42 | if (void 0 !== t.data[r].images) { |
51 | 43 | for (var a = t.data[r], n = 0; n < a.images.length; n++) a.images[n].attr.src = this.getFullUrl(a.images[n].attr.src), |
... | ... | @@ -53,35 +45,6 @@ module.exports = { |
53 | 45 | console.log(a), t.setData(e({}, r, a)); |
54 | 46 | } |
55 | 47 | }, |
56 | - sendSmsCode: function(e, t, r) { | |
57 | - a = this; | |
58 | - if (!e) return a.app().showWarning("手机号码不能为空"); | |
59 | - void 0 !== t && null !== t || (t = 6); | |
60 | - var a = this; | |
61 | - this.app().request.post("/home/api/send_validate_code", { | |
62 | - data: { | |
63 | - mobile: e, | |
64 | - scene: t, | |
65 | - type: "mobile" | |
66 | - }, | |
67 | - success: function(e) { | |
68 | - "function" == typeof r && r(), a.app().confirmBox(e.data.msg); | |
69 | - } | |
70 | - }); | |
71 | - }, | |
72 | - sendBindSmsCode: function(e, t) { | |
73 | - r = this; | |
74 | - if (!e) return r.app().showWarning("手机号码不能为空"); | |
75 | - var r = this; | |
76 | - this.app().request.post("/home/api/send_validate_code", { | |
77 | - data: { | |
78 | - mobile: e, | |
79 | - scene: "1", | |
80 | - type: "user_reg" | |
81 | - }, | |
82 | - success: function(e) { | |
83 | - "function" == typeof t && t(), r.app().confirmBox(e.data.msg); | |
84 | - } | |
85 | - }); | |
86 | - } | |
48 | + | |
49 | + | |
87 | 50 | }; |
88 | 51 | \ No newline at end of file | ... | ... |
utils/phpSerializer.js deleted
1 | -// {{{ HTML_AJAX_Serialize_PHP | |
2 | -/** | |
3 | - * PHP serializer | |
4 | - * | |
5 | - * This class can be used to serialize and unserialize data in a | |
6 | - * format compatible with PHP's native serialization functions. | |
7 | - * | |
8 | - * @version 0.0.3 | |
9 | - * @copyright 2005 Arpad Ray <arpad@php.net> | |
10 | - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL | |
11 | - * | |
12 | - * See Main.js for Author/license details | |
13 | - */ | |
14 | - | |
15 | -function utf16to8(str) { | |
16 | - var out, i, len, c; | |
17 | - | |
18 | - out = ""; | |
19 | - len = str.length; | |
20 | - for (i = 0; i < len; i++) { | |
21 | - c = str.charCodeAt(i); | |
22 | - if ((c >= 0x0001) && (c <= 0x007F)) { | |
23 | - out += str.charAt(i); | |
24 | - } else if (c > 0x07FF) { | |
25 | - out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F)); | |
26 | - out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F)); | |
27 | - out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); | |
28 | - } else { | |
29 | - out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F)); | |
30 | - out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); | |
31 | - } | |
32 | - } | |
33 | - return out; | |
34 | -} | |
35 | - | |
36 | -function utf8to16(str) { | |
37 | - var out, i, len, c; | |
38 | - var char2, char3; | |
39 | - | |
40 | - out = ""; | |
41 | - len = str.length; | |
42 | - i = 0; | |
43 | - while (i < len) { | |
44 | - c = str.charCodeAt(i++); | |
45 | - switch (c >> 4) { | |
46 | - case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: | |
47 | - // 0xxxxxxx | |
48 | - out += str.charAt(i - 1); | |
49 | - break; | |
50 | - case 12: case 13: | |
51 | - // 110x xxxx 10xx xxxx | |
52 | - char2 = str.charCodeAt(i++); | |
53 | - out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F)); | |
54 | - break; | |
55 | - case 14: | |
56 | - // 1110 xxxx 10xx xxxx 10xx xxxx | |
57 | - char2 = str.charCodeAt(i++); | |
58 | - char3 = str.charCodeAt(i++); | |
59 | - out += String.fromCharCode(((c & 0x0F) << 12) | | |
60 | - ((char2 & 0x3F) << 6) | | |
61 | - ((char3 & 0x3F) << 0)); | |
62 | - break; | |
63 | - } | |
64 | - } | |
65 | - return out; | |
66 | -} | |
67 | - | |
68 | - | |
69 | -function HTML_AJAX_Serialize_PHP() {} | |
70 | -HTML_AJAX_Serialize_PHP.prototype = { | |
71 | - error: false, | |
72 | - message: "", | |
73 | - cont: "", | |
74 | - defaultEncoding: 'UTF-8', | |
75 | - contentType: 'application/php-serialized; charset: UTF-8', | |
76 | - // {{{ serialize | |
77 | - /** | |
78 | - * Serializes a variable | |
79 | - * | |
80 | - * @param mixed inp the variable to serialize | |
81 | - * @return string a string representation of the input, | |
82 | - * which can be reconstructed by unserialize() | |
83 | - * @author Arpad Ray <arpad@rajeczy.com> | |
84 | - * @author David Coallier <davidc@php.net> | |
85 | - */ | |
86 | - serialize: function(inp) { | |
87 | - var type = HTML_AJAX_Util.getType(inp); | |
88 | - var val; | |
89 | - switch (type) { | |
90 | - case "undefined": | |
91 | - val = "N"; | |
92 | - break; | |
93 | - case "boolean": | |
94 | - val = "b:" + (inp ? "1" : "0"); | |
95 | - break; | |
96 | - case "number": | |
97 | - val = (Math.round(inp) == inp ? "i" : "d") + ":" + inp; | |
98 | - break; | |
99 | - case "string": | |
100 | - val = "s:" + inp.length + ":\"" + inp + "\""; | |
101 | - break; | |
102 | - case "array": | |
103 | - val = "a"; | |
104 | - case "object": | |
105 | - if (type == "object") { | |
106 | - var objname = inp.constructor.toString().match(/(\w+)\(\)/); | |
107 | - if (objname == undefined) { | |
108 | - return; | |
109 | - } | |
110 | - objname[1] = this.serialize(objname[1]); | |
111 | - val = "O" + objname[1].substring(1, objname[1].length - 1); | |
112 | - } | |
113 | - var count = 0; | |
114 | - var vals = ""; | |
115 | - var okey; | |
116 | - for (key in inp) { | |
117 | - okey = (key.match(/^[0-9]+$/) ? parseInt(key) : key); | |
118 | - vals += this.serialize(okey) + | |
119 | - this.serialize(inp[key]); | |
120 | - count++; | |
121 | - } | |
122 | - val += ":" + count + ":{" + vals + "}"; | |
123 | - break; | |
124 | - } | |
125 | - if (type != "object" && type != "array") val += ";"; | |
126 | - return val; | |
127 | - }, | |
128 | - // }}} | |
129 | - // {{{ unserialize | |
130 | - /** | |
131 | - * Reconstructs a serialized variable | |
132 | - * | |
133 | - * @param string inp the string to reconstruct | |
134 | - * @return mixed the variable represented by the input string, or void on failure | |
135 | - */ | |
136 | - unserialize: function(inp) { | |
137 | - this.error = 0; | |
138 | - if (inp == "" || inp.length < 2) { | |
139 | - this.raiseError("input is too short"); | |
140 | - return; | |
141 | - } | |
142 | - var val, kret, vret, cval; | |
143 | - var type = inp.charAt(0); | |
144 | - var cont = inp.substring(2); | |
145 | - var size = 0, divpos = 0, endcont = 0, rest = "", next = ""; | |
146 | - | |
147 | - switch (type) { | |
148 | - case "N": // null | |
149 | - if (inp.charAt(1) != ";") { | |
150 | - this.raiseError("missing ; for null", cont); | |
151 | - } | |
152 | - // leave val undefined | |
153 | - rest = cont; | |
154 | - break; | |
155 | - case "b": // boolean | |
156 | - if (!/[01];/.test(cont.substring(0,2))) { | |
157 | - this.raiseError("value not 0 or 1, or missing ; for boolean", cont); | |
158 | - } | |
159 | - val = (cont.charAt(0) == "1"); | |
160 | - rest = cont.substring(1); | |
161 | - break; | |
162 | - case "s": // string | |
163 | - val = ""; | |
164 | - divpos = cont.indexOf(":"); | |
165 | - if (divpos == -1) { | |
166 | - this.raiseError("missing : for string", cont); | |
167 | - break; | |
168 | - } | |
169 | - size = parseInt(cont.substring(0, divpos)); | |
170 | - if (size == 0) { | |
171 | - if (cont.length - divpos < 4) { | |
172 | - this.raiseError("string is too short", cont); | |
173 | - break; | |
174 | - } | |
175 | - rest = cont.substring(divpos + 4); | |
176 | - break; | |
177 | - } | |
178 | - if ((cont.length - divpos - size) < 4) { | |
179 | - this.raiseError("string is too short", cont); | |
180 | - break; | |
181 | - } | |
182 | - if (cont.substring(divpos + 2 + size, divpos + 4 + size) != "\";") { | |
183 | - this.raiseError("string is too long, or missing \";", cont); | |
184 | - } | |
185 | - val = cont.substring(divpos + 2, divpos + 2 + size); | |
186 | - rest = cont.substring(divpos + 4 + size); | |
187 | - break; | |
188 | - case "i": // integer | |
189 | - case "d": // float | |
190 | - var dotfound = 0; | |
191 | - for (var i = 0; i < cont.length; i++) { | |
192 | - cval = cont.charAt(i); | |
193 | - if (isNaN(parseInt(cval)) && !(type == "d" && cval == "." && !dotfound++)) { | |
194 | - endcont = i; | |
195 | - break; | |
196 | - } | |
197 | - } | |
198 | - if (!endcont || cont.charAt(endcont) != ";") { | |
199 | - this.raiseError("missing or invalid value, or missing ; for int/float", cont); | |
200 | - } | |
201 | - val = cont.substring(0, endcont); | |
202 | - val = (type == "i" ? parseInt(val) : parseFloat(val)); | |
203 | - rest = cont.substring(endcont + 1); | |
204 | - break; | |
205 | - case "a": // array | |
206 | - if (cont.length < 4) { | |
207 | - this.raiseError("array is too short", cont); | |
208 | - return; | |
209 | - } | |
210 | - divpos = cont.indexOf(":", 1); | |
211 | - if (divpos == -1) { | |
212 | - this.raiseError("missing : for array", cont); | |
213 | - return; | |
214 | - } | |
215 | - size = parseInt(cont.substring(0, divpos)); | |
216 | - cont = cont.substring(divpos + 2); | |
217 | - val = new Array(); | |
218 | - if (cont.length < 1) { | |
219 | - this.raiseError("array is too short", cont); | |
220 | - return; | |
221 | - } | |
222 | - for (var i = 0; i < size; i++) { | |
223 | - kret = this.unserialize(cont, 1); | |
224 | - if (this.error || kret[0] == undefined || kret[1] == "") { | |
225 | - this.raiseError("missing or invalid key, or missing value for array", cont); | |
226 | - return; | |
227 | - } | |
228 | - vret = this.unserialize(kret[1], 1); | |
229 | - if (this.error) { | |
230 | - this.raiseError("invalid value for array", cont); | |
231 | - return; | |
232 | - } | |
233 | - val[kret[0]] = vret[0]; | |
234 | - cont = vret[1]; | |
235 | - } | |
236 | - if (cont.charAt(0) != "}") { | |
237 | - this.raiseError("missing ending }, or too many values for array", cont); | |
238 | - return; | |
239 | - } | |
240 | - rest = cont.substring(1); | |
241 | - break; | |
242 | - case "O": // object | |
243 | - divpos = cont.indexOf(":"); | |
244 | - if (divpos == -1) { | |
245 | - this.raiseError("missing : for object", cont); | |
246 | - return; | |
247 | - } | |
248 | - size = parseInt(cont.substring(0, divpos)); | |
249 | - var objname = cont.substring(divpos + 2, divpos + 2 + size); | |
250 | - if (cont.substring(divpos + 2 + size, divpos + 4 + size) != "\":") { | |
251 | - this.raiseError("object name is too long, or missing \":", cont); | |
252 | - return; | |
253 | - } | |
254 | - var objprops = this.unserialize("a:" + cont.substring(divpos + 4 + size), 1); | |
255 | - if (this.error) { | |
256 | - this.raiseError("invalid object properties", cont); | |
257 | - return; | |
258 | - } | |
259 | - rest = objprops[1]; | |
260 | - var objout = "function " + objname + "(){"; | |
261 | - for (key in objprops[0]) { | |
262 | - objout += "this." + key + "=objprops[0]['" + key + "'];"; | |
263 | - } | |
264 | - objout += "}val=new " + objname + "();"; | |
265 | - eval(objout); | |
266 | - break; | |
267 | - default: | |
268 | - this.raiseError("invalid input type", cont); | |
269 | - } | |
270 | - return (arguments.length == 1 ? val : [val, rest]); | |
271 | - }, | |
272 | - // }}} | |
273 | - // {{{ getError | |
274 | - /** | |
275 | - * Gets the last error message | |
276 | - * | |
277 | - * @return string the last error message from unserialize() | |
278 | - */ | |
279 | - getError: function() { | |
280 | - return this.message + "\n" + this.cont; | |
281 | - }, | |
282 | - // }}} | |
283 | - // {{{ raiseError | |
284 | - /** | |
285 | - * Raises an eror (called by unserialize().) | |
286 | - * | |
287 | - * @param string message the error message | |
288 | - * @param string cont the remaining unserialized content | |
289 | - */ | |
290 | - raiseError: function(message, cont) { | |
291 | - this.error = 1; | |
292 | - this.message = message; | |
293 | - this.cont = cont; | |
294 | - } | |
295 | - // }}} | |
296 | -} | |
297 | -// }}} | |
298 | - |
utils/util.js
utils/weapp-icon.wxss
... | ... | @@ -6,21 +6,9 @@ |
6 | 6 | background-position: center; |
7 | 7 | background-size: 100%; |
8 | 8 | } |
9 | - | |
10 | - | |
11 | - | |
12 | 9 | .t-icon-gowudai { |
13 | 10 | background: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20width%3D%27100%25%27%20height%3D%27100%25%27%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22t-icon-gowudai%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20d%3D%22M150.72-1.06666667l-5.86666667%20169.49333334%20738.13333334%2016.53333333L870.4-1.06666667z%22%20fill%3D%22%23cdcdcd%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M150.72-1.06666667l72.64%2049.38666667-78.50666667%20106.56z%22%20fill%3D%22%23A2A2A2%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M120.64%201025.70666667L69.33333333%20969.49333333h884.37333334l-54.29333334%2056.21333334z%22%20fill%3D%22%23bfbfbf%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M223.36%2047.36l-20.37333333%20113.38666667-103.57333334-8.74666667z%22%20fill%3D%22%23AEADAD%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M870.4-1.06666667l-71.68%2049.38666667%2084.26666667%20108.48z%22%20fill%3D%22%23A2A2A2%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M798.72%2048.32l20.37333333%20112.42666667%20105.49333334-8.74666667z%22%20fill%3D%22%23AEADAD%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M99.41333333%20152h825.17333334L954.66666667%20969.49333333H69.33333333z%22%20fill%3D%22%23dbdbdb%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M718.82666667%20256.10666667H770.13333333v255.68c0%20141.22666667-114.45333333%20255.68-255.68%20255.68S258.66666667%20653.01333333%20258.66666667%20511.78666667V256.10666667h51.30666666v255.68c0%20112.85333333%2091.52%20204.37333333%20204.37333334%20204.37333333s204.37333333-91.52%20204.37333333-204.37333333V256.10666667z%22%20fill%3D%22%23A5A5A5%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M718.82666667%20312.32H770.13333333v149.12c0%20141.22666667-114.45333333%20255.68-255.68%20255.68S258.66666667%20602.66666667%20258.66666667%20461.44V312.32h51.30666666v149.12c0%20112.85333333%2091.52%20204.37333333%20204.37333334%20204.37333333s204.37333333-91.52%20204.37333333-204.37333333V312.32z%22%20fill%3D%22%23FFFFFF%22%20%3E%3C%2Fpath%3E%3C%2Fsvg%3E); |
14 | 11 | } |
15 | - | |
16 | -/* .t-icon-liwu { | |
17 | - background: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20width%3D%27100%25%27%20height%3D%27100%25%27%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22t-icon-liwu%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20d%3D%22M85.93%20950.016c0%2024.576%207.126%2031.317%2029.44%2031.317h353.366V511.744H85.931v438.272z%20m469.334%2031.317h353.365c22.358%200%2029.44-6.698%2029.44-31.317V511.744H555.221v469.59zM938.667%20256H725.333c51.499-11.733%20105.899-49.707%20112.598-94.293%207.85-50.859-52.566-127.958-125.654-118.187-87.424%2012.117-151.509%2089.259-196.736%20149.077C470.656%20133.931%20412.16%2065.408%20328.363%2045.483c-81.152-19.2-136.747%2064.938-135.254%20116.992%201.451%2044.245%2052.608%2081.834%20105.558%2093.525H85.333c-26.368%200-42.666%2014.848-42.666%2042.667v170.581l426.666%200.085V256h85.334v213.333l426.666-0.085V298.667c0-27.819-16.341-42.667-42.666-42.667z%20m-687.019-77.824c-14.763-16.427-4.779-38.741%204.48-55.595%2017.024-29.696%2040.747-47.744%2081.152-30.933%2056.32%2023.51%2097.792%2073.216%20131.584%20117.803-71.552%207.893-178.304%2010.965-217.216-31.275z%20m311.296%2030.507c34.816-44.63%2075.221-89.942%20131.157-117.803%2058.582-28.97%20113.024%2049.323%2085.206%2086.912-21.419%2028.544-89.259%2031.232-125.91%2032.853-30.08%201.536-60.501%200.811-90.453-1.962z%22%20fill%3D%22%22%20%3E%3C%2Fpath%3E%3C%2Fsvg%3E); | |
18 | -} | |
19 | - | |
20 | -.t-icon-echarts { | |
21 | - background: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20width%3D%27100%25%27%20height%3D%27100%25%27%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22t-icon-echarts%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20d%3D%22M436.59925293%20533.33333333c0-65.04312613%2035.34952507-123.72333775%2088.37381267-153.41693881l-206.44122641-353.49525068c-282.79620057%20159.07286282-376.82593725%20518.22403753-217.75307443%20801.02023808l359.15117471-206.44122642c-11.31184801-22.62369604-23.33068654-52.31729711-23.33068654-87.66682217z%22%20fill%3D%22%23DADADA%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M613.34687829%20356.58570799c65.04312613%200%20123.72333775%2035.34952507%20153.41693879%2088.37381266l253.1025995-147.05402428C890.48715482%2073.78950741%20602.03503025-2.56546674%20377.91904132%20126.81379502l147.05402428%20253.1025995c24.03767705-11.31184801%2059.38720211-23.33068654%2088.37381269-23.33068653z%22%20fill%3D%22%23EBEBEB%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M701.72069095%20686.75027214c-23.33068654%2017.67476253-58.68021163%2023.33068654-88.37381266%2023.33068653-65.04312613%200-123.72333775-35.34952507-153.41693882-88.37381266L201.17141596%20775.12408481c41.00544908%2070.69905013%20100.3926512%20129.37926176%20171.09170135%20171.09170134%20153.41693881%2088.37381268%20335.82048816%2082.71788866%20477.21858844-5.65592402l-147.7610148-253.80958999z%22%20fill%3D%22%23B8B8B8%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M920.18075589%20356.58570799L766.76381708%20444.95952065c12.01883853%2029.69360106%2023.33068654%2058.68021163%2023.33068654%2088.37381268%200%2065.04312613-35.34952507%20123.72333775-88.37381267%20153.41693881l88.37381267%20153.41693881c171.09170134-100.3926512%20229.77191295-312.48980161%20130.08625227-483.58150296z%22%20fill%3D%22%23C7C7C7%22%20%3E%3C%2Fpath%3E%3C%2Fsvg%3E); | |
22 | -} */ | |
23 | - | |
24 | 12 | .t-icon-sort-up { |
25 | 13 | background: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20width%3D%27100%25%27%20height%3D%27100%25%27%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22t-icon-sort-up%22%20viewBox%3D%220%200%201024%201024%22%3E%3Cpath%20d%3D%22M-109.37837037-109.37837037h1242.75674074v1242.75674074H-109.37837037z%22%20fill%3D%22%23FFFFFF%22%20fill-opacity%3D%220%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M242.7360391%20615.56306132h538.5279218a20.71261275%2020.71261275%200%200%201%2016.57008947%2033.14018016l-269.2639609%20359.05313542a20.71261275%2020.71261275%200%200%201-33.14017894%200L226.16594963%20648.70324148A20.71261275%2020.71261275%200%200%201%20242.7360391%20615.56306132z%22%20fill%3D%22%23C7C7C7%22%20%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M528.57008947%2016.2436231l269.2639609%20359.05313542A20.71261275%2020.71261275%200%200%201%20781.2639609%20408.43693868H242.7360391a20.71261275%2020.71261275%200%200%201-16.57008947-33.14018016l269.2639609-359.05313542a20.71261275%2020.71261275%200%200%201%2033.14017894%200z%22%20fill%3D%22%235A5A5A%22%20%3E%3C%2Fpath%3E%3C%2Fsvg%3E); |
26 | 14 | } | ... | ... |