Commit 73597e59319ff02b6965a0bfce49d89472095d72
1 parent
a03b724a
自定义模板的优化
Showing
8 changed files
with
560 additions
and
394 deletions
components/diy_user_info/diy_user_info.wxss
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | 37 | ||
38 | /*-- 头部 --*/ | 38 | /*-- 头部 --*/ |
39 | .xc-user .xc-head { | 39 | .xc-user .xc-head { |
40 | - height: 370rpx; | 40 | + height: 380rpx; |
41 | } | 41 | } |
42 | 42 | ||
43 | .xc-background { | 43 | .xc-background { |
@@ -218,3 +218,18 @@ | @@ -218,3 +218,18 @@ | ||
218 | font-size: 27rpx; | 218 | font-size: 27rpx; |
219 | margin-top: 25rpx; | 219 | margin-top: 25rpx; |
220 | } | 220 | } |
221 | + | ||
222 | +.gr_box { | ||
223 | + position: relative; | ||
224 | + height: 16rpx; | ||
225 | + background-color: #fff; | ||
226 | + border-radius: 8rpx; | ||
227 | + overflow: hidden; | ||
228 | +} | ||
229 | +.gr_box_item{ | ||
230 | + height: 16rpx; | ||
231 | + width: 100px; | ||
232 | + background-color: #999; | ||
233 | +} | ||
234 | + | ||
235 | + |
components/diy_user_info/style3.wxml
1 | <!-- 会员有登陆登陆的情况 --> | 1 | <!-- 会员有登陆登陆的情况 --> |
2 | -<view class="xc-user-frame abs" wx:if="{{userInfo}}" style="top:20rpx"> | ||
3 | - | ||
4 | - | ||
5 | - | ||
6 | - <view class="xc-uesr-name" style="color:{{object.word_color}}"> | ||
7 | - <view class="flex ai-center jc-center"> | 2 | +<view class="xc-user-frame abs" wx:if="{{userInfo}}" style="width:700rpx;left:25rpx;top:32rpx"> |
3 | + <view class="xc-uesr-name" style="color:{{object.word_color}}" > | ||
4 | + <view class="flex ai-center"> | ||
8 | <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text> | 5 | <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text> |
9 | - | ||
10 | - | ||
11 | </view> | 6 | </view> |
12 | - <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:4rpx" wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}" bindtap='jump'> | ||
13 | - <block wx:if="{{qy_data.cz_val<qy_data.full_cz_val}}"> | ||
14 | - {{" "}} | ||
15 | - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> | ||
16 | - <view style='margin-left:5rpx; '>{{qy_data.cz_val}} / {{qy_data.need_money}}</view> | ||
17 | - </block> | ||
18 | - <block wx:else> | ||
19 | - {{" "}} | ||
20 | - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> {{cz_val}} | ||
21 | - </block> | 7 | + <view class="flex fs24 xc-grow-ups ai-center" style="margin-top:4rpx"> |
8 | + <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}' style="margin-right:6rpx"> | ||
9 | + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}} | ||
10 | + </view> | ||
11 | + <image bindtap='show_tc' class="xc-qrcode" wx:if="{{userInfo && object.is_user_card}}" | ||
12 | + style="border: 5rpx solid #fe9db5;background: #fe9db5;width:40rpx; height:40rpx;" src="{{iurl}}/miniapp/images/qrcode1.png"></image> | ||
22 | </view> | 13 | </view> |
14 | + | ||
15 | + <!-- 显示成长值,综合分 --> | ||
16 | + <block wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}"> | ||
17 | + <view class="fs22" style="margin-top:15rpx">距白金卡会员还有111</view> | ||
18 | + <view class="gr_box" style="margin-top:10rpx"> | ||
19 | + <view class="gr_box_item"></view> | ||
20 | + </view> | ||
21 | + </block> | ||
22 | + | ||
23 | </view> | 23 | </view> |
24 | 24 | ||
25 | </view> | 25 | </view> |
26 | 26 | ||
27 | - | ||
28 | -<view wx:else class="flex-space-between abs xc-user-frame"> | 27 | +<!-- 显示头像 --> |
28 | +<view wx:else class="flex-space-between abs xc-user-frame" > | ||
29 | <!-- 会员没有登陆的情况 --> | 29 | <!-- 会员没有登陆的情况 --> |
30 | <view class="xc-user-left flex" bindtap="login_user"> | 30 | <view class="xc-user-left flex" bindtap="login_user"> |
31 | <image class="xc-user-img circle" src="{{defaultAvatar}}"></image> | 31 | <image class="xc-user-img circle" src="{{defaultAvatar}}"></image> |
@@ -34,9 +34,16 @@ | @@ -34,9 +34,16 @@ | ||
34 | </view> | 34 | </view> |
35 | 35 | ||
36 | 36 | ||
37 | -<view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs "> | ||
38 | - <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid #fe9db5;background: #fe9db5;" src="{{iurl}}/miniapp/images/qrcode1.png"></image> | ||
39 | - <view style="font-size:12px;color:{{object.word_color}}">会员卡</view> | 37 | +<view class="xc-qrcode-frame abs" style="right:50rpx;top:38rpx"> |
38 | + <view style="position:relative;"> | ||
39 | + <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image> | ||
40 | + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}"> | ||
41 | + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx"> | ||
42 | + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image> | ||
43 | + <view>{{pulscardname}}</view> | ||
44 | + </view> | ||
45 | + </block> | ||
46 | + </view> | ||
40 | </view> | 47 | </view> |
41 | 48 | ||
42 | <view class="flex-vertical abs xc-grow-frame rel" style="display: none"> | 49 | <view class="flex-vertical abs xc-grow-frame rel" style="display: none"> |
components/diy_user_order/diy_user_order.js
@@ -16,7 +16,18 @@ Component({ | @@ -16,7 +16,18 @@ Component({ | ||
16 | iurl:os.imghost, | 16 | iurl:os.imghost, |
17 | }, | 17 | }, |
18 | methods: { | 18 | methods: { |
19 | - // 这里是一个自定义方法 | ||
20 | - customMethod() { } | 19 | + |
20 | + //跳转到订单的优化 | ||
21 | + go_order: function (e) { | ||
22 | + if (!getApp().globalData.user_id) | ||
23 | + { | ||
24 | + getApp().goto('/packageE/pages/togoin/togoin'); | ||
25 | + return false; | ||
26 | + }; | ||
27 | + var url = e.currentTarget.dataset.url; | ||
28 | + wx.navigateTo({ | ||
29 | + url: url, | ||
30 | + }) | ||
31 | + }, | ||
21 | } | 32 | } |
22 | }) | 33 | }) |
23 | \ No newline at end of file | 34 | \ No newline at end of file |
components/diy_user_tools_services/diy_user_tools_services.js
@@ -58,44 +58,8 @@ Component({ | @@ -58,44 +58,8 @@ Component({ | ||
58 | th.setData({sys_switch: t_swi}); | 58 | th.setData({sys_switch: t_swi}); |
59 | } | 59 | } |
60 | }) | 60 | }) |
61 | - | ||
62 | let img_host=this.data.iurl; | 61 | let img_host=this.data.iurl; |
63 | - if(this.properties.f_user_tool){ | ||
64 | - var f_user_tool=JSON.parse(JSON.stringify(this.properties.f_user_tool)); | ||
65 | - var list=this.properties.object.list; | ||
66 | - | ||
67 | - if(list && list.length) { | ||
68 | - //进行循环 | ||
69 | - for (let iu = 0; iu < list.length; iu++) { | ||
70 | - let fd = f_user_tool.find(function (e) { | ||
71 | - return e.id == list[iu].id; | ||
72 | - }) | ||
73 | - if (fd) { | ||
74 | - list[iu].icoimg = fd.icoimg; | ||
75 | - list[iu].new_weappurl = fd.new_weappurl; | ||
76 | - } else { | ||
77 | - list.splice(iu, 1); | ||
78 | - iu--; | ||
79 | - } | ||
80 | - } | ||
81 | - }else{ | ||
82 | - list=[]; | ||
83 | - } | ||
84 | - //-- 如果是有新的tool要添加进去 -- | ||
85 | - for (let ig = 0; ig <f_user_tool.length ; ig++) { | ||
86 | - let fd= list.find(function (e){ | ||
87 | - return e.id==f_user_tool[ig].id; | ||
88 | - }) | ||
89 | - if(fd) continue; | ||
90 | - let ob={ | ||
91 | - show:true,id:fd.id,icoimg:fd.icoimg,name:item.name,new_weappurl:item.new_weappurl | ||
92 | - } | ||
93 | - list.push(ob); | ||
94 | - } | ||
95 | - | ||
96 | - | ||
97 | - this.setData({user_tool:list}) | ||
98 | - } | 62 | + |
99 | }, | 63 | }, |
100 | 64 | ||
101 | methods: { | 65 | methods: { |
@@ -238,5 +202,49 @@ Component({ | @@ -238,5 +202,49 @@ Component({ | ||
238 | 202 | ||
239 | 203 | ||
240 | 204 | ||
241 | - } | 205 | + }, |
206 | + | ||
207 | + observers: { | ||
208 | + // 监听 num1 和 num2 数据的变化 | ||
209 | + 'f_user_tool': function(obj){ | ||
210 | + console.log(1111); | ||
211 | + console.log(obj); | ||
212 | + if(obj){ | ||
213 | + var f_user_tool=JSON.parse(JSON.stringify(obj)); | ||
214 | + var list=this.properties.object.list; | ||
215 | + | ||
216 | + if(list && list.length) { | ||
217 | + //进行循环 | ||
218 | + for (let iu = 0; iu < list.length; iu++) { | ||
219 | + let fd = f_user_tool.find(function (e) { | ||
220 | + return e.id == list[iu].id; | ||
221 | + }) | ||
222 | + if (fd) { | ||
223 | + list[iu].icoimg = fd.icoimg; | ||
224 | + list[iu].new_weappurl = fd.new_weappurl; | ||
225 | + } else { | ||
226 | + list.splice(iu, 1); | ||
227 | + iu--; | ||
228 | + } | ||
229 | + } | ||
230 | + }else{ | ||
231 | + list=[]; | ||
232 | + } | ||
233 | + //-- 如果是有新的tool要添加进去 -- | ||
234 | + for (let ig = 0; ig <f_user_tool.length ; ig++) { | ||
235 | + let fd= list.find(function (e){ | ||
236 | + return e.id==f_user_tool[ig].id; | ||
237 | + }) | ||
238 | + if(fd) continue; | ||
239 | + let ob={ | ||
240 | + show:true,id:fd.id,icoimg:fd.icoimg,name:item.name,new_weappurl:item.new_weappurl | ||
241 | + } | ||
242 | + list.push(ob); | ||
243 | + } | ||
244 | + | ||
245 | + | ||
246 | + this.setData({user_tool:list}) | ||
247 | + } | ||
248 | + } | ||
249 | + }, | ||
242 | }) | 250 | }) |
243 | \ No newline at end of file | 251 | \ No newline at end of file |
packageG/pages/user_template/index.json
@@ -8,7 +8,6 @@ | @@ -8,7 +8,6 @@ | ||
8 | "diy_user_order":"/components/diy_user_order/diy_user_order", | 8 | "diy_user_order":"/components/diy_user_order/diy_user_order", |
9 | "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights", | 9 | "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights", |
10 | "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services", | 10 | "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services", |
11 | - "diy_user_my_rights": "/components/diy_user_my_rights/diy_user_my_rights", | ||
12 | "com_top_nav": "/components/com_top_nav/com_top_nav", | 11 | "com_top_nav": "/components/com_top_nav/com_top_nav", |
13 | "goods_recommend": "/components/goods_list/goods_list" | 12 | "goods_recommend": "/components/goods_list/goods_list" |
14 | }, | 13 | }, |
pages/user/index/index.js
@@ -52,8 +52,9 @@ Page({ | @@ -52,8 +52,9 @@ Page({ | ||
52 | 52 | ||
53 | has_rj:0, | 53 | has_rj:0, |
54 | rfmName:'成长值', | 54 | rfmName:'成长值', |
55 | - is_close_chuzhi:0 | 55 | + is_close_chuzhi:0, |
56 | 56 | ||
57 | + pshow:0 | ||
57 | 58 | ||
58 | }, | 59 | }, |
59 | goto_nav: function (e) { | 60 | goto_nav: function (e) { |
@@ -118,8 +119,11 @@ Page({ | @@ -118,8 +119,11 @@ Page({ | ||
118 | */ | 119 | */ |
119 | onShow: function () { | 120 | onShow: function () { |
120 | 121 | ||
122 | + | ||
121 | var _that=this; | 123 | var _that=this; |
122 | 124 | ||
125 | + this.init_load() | ||
126 | + | ||
123 | //-- 看一下隐私政策要不要显示 -- | 127 | //-- 看一下隐私政策要不要显示 -- |
124 | var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | 128 | var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id |
125 | if (privacy_pop) { | 129 | if (privacy_pop) { |
@@ -200,7 +204,6 @@ Page({ | @@ -200,7 +204,6 @@ Page({ | ||
200 | 204 | ||
201 | if (e != undefined && e != null && e.mobile) { | 205 | if (e != undefined && e != null && e.mobile) { |
202 | 206 | ||
203 | - | ||
204 | if (e.card_field != '' && e.card_field != null && e.card_field != undefined && e.card_expiredate) { | 207 | if (e.card_field != '' && e.card_field != null && e.card_field != undefined && e.card_expiredate) { |
205 | var now = ut.gettimestamp(); | 208 | var now = ut.gettimestamp(); |
206 | var str = e.card_expiredate.replace(/-/g, '/');; | 209 | var str = e.card_expiredate.replace(/-/g, '/');; |
@@ -531,7 +534,7 @@ Page({ | @@ -531,7 +534,7 @@ Page({ | ||
531 | //自定义组件一定要等到页面加载完了,才来调用selectComponnent | 534 | //自定义组件一定要等到页面加载完了,才来调用selectComponnent |
532 | setTimeout(function () { | 535 | setTimeout(function () { |
533 | 536 | ||
534 | - th.setData({ is_show_recommend:true }) | 537 | + th.setData({ is_show_recommend:true,pshow:1 }) |
535 | if (getApp().globalData.user_id) getApp().requestCardNum(th); | 538 | if (getApp().globalData.user_id) getApp().requestCardNum(th); |
536 | var goods_list = th.selectComponent("#goods_recommend"); //组件的id | 539 | var goods_list = th.selectComponent("#goods_recommend"); //组件的id |
537 | 540 | ||
@@ -540,13 +543,14 @@ Page({ | @@ -540,13 +543,14 @@ Page({ | ||
540 | goods_list.get_list(); | 543 | goods_list.get_list(); |
541 | } | 544 | } |
542 | 545 | ||
543 | - }, 1000) | ||
544 | - } | 546 | + }, 1200) |
545 | 547 | ||
546 | 548 | ||
547 | 549 | ||
550 | + } | ||
548 | 551 | ||
549 | }, | 552 | }, |
553 | + | ||
550 | //获取会员权益等级是否升级 | 554 | //获取会员权益等级是否升级 |
551 | getVison(){ | 555 | getVison(){ |
552 | let isRfm = wx.getStorageSync('isRfm') | 556 | let isRfm = wx.getStorageSync('isRfm') |
@@ -1174,6 +1178,45 @@ Page({ | @@ -1174,6 +1178,45 @@ Page({ | ||
1174 | }); | 1178 | }); |
1175 | }, | 1179 | }, |
1176 | 1180 | ||
1181 | + //同步初始加载 | ||
1182 | + async init_load() { | ||
1183 | + var th = this; | ||
1184 | + //因为营销版本的功能包含了自定义模板的功能,是同时的 | ||
1185 | + //读取全局是否有弄自定义模板 | ||
1186 | + await getApp().request.promiseGet("/api/weshop/store_module/gets/"+os.stoid+"/1/8", {1: 1}).then(res => { | ||
1187 | + var data = res.data.data; | ||
1188 | + if (data && data.length) { | ||
1189 | + var temp_data = data[0]; | ||
1190 | + var t_arr = JSON.parse(temp_data.json_str); | ||
1191 | + | ||
1192 | + let obj={ | ||
1193 | + share_title: temp_data.page_title, | ||
1194 | + template_arr: t_arr, | ||
1195 | + isTemplate: 1, | ||
1196 | + bgcolor_t: temp_data.bkcolor, | ||
1197 | + pshow:1 | ||
1198 | + }; | ||
1199 | + | ||
1200 | + //---如果有设定顶部的颜色的时候-- | ||
1201 | + if (temp_data.top_color && temp_data.top_color != 'null') { | ||
1202 | + var top_w_color = "#ffffff"; | ||
1203 | + if (temp_data.top_word_color) { | ||
1204 | + top_w_color = temp_data.top_word_color | ||
1205 | + } | ||
1206 | + wx.setNavigationBarColor({ | ||
1207 | + frontColor: top_w_color, // 必写项 | ||
1208 | + backgroundColor: temp_data.top_color, // 必写项 | ||
1209 | + }) | ||
1210 | + obj.topwColor=top_w_color; | ||
1211 | + obj.topbgColor=temp_data.top_color; | ||
1212 | + } | ||
1213 | + | ||
1214 | + th.setData(obj); | ||
1215 | + | ||
1216 | + } | ||
1217 | + }) | ||
1218 | + }, | ||
1219 | + | ||
1177 | 1220 | ||
1178 | 1221 | ||
1179 | 1222 |
pages/user/index/index.json
@@ -3,7 +3,14 @@ | @@ -3,7 +3,14 @@ | ||
3 | "pop_txt": "/components/userqy_pop_up/userqy_pop_up", | 3 | "pop_txt": "/components/userqy_pop_up/userqy_pop_up", |
4 | "goods_recommend": "/components/goods_list/goods_list", | 4 | "goods_recommend": "/components/goods_list/goods_list", |
5 | "privacy_pop": "/components/privacy_pop/privacy_pop", | 5 | "privacy_pop": "/components/privacy_pop/privacy_pop", |
6 | - "com_top_nav": "/components/com_top_nav/com_top_nav" | 6 | + "com_top_nav": "/components/com_top_nav/com_top_nav", |
7 | + "advertising":"/components/diy_advertising/diy_advertising", | ||
8 | + "assist":"/components/diy_assist/diy_assist", | ||
9 | + "diy_user_info":"/components/diy_user_info/diy_user_info", | ||
10 | + "diy_user_order":"/components/diy_user_order/diy_user_order", | ||
11 | + "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights", | ||
12 | + "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services" | ||
13 | + | ||
7 | }, | 14 | }, |
8 | "navigationBarTitleText": "会员中心", | 15 | "navigationBarTitleText": "会员中心", |
9 | "navigationStyle": "custom" | 16 | "navigationStyle": "custom" |
pages/user/index/index.wxml
@@ -5,387 +5,463 @@ | @@ -5,387 +5,463 @@ | ||
5 | <wxs src="filter.wxs" module="util"></wxs> | 5 | <wxs src="filter.wxs" module="util"></wxs> |
6 | <com_top_nav title="会员中心"></com_top_nav> | 6 | <com_top_nav title="会员中心"></com_top_nav> |
7 | 7 | ||
8 | -<view class="xc-page" style="margin-bottom:{{isIpx ? '168rpx' : '100rpx'}}"> | ||
9 | - <view class="xc-user"> | ||
10 | - <view class="xc-head rel"> | ||
11 | - <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}"> | ||
12 | - <view class="flex-space-between abs xc-user-frame"> | ||
13 | - <view class="xc-user-left flex" wx:if="{{userInfo}}"> | ||
14 | - <view style="position:relative;"> | ||
15 | - <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image> | ||
16 | - <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 }}"> | ||
17 | - <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax"> | ||
18 | - <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image> | ||
19 | - <view>{{pulscardname}}</view> | 8 | + |
9 | + | ||
10 | +<block wx:if="{{pshow}}"> | ||
11 | + <!-- 显示自定义模板 --> | ||
12 | + <block wx:if="{{isTemplate}}"> | ||
13 | + <block wx:for="{{template_arr}}" wx:key="{{index}}"> | ||
14 | + <view> | ||
15 | + <!--广告组合--> | ||
16 | + <block wx:if="{{item.ename=='advertising'}}"> | ||
17 | + <advertising object="{{item.content}}"></advertising> | ||
18 | + </block> | ||
19 | + <!--辅助空白--> | ||
20 | + <block wx:if="{{item.ename=='white'}}"> | ||
21 | + <assist object="{{item.content}}"></assist> | ||
22 | + </block> | ||
23 | + <!-- 会员信息 --> | ||
24 | + <block wx:if="{{item.ename=='userinfo'}}"> | ||
25 | + <diy_user_info object="{{item.content}}" | ||
26 | + byquan="{{byquan}}" yuer="{{yuer}}" udata="{{udata}}" | ||
27 | + qy_data="{{qy_data}}" pulscardname="{{pulscardname}}" rfmName="{{rfmName}}" ></diy_user_info> | ||
28 | + </block> | ||
29 | + <!-- 我的订单 --> | ||
30 | + <block wx:if="{{item.ename=='order'}}"> | ||
31 | + <diy_user_order object="{{item.content}}" toji="{{toji}}" ></diy_user_order> | ||
32 | + </block> | ||
33 | + <!-- 我的权益 --> | ||
34 | + <block wx:if="{{item.ename=='my_rights'}}"> | ||
35 | + <diy_user_my_rights object="{{item.content}}" qy_data="{{qy_data}}" b_gift="{{b_gift}}" ></diy_user_my_rights> | ||
36 | + </block> | ||
37 | + <!-- 工具与服务 --> | ||
38 | + <block wx:if="{{item.ename=='tools_services'}}"> | ||
39 | + <diy_user_tools_services object="{{item.content}}" is_dengji="{{is_dengji}}" qy_data="{{qy_data}}" | ||
40 | + enableMeiye="{{enableMeiye}}" f_user_tool="{{user_tool}}" c_list="{{c_list}}"></diy_user_tools_services> | ||
41 | + </block> | ||
42 | + | ||
43 | + </view> | ||
44 | + </block> | ||
45 | + | ||
46 | + <!-- 显示推荐 --> | ||
47 | + <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}"> | ||
48 | + <view class="xc-recommend-goods flex-center"> | ||
49 | + | ||
50 | + <view class="circle xc-small"> | ||
51 | + </view> | ||
52 | + <view class="circle xc-zhong"> | ||
53 | + </view> | ||
54 | + <view class="circle xc-big"> | ||
55 | + </view> | ||
56 | + <view class="three-level-word xc-recommend">为你推荐</view> | ||
57 | + <view class="circle xc-big"> | ||
58 | + </view> | ||
59 | + <view class="circle xc-zhong"> | ||
60 | + </view> | ||
61 | + <view class="circle xc-small" style='margin-left:15rpx;'> | ||
62 | + <!-- </view> --> | ||
63 | + </view> | ||
64 | + </view> | ||
65 | + </view> | ||
66 | + <!-- 显示商品 --> | ||
67 | + <!-- 好物推荐 --> | ||
68 | + <block wx:if="{{is_show_recommend}}"> | ||
69 | + <goods_recommend id="goods_recommend"></goods_recommend> | ||
70 | + </block> | ||
71 | + | ||
72 | + <!-- 技术支持 --> | ||
73 | + <view class="logo-container t-c"> | ||
74 | + <view class="flex ai_c fs24 jc-center pdv30 white"> | ||
75 | + <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持 | ||
76 | + </view> | ||
77 | + </view> | ||
78 | + </block> | ||
79 | + | ||
80 | + <block wx:else> | ||
81 | + <view class="xc-page" style="margin-bottom:{{isIpx ? '168rpx' : '100rpx'}}"> | ||
82 | + <view class="xc-user"> | ||
83 | + <view class="xc-head rel"> | ||
84 | + <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}"> | ||
85 | + <view class="flex-space-between abs xc-user-frame"> | ||
86 | + <view class="xc-user-left flex" wx:if="{{userInfo}}"> | ||
87 | + <view style="position:relative;"> | ||
88 | + <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image> | ||
89 | + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 }}"> | ||
90 | + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax"> | ||
91 | + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image> | ||
92 | + <view>{{pulscardname}}</view> | ||
93 | + </view> | ||
94 | + </block> | ||
20 | </view> | 95 | </view> |
21 | - </block> | ||
22 | - </view> | ||
23 | 96 | ||
24 | - <view class="xc-uesr-name"> | ||
25 | - <view class="flex ai-center"> | ||
26 | - <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text> | ||
27 | - <view class="hvip" wx:if='{{GradeName && is_init}}'> | ||
28 | - <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{GradeName}} | 97 | + <view class="xc-uesr-name"> |
98 | + <view class="flex ai-center"> | ||
99 | + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text> | ||
100 | + <view class="hvip" wx:if='{{GradeName && is_init}}'> | ||
101 | + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{GradeName}} | ||
102 | + </view> | ||
103 | + </view> | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{is_init && gradeId}}" bindtap='jump'> | ||
109 | + <block wx:if="{{cz_val<full_cz_val}}"> | ||
110 | + {{" "}} | ||
111 | + <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> | ||
112 | + <view style='margin-left:5rpx; '>{{cz_val}} / {{need_money}}</view> | ||
113 | + </block> | ||
114 | + <block wx:else> | ||
115 | + {{" "}} | ||
116 | + <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> {{cz_val}} | ||
117 | + </block> | ||
118 | + </view> | ||
29 | </view> | 119 | </view> |
120 | + | ||
30 | </view> | 121 | </view> |
31 | 122 | ||
123 | + <view class="xc-user-left flex" wx:else bindtap="gobindtel"> | ||
124 | + <image class="xc-user-img circle" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image> | ||
125 | + <view class="xc-uesr-name">请点击注册</view> | ||
126 | + </view> | ||
32 | 127 | ||
33 | 128 | ||
129 | + </view> | ||
130 | + <view wx:if="{{userInfo}}" class="xc-qrcode-frame abs "> | ||
131 | + <!-- {{iurl}}/miniapp --> | ||
132 | + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};background: {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image> | ||
133 | + <view style="font-size:12px;color: #fff;">会员卡</view> | ||
134 | + </view> | ||
135 | + <view class="flex-vertical abs xc-grow-frame rel" style="display: none"> | ||
136 | + <view class="xc-grow-up">{{rfmName}}</view> | ||
34 | 137 | ||
35 | - <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{is_init && gradeId}}" bindtap='jump'> | ||
36 | - <block wx:if="{{cz_val<full_cz_val}}"> | ||
37 | - {{" "}} | ||
38 | - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> | ||
39 | - <view style='margin-left:5rpx; '>{{cz_val}} / {{need_money}}</view> | ||
40 | - </block> | ||
41 | - <block wx:else> | ||
42 | - {{" "}} | ||
43 | - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> {{cz_val}} | ||
44 | - </block> | 138 | + <view class="xc-line-not rel"> |
139 | + <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image> | ||
140 | + <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image> | ||
141 | + <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view> | ||
45 | </view> | 142 | </view> |
46 | - </view> | ||
47 | 143 | ||
48 | - </view> | 144 | + <view class="xc-grow-val">0/0</view> |
145 | + </view> | ||
146 | + <view class="flex-equality abs xc-assets"> | ||
147 | + <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}} | ||
148 | + <view class='numfont'>余额</view> | ||
149 | + </view> | ||
150 | + <!-- 是否关闭 --> | ||
151 | + <block wx:if="{{!is_close_chuzhi}}"> | ||
152 | + <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}} | ||
153 | + <view class='numfont'>储值款</view> | ||
154 | + </view> | ||
155 | + </block> | ||
49 | 156 | ||
50 | - <view class="xc-user-left flex" wx:else bindtap="gobindtel"> | ||
51 | - <image class="xc-user-img circle" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image> | ||
52 | - <view class="xc-uesr-name">请点击注册</view> | ||
53 | - </view> | 157 | + <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}} |
158 | + <view class='numfont'>积分</view> | ||
159 | + </view> | ||
54 | 160 | ||
161 | + <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}} | ||
162 | + <view class='numfont'>优惠券</view> | ||
163 | + </view> | ||
164 | + </view> | ||
165 | + </image> | ||
55 | 166 | ||
56 | </view> | 167 | </view> |
57 | - <view wx:if="{{userInfo}}" class="xc-qrcode-frame abs "> | ||
58 | - <!-- {{iurl}}/miniapp --> | ||
59 | - <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};background: {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image> | ||
60 | - <view style="font-size:12px;color: #fff;">会员卡</view> | ||
61 | - </view> | ||
62 | - <view class="flex-vertical abs xc-grow-frame rel" style="display: none"> | ||
63 | - <view class="xc-grow-up">{{rfmName}}</view> | 168 | + <block wx:if="{{is_no_plus}}"> |
169 | + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}"> | ||
170 | + <view class="xc-add-member flex-center-around "> | ||
171 | + <view class="flex jc-center ai-center"> | ||
172 | + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image> | ||
173 | + <view class="member fs28 "> 加入plus会员预计可省3031元</view> | ||
174 | + </view> | ||
175 | + <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto"> | ||
176 | + <view class="xc-opening fs28">立即开通</view> | ||
177 | + </view> | ||
178 | + </view> | ||
179 | + </view> | ||
64 | 180 | ||
65 | - <view class="xc-line-not rel"> | ||
66 | - <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image> | ||
67 | - <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image> | ||
68 | - <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view> | 181 | + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}"> |
182 | + <view class="xc-add-member flex-center-around "> | ||
183 | + <view class="flex jc-center ai-center"> | ||
184 | + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image> | ||
185 | + <view class="member fs28 "> 加入plus会员预计可省3031元</view> | ||
186 | + </view> | ||
187 | + <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto"> | ||
188 | + <view class="xc-opening fs28">立即续费</view> | ||
189 | + </view> | ||
190 | + </view> | ||
69 | </view> | 191 | </view> |
192 | + </block> | ||
70 | 193 | ||
71 | - <view class="xc-grow-val">0/0</view> | ||
72 | - </view> | ||
73 | - <view class="flex-equality abs xc-assets"> | ||
74 | - <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}} | ||
75 | - <view class='numfont'>余额</view> | 194 | + </view> |
195 | + <view class="xc-after-sale rel"> | ||
196 | + <!-- 顶上的一栏 --> | ||
197 | + <view class="xc-equity-title flex-level"> | ||
198 | + <view class="xc-title-frame flex ai-center"> | ||
199 | + <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | ||
200 | + <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image> | ||
201 | + <view class="three-level-word">我的订单</view> | ||
202 | + </view> | ||
203 | + <!-- 物流信息提醒 --> | ||
204 | + <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder && countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view> | ||
76 | </view> | 205 | </view> |
77 | - <!-- 是否关闭 --> | ||
78 | - <block wx:if="{{!is_close_chuzhi}}"> | ||
79 | - <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}} | ||
80 | - <view class='numfont'>储值款</view> | 206 | + <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list"> |
207 | + <view class="three-level-word xc-more">更多</view> | ||
208 | + <view class="bg_right xc-more-click bcolor"></view> | ||
209 | + </view> | ||
210 | + </view> | ||
211 | + <!-- 内容的一栏 --> | ||
212 | + <view class="xc-after-sale-left flex-center-around"> | ||
213 | + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1"> | ||
214 | + <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image> | ||
215 | + <view class=" xc-word-color four-level-word">待付款</view> | ||
216 | + <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text> | ||
81 | </view> | 217 | </view> |
82 | - </block> | ||
83 | 218 | ||
84 | - <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}} | ||
85 | - <view class='numfont'>积分</view> | 219 | + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2"> |
220 | + <image class="xc-send" src="{{iurl}}/miniapp/images/dfahuo.png?v=1"></image> | ||
221 | + <view class="xc-word-color four-level-word">待发货</view> | ||
222 | + <text class="order-num" hidden='{{toji.wait_send>0?"":"true"}}'>{{toji.wait_send}}</text> | ||
86 | </view> | 223 | </view> |
87 | 224 | ||
88 | - <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}} | ||
89 | - <view class='numfont'>优惠券</view> | 225 | + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3"> |
226 | + <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image> | ||
227 | + <view class="xc-word-color four-level-word">待收货</view> | ||
228 | + <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text> | ||
229 | + </view> | ||
230 | + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4"> | ||
231 | + <image class="xc-no-money" src="{{iurl}}/miniapp/images/dpr1.png"></image> | ||
232 | + <view class="xc-word-color four-level-word">待评论</view> | ||
233 | + <text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text> | ||
234 | + </view> | ||
235 | + <view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/packageF/pages/user/return_goods_list/return_goods_list"> | ||
236 | + <image class="xc-no-money" src="{{iurl}}/miniapp/images/shouh1.png"></image> | ||
237 | + <view style='height:36rpx;'> </view> | ||
238 | + <view class="xc-word-color four-level-word abs">售后/退款</view> | ||
239 | + <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>--> | ||
90 | </view> | 240 | </view> |
91 | - </view> | ||
92 | - </image> | ||
93 | 241 | ||
94 | - </view> | ||
95 | - <block wx:if="{{is_no_plus}}"> | ||
96 | - <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}"> | ||
97 | - <view class="xc-add-member flex-center-around "> | ||
98 | - <view class="flex jc-center ai-center"> | ||
99 | - <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image> | ||
100 | - <view class="member fs28 "> 加入plus会员预计可省3031元</view> | ||
101 | - </view> | ||
102 | - <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto"> | ||
103 | - <view class="xc-opening fs28">立即开通</view> | ||
104 | </view> | 242 | </view> |
105 | - </view> | ||
106 | - </view> | 243 | + <view style="clear: both"></view> |
107 | 244 | ||
108 | - <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}"> | ||
109 | - <view class="xc-add-member flex-center-around "> | ||
110 | - <view class="flex jc-center ai-center"> | ||
111 | - <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image> | ||
112 | - <view class="member fs28 "> 加入plus会员预计可省3031元</view> | ||
113 | - </view> | ||
114 | - <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto"> | ||
115 | - <view class="xc-opening fs28">立即续费</view> | ||
116 | - </view> | ||
117 | </view> | 245 | </view> |
118 | - </view> | ||
119 | - </block> | ||
120 | - | ||
121 | - </view> | ||
122 | - <view class="xc-after-sale rel"> | ||
123 | - <!-- 顶上的一栏 --> | ||
124 | - <view class="xc-equity-title flex-level"> | ||
125 | - <view class="xc-title-frame flex ai-center"> | ||
126 | - <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | ||
127 | - <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image> | ||
128 | - <view class="three-level-word">我的订单</view> | 246 | + |
247 | + <!-- 我的权益 --> | ||
248 | + <view class="xc-my-equity-frame" wx:if="{{is_init }}"> | ||
249 | + <view class="xc-equity-title flex-level" bindtap="go_qy"> | ||
250 | + <view class="xc-title-frame flex-space-between"> | ||
251 | + <view class="flex-vertical xc-title-content"> | ||
252 | + <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image> | ||
253 | + <view class="three-level-word">我的权益</view> | ||
254 | + </view> | ||
255 | + </view> | ||
256 | + <view wx:if="{{is_grad_get}}" class="three-level-word xc-more-frame flex-vertical"> | ||
257 | + <view class="three-level-word xc-more">更多</view> | ||
258 | + <view class="bg_right xc-more-click bcolor"></view> | ||
259 | + </view> | ||
260 | + <view wx:else class="three-level-word xc-more-frame flex-vertical" style="justify-content: flex-end"> | ||
261 | + <image style="width: 40rpx; height: 40rpx; margin-right: 20rpx" src="{{iurl}}/miniapp/images/loader.gif"></image> | ||
262 | + </view> | ||
129 | </view> | 263 | </view> |
130 | - <!-- 物流信息提醒 --> | ||
131 | - <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder && countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view> | ||
132 | - </view> | ||
133 | - <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | ||
134 | - <view class="three-level-word xc-more">更多</view> | ||
135 | - <view class="bg_right xc-more-click bcolor"></view> | ||
136 | - </view> | ||
137 | - </view> | ||
138 | - <!-- 内容的一栏 --> | ||
139 | - <view class="xc-after-sale-left flex-center-around"> | ||
140 | - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1"> | ||
141 | - <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image> | ||
142 | - <view class=" xc-word-color four-level-word">待付款</view> | ||
143 | - <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text> | ||
144 | - </view> | ||
145 | 264 | ||
146 | - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2"> | ||
147 | - <image class="xc-send" src="{{iurl}}/miniapp/images/dfahuo.png?v=1"></image> | ||
148 | - <view class="xc-word-color four-level-word">待发货</view> | ||
149 | - <text class="order-num" hidden='{{toji.wait_send>0?"":"true"}}'>{{toji.wait_send}}</text> | ||
150 | - </view> | 265 | + <block wx:if="{{is_grad_get}}"> |
266 | + <block wx:if="{{qy_list && gradeId}}"> | ||
267 | + <view class="xc-specific-more-frame flex-vertical" wx:if="{{qy_list}}"> | ||
151 | 268 | ||
152 | - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3"> | ||
153 | - <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image> | ||
154 | - <view class="xc-word-color four-level-word">待收货</view> | ||
155 | - <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text> | ||
156 | - </view> | ||
157 | - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4"> | ||
158 | - <image class="xc-no-money" src="{{iurl}}/miniapp/images/dpr1.png"></image> | ||
159 | - <view class="xc-word-color four-level-word">待评论</view> | ||
160 | - <text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text> | ||
161 | - </view> | ||
162 | - <view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/packageF/pages/user/return_goods_list/return_goods_list"> | ||
163 | - <image class="xc-no-money" src="{{iurl}}/miniapp/images/shouh1.png"></image> | ||
164 | - <view style='height:36rpx;'> </view> | ||
165 | - <view class="xc-word-color four-level-word abs">售后/退款</view> | ||
166 | - <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>--> | ||
167 | - </view> | 269 | + <view bindtap="click_pre"> |
270 | + <view class="bg_left xc-left bcolor"></view> | ||
271 | + </view> | ||
168 | 272 | ||
169 | - </view> | ||
170 | - <view style="clear: both"></view> | 273 | + <swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}"> |
171 | 274 | ||
172 | - </view> | 275 | + <swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx"> |
276 | + <view class="flex xc-middle"> | ||
173 | 277 | ||
174 | - <!-- 我的权益 --> | ||
175 | - <view class="xc-my-equity-frame" wx:if="{{is_init }}"> | ||
176 | - <view class="xc-equity-title flex-level" bindtap="go_qy"> | ||
177 | - <view class="xc-title-frame flex-space-between"> | ||
178 | - <view class="flex-vertical xc-title-content"> | ||
179 | - <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image> | ||
180 | - <view class="three-level-word">我的权益</view> | ||
181 | - </view> | ||
182 | - </view> | ||
183 | - <view wx:if="{{is_grad_get}}" class="three-level-word xc-more-frame flex-vertical"> | ||
184 | - <view class="three-level-word xc-more">更多</view> | ||
185 | - <view class="bg_right xc-more-click bcolor"></view> | ||
186 | - </view> | ||
187 | - <view wx:else class="three-level-word xc-more-frame flex-vertical" style="justify-content: flex-end"> | ||
188 | - <image style="width: 40rpx; height: 40rpx; margin-right: 20rpx" src="{{iurl}}/miniapp/images/loader.gif"></image> | ||
189 | - </view> | ||
190 | - </view> | 278 | + <view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}" data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url"> |
279 | + <!-- <text>qy_list.privilegeICOUrl</text> --> | ||
280 | + <image class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image> | ||
281 | + <view class="four-level-word">{{item.PrivilegeName}}</view> | ||
282 | + </view> | ||
283 | + </view> | ||
284 | + </swiper-item> | ||
191 | 285 | ||
192 | - <block wx:if="{{is_grad_get}}"> | ||
193 | - <block wx:if="{{qy_list && gradeId}}"> | ||
194 | - <view class="xc-specific-more-frame flex-vertical" wx:if="{{qy_list}}"> | 286 | + </swiper> |
195 | 287 | ||
196 | - <view bindtap="click_pre"> | ||
197 | - <view class="bg_left xc-left bcolor"></view> | 288 | + <view bindtap="click_next"> |
289 | + <view class="bg_right xc-right bcolor mt"></view> | ||
290 | + </view> | ||
291 | + </view> | ||
292 | + </block> | ||
293 | + <view wx:else style="text-align: center"> | ||
294 | + 未找到数据 | ||
198 | </view> | 295 | </view> |
296 | + </block> | ||
199 | 297 | ||
200 | - <swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}"> | ||
201 | 298 | ||
202 | - <swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx"> | ||
203 | - <view class="flex xc-middle"> | ||
204 | 299 | ||
205 | - <view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}" data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url"> | ||
206 | - <!-- <text>qy_list.privilegeICOUrl</text> --> | ||
207 | - <image class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image> | ||
208 | - <view class="four-level-word">{{item.PrivilegeName}}</view> | ||
209 | - </view> | ||
210 | - </view> | ||
211 | - </swiper-item> | ||
212 | 300 | ||
213 | - </swiper> | ||
214 | - | ||
215 | - <view bindtap="click_next"> | ||
216 | - <view class="bg_right xc-right bcolor mt"></view> | ||
217 | - </view> | 301 | + </view> |
302 | + <!-- 生日营销 is_banner--> | ||
303 | + <block wx:if="{{is_banner}}"> | ||
304 | + <view class="t-c banner-frame" bindtap="clike_banne"> | ||
305 | + <image class="banner-img" src="{{actImg==''?iurl+'/miniapp/images/user/banner-img.jpg':iurl+actImg}}"> | ||
306 | + </image> | ||
218 | </view> | 307 | </view> |
219 | </block> | 308 | </block> |
220 | - <view wx:else style="text-align: center"> | ||
221 | - 未找到数据 | ||
222 | - </view> | ||
223 | - </block> | ||
224 | - | ||
225 | - | ||
226 | - | ||
227 | - | ||
228 | - </view> | ||
229 | - <!-- 生日营销 is_banner--> | ||
230 | - <block wx:if="{{is_banner}}"> | ||
231 | - <view class="t-c banner-frame" bindtap="clike_banne"> | ||
232 | - <image class="banner-img" src="{{actImg==''?iurl+'/miniapp/images/user/banner-img.jpg':iurl+actImg}}"> | ||
233 | - </image> | ||
234 | - </view> | ||
235 | - </block> | ||
236 | - | ||
237 | - <!-- 工具与服务 --> | ||
238 | - <view class="xc-tool-service"> | ||
239 | - <view class="xc-tool-service-title flex-vertical"> | ||
240 | - <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image> | ||
241 | - <view class="three-level-word xc-tool-service-word">工具与服务</view> | ||
242 | - </view> | ||
243 | - <view class="xc-project-frame"> | ||
244 | - <!-- 跳转页面 --> | ||
245 | - <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;"> | ||
246 | - <!-- 循环使用自定义菜单,显示和掩藏 --> | ||
247 | - <block wx:for="{{user_tool}}"> | ||
248 | - <!-- 判断系统配置中有没有把菜单关闭 --> | ||
249 | - <block wx:if="{{!util.is_close(item.name,c_list)}}"> | ||
250 | - <!-- 有链接地址的时候 --> | ||
251 | - <block wx:if="{{item.new_weappurl}}"> | ||
252 | - <block wx:if="{{item.name=='PLUS会员'}}"> | ||
253 | - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}"> | ||
254 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
255 | - <view class="fs26">PLUS会员</view> | ||
256 | - </view> | ||
257 | - </block> | ||
258 | - <block wx:elif="{{item.name=='助力活动'}}"> | ||
259 | - <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}"> | ||
260 | - <image class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image> | ||
261 | - <view class="four-level-word">助力活动</view> | ||
262 | - </view> | ||
263 | - </block> | ||
264 | - <block wx:elif="{{item.name=='我的权益'}}"> | ||
265 | - <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}"> | ||
266 | - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
267 | - <view class="fs26">我的权益</view> | ||
268 | - </view> | ||
269 | - </block> | ||
270 | - <block wx:elif="{{item.name=='套盒商品'}}"> | ||
271 | - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}"> | ||
272 | - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
273 | - <view class="fs26">套盒商品</view> | ||
274 | - </view> | ||
275 | - </block> | ||
276 | 309 | ||
277 | - <block wx:elif="{{item.name=='瘦身日记'}}"> | ||
278 | - <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav"> | ||
279 | - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
280 | - <view class="fs26">{{item.name}}</view> | ||
281 | - </view> | ||
282 | - </block> | ||
283 | - | ||
284 | - <block wx:else> | ||
285 | - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav"> | ||
286 | - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
287 | - <view class="fs26">{{item.name}}</view> | ||
288 | - </view> | 310 | + <!-- 工具与服务 --> |
311 | + <view class="xc-tool-service"> | ||
312 | + <view class="xc-tool-service-title flex-vertical"> | ||
313 | + <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image> | ||
314 | + <view class="three-level-word xc-tool-service-word">工具与服务</view> | ||
315 | + </view> | ||
316 | + <view class="xc-project-frame"> | ||
317 | + <!-- 跳转页面 --> | ||
318 | + <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;"> | ||
319 | + <!-- 循环使用自定义菜单,显示和掩藏 --> | ||
320 | + <block wx:for="{{user_tool}}"> | ||
321 | + <!-- 判断系统配置中有没有把菜单关闭 --> | ||
322 | + <block wx:if="{{!util.is_close(item.name,c_list)}}"> | ||
323 | + <!-- 有链接地址的时候 --> | ||
324 | + <block wx:if="{{item.new_weappurl}}"> | ||
325 | + <block wx:if="{{item.name=='PLUS会员'}}"> | ||
326 | + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}"> | ||
327 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
328 | + <view class="fs26">PLUS会员</view> | ||
329 | + </view> | ||
330 | + </block> | ||
331 | + <block wx:elif="{{item.name=='助力活动'}}"> | ||
332 | + <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}"> | ||
333 | + <image class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image> | ||
334 | + <view class="four-level-word">助力活动</view> | ||
335 | + </view> | ||
336 | + </block> | ||
337 | + <block wx:elif="{{item.name=='我的权益'}}"> | ||
338 | + <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}"> | ||
339 | + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
340 | + <view class="fs26">我的权益</view> | ||
341 | + </view> | ||
342 | + </block> | ||
343 | + <block wx:elif="{{item.name=='套盒商品'}}"> | ||
344 | + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}"> | ||
345 | + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
346 | + <view class="fs26">套盒商品</view> | ||
347 | + </view> | ||
348 | + </block> | ||
349 | + | ||
350 | + <block wx:elif="{{item.name=='瘦身日记'}}"> | ||
351 | + <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav"> | ||
352 | + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
353 | + <view class="fs26">{{item.name}}</view> | ||
354 | + </view> | ||
355 | + </block> | ||
356 | + | ||
357 | + <block wx:else> | ||
358 | + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav"> | ||
359 | + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
360 | + <view class="fs26">{{item.name}}</view> | ||
361 | + </view> | ||
362 | + </block> | ||
363 | + </block> | ||
364 | + <!-- 没有链接地址的时候 --> | ||
365 | + <block wx:else> | ||
366 | + <block wx:if="{{item.name=='联系客服'}}"> | ||
367 | + <!-- <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | ||
368 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
369 | + <view class="fs26">联系客服</view> | ||
370 | + </button> | ||
371 | + | ||
372 | + <view class="item t-c" bindtap="con_weixin" wx:elif="{{sys_switch.weapp_customertype==2}}"> | ||
373 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
374 | + <view class="fs26">联系客服</view> | ||
375 | + </view> | ||
376 | + | ||
377 | + <view class="item t-c" bindtap="contactService" wx:else> | ||
378 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
379 | + <view class="fs26">联系客服</view> | ||
380 | + </view> --> | ||
381 | + | ||
382 | + <view class="item t-c" bindtap="openCS"> | ||
383 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
384 | + <view class="fs26">联系客服</view> | ||
385 | + </view> | ||
386 | + | ||
387 | + </block> | ||
388 | + <block wx:elif="{{item.name=='收入卡包'}}"> | ||
389 | + <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}"> | ||
390 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
391 | + <view class="four-level-word">收入卡包</view> | ||
392 | + </view> | ||
393 | + </block> | ||
394 | + </block> | ||
289 | </block> | 395 | </block> |
290 | </block> | 396 | </block> |
291 | - <!-- 没有链接地址的时候 --> | ||
292 | - <block wx:else> | ||
293 | - <block wx:if="{{item.name=='联系客服'}}"> | ||
294 | - <!-- <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | ||
295 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
296 | - <view class="fs26">联系客服</view> | ||
297 | - </button> | ||
298 | - | ||
299 | - <view class="item t-c" bindtap="con_weixin" wx:elif="{{sys_switch.weapp_customertype==2}}"> | ||
300 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
301 | - <view class="fs26">联系客服</view> | ||
302 | - </view> | ||
303 | - | ||
304 | - <view class="item t-c" bindtap="contactService" wx:else> | ||
305 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
306 | - <view class="fs26">联系客服</view> | ||
307 | - </view> --> | ||
308 | - | ||
309 | - <view class="item t-c" bindtap="openCS"> | ||
310 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
311 | - <view class="fs26">联系客服</view> | ||
312 | - </view> | 397 | + </view> |
313 | 398 | ||
314 | - </block> | ||
315 | - <block wx:elif="{{item.name=='收入卡包'}}"> | ||
316 | - <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}"> | ||
317 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
318 | - <view class="four-level-word">收入卡包</view> | ||
319 | - </view> | ||
320 | - </block> | ||
321 | - </block> | ||
322 | - </block> | ||
323 | - </block> | 399 | + </view> |
324 | </view> | 400 | </view> |
325 | 401 | ||
326 | - </view> | ||
327 | - </view> | ||
328 | - | ||
329 | - <!-- 显示推荐 --> | ||
330 | - <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}"> | ||
331 | - <view class="xc-recommend-goods flex-center"> | 402 | + <!-- 显示推荐 --> |
403 | + <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}"> | ||
404 | + <view class="xc-recommend-goods flex-center"> | ||
332 | 405 | ||
333 | - <view class="circle xc-small"> | ||
334 | - </view> | ||
335 | - <view class="circle xc-zhong"> | ||
336 | - </view> | ||
337 | - <view class="circle xc-big"> | ||
338 | - </view> | ||
339 | - <view class="three-level-word xc-recommend">为你推荐</view> | ||
340 | - <view class="circle xc-big"> | ||
341 | - </view> | ||
342 | - <view class="circle xc-zhong"> | 406 | + <view class="circle xc-small"> |
407 | + </view> | ||
408 | + <view class="circle xc-zhong"> | ||
409 | + </view> | ||
410 | + <view class="circle xc-big"> | ||
411 | + </view> | ||
412 | + <view class="three-level-word xc-recommend">为你推荐</view> | ||
413 | + <view class="circle xc-big"> | ||
414 | + </view> | ||
415 | + <view class="circle xc-zhong"> | ||
416 | + </view> | ||
417 | + <view class="circle xc-small" style='margin-left:15rpx;'> | ||
418 | + <!-- </view> --> | ||
419 | + </view> | ||
420 | + </view> | ||
343 | </view> | 421 | </view> |
344 | - <view class="circle xc-small" style='margin-left:15rpx;'> | ||
345 | - <!-- </view> --> | 422 | + <!-- 显示商品 --> |
423 | + <!-- 好物推荐 --> | ||
424 | + <block wx:if="{{is_show_recommend}}"> | ||
425 | + <goods_recommend id="goods_recommend"></goods_recommend> | ||
426 | + </block> | ||
427 | + | ||
428 | + <!-- 技术支持 --> | ||
429 | + <view class="logo-container t-c"> | ||
430 | + <view class="flex ai_c fs24 jc-center pdv30 white"> | ||
431 | + <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持 | ||
432 | + </view> | ||
346 | </view> | 433 | </view> |
347 | - </view> | ||
348 | - </view> | ||
349 | 434 | ||
350 | - <!-- 显示商品 --> | ||
351 | - <!-- 好物推荐 --> | ||
352 | - <block wx:if="{{is_show_recommend}}"> | ||
353 | - <goods_recommend id="goods_recommend"></goods_recommend> | ||
354 | - </block> | ||
355 | 435 | ||
356 | - <!-- 技术支持 --> | ||
357 | - <view class="logo-container t-c"> | ||
358 | - <view class="flex ai_c fs24 jc-center pdv30 white"> | ||
359 | - <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持 | ||
360 | </view> | 436 | </view> |
361 | - </view> | ||
362 | -</view> | ||
363 | - | ||
364 | -<!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"--> | ||
365 | -<view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'> | ||
366 | - <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view> | ||
367 | - <view class="modal-body" catchtouchmove="true"> | ||
368 | - <view class="modal-content"> | ||
369 | - <view class="flex"> | ||
370 | - <image src="{{userInfo.head_pic}}" class="hd_img"></image> | ||
371 | - <view class="ctent_txt"> | ||
372 | - <view class='txt1'>{{userInfo.nickname}} | ||
373 | - <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image> | ||
374 | - <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image> | 437 | + |
438 | + <!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"--> | ||
439 | + <view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'> | ||
440 | + <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view> | ||
441 | + <view class="modal-body" catchtouchmove="true"> | ||
442 | + <view class="modal-content"> | ||
443 | + <view class="flex"> | ||
444 | + <image src="{{userInfo.head_pic}}" class="hd_img"></image> | ||
445 | + <view class="ctent_txt"> | ||
446 | + <view class='txt1'>{{userInfo.nickname}} | ||
447 | + <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image> | ||
448 | + <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image> | ||
449 | + </view> | ||
450 | + <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view> | ||
451 | + </view> | ||
452 | + </view> | ||
453 | + <view class="m_ta"> | ||
454 | + <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>--> | ||
455 | + <canvas class="g_img" canvas-id="qrcode" /> | ||
375 | </view> | 456 | </view> |
376 | - <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view> | 457 | + <view class="s_sao">前台收银扫此二维码,即可享受优惠!</view> |
377 | </view> | 458 | </view> |
378 | </view> | 459 | </view> |
379 | - <view class="m_ta"> | ||
380 | - <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>--> | ||
381 | - <canvas class="g_img" canvas-id="qrcode" /> | ||
382 | - </view> | ||
383 | - <view class="s_sao">前台收银扫此二维码,即可享受优惠!</view> | ||
384 | </view> | 460 | </view> |
385 | - </view> | ||
386 | -</view> | ||
387 | 461 | ||
388 | -<pop_txt id="pop_txt"></pop_txt> | 462 | + <pop_txt id="pop_txt"></pop_txt> |
463 | + <include src="../../../components/com_servicer/com_servicer.wxml"/> | ||
389 | 464 | ||
465 | + </block> | ||
390 | 466 | ||
391 | -<include src="../../../components/com_servicer/com_servicer.wxml"/> | 467 | +</block> |