Commit 520b4ff840a1e536f6af4042826f189fdf08cacc

Authored by 后端研发-苏明海
2 parents 86c5b521 450ad49c

Merge branch 'dev' into 'test'

Dev

See merge request !679
components/goods_list/goods_list.wxss
@@ -87,7 +87,8 @@ @@ -87,7 +87,8 @@
87 .goods_name { 87 .goods_name {
88 height: 62rpx; 88 height: 62rpx;
89 /* margin-top: 6rpx; */ 89 /* margin-top: 6rpx; */
90 - line-height: 30rpx; 90 + line-height: 1.2;
  91 + margin-bottom: 10rpx;
91 } 92 }
92 93
93 .hang { 94 .hang {
components/my-qrcode/my-qrcode.wxml
@@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
4 <canvas class="qrcode" canvas-id="qrcode{{item.index}}" wx:for="{{barcode_canvas}}"/> 4 <canvas class="qrcode" canvas-id="qrcode{{item.index}}" wx:for="{{barcode_canvas}}"/>
5 <view class="q_code fs28">兑换码:{{object.val}}</view> 5 <view class="q_code fs28">兑换码:{{object.val}}</view>
6 <view class="c-9 pdt10">请向店员出示二维码核销兑换</view> 6 <view class="c-9 pdt10">请向店员出示二维码核销兑换</view>
7 - <!-- <view class="c-9 fs28">有效期:{{object.now}} 至 {{object.validay}}</view> -->  
8 </view> 7 </view>
9 </view> 8 </view>
10 9
packageA/pages/jfbuy/jfbuy.js
@@ -416,7 +416,7 @@ Page({ @@ -416,7 +416,7 @@ Page({
416 viewItemDetails:function(e){ 416 viewItemDetails:function(e){
417 var index=e.currentTarget.dataset.index; 417 var index=e.currentTarget.dataset.index;
418 var item=this.data.list2[index]; 418 var item=this.data.list2[index];
419 - var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+item.goods_id; 419 + var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+item.goods_id+"&title="+item.goods_name;
420 getApp().goto(url); 420 getApp().goto(url);
421 }, 421 },
422 422
packageA/pages/myGift/myGift.wxml
@@ -15,8 +15,20 @@ @@ -15,8 +15,20 @@
15 <!-- 价格 --> 15 <!-- 价格 -->
16 <view class="flex jc_sb ai-center pdb10"> 16 <view class="flex jc_sb ai-center pdb10">
17 <view class="flex ai-center"> 17 <view class="flex ai-center">
18 - <view class="c-red fs28"><text class="rmb">{{item.lbprice}}</text>/{{item.lbintegral}}积分</view>  
19 - <view class="fs22 c-a4 line-through mgl10">零售价{{item.oldprice}}</view> 18 + <view class="c-red fs28">
  19 + <block wx:if="{{item.lbprice>0 && item.lbintegral}}">
  20 + <text class="rmb">{{filter.toFix(item.lbprice,2)}}</text>/{{item.lbintegral}}积分
  21 + </block>
  22 + <block wx:elif="{{item.lbprice>0 || item.lbintegral}}">
  23 + <block wx:if="{{item.lbprice>0}}" >
  24 + <text class="rmb">{{filter.toFix(item.lbprice,2) }}</text>
  25 + </block>
  26 + <block wx:if="{{item.lbintegral>0}}">
  27 + {{item.lbintegral}}积分
  28 + </block>
  29 + </block>
  30 + </view>
  31 + <view class="fs22 c-a4 line-through mgl10">零售价{{filter.toFix(item.oldprice,2)}}</view>
20 </view> 32 </view>
21 <view class="fs24 c-a4">已售{{item.salenum}}件</view> 33 <view class="fs24 c-a4">已售{{item.salenum}}件</view>
22 </view> 34 </view>
@@ -26,8 +38,8 @@ @@ -26,8 +38,8 @@
26 </view> 38 </view>
27 </view> 39 </view>
28 <view class="btn-container pd20"> 40 <view class="btn-container pd20">
29 - <view bindtap="GetBuyIntegral" data-index="{{index}}" class="btn red">立即兑换</view>  
30 - <view bindtap="GetBuyPrice" data-index="{{index}}" class="btn pink">立即购买</view> 41 + <view wx:if="{{item.lbintegral>0}}" bindtap="GetBuyIntegral" data-index="{{index}}" class="btn red">立即兑换</view>
  42 + <view wx:if="{{item.lbprice>0}}" bindtap="GetBuyPrice" data-index="{{index}}" class="btn pink">立即购买</view>
31 </view> 43 </view>
32 </view> 44 </view>
33 </block> 45 </block>
packageA/pages/myGift/myGift.wxss
@@ -138,7 +138,7 @@ page { @@ -138,7 +138,7 @@ page {
138 138
139 .btn-container { 139 .btn-container {
140 display: flex; 140 display: flex;
141 - justify-content: space-around; 141 + /*justify-content: space-around;*/
142 font-size: 26rpx; 142 font-size: 26rpx;
143 } 143 }
144 144
@@ -146,6 +146,7 @@ page { @@ -146,6 +146,7 @@ page {
146 padding: 20rpx; 146 padding: 20rpx;
147 flex: 1; 147 flex: 1;
148 text-align: center; 148 text-align: center;
  149 + max-width: 50%;
149 } 150 }
150 151
151 .btn.red { 152 .btn.red {
packageA/pages/myGiftDetails/myGiftDetails.js
@@ -57,7 +57,7 @@ Page({ @@ -57,7 +57,7 @@ Page({
57 // store_id: app.globalData.setting.stoid, 57 // store_id: app.globalData.setting.stoid,
58 // user_id: app.globalData.user_id, 58 // user_id: app.globalData.user_id,
59 // }; 59 // };
60 - 60 + //购买的时候是0,购买后是1
61 if(this.data.index == 0) { 61 if(this.data.index == 0) {
62 // data.lbid = this.data.id; 62 // data.lbid = this.data.id;
63 // 请求数据 63 // 请求数据
@@ -68,60 +68,100 @@ Page({ @@ -68,60 +68,100 @@ Page({
68 }, 68 },
69 isShowLoading: true, 69 isShowLoading: true,
70 }).then(function(res) { 70 }).then(function(res) {
71 - self.setData({  
72 - details: res.data.data.pageData[0],  
73 - });  
74 - });  
75 -  
76 - app.request.promiseGet('/api/weshop/libao/libaoList/page', {  
77 - data: {  
78 - store_id: app.globalData.setting.stoid,  
79 - lbid: this.data.id,  
80 - },  
81 - isShowLoading: true,  
82 - }).then(function(res) {  
83 - self.setData({  
84 - list: res.data.data.pageData,  
85 - }); 71 +
  72 + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
  73 + var da= res.data.data.pageData[0]
  74 + self.setData({ details:da, });
  75 +
  76 + //礼包有俩种类型
  77 + if(da.lbtype==1){
  78 + app.request.promiseGet('/api/weshop/libao/libaoList/page', {
  79 + data: {
  80 + store_id: app.globalData.setting.stoid,
  81 + lbid: self.data.id,pageSize:500
  82 + },
  83 + isShowLoading: true,
  84 + }).then(function(res) {
  85 + self.setData({
  86 + list: res.data.data.pageData,
  87 + });
  88 + });
  89 + }else{
  90 + app.request.promiseGet('/api/weshop/libao/libaoList/listLQ', {
  91 + data: {
  92 + store_id: app.globalData.setting.stoid,
  93 + lbid: self.data.id,
  94 + },
  95 + isShowLoading: true,
  96 + }).then(function(res) {
  97 + if(res.data.code==0){
  98 + self.setData({
  99 + list: res.data.data,
  100 + });
  101 + }
  102 + });
  103 + }
  104 +
  105 + }
86 }); 106 });
  107 +
87 } else if(this.data.index == 1) { 108 } else if(this.data.index == 1) {
88 app.request.promiseGet('/api/weshop/libao/libaoFormvip/page', { 109 app.request.promiseGet('/api/weshop/libao/libaoFormvip/page', {
89 data: { 110 data: {
90 store_id: app.globalData.setting.stoid, 111 store_id: app.globalData.setting.stoid,
91 user_id: app.globalData.user_id, 112 user_id: app.globalData.user_id,
92 - id: this.data.id, 113 + id: this.data.id
93 }, 114 },
94 isShowLoading: true, 115 isShowLoading: true,
95 }).then(function(res) { 116 }).then(function(res) {
96 // console.log('res3-->', res); 117 // console.log('res3-->', res);
97 if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ 118 if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
  119 +
  120 + var da= res.data.data.pageData[0]
98 self.setData({ 121 self.setData({
99 - details: res.data.data.pageData[0], 122 + details:da,
100 }); 123 });
101 - }  
102 - });  
103 -  
104 - app.request.promiseGet('/api/weshop/libao/libaoListvip/page', {  
105 - data: {  
106 - store_id: app.globalData.setting.stoid,  
107 - lbvipid: this.data.id,  
108 - },  
109 - isShowLoading: true,  
110 - }).then(function(res) {  
111 - // console.log('res4-->', res);  
112 - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0) {  
113 - var list_arr=res.data.data.pageData;  
114 - for(var i in list_arr){  
115 - list_arr[i].alsonum= list_arr[i]['goods_num'] - list_arr[i]['usenum'];//剩余次数 124 +
  125 + if(da.lbtype==1){
  126 + app.request.promiseGet('/api/weshop/libao/libaoListvip/page', {
  127 + data: {
  128 + store_id: app.globalData.setting.stoid,
  129 + lbvipid: self.data.id,pageSize:500
  130 + },
  131 + isShowLoading: true,
  132 + }).then(function(res) {
  133 + // console.log('res4-->', res);
  134 + if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0) {
  135 + var list_arr=res.data.data.pageData;
  136 + for(var i in list_arr){
  137 + list_arr[i].alsonum= list_arr[i]['goods_num'] - list_arr[i]['usenum'];//剩余次数
  138 + }
  139 + self.setData({
  140 + list: res.data.data.pageData,
  141 + });
  142 + }
  143 + });
  144 + }else{
  145 + app.request.promiseGet('/api/weshop/libao/libaoListvip/listLQ', {
  146 + data: {
  147 + store_id: app.globalData.setting.stoid,
  148 + lbvipid: self.data.id,
  149 + user_id:app.globalData.user_id
  150 + },
  151 + isShowLoading: true,
  152 + }).then(function(res) {
  153 + // console.log('res4-->', res);
  154 + if(res.data.code==0 && res.data.data) {
  155 + self.setData({
  156 + list: res.data.data,
  157 + });
  158 + }
  159 + });
116 } 160 }
117 - self.setData({  
118 - list: res.data.data.pageData,  
119 - }); 161 +
120 } 162 }
121 }); 163 });
122 }; 164 };
123 -  
124 -  
125 }; 165 };
126 }; 166 };
127 }, 167 },
@@ -260,14 +300,38 @@ Page({ @@ -260,14 +300,38 @@ Page({
260 icon: 'none', 300 icon: 'none',
261 duration: 2000 301 duration: 2000
262 }) 302 })
263 -  
264 -  
265 - 303 +
266 } 304 }
267 } 305 }
268 }) 306 })
269 307
270 - } 308 + },
  309 +
  310 + //一键领取券
  311 + show_get_quan:function (e) {
  312 + var th=this;
  313 + var json = {
  314 + store_id:os.stoid,
  315 + user_id:getApp().globalData.user_id,
  316 + id:this.data.id
  317 + };
  318 + var url = "/api/weshop/libao/libaoFormvip/saveLibaoQuan";
  319 + getApp().request.post(url,{
  320 + data:json,
  321 + success:function(res) {
  322 + if (res.data.code == 0) {
  323 + th.setData({'details.isget':1});
  324 + } else {
  325 + wx.showToast({
  326 + title: res.data.msg,
  327 + icon: 'none',
  328 + duration: 2000
  329 + })
  330 + }
  331 + },
  332 + })
  333 +
  334 + }
