Commit e609d99ecc0527b346baecf5910e57d0ec0342dd
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
32 changed files
with
321 additions
and
70 deletions
components/diy_goodsGroup/diy_goodsGroup.js
@@ -121,9 +121,13 @@ Component({ | @@ -121,9 +121,13 @@ Component({ | ||
121 | 121 | ||
122 | methods: { | 122 | methods: { |
123 | // 这里是一个自定义方法 | 123 | // 这里是一个自定义方法 |
124 | - init: function (classstyle_id, wgroup) { | 124 | + init:async function (classstyle_id, wgroup) { |
125 | + | ||
126 | + this.setData({classstyle_id:classstyle_id}) | ||
127 | + | ||
125 | var th = this; | 128 | var th = this; |
126 | var g_id = this.data.g_id; | 129 | var g_id = this.data.g_id; |
130 | + var len=this.data.firist_type_data.length; | ||
127 | if (classstyle_id == 1) { | 131 | if (classstyle_id == 1) { |
128 | //---手动选择的时候--- | 132 | //---手动选择的时候--- |
129 | g_id = this.data.firist_type_data[th.data.firist_type_curr]; | 133 | g_id = this.data.firist_type_data[th.data.firist_type_curr]; |
@@ -147,7 +151,7 @@ Component({ | @@ -147,7 +151,7 @@ Component({ | ||
147 | str += g_id[i].goodsid + ","; | 151 | str += g_id[i].goodsid + ","; |
148 | } | 152 | } |
149 | str=str.substring(0, str.length - 1); | 153 | str=str.substring(0, str.length - 1); |
150 | - app.request.get("/api/weshop/goods/getgoodslistOrdby?store_id=" + os.stoid + "&goodsidlist=" + str, { | 154 | + await app.request.get("/api/weshop/goods/getgoodslistOrdby?store_id=" + os.stoid + "&goodsidlist=" + str, { |
151 | isShowLoading:false, | 155 | isShowLoading:false, |
152 | success: function(res) { | 156 | success: function(res) { |
153 | 157 | ||
@@ -179,8 +183,8 @@ Component({ | @@ -179,8 +183,8 @@ Component({ | ||
179 | } | 183 | } |
180 | 184 | ||
181 | //---控制有没有加载更多的按钮--- | 185 | //---控制有没有加载更多的按钮--- |
182 | - if (th.data.firist_type_curr == th.data.firist_type_data.length) {th.setData({ goods_btn: [] }); } | ||
183 | - else th.setData({ goods_btn: res.data}); | 186 | + if (th.data.firist_type_curr >= len) {th.setData({ goods_btn: [] }); } |
187 | + else th.setData({ goods_btn: [1,2]}); | ||
184 | } | 188 | } |
185 | } | 189 | } |
186 | 190 | ||
@@ -199,7 +203,7 @@ Component({ | @@ -199,7 +203,7 @@ Component({ | ||
199 | if(th.data.is_hot) r_data.is_hot=th.data.is_hot; | 203 | if(th.data.is_hot) r_data.is_hot=th.data.is_hot; |
200 | if(th.data.is_new) r_data.is_new=th.data.is_new; | 204 | if(th.data.is_new) r_data.is_new=th.data.is_new; |
201 | 205 | ||
202 | - app.request.promiseGet("/api/weshop/goods/page", { | 206 | + await app.request.promiseGet("/api/weshop/goods/page", { |
203 | data:r_data | 207 | data:r_data |
204 | }).then(res => { | 208 | }).then(res => { |
205 | //商品地址 | 209 | //商品地址 |
@@ -216,7 +220,7 @@ Component({ | @@ -216,7 +220,7 @@ Component({ | ||
216 | break; | 220 | break; |
217 | case "3": | 221 | case "3": |
218 | var item = {}; | 222 | var item = {}; |
219 | - app.request.promiseGet("/api/weshop/goodsGroup/pageGoodsList", { | 223 | + await app.request.promiseGet("/api/weshop/goodsGroup/pageGoodsList", { |
220 | data: { | 224 | data: { |
221 | store_id:os.stoid , | 225 | store_id:os.stoid , |
222 | gpid: wgroup, | 226 | gpid: wgroup, |
components/diy_goodsGroup/diy_goodsGroup.wxml
@@ -602,14 +602,16 @@ | @@ -602,14 +602,16 @@ | ||
602 | </block> | 602 | </block> |
603 | <view class="clear"></view> | 603 | <view class="clear"></view> |
604 | </view> | 604 | </view> |
605 | + | ||
606 | + | ||
605 | <!-- 商品的显示不是左右 --> | 607 | <!-- 商品的显示不是左右 --> |
606 | <block wx:if="{{object.column!=5}}"> | 608 | <block wx:if="{{object.column!=5}}"> |
607 | -<block wx:if="{{object.classstyle=='1' }}"><view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}" style="border: none"> | 609 | +<block wx:if="{{classstyle_id=='1' }}"><view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}" style="border: none"> |
608 | <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none"> | 610 | <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none"> |
609 | {{loadText}} | 611 | {{loadText}} |
610 | </button> | 612 | </button> |
611 | </view></block> | 613 | </view></block> |
612 | -<block wx:if="{{object.classstyle!='1' }}"> | 614 | +<block wx:if="{{classstyle_id!='1' }}"> |
613 | <view class="button-wrapper" wx:if="{{object.goodscount * page <total }}" style="border: none"> | 615 | <view class="button-wrapper" wx:if="{{object.goodscount * page <total }}" style="border: none"> |
614 | <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none">{{loadText}}</button> | 616 | <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none">{{loadText}}</button> |
615 | </view> | 617 | </view> |
components/diy_scan/diy_scan.js
0 → 100644
1 | +Component({ | ||
2 | + properties: { | ||
3 | + object: { | ||
4 | + type: Object, | ||
5 | + value: null | ||
6 | + }, | ||
7 | + // 这里定义了innerText属性,属性值可以在组件使用时指定 | ||
8 | + }, | ||
9 | + data: { | ||
10 | + // 这里是一些组件内部数据 | ||
11 | + someData: {}, | ||
12 | + left:getApp().globalData.windowWidth-50, | ||
13 | + top:200, | ||
14 | + }, | ||
15 | + methods: { | ||
16 | + // 这里是一个自定义方法 | ||
17 | + customMethod() { }, | ||
18 | + //-- 如果触摸移动 -- | ||
19 | + setTouchMove:function (e) { | ||
20 | + var w=getApp().globalData.windowWidth; | ||
21 | + if(e.touches[0].clientX<10 || e.touches[0].clientX>w-50) return false; | ||
22 | + if(e.touches[0].clientY<10) return false; | ||
23 | + this.setData({left: e.touches[0].clientX,top: e.touches[0].clientY}) | ||
24 | + }, | ||
25 | + | ||
26 | + //-- 扫描成功之后 -- | ||
27 | + getScancode:function(){ | ||
28 | + var _this = this; | ||
29 | + //-- 允许从相机和相册扫码 -- | ||
30 | + wx.scanCode({ | ||
31 | + success: (res) => { | ||
32 | + var result = res.result; | ||
33 | + wx.navigateTo({ | ||
34 | + url: "/pages/goods/search/search?s_key=" + result, | ||
35 | + }); | ||
36 | + } | ||
37 | + }) | ||
38 | + } | ||
39 | + } | ||
40 | +}) | ||
0 | \ No newline at end of file | 41 | \ No newline at end of file |
components/diy_scan/diy_scan.json
0 → 100644
components/diy_scan/diy_scan.wxml
0 → 100644
1 | +<view class="scan_view" disable-scroll="true" bindtap='getScancode' style="top:{{top}}px;left:{{left}}px;" bindtouchmove="setTouchMove"> | ||
2 | + <view style="text-align: center;"> | ||
3 | + <image class="cs-img" src="{{object.img}}"></image> | ||
4 | + <view class="s_title" wx:if="{{object.title!=''}}">{{object.title}}</view> | ||
5 | + </view> | ||
6 | +</view> | ||
7 | + |
components/diy_scan/diy_scan.wxss
0 → 100644
1 | +.scan_view{ | ||
2 | + position: fixed;z-index: 100; left: 0; top: 0; width: 100rpx; height: 100rpx; | ||
3 | + border-radius: 50%; background-color: rgba(125,125,2,0.5);box-shadow: #ccc 0px 0px 70px 1px; | ||
4 | + display: flex;align-items: center;justify-content: center; color: #f8f8f8; | ||
5 | +} | ||
6 | +.cs-img{ width: 32rpx; height: 32rpx; } | ||
7 | +.s_title{ font-size: 20rpx;} | ||
0 | \ No newline at end of file | 8 | \ No newline at end of file |
components/diy_video/diy_video.js
1 | +var t = getApp(), | ||
2 | + a = t.request, | ||
3 | + os = t.globalData.setting; | ||
4 | + | ||
1 | Component({ | 5 | Component({ |
2 | properties: { | 6 | properties: { |
3 | object: { | 7 | object: { |
@@ -11,10 +15,17 @@ Component({ | @@ -11,10 +15,17 @@ Component({ | ||
11 | // 这里是一些组件内部数据 | 15 | // 这里是一些组件内部数据 |
12 | someData: {}, | 16 | someData: {}, |
13 | videoUrl: "", | 17 | videoUrl: "", |
18 | + url:os.imghost | ||
14 | }, | 19 | }, |
15 | 20 | ||
16 | - ready: function () { | ||
17 | - this.create_url(); | 21 | + ready: function () { |
22 | + //-- 如果是本地视频的时候 -- | ||
23 | + if(this.properties.object.style!=2){ | ||
24 | + //网络地址 | ||
25 | + this.create_url(); | ||
26 | + }else{ | ||
27 | + this.setData({videoUrl:this.properties.object.src}); | ||
28 | + } | ||
18 | }, | 29 | }, |
19 | methods: { | 30 | methods: { |
20 | // 这里是一个自定义方法 | 31 | // 这里是一个自定义方法 |
components/diy_video/diy_video.wxml
packageA/pages/chongzhi/chongzhi.wxml
@@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
36 | <view class="bottom" wx:if="{{currentIndex == 0}}" > | 36 | <view class="bottom" wx:if="{{currentIndex == 0}}" > |
37 | <text wx:if="{{g_filter.is_acting(item.EndDate)}}" | 37 | <text wx:if="{{g_filter.is_acting(item.EndDate)}}" |
38 | catchtap="viewDetails" data-index="{{index}}" class="btn" >立即使用</text> | 38 | catchtap="viewDetails" data-index="{{index}}" class="btn" >立即使用</text> |
39 | + <text wx:else class="btn" style="background-color: #ccc;">已过期</text> | ||
39 | <text data-index="{{index}}" class="btn details" >详情</text> | 40 | <text data-index="{{index}}" class="btn details" >详情</text> |
40 | </view> | 41 | </view> |
41 | <view class="bottom" wx:if="{{currentIndex == 1}}" > | 42 | <view class="bottom" wx:if="{{currentIndex == 1}}" > |
packageA/pages/liveStreamDetails/liveStreamDetails.js
@@ -399,13 +399,18 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | @@ -399,13 +399,18 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | ||
399 | this.getSystemInfo(); | 399 | this.getSystemInfo(); |
400 | 400 | ||
401 | var first_leader=options.first_leader; | 401 | var first_leader=options.first_leader; |
402 | + var staffId=options.staffId; | ||
403 | + var storageId=options.storageId; | ||
404 | + | ||
402 | if(first_leader){ | 405 | if(first_leader){ |
403 | //-- user_id代过来免登陆 -- | 406 | //-- user_id代过来免登陆 -- |
404 | getApp().globalData.first_leader=first_leader; | 407 | getApp().globalData.first_leader=first_leader; |
405 | //调用接口判断是不是会员 | 408 | //调用接口判断是不是会员 |
406 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+o.stoid+"/"+first_leader,{}).then(res=>{ | 409 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+o.stoid+"/"+first_leader,{}).then(res=>{ |
407 | if(res.data.code==0){ | 410 | if(res.data.code==0){ |
408 | - getApp().globalData.guide_id=res.data.data.id; | 411 | + getApp().globalData.guide_id=res.data.data.id; |
412 | + getApp().globalData.staffId=staffId; | ||
413 | + getApp().globalData.storageId=storageId; | ||
409 | } | 414 | } |
410 | }) | 415 | }) |
411 | } | 416 | } |
@@ -420,6 +425,22 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | @@ -420,6 +425,22 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | ||
420 | that.setData({ | 425 | that.setData({ |
421 | details: obj | 426 | details: obj |
422 | }) | 427 | }) |
428 | + | ||
429 | + //-- 如果是导购的时候 -- | ||
430 | + if(getApp().globalData.guide_id && getApp().globalData.user_id){ | ||
431 | + //报错领取记录 | ||
432 | + var record={}; | ||
433 | + record.storeId=os.stoid; | ||
434 | + record.ReceiveTime=ut.formatTime(); | ||
435 | + record.ReceiveType=7; | ||
436 | + record.ReceiveUserId=getApp().globalData.user_id; | ||
437 | + record.ShareStaffId=getApp().globalData.staffId; | ||
438 | + record.ShareStorageId=getApp().globalData.storageId; | ||
439 | + record.shareActId=details.id; | ||
440 | + record.shareActName=details.name; | ||
441 | + getApp().request.promiseGet.post('api/weshop/MdReceiveType/saveReceive',{data:record}).then(res=>{}) | ||
442 | + } | ||
443 | + | ||
423 | 444 | ||
424 | 445 | ||
425 | // 请求主图 | 446 | // 请求主图 |
pages/activity/pind_list/pind_list.js
@@ -14,12 +14,14 @@ Page({ | @@ -14,12 +14,14 @@ Page({ | ||
14 | timer:null, | 14 | timer:null, |
15 | ismore:1, | 15 | ismore:1, |
16 | isshow:0, | 16 | isshow:0, |
17 | - iurl: os.imghost, | 17 | + iurl: os.imghost, |
18 | + ad_data:null, | ||
18 | }, | 19 | }, |
19 | 20 | ||
20 | //------初始化加载---------- | 21 | //------初始化加载---------- |
21 | onLoad: function(t) { | 22 | onLoad: function(t) { |
22 | var first_leader = t.first_leader; | 23 | var first_leader = t.first_leader; |
24 | + var th=this; | ||
23 | 25 | ||
24 | console.log("------------"); | 26 | console.log("------------"); |
25 | console.log(first_leader); | 27 | console.log(first_leader); |
@@ -33,6 +35,22 @@ Page({ | @@ -33,6 +35,22 @@ Page({ | ||
33 | } | 35 | } |
34 | }) | 36 | }) |
35 | } | 37 | } |
38 | + | ||
39 | + getApp().request.promiseGet("/api/weshop/ad/page?pid=801&store_id=" + os.stoid, { | ||
40 | + data: { | ||
41 | + enabled: 1 | ||
42 | + } | ||
43 | + }).then(res => { | ||
44 | + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ | ||
45 | + var a = res.data.data.pageData; | ||
46 | + var tt = { | ||
47 | + 'ad_code': os.imghost + a[0].ad_code, | ||
48 | + 'media_link': '', | ||
49 | + 'ad_weapplink':a[0].ad_weapplink | ||
50 | + }; | ||
51 | + th.setData({ad_data:tt}); | ||
52 | + } | ||
53 | + }) | ||
36 | }, | 54 | }, |
37 | 55 | ||
38 | onShow: function(t) { | 56 | onShow: function(t) { |
pages/activity/pind_list/pind_list.wxml
@@ -2,8 +2,13 @@ | @@ -2,8 +2,13 @@ | ||
2 | 2 | ||
3 | <view class=" body_frame"> | 3 | <view class=" body_frame"> |
4 | 4 | ||
5 | -<image class="xc-top-img" src="{{url}}/miniapp/images/team.jpg"> | ||
6 | -</image> | 5 | +<block wx:if="{{ad_data}}"> |
6 | + <image class="xc-top-img" src="{{ad_data.ad_code}}"></image> | ||
7 | +</block> | ||
8 | +<block wx:else> | ||
9 | + <image class="xc-top-img" src="{{url}}/miniapp/images/team.jpg"></image> | ||
10 | +</block> | ||
11 | + | ||
7 | 12 | ||
8 | <view class="kill-list"> | 13 | <view class="kill-list"> |
9 | <view class="kill-item" wx:for="{{goodlist}}" wx:if="{{item.djs.hide==1}}"> | 14 | <view class="kill-item" wx:for="{{goodlist}}" wx:if="{{item.djs.hide==1}}"> |
pages/activity/seckill_list/seckill_list.js
@@ -11,11 +11,13 @@ Page({ | @@ -11,11 +11,13 @@ Page({ | ||
11 | timer:null, | 11 | timer:null, |
12 | ismore:1, //是否可以加载更多 | 12 | ismore:1, //是否可以加载更多 |
13 | isshow:0, | 13 | isshow:0, |
14 | + ad_data:null, | ||
14 | }, | 15 | }, |
15 | 16 | ||
16 | //------初始化加载---------- | 17 | //------初始化加载---------- |
17 | onLoad: function(t) { | 18 | onLoad: function(t) { |
18 | var first_leader = t.first_leader; | 19 | var first_leader = t.first_leader; |
20 | + var th=this; | ||
19 | 21 | ||
20 | console.log("------------"); | 22 | console.log("------------"); |
21 | console.log(first_leader); | 23 | console.log(first_leader); |
@@ -29,6 +31,23 @@ Page({ | @@ -29,6 +31,23 @@ Page({ | ||
29 | } | 31 | } |
30 | }) | 32 | }) |
31 | } | 33 | } |
34 | + | ||
35 | + getApp().request.promiseGet("/api/weshop/ad/page?pid=701&store_id=" + os.stoid, { | ||
36 | + data: { | ||
37 | + enabled: 1 | ||
38 | + } | ||
39 | + }).then(res => { | ||
40 | + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ | ||
41 | + var a = res.data.data.pageData; | ||
42 | + var tt = { | ||
43 | + 'ad_code': os.imghost + a[0].ad_code, | ||
44 | + 'media_link': '', | ||
45 | + 'ad_weapplink':a[0].ad_weapplink | ||
46 | + }; | ||
47 | + th.setData({ad_data:tt}); | ||
48 | + } | ||
49 | + }) | ||
50 | + | ||
32 | }, | 51 | }, |
33 | 52 | ||
34 | 53 |
pages/activity/seckill_list/seckill_list.wxml
@@ -2,8 +2,12 @@ | @@ -2,8 +2,12 @@ | ||
2 | <block wx:if="{{isshow}}"> | 2 | <block wx:if="{{isshow}}"> |
3 | <view class=" body_frame"> | 3 | <view class=" body_frame"> |
4 | 4 | ||
5 | -<image class="xc-top-img" src="{{url}}/miniapp/images/seckill_top_img.jpg"> | ||
6 | -</image> | 5 | +<block wx:if="{{ad_data}}"> |
6 | + <image class="xc-top-img" src="{{ad_data.ad_code}}"></image> | ||
7 | +</block> | ||
8 | +<block wx:else> | ||
9 | + <image class="xc-top-img" src="{{url}}/miniapp/images/seckill_top_img.jpg"></image> | ||
10 | +</block> | ||
7 | 11 | ||
8 | 12 | ||
9 | <view class="kill-list abs seckill_list"> | 13 | <view class="kill-list abs seckill_list"> |
pages/cart/cart2/cart2.js
@@ -946,7 +946,7 @@ Page({ | @@ -946,7 +946,7 @@ Page({ | ||
946 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ | 946 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ |
947 | data:{store_id:os.stoid,id:no_ex_id} | 947 | data:{store_id:os.stoid,id:no_ex_id} |
948 | }).then(res=>{ | 948 | }).then(res=>{ |
949 | - if(res.data.code==0){ | 949 | + if(res.data.code==0 && res.data.data && res.data.data.length>0){ |
950 | by_qc=res.data.data[0]; | 950 | by_qc=res.data.data[0]; |
951 | } | 951 | } |
952 | }) | 952 | }) |
@@ -1442,7 +1442,7 @@ Page({ | @@ -1442,7 +1442,7 @@ Page({ | ||
1442 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ | 1442 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ |
1443 | data:{store_id:os.stoid,id:no_ex_id} | 1443 | data:{store_id:os.stoid,id:no_ex_id} |
1444 | }).then(res=>{ | 1444 | }).then(res=>{ |
1445 | - if(res.data.code==0){ | 1445 | + if(res.data.code==0 && res.data.data && res.data.data.length>0){ |
1446 | no_by_data=res.data.data[0]; | 1446 | no_by_data=res.data.data[0]; |
1447 | //如果有设置不包邮区域的时候 | 1447 | //如果有设置不包邮区域的时候 |
1448 | if(res.data.data[0].region_list){ | 1448 | if(res.data.data[0].region_list){ |
pages/giftpack/buygiftpack/giftpackbuy.js
@@ -25,6 +25,7 @@ Page({ | @@ -25,6 +25,7 @@ Page({ | ||
25 | curpage: 1, //当前分页数 | 25 | curpage: 1, //当前分页数 |
26 | pageSize: 10, //页大小 | 26 | pageSize: 10, //页大小 |
27 | total: 0, //总数量 | 27 | total: 0, //总数量 |
28 | + ad_data:null, | ||
28 | }, | 29 | }, |
29 | onLoad: function(options) { | 30 | onLoad: function(options) { |
30 | 31 | ||
@@ -35,6 +36,25 @@ Page({ | @@ -35,6 +36,25 @@ Page({ | ||
35 | getStorageID: a.stoid, | 36 | getStorageID: a.stoid, |
36 | getUserID: d.user_id | 37 | getUserID: d.user_id |
37 | }) | 38 | }) |
39 | + | ||
40 | + | ||
41 | + getApp().request.promiseGet("/api/weshop/ad/page?pid=901&store_id=" + os.stoid, { | ||
42 | + data: { | ||
43 | + enabled: 1 | ||
44 | + } | ||
45 | + }).then(res => { | ||
46 | + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ | ||
47 | + var a = res.data.data.pageData; | ||
48 | + var tt = { | ||
49 | + 'ad_code': os.imghost + a[0].ad_code, | ||
50 | + 'media_link': '', | ||
51 | + 'ad_weapplink':a[0].ad_weapplink, | ||
52 | + 'bgcolor':a[0].bgcolor, | ||
53 | + }; | ||
54 | + th.setData({ad_data:tt}); | ||
55 | + } | ||
56 | + }) | ||
57 | + | ||
38 | 58 | ||
39 | }, | 59 | }, |
40 | onShow: function() { | 60 | onShow: function() { |
@@ -73,6 +93,13 @@ Page({ | @@ -73,6 +93,13 @@ Page({ | ||
73 | "userId": that.getUserID, //用户ID | 93 | "userId": that.getUserID, //用户ID |
74 | "buyFrom": 2 | 94 | "buyFrom": 2 |
75 | }; | 95 | }; |
96 | + | ||
97 | + //-- 分享导购要记录 -- | ||
98 | + if(getApp().globalData.guide_id){ | ||
99 | + json.guide_id=getApp().globalData.guide_id; | ||
100 | + } | ||
101 | + | ||
102 | + | ||
76 | var data = JSON.stringify(json); | 103 | var data = JSON.stringify(json); |
77 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; | 104 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; |
78 | getApp().request.json_post(url, json, | 105 | getApp().request.json_post(url, json, |
@@ -134,6 +161,13 @@ Page({ | @@ -134,6 +161,13 @@ Page({ | ||
134 | "userId": that.getUserID, //用户ID | 161 | "userId": that.getUserID, //用户ID |
135 | "buyFrom": 2 | 162 | "buyFrom": 2 |
136 | }; | 163 | }; |
164 | + | ||
165 | + //-- 分享导购要记录 -- | ||
166 | + if(getApp().globalData.guide_id){ | ||
167 | + json.guide_id=getApp().globalData.guide_id; | ||
168 | + } | ||
169 | + | ||
170 | + | ||
137 | var data = JSON.stringify(json); | 171 | var data = JSON.stringify(json); |
138 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; | 172 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; |
139 | getApp().request.json_post(url, json, | 173 | getApp().request.json_post(url, json, |
pages/giftpack/buygiftpack/giftpackbuy.wxml
1 | -<view class="top_img"> | ||
2 | - <view class="top_img"> | ||
3 | - <image src="{{iurl+'/miniapp/images/giftbag/gift00.jpg?v=2019'}}" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].lbUrl"></image> | ||
4 | - </view> | 1 | +<view class="top_img" style="background-color: {{ad_data?ad_data.bgcolor:'rgb(250, 120, 88)'}};"> |
2 | + <block wx:if="{{ad_data}}"> | ||
3 | + <view class="top_img"> | ||
4 | + <image src="{{ad_data.ad_code}}" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].lbUrl"></image> | ||
5 | + </view> | ||
6 | + </block> | ||
7 | + <block wx:else> | ||
8 | + <view class="top_img"> | ||
9 | + <image src="{{iurl+'/miniapp/images/giftbag/gift00.jpg?v=2019'}}" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].lbUrl"></image> | ||
10 | + </view> | ||
11 | + </block> | ||
12 | + | ||
13 | + | ||
5 | <view class="top_title"> | 14 | <view class="top_title"> |
6 | <view class="top_title_box"> | 15 | <view class="top_title_box"> |
7 | <text class="top_title_redtext">礼包列表</text> | 16 | <text class="top_title_redtext">礼包列表</text> |
pages/giftpack/buygiftpack/giftpackbuy.wxss
pages/giftpack/giftpacklist/giftpacklist.js
@@ -141,10 +141,8 @@ Page({ | @@ -141,10 +141,8 @@ Page({ | ||
141 | 141 | ||
142 | } | 142 | } |
143 | 143 | ||
144 | - | ||
145 | ) | 144 | ) |
146 | 145 | ||
147 | - | ||
148 | }, | 146 | }, |
149 | GetBuyIntegral: function(e) { | 147 | GetBuyIntegral: function(e) { |
150 | var that = this.data; | 148 | var that = this.data; |
@@ -175,6 +173,13 @@ Page({ | @@ -175,6 +173,13 @@ Page({ | ||
175 | "userId": d.user_id, //用户ID | 173 | "userId": d.user_id, //用户ID |
176 | "buyFrom":2 | 174 | "buyFrom":2 |
177 | }; | 175 | }; |
176 | + | ||
177 | + //-- 分享导购要记录 -- | ||
178 | + if(getApp().globalData.guide_id){ | ||
179 | + json.guide_id=getApp().globalData.guide_id; | ||
180 | + } | ||
181 | + | ||
182 | + | ||
178 | var data = JSON.stringify(json); | 183 | var data = JSON.stringify(json); |
179 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; | 184 | var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; |
180 | getApp().request.json_post(url, json, | 185 | getApp().request.json_post(url, json, |
pages/giftpack/mygiftpack/mygiftpack.js
@@ -25,6 +25,7 @@ Page({ | @@ -25,6 +25,7 @@ Page({ | ||
25 | curpage: 1, //当前分页数 | 25 | curpage: 1, //当前分页数 |
26 | pageSize: 10, //页大小 | 26 | pageSize: 10, //页大小 |
27 | total: 0, //总数量 | 27 | total: 0, //总数量 |
28 | + ad_data:null, | ||
28 | }, | 29 | }, |
29 | 30 | ||
30 | onLoad: function(options) { | 31 | onLoad: function(options) { |
@@ -36,6 +37,23 @@ Page({ | @@ -36,6 +37,23 @@ Page({ | ||
36 | loadingType: 0, | 37 | loadingType: 0, |
37 | getDate: i.formatTime(new Date().getTime()) | 38 | getDate: i.formatTime(new Date().getTime()) |
38 | }) | 39 | }) |
40 | + | ||
41 | + getApp().request.promiseGet("/api/weshop/ad/page?pid=901&store_id=" + os.stoid, { | ||
42 | + data: { | ||
43 | + enabled: 1 | ||
44 | + } | ||
45 | + }).then(res => { | ||
46 | + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ | ||
47 | + var a = res.data.data.pageData; | ||
48 | + var tt = { | ||
49 | + 'ad_code': os.imghost + a[0].ad_code, | ||
50 | + 'media_link': '', | ||
51 | + 'ad_weapplink':a[0].ad_weapplink, | ||
52 | + 'bgcolor':a[0].bgcolor, | ||
53 | + }; | ||
54 | + th.setData({ad_data:tt}); | ||
55 | + } | ||
56 | + }) | ||
39 | 57 | ||
40 | }, | 58 | }, |
41 | onShow: function() { | 59 | onShow: function() { |
pages/giftpack/mygiftpack/mygiftpack.wxml
1 | -<view class="top_img"> | ||
2 | - <view class="top_img"> | ||
3 | - <!-- <image src="{{$GetInfo.imgHttp+'/miniapp/images/giftbag/gift00.jpg'}}"></image> --> | ||
4 | - <image src="{{iurl+'/miniapp/images/giftbag/gift00.jpg?v=2019'}}" lazy-load="true"></image> | ||
5 | - </view> | 1 | +<view class="top_img" style="background-color: {{ad_data?ad_data.bgcolor:'rgb(250, 120, 88)'}};"> |
2 | + <block wx:if="{{ad_data}}"> | ||
3 | + <view class="top_img"> | ||
4 | + <image src="{{ad_data.ad_code}}" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].lbUrl"></image> | ||
5 | + </view> | ||
6 | + </block> | ||
7 | + <block wx:else> | ||
8 | + <view class="top_img"> | ||
9 | + <!-- <image src="{{$GetInfo.imgHttp+'/miniapp/images/giftbag/gift00.jpg'}}"></image> --> | ||
10 | + <image src="{{iurl+'/miniapp/images/giftbag/gift00.jpg?v=2019'}}" lazy-load="true"></image> | ||
11 | + </view> | ||
12 | + </block> | ||
13 | + | ||
14 | + | ||
6 | <view class="top_title"> | 15 | <view class="top_title"> |
7 | <view class="top_title_box"> | 16 | <view class="top_title_box"> |
8 | <text class="top_title_blacktext" bindtap="redirectTo" data-url="/pages/giftpack/buygiftpack/giftpackbuy">礼包列表</text> | 17 | <text class="top_title_blacktext" bindtap="redirectTo" data-url="/pages/giftpack/buygiftpack/giftpackbuy">礼包列表</text> |
pages/giftpack/mygiftpack/mygiftpack.wxss
pages/goods/categoryList/categoryList.js
@@ -819,7 +819,7 @@ Page({ | @@ -819,7 +819,7 @@ Page({ | ||
819 | // }, | 819 | // }, |
820 | // 左侧更新 | 820 | // 左侧更新 |
821 | scrollLower: function (data) { | 821 | scrollLower: function (data) { |
822 | - //console.log("上拉加载更多", JSON.stringify(data)) | 822 | + if(this.data.is_no_more) return false; |
823 | var that = this; | 823 | var that = this; |
824 | clearInterval(that.data.timer); | 824 | clearInterval(that.data.timer); |
825 | that.setData({ | 825 | that.setData({ |
@@ -843,18 +843,17 @@ Page({ | @@ -843,18 +843,17 @@ Page({ | ||
843 | }); | 843 | }); |
844 | if (e.data.data.pageData.length > 0) { | 844 | if (e.data.data.pageData.length > 0) { |
845 | s.setData({ | 845 | s.setData({ |
846 | - msgStatus: false, | 846 | + msgStatus: false,is_no_more:0 |
847 | }); | 847 | }); |
848 | //如果有数据 判断分页为第一页的时候直接渲染数据 | 848 | //如果有数据 判断分页为第一页的时候直接渲染数据 |
849 | if (page > 1) { | 849 | if (page > 1) { |
850 | //如果分页不是在第一页 那么就把返回的数据追加到原有数据后面 | 850 | //如果分页不是在第一页 那么就把返回的数据追加到原有数据后面 |
851 | var arr = s.data.requestData | 851 | var arr = s.data.requestData |
852 | - console.log("arr:=" + JSON.stringify(arr)) | ||
853 | - | 852 | + |
854 | for (var i = 0; i < e.data.data.pageData.length;i++){ | 853 | for (var i = 0; i < e.data.data.pageData.length;i++){ |
855 | arr.push(e.data.data.pageData[i]); | 854 | arr.push(e.data.data.pageData[i]); |
856 | } | 855 | } |
857 | - console.log(arr) | 856 | + |
858 | s.setData({ | 857 | s.setData({ |
859 | requestData: arr | 858 | requestData: arr |
860 | }); | 859 | }); |
@@ -875,19 +874,28 @@ Page({ | @@ -875,19 +874,28 @@ Page({ | ||
875 | if (page != 1) { | 874 | if (page != 1) { |
876 | var dataArray = s.data.one_level_classify | 875 | var dataArray = s.data.one_level_classify |
877 | var index = s.data.index | 876 | var index = s.data.index |
878 | - dataArray[index]['items']['is_show_class'] = false | ||
879 | - dataArray[index+1]['items']['is_show_class'] = true | ||
880 | - console.log(dataArray[index + 1]['items']) | ||
881 | - s.setData({ | ||
882 | - msgStatus: true, | ||
883 | - stylePage: 1, | ||
884 | - index: index + 1, | ||
885 | - select_classify_on: index + 1, | ||
886 | - cat_id: dataArray[index + 1]['items']['id'], | ||
887 | - classify_name: dataArray[index + 1]['items']['name'], | ||
888 | - one_level_classify: dataArray | ||
889 | - }); | ||
890 | - s.style(s.data.stylePage, dataArray[index + 1]['items']['id']) | 877 | + dataArray[index]['items']['is_show_class'] = false |
878 | + //没有下一个类别的时候 | ||
879 | + if(index+1>=dataArray.length){ | ||
880 | + s.setData({is_no_more:1}); | ||
881 | + }else{ | ||
882 | + dataArray[index+1]['items']['is_show_class'] = true | ||
883 | + console.log(dataArray[index + 1]['items']) | ||
884 | + s.setData({ | ||
885 | + msgStatus: true, | ||
886 | + stylePage: 1, | ||
887 | + index: index + 1, | ||
888 | + select_classify_on: index + 1, | ||
889 | + cat_id: dataArray[index + 1]['items']['id'], | ||
890 | + classify_name: dataArray[index + 1]['items']['name'], | ||
891 | + one_level_classify: dataArray, | ||
892 | + is_no_more:0 | ||
893 | + }); | ||
894 | + s.style(s.data.stylePage, dataArray[index + 1]['items']['id']) | ||
895 | + } | ||
896 | + | ||
897 | + | ||
898 | + | ||
891 | }else{ | 899 | }else{ |
892 | //没有数据而且是第一页的时候 | 900 | //没有数据而且是第一页的时候 |
893 | s.setData({ | 901 | s.setData({ |
@@ -897,7 +905,8 @@ Page({ | @@ -897,7 +905,8 @@ Page({ | ||
897 | s.setData({ | 905 | s.setData({ |
898 | msgStatus: true, | 906 | msgStatus: true, |
899 | countDownNum: countDownNum, | 907 | countDownNum: countDownNum, |
900 | - requestData: [] | 908 | + requestData: [], |
909 | + is_no_more:0, | ||
901 | }); | 910 | }); |
902 | s.data.timer=setInterval(function () { | 911 | s.data.timer=setInterval(function () { |
903 | if (countDownNum == 0) { | 912 | if (countDownNum == 0) { |
@@ -1013,12 +1022,11 @@ Page({ | @@ -1013,12 +1022,11 @@ Page({ | ||
1013 | if(url[0]!='/') url='/'+url; | 1022 | if(url[0]!='/') url='/'+url; |
1014 | getApp().goto(url); | 1023 | getApp().goto(url); |
1015 | }, | 1024 | }, |
1016 | - | ||
1017 | - | ||
1018 | - onShareTimeline() { | ||
1019 | - return { | ||
1020 | - title: '商品分类-' + getApp().globalData.config.store_name, | ||
1021 | - } | ||
1022 | - }, | 1025 | + |
1026 | + onShareTimeline(){ | ||
1027 | + return { | ||
1028 | + title:'商品分类-'+getApp().globalData.config.store_name, | ||
1029 | + } | ||
1030 | + } | ||
1023 | 1031 | ||
1024 | }); | 1032 | }); |
1025 | \ No newline at end of file | 1033 | \ No newline at end of file |
pages/goods/categoryList/categoryList.wxml
@@ -493,6 +493,9 @@ | @@ -493,6 +493,9 @@ | ||
493 | </block> | 493 | </block> |
494 | </view> | 494 | </view> |
495 | </navigator> | 495 | </navigator> |
496 | + <!-- 暂无更多 --> | ||
497 | + <view style="height: 30rpx;line-height: 30rpx;margin-top: 20rpx;font-size: 25rpx; text-align: center;" | ||
498 | + wx:if="{{is_no_more}}">暂无更多</view> | ||
496 | </view> | 499 | </view> |
497 | <view class="no-data" wx:if="{{msgStatus == true}}"> | 500 | <view class="no-data" wx:if="{{msgStatus == true}}"> |
498 | <!-- <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> --> | 501 | <!-- <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> --> |
@@ -500,8 +503,9 @@ | @@ -500,8 +503,9 @@ | ||
500 | <view wx:if="{{msgStatus == true && lastMsg == false}}" class="no-data-title" style="text-align:center;margin-top:100px"> | 503 | <view wx:if="{{msgStatus == true && lastMsg == false}}" class="no-data-title" style="text-align:center;margin-top:100px"> |
501 | <view style="color:#444;line-height:30px;">该类别暂无推荐商品</view><view style="color:#444;line-height:30px;"> {{countDownNum}} 秒后自动跳到下一个类别</view> </view> | 504 | <view style="color:#444;line-height:30px;">该类别暂无推荐商品</view><view style="color:#444;line-height:30px;"> {{countDownNum}} 秒后自动跳到下一个类别</view> </view> |
502 | <view wx:elif="{{lastMsg == true && msgStatus == true}}" class="no-data-title" style="text-align:center;margin-top:100px">该类别暂无推荐商品</view> | 505 | <view wx:elif="{{lastMsg == true && msgStatus == true}}" class="no-data-title" style="text-align:center;margin-top:100px">该类别暂无推荐商品</view> |
503 | - <!-- <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> --> | 506 | + <!-- <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> --> |
504 | </view> | 507 | </view> |
508 | + | ||
505 | 509 | ||
506 | </scroll-view> | 510 | </scroll-view> |
507 | <!-- /goodslist --> | 511 | <!-- /goodslist --> |
pages/goods/goodsInfo/buy_integral.wxml
@@ -11,6 +11,7 @@ | @@ -11,6 +11,7 @@ | ||
11 | <text wx:if="{{prom_integral}}">{{prom_integral}}积分</text> | 11 | <text wx:if="{{prom_integral}}">{{prom_integral}}积分</text> |
12 | <text wx:if="{{prom_integral && prom_price}}">+</text> | 12 | <text wx:if="{{prom_integral && prom_price}}">+</text> |
13 | <text wx:if="{{prom_price}}">{{prom_price}}元</text> | 13 | <text wx:if="{{prom_price}}">{{prom_price}}元</text> |
14 | + <text wx:if="{{!prom_integral && !prom_price}}">0积分</text> | ||
14 | </view> | 15 | </view> |
15 | </view> | 16 | </view> |
16 | 17 |
pages/goods/goodsInfo/goodsInfo.js
@@ -314,7 +314,6 @@ Page({ | @@ -314,7 +314,6 @@ Page({ | ||
314 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ | 314 | getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ |
315 | if(res.data.code==0){ | 315 | if(res.data.code==0){ |
316 | getApp().globalData.guide_id=res.data.data.id; | 316 | getApp().globalData.guide_id=res.data.data.id; |
317 | - console.log("log2---".getApp().globalData.guide_id); | ||
318 | } | 317 | } |
319 | }) | 318 | }) |
320 | } | 319 | } |
@@ -3605,6 +3604,12 @@ Page({ | @@ -3605,6 +3604,12 @@ Page({ | ||
3605 | 'store_id': os.stoid, | 3604 | 'store_id': os.stoid, |
3606 | 'type': 5 | 3605 | 'type': 5 |
3607 | }; | 3606 | }; |
3607 | + | ||
3608 | + //-- 导购ID -- | ||
3609 | + if(getApp().globalData.guide_id){ | ||
3610 | + pdata.guide_id=getApp().globalData.guide_id; | ||
3611 | + } | ||
3612 | + | ||
3608 | var app = getApp(), | 3613 | var app = getApp(), |
3609 | th = this; | 3614 | th = this; |
3610 | app.request.post("/api/weshop/couponList/saveCouponList", { | 3615 | app.request.post("/api/weshop/couponList/saveCouponList", { |
@@ -3776,7 +3781,8 @@ Page({ | @@ -3776,7 +3781,8 @@ Page({ | ||
3776 | if(integral){text=integral+"积分"; } | 3781 | if(integral){text=integral+"积分"; } |
3777 | if(pri0 && integral){ text+="+";} | 3782 | if(pri0 && integral){ text+="+";} |
3778 | if(pri0){ text+="¥"+pri0;} | 3783 | if(pri0){ text+="¥"+pri0;} |
3779 | - | 3784 | + |
3785 | + if(!pri0 && !integral){ text="0积分";} | ||
3780 | context.setFillStyle("red"); | 3786 | context.setFillStyle("red"); |
3781 | context.fillText(text, 38 * unit, 215 * unit); | 3787 | context.fillText(text, 38 * unit, 215 * unit); |
3782 | 3788 |
pages/goods/goodsInfo/goodsInfo.wxml
@@ -177,6 +177,7 @@ | @@ -177,6 +177,7 @@ | ||
177 | <text class='gred' wx:else>还差<text style='color:#ff2753'>{{prom_act.ct_num - item.open_num}}</text>人成团 </text> | 177 | <text class='gred' wx:else>还差<text style='color:#ff2753'>{{prom_act.ct_num - item.open_num}}</text>人成团 </text> |
178 | <view class="t_show"> | 178 | <view class="t_show"> |
179 | 剩余 | 179 | 剩余 |
180 | + <text wx:if="{{timer[t_ind].day}}">{{timer[t_ind].day}}天:</text> | ||
180 | <text>{{timer[t_ind].hou}}</text>: | 181 | <text>{{timer[t_ind].hou}}</text>: |
181 | <text>{{timer[t_ind].min}}</text>: | 182 | <text>{{timer[t_ind].min}}</text>: |
182 | <text>{{timer[t_ind].sec}}</text> | 183 | <text>{{timer[t_ind].sec}}</text> |
@@ -235,12 +236,13 @@ | @@ -235,12 +236,13 @@ | ||
235 | <view class="goods-price rel"> | 236 | <view class="goods-price rel"> |
236 | <!-- 价格显示 --> | 237 | <!-- 价格显示 --> |
237 | <view class="co-red" style="overflow: hidden" > | 238 | <view class="co-red" style="overflow: hidden" > |
238 | - <view class="market-price" style="overflow: hidden"> | 239 | + <view class="market-price" style="overflow: hidden; height: 66rpx;"> |
239 | <image class="rel_img" src="{{iurl}}/miniapp/images/integral/integral_red.png"></image> | 240 | <image class="rel_img" src="{{iurl}}/miniapp/images/integral/integral_red.png"></image> |
240 | <block wx:if="{{prom_integral}}">{{prom_integral}} | 241 | <block wx:if="{{prom_integral}}">{{prom_integral}} |
241 | <text class="rel_txt">积分</text></block> | 242 | <text class="rel_txt">积分</text></block> |
242 | <text class="rel_txt" wx:if="{{prom_integral && prom_price}}">+</text> | 243 | <text class="rel_txt" wx:if="{{prom_integral && prom_price}}">+</text> |
243 | - <text class="rel_txt" wx:if="{{prom_price}}" >{{filters.toFix(prom_price,2)}}元</text> | 244 | + <text class="rel_txt" wx:if="{{prom_price}}" >{{filters.toFix(prom_price,2)}}元</text> |
245 | + <text class="rel_txt" wx:if="{{!prom_integral && !prom_price}}">0积分</text> | ||
244 | <text class="rel_txt" decode="{{true}}" space="{{true}}" style="color: #999; text-decoration: line-through;"> 零售价:¥{{data.market_price}}</text> | 246 | <text class="rel_txt" decode="{{true}}" space="{{true}}" style="color: #999; text-decoration: line-through;"> 零售价:¥{{data.market_price}}</text> |
245 | </view> | 247 | </view> |
246 | </view> | 248 | </view> |
pages/index/index/index.json
1 | -{ | ||
2 | - | 1 | +{ |
3 | "usingComponents": { | 2 | "usingComponents": { |
4 | "goods_recommend":"/components/goods_list/goods_list", | 3 | "goods_recommend":"/components/goods_list/goods_list", |
5 | "nav": "/components/diy_nav/diy_nav", | 4 | "nav": "/components/diy_nav/diy_nav", |
@@ -17,6 +16,8 @@ | @@ -17,6 +16,8 @@ | ||
17 | "assist":"/components/diy_assist/diy_assist", | 16 | "assist":"/components/diy_assist/diy_assist", |
18 | "picMax": "/components/diy_picMax/diy_picMax", | 17 | "picMax": "/components/diy_picMax/diy_picMax", |
19 | "mvideo": "/components/diy_video/diy_video", | 18 | "mvideo": "/components/diy_video/diy_video", |
20 | - "service": "/components/diy_service/diy_service" | ||
21 | - } | 19 | + "service": "/components/diy_service/diy_service", |
20 | + "scan": "/components/diy_scan/diy_scan" | ||
21 | + }, | ||
22 | + "enablePullDownRefresh": false | ||
22 | } | 23 | } |
23 | \ No newline at end of file | 24 | \ No newline at end of file |
pages/index/index/index.wxml
@@ -348,6 +348,10 @@ | @@ -348,6 +348,10 @@ | ||
348 | <!--在线上客服--> | 348 | <!--在线上客服--> |
349 | <block wx:if="{{item.ename=='onlineService'}}"> | 349 | <block wx:if="{{item.ename=='onlineService'}}"> |
350 | <service object="{{item.content}}"></service> | 350 | <service object="{{item.content}}"></service> |
351 | + </block> | ||
352 | + <!--扫一扫--> | ||
353 | + <block wx:if="{{item.ename=='scan'}}"> | ||
354 | + <scan object="{{item.content}}"></scan> | ||
351 | </block> | 355 | </block> |
352 | 356 | ||
353 | </view> | 357 | </view> |
pages/team/team_more/team_more.wxml
@@ -17,7 +17,9 @@ | @@ -17,7 +17,9 @@ | ||
17 | <text class='gred' wx:else>还差{{pt_act.ct_num - item.open_num}}人成团</text> | 17 | <text class='gred' wx:else>还差{{pt_act.ct_num - item.open_num}}人成团</text> |
18 | <view> | 18 | <view> |
19 | <view class="time_show_view"> | 19 | <view class="time_show_view"> |
20 | - 剩余<text>{{item.djs.hou}}</text>: | 20 | + 剩余 |
21 | + <text wx:if="{{item.djs.day}}">{{item.djs.day}}天:</text> | ||
22 | + <text>{{item.djs.hou}}</text>: | ||
21 | <text>{{item.djs.min}}</text>: | 23 | <text>{{item.djs.min}}</text>: |
22 | <text>{{item.djs.sec}}</text>结束 | 24 | <text>{{item.djs.sec}}</text>结束 |
23 | </view> | 25 | </view> |
pages/template/index.json
@@ -18,6 +18,8 @@ | @@ -18,6 +18,8 @@ | ||
18 | "assist":"/components/diy_assist/diy_assist", | 18 | "assist":"/components/diy_assist/diy_assist", |
19 | "picMax": "/components/diy_picMax/diy_picMax", | 19 | "picMax": "/components/diy_picMax/diy_picMax", |
20 | "mvideo": "/components/diy_video/diy_video", | 20 | "mvideo": "/components/diy_video/diy_video", |
21 | - "service": "/components/diy_service/diy_service" | ||
22 | - } | 21 | + "service": "/components/diy_service/diy_service", |
22 | + "scan": "/components/diy_scan/diy_scan" | ||
23 | + }, | ||
24 | + "enablePullDownRefresh": false | ||
23 | } | 25 | } |
24 | \ No newline at end of file | 26 | \ No newline at end of file |
pages/template/index.wxml
@@ -57,6 +57,10 @@ | @@ -57,6 +57,10 @@ | ||
57 | <block wx:if="{{item.ename=='onlineService'}}"> | 57 | <block wx:if="{{item.ename=='onlineService'}}"> |
58 | <service object="{{item.content}}"></service> | 58 | <service object="{{item.content}}"></service> |
59 | </block> | 59 | </block> |
60 | + <!--扫一扫--> | ||
61 | + <block wx:if="{{item.ename=='scan'}}"> | ||
62 | + <scan object="{{item.content}}"></scan> | ||
63 | + </block> | ||
60 | </view> | 64 | </view> |
61 | </block> | 65 | </block> |
62 | </view> | 66 | </view> |