271 335
272 336
273 }) 337 })
274 \ No newline at end of file 338 \ No newline at end of file
packageA/pages/myGiftDetails/myGiftDetails.wxml
@@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
2 <view class="pdb80"> 2 <view class="pdb80">
3 <!-- 图片 --> 3 <!-- 图片 -->
4 <view><image src="{{imghost + (details.lburl ? details.lburl:'miniapp/images/default_g_img.gif')}}" class="img" mode="widthFix"/></view> 4 <view><image src="{{imghost + (details.lburl ? details.lburl:'miniapp/images/default_g_img.gif')}}" class="img" mode="widthFix"/></view>
  5 +
  6 + <view wx:if="{{index==1}}" class="fs26 exp_title">兑换结束时间:{{filter.format_time(details.expdate,1)}}</view>
5 <!-- 描述--> 7 <!-- 描述-->
6 <view class="desc-container"> 8 <view class="desc-container">
7 <!-- 标题 --> 9 <!-- 标题 -->
@@ -9,16 +11,32 @@ @@ -9,16 +11,32 @@
9 <!-- 价格 --> 11 <!-- 价格 -->
10 <view class="flex jc_sb ai-center pdb10"> 12 <view class="flex jc_sb ai-center pdb10">
11 <view class="flex ai-center"> 13 <view class="flex ai-center">
12 - <view class="c-red fs36"><text class="rmb">{{details.lbprice}}</text>/{{details.lbintegral}}积分</view>  
13 - <view class="fs22 c-a4 line-through mgl10">零售价{{details.oldprice}}</view> 14 + <view class="c-red fs36">
  15 + <block wx:if="{{details.lbprice>0 && details.lbintegral>0 }}">
  16 + <text class="rmb">{{filter.toFix(details.lbprice,2)}}</text>/{{details.lbintegral}}积分
  17 + </block>
  18 + <block wx:elif="{{details.lbprice>0 || details.lbintegral>0 }}">
  19 + <block wx:if="{{details.lbprice>0}}" >
  20 + <text class="rmb">{{filter.toFix(details.lbprice,2)}}</text>
  21 + </block>
  22 + <block wx:if="{{details.lbintegral>0}}" >
  23 + {{details.lbintegral}}积分
  24 + </block>
  25 + </block>
  26 +
  27 + </view>
  28 + <view class="fs22 c-a4 line-through mgl10">零售价{{filter.toFix(details.oldprice,2)}}</view>
14 </view> 29 </view>
15 <view class="fs24 c-a4">已售{{details.salenum}}件</view> 30 <view class="fs24 c-a4">已售{{details.salenum}}件</view>
16 </view> 31 </view>
17 <!-- 时间 --> 32 <!-- 时间 -->
18 <view class="date">活动截止日期 {{details.expdate ? filter.format_time(details.expdate):filter.format_time(details.endtime)}}</view> 33 <view class="date">活动截止日期 {{details.expdate ? filter.format_time(details.expdate):filter.format_time(details.endtime)}}</view>
19 </view> 34 </view>
  35 +
  36 +
  37 + <!-- 领券和兑换商品 -->
20 <!-- 单品 --> 38 <!-- 单品 -->
21 - <view class="goods-container"> 39 + <view class="goods-container" wx:if="{{details.lbtype==1}}">
22 <view class="pd20 bold bdb">可到线下门店兑换以下单品</view> 40 <view class="pd20 bold bdb">可到线下门店兑换以下单品</view>
23 <view wx:if="{{index==1 && details.codetype==1}}" class=""> 41 <view wx:if="{{index==1 && details.codetype==1}}" class="">
24 <view class="flex pd20 jc_sb"> 42 <view class="flex pd20 jc_sb">
@@ -40,7 +58,6 @@ @@ -40,7 +58,6 @@
40 </view> 58 </view>
41 </view> 59 </view>
42 60
43 -  
44 <view wx:else class=""> 61 <view wx:else class="">
45 <view class="flex pd20 jc_sb"> 62 <view class="flex pd20 jc_sb">
46 <view>单品名称</view> 63 <view>单品名称</view>
@@ -52,15 +69,48 @@ @@ -52,15 +69,48 @@
52 </view> 69 </view>
53 </view> 70 </view>
54 </view> 71 </view>
55 - 72 +
  73 + <view wx:if="{{details.lbtype==2}}" class="flex" style="flex-wrap: wrap;">
  74 + <block wx:for="{{list}}">
  75 + <block wx:for="{{item.goods_num-0}}" wx:for-item="nitem" wx:for-index="idx">
  76 + <view class="lb_quan" style="background-image: url({{imghost}}/miniapp/images/yhq_{{index%2+1}}.png)">
  77 + <view class="flex fs28 fir_view">
  78 + <view>满1000.00使用</view>
  79 + <view class="fs38" style="text-align: right">¥1000</view>
  80 + </view>
  81 + <view style="font-size: 16rpx; text-align: center">活动结束日期: 2022-06-02 00:00:00 </view>
  82 + </view>
  83 + </block>
  84 + </block>
  85 + </view>
  86 +
  87 + <view style="height: 20rpx"></view>
56 <!-- 按钮 --> 88 <!-- 按钮 -->
57 - <view class="btn-container"> 89 + <view class="btn-container" wx:if="{{details.lbtype==1}}">
58 <block wx:if="{{index == 0}}"> 90 <block wx:if="{{index == 0}}">
59 - <view bindtap="GetBuyIntegral" class="btn red">立即兑换</view>  
60 - <view bindtap="GetBuyPrice" class="btn pink">立即购买</view> 91 + <view wx:if="{{details.lbintegral>0}}" bindtap="GetBuyIntegral" class="btn red">立即兑换</view>
  92 + <view wx:if="{{details.lbprice>0}}" bindtap="GetBuyPrice" class="btn pink">立即购买</view>
  93 + </block>
  94 +
  95 + <block wx:else>
  96 + <view wx:if="{{details.isget}}" data-type="1" class="btn" style="background-color:#aaa;color: #fff">
  97 + 已领取{{list[0].freebh}}
  98 + </view>
  99 + <view wx:elif="{{details.codetype!=1}}" bindtap="show_hxm" data-type="1" class="btn red">立即使用</view>
61 </block> 100 </block>
62 - <view wx:else bindtap="show_hxm" data-type="1" class="btn red">立即使用</view>  
63 </view> 101 </view>
  102 +
  103 + <view class="btn-container" wx:if="{{details.lbtype==2}}">
  104 + <block wx:if="{{index == 0}}">
  105 + <view wx:if="{{details.lbintegral>0}}" bindtap="GetBuyIntegral" class="btn red">立即兑换</view>
  106 + <view wx:if="{{details.lbprice>0}}" bindtap="GetBuyPrice" class="btn pink">立即购买</view>
  107 + </block>
  108 + <block wx:else>
  109 + <view wx:if="{{details.isget}}" data-type="1" class="btn" style="background-color:#aaa;color: #fff">已领</view>
  110 + <view wx:else bindtap="show_get_quan" data-type="1" class="btn red">一键领取优惠券→</view>
  111 + </block>
  112 + </view>
  113 +
64 </view> 114 </view>
65 115
66 <!-- 引入提示组件 --> 116 <!-- 引入提示组件 -->
packageA/pages/myGiftDetails/myGiftDetails.wxss
@@ -81,4 +81,21 @@ page { @@ -81,4 +81,21 @@ page {
81 .ling_btn{ background: #c0283a; color: #fff; width: 100rpx; height: 50rpx; 81 .ling_btn{ background: #c0283a; color: #fff; width: 100rpx; height: 50rpx;
82 display: inline-block; line-height: 50rpx; border-radius: 10rpx} 82 display: inline-block; line-height: 50rpx; border-radius: 10rpx}
83 83
84 -.ling_btn.c_a{ background: darkgrey}  
85 \ No newline at end of file 84 \ No newline at end of file
  85 +.ling_btn.c_a{ background: darkgrey}
  86 +
  87 +.lb_quan{
  88 + width: 48%;
  89 + height: 120rpx;
  90 + background-size: 100% 100%;
  91 + background-position: center;
  92 + background-repeat: no-repeat;
  93 + color: #fff;
  94 + font-size: 22rpx;
  95 + text-align: center;
  96 + margin-top:20rpx;
  97 + margin-left:10rpx;
  98 +}
  99 +.fir_view{
  100 + justify-content: space-between; height: 98rpx; line-height: 98rpx; padding: 0 8rpx;
  101 +}
  102 +.exp_title{text-align: center;height: 60rpx; line-height: 60rpx;background-color: #cccdce;color: #c0283a}
86 \ No newline at end of file 103 \ No newline at end of file
packageA/pages/my_service2/appment_main.js
@@ -329,7 +329,7 @@ Page({ @@ -329,7 +329,7 @@ Page({
329 is_textea: 0 329 is_textea: 0
330 }) 330 })
331 var itemId = th.data.itemId; //服务id 331 var itemId = th.data.itemId; //服务id
332 - var url = "/api/weshop/marketing/reservation/storage/pageAll"; 332 + var url = "/api/weshop/marketing/reservation/service/storage/page";
333 var key_word = th.data.key_word; 333 var key_word = th.data.key_word;
334 key_word = key_word.replace(/\s+/g, ""); 334 key_word = key_word.replace(/\s+/g, "");
335 getApp().request.promiseGet(url, { 335 getApp().request.promiseGet(url, {
@@ -344,7 +344,7 @@ Page({ @@ -344,7 +344,7 @@ Page({
344 } 344 }
345 }).then(res => { 345 }).then(res => {
346 wx.hideLoading(); 346 wx.hideLoading();
347 - if (res.data.code == 0) { 347 + if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0) {
348 th.data.curpage++; 348 th.data.curpage++;
349 var arr1 = th.data.store_list; 349 var arr1 = th.data.store_list;
350 var arr2 = res.data.data.pageData; 350 var arr2 = res.data.data.pageData;
pages/index/index/index.wxml
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 <view class="search-img"> 33 <view class="search-img">
34 <image class="wh100" src="{{url}}/miniapp/images/search.png"></image> 34 <image class="wh100" src="{{url}}/miniapp/images/search.png"></image>
35 </view> 35 </view>
36 - <input bindfocus="jumpSearch" class="search-cont" placeholder="搜索商品" type="text"/> 36 + <input bindtap="jumpSearch" class="search-cont" placeholder="搜索商品" type="text" disabled/>
37 </view> 37 </view>
38 <view class="classify-frame t-c" bindtap="getScancode"> 38 <view class="classify-frame t-c" bindtap="getScancode">
39 <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image> 39 <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image>
@@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
146 146
147 <!--秒杀--> 147 <!--秒杀-->
148 <view class="seckill" wx:if="{{saleGoods!=null && pindGoods.length!=0 }}"> 148 <view class="seckill" wx:if="{{saleGoods!=null && pindGoods.length!=0 }}">
149 - <navigator url="/pages/activity/seckill_list/seckill_list"> 149 + <navigator url="/pages/activity/seckill_list/seckill_list" hover-class="none">
150 <view class="seckill-time"> 150 <view class="seckill-time">
151 <view class="classname flex ai_c"> 151 <view class="classname flex ai_c">
152 <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image> 152 <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
@@ -208,18 +208,18 @@ @@ -208,18 +208,18 @@
208 </view> 208 </view>
209 </navigator> 209 </navigator>
210 <view class="seckill-lists rel"> 210 <view class="seckill-lists rel">
211 - <swiper class="s_proms" style="height:{{pindGoods[0].length>1?'580':'290'}}rpx" indicator-active-color='red' bindchange="ptSwiperChange"> 211 + <swiper class="s_proms" style="height:{{pindGoods[0].length>1?'580':'290'}}rpx" indicator-active-color='red' bindchange="ptSwiperChange" indicator-dots>
212 <swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}" wx:for-index="pix"> 212 <swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}" wx:for-index="pix">
213 <view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> 213 <view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
214 <view class="kill-item"> 214 <view class="kill-item">
215 - <navigator class="flex navwidth" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&title={{aitem.goods_name}}" hover-class="none"> 215 + <navigator class="flex navwidth" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}&title={{aitem.goods_name}}" hover-class="none">
216 <view class="kill-pic"> 216 <view class="kill-pic">
217 <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}" data-errorimg="pindGoods[{{pix}}][{{aind}}].original_img" binderror="bind_bnerr2" lazy-load="true"> 217 <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}" data-errorimg="pindGoods[{{pix}}][{{aind}}].original_img" binderror="bind_bnerr2" lazy-load="true">
218 </image> 218 </image>
219 </view> 219 </view>
220 220
221 <view class="kill-cont"> 221 <view class="kill-cont">
222 - <navigator class="goods-name ellipsis-2" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&title={{aitem.goods_name}}"> 222 + <navigator class="goods-name ellipsis-2" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}&title={{aitem.goods_name}}" hover-class="none">
223 {{aitem.title}} 223 {{aitem.title}}
224 224
225 </navigator> 225 </navigator>
@@ -263,10 +263,10 @@ @@ -263,10 +263,10 @@
263 </swiper-item> 263 </swiper-item>
264 </swiper> 264 </swiper>
265 265
266 - <view class="flex-center-around translations abs"> 266 + <!-- <view class="flex-center-around translations abs">
267 <view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}"> 267 <view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}">
268 </view> 268 </view>
269 - </view> 269 + </view> -->
270 </view> 270 </view>
271 </view> 271 </view>
272 272
pages/index/index/index.wxss
@@ -406,7 +406,7 @@ @@ -406,7 +406,7 @@
406 .nav { 406 .nav {
407 padding: 0 10rpx; 407 padding: 0 10rpx;
408 box-sizing: border-box; 408 box-sizing: border-box;
409 - flex: 1; 409 + /* flex: 1; */
410 } 410 }
411 411
412 .p_swiper .un_line { 412 .p_swiper .un_line {
pages/team/team_show/team_show.wxml
@@ -154,10 +154,10 @@ @@ -154,10 +154,10 @@
154 </view> 154 </view>
155 </view> 155 </view>
156 <!----//拼团玩法----> 156 <!----//拼团玩法---->
157 - <view class='pintuan' bindtap="cpd"> 157 + <!-- <view class='pintuan' bindtap="cpd">
158 <view class='pintuanzhou'>拼团玩法</view> 158 <view class='pintuanzhou'>拼团玩法</view>
159 <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view> 159 <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view>
160 - </view> 160 + </view> -->
161 <!--大家都在团--> 161 <!--大家都在团-->
162 <view class='goodslist'> 162 <view class='goodslist'>
163 <view class='goodslisttop'> 163 <view class='goodslisttop'>
pages/team/team_success/team_success.js
@@ -807,7 +807,7 @@ Page({ @@ -807,7 +807,7 @@ Page({
807 else 807 else
808 url+="?first_leader="+getApp().globalData.user_id; 808 url+="?first_leader="+getApp().globalData.user_id;
809 } 809 }
810 - console.log(url); 810 + // console.log('url+++++>>>>>', url, th.data.teamlist.title);
811 811
812 return { 812 return {
813 path:url, 813 path:url,
@@ -815,6 +815,24 @@ Page({ @@ -815,6 +815,24 @@ Page({
815 imageUrl: img, 815 imageUrl: img,
816 } 816 }
817 }, 817 },
  818 +
  819 + clickShare() {
  820 + this.setData({
  821 + share_hidden: true,
  822 + });
  823 + },
  824 +
  825 + send() {
  826 + this.setData({
  827 + share_hidden:false,
  828 + });
  829 + },
  830 +
  831 + cancel() {
  832 + this.setData({
  833 + share_hidden:false,
  834 + });
  835 + },
818 836
819 837
820 }) 838 })
pages/team/team_success/team_success.json
@@ -5,5 +5,8 @@ @@ -5,5 +5,8 @@
5 "navigationBarTextStyle": "white", 5 "navigationBarTextStyle": "white",
6 "navigationBarBackgroundColor": "#ffffff", 6 "navigationBarBackgroundColor": "#ffffff",
7 "backgroundColor": "#eeeeee" 7 "backgroundColor": "#eeeeee"
8 - } 8 + },
  9 + "usingComponents": {
  10 + "share": "/components/share/share"
  11 + }
9 } 12 }
10 \ No newline at end of file 13 \ No newline at end of file
pages/team/team_success/team_success.wxml
@@ -165,7 +165,8 @@ @@ -165,7 +165,8 @@
165 165
166 <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'> 166 <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'>
167 <!-- 阶梯团 --> 167 <!-- 阶梯团 -->
168 - <button wx:if="{{p_status==1}}" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> 168 + <button wx:if="{{p_status==1}}" bindtap="clickShare" style='background-color:#fab55a; color:#fff'>
  169 + <!-- <button wx:if="{{p_status==1}}" bindtap="clickShare" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> -->
169 邀请好友参团 170 邀请好友参团
170 </button> 171 </button>
171 <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}"> 172 <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
@@ -175,7 +176,7 @@ @@ -175,7 +176,7 @@
175 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> --> 176 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> -->
176 177
177 <!--会员团 商家团--> 178 <!--会员团 商家团-->
178 - <button class="bodybutton" style='background-color:#fab55a; color:#fff' bindtap='cmeng' 179 + <button class="bodybutton" style='background-color:#fab55a; color:#fff' bindtap='clickShare'
179 wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button> 180 wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button>
180 181
181 <!-- </view> --> 182 <!-- </view> -->
@@ -261,7 +262,7 @@ @@ -261,7 +262,7 @@
261 </view> 262 </view>
262 263
263 <!----蒙板----> 264 <!----蒙板---->
264 -<view class='mtop' wx:if="{{meng}}"> 265 +<!-- <view class='mtop' wx:if="{{meng}}">
265 <view wx:if="{{teamlist.kttype==3}}" class='mt1'> 266 <view wx:if="{{teamlist.kttype==3}}" class='mt1'>
266 <block wx:if="{{max_num-ordertx.length>0}}"> 267 <block wx:if="{{max_num-ordertx.length>0}}">
267 还差 268 还差
@@ -278,16 +279,17 @@ @@ -278,16 +279,17 @@
278 <span class='mts'>{{teamlist.ct_num-ordertx.length}}</span>人,邀请好友参团吧 279 <span class='mts'>{{teamlist.ct_num-ordertx.length}}</span>人,邀请好友参团吧
279 <span class='mcou' bindtap='cmc'>⊗</span> 280 <span class='mcou' bindtap='cmc'>⊗</span>
280 </view> 281 </view>
281 -  
282 <view>点击分享,发送给 282 <view>点击分享,发送给
283 <span class='mts'>朋友</span>和 283 <span class='mts'>朋友</span>和
284 <span class='mts'>朋友圈</span> 284 <span class='mts'>朋友圈</span>
285 - </view> 285 + </view> -->
286 <!--底部--> 286 <!--底部-->
287 - <view class='mfoot' bindtap='saveImageToPhotosAlbum'> 287 + <!-- <view class='mfoot' bindtap='saveImageToPhotosAlbum'>
288 <button class='mbtn'>查看分享二维码</button> 288 <button class='mbtn'>查看分享二维码</button>
289 </view> 289 </view>
290 -</view> 290 +</view> -->
  291 +
  292 +
291 <!--二维码显示页面--> 293 <!--二维码显示页面-->
292 <canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{canvasHidden}}'></canvas> 294 <canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{canvasHidden}}'></canvas>
293 <!--拼团玩法弹出框--> 295 <!--拼团玩法弹出框-->
@@ -317,3 +319,6 @@ @@ -317,3 +319,6 @@
317 </view> 319 </view>
318 </view> 320 </view>
319 </block> 321 </block>
  322 +
  323 +<!-- 分享控件,底部弹出 -->
  324 +<share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>