Commit 0932c14423506c939fab7a5d5b26071a7cb89928

Authored by pengye
1 parent 0a21e33b

券订阅模板修改

@@ -4,8 +4,7 @@ import App from '../../utils/api'; @@ -4,8 +4,7 @@ import App from '../../utils/api';
4 const subscribe=[ 4 const subscribe=[
5 'ZwAkHfP8xUvBZKJn4VXsjRxUDTuCMjWqd8lTsdCPdks',//包厢预订通知 状态、预订门店、包厢名称、备注 5 'ZwAkHfP8xUvBZKJn4VXsjRxUDTuCMjWqd8lTsdCPdks',//包厢预订通知 状态、预订门店、包厢名称、备注
6 'Pf1iEkCA8TnfeqEMkf-_338U78d4Js36pk6sbB0yem0',//消费金额反馈提醒 消费总额、包间名称、餐厅名称、预订日期 6 'Pf1iEkCA8TnfeqEMkf-_338U78d4Js36pk6sbB0yem0',//消费金额反馈提醒 消费总额、包间名称、餐厅名称、预订日期
7 - 'oFnUM-ncr7zqHt7TeQRAGj5ifwqaR89t9yK7Bqj5bUU',//优惠券过期提醒  
8 - '0MfK1XrA3a-6hAeE_NHYTXedr5q4KnUlO3Q2fykjN8M',//优惠券状态通知 7 + 'oFnUM-ncr7zqHt7TeQRAGu2JLxdOblmeG343_cqirp4',//优惠券过期提醒
9 ] 8 ]
10 Component({ 9 Component({
11 /** 10 /**
@@ -74,7 +73,7 @@ Component({ @@ -74,7 +73,7 @@ Component({
74 } 73 }
75 }) 74 })
76 console.log('accept-----------',accept); 75 console.log('accept-----------',accept);
77 - if(accept.length>0 && accept.length == this.subscribeIds.length){ 76 + if(accept.length>0){
78 // util.toast('订阅成功','none') 77 // util.toast('订阅成功','none')
79 setTimeout(()=>{ 78 setTimeout(()=>{
80 App.Wechat.Subscribe({ 79 App.Wechat.Subscribe({
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 </view> 73 </view>
74 <view slot="modalContent"> 74 <view slot="modalContent">
75 <view class="couponInfo font24r">您到店扫码支付即可自动使用</view> 75 <view class="couponInfo font24r">您到店扫码支付即可自动使用</view>
76 - <subscribe ids="{{[2,3]}}" bindtap="closegiveCouponModal"> 76 + <subscribe ids="{{[2]}}" bindtap="closegiveCouponModal">
77 <view class="couponBtn font36r">我知道了</view> 77 <view class="couponBtn font36r">我知道了</view>
78 </subscribe> 78 </subscribe>
79 <view class="couponText font24r" bindtap="certificate">点击查看详情</view> 79 <view class="couponText font24r" bindtap="certificate">点击查看详情</view>
@@ -84,7 +84,7 @@ @@ -84,7 +84,7 @@
84 <view class="font28r publicity" bindtap="wananchi">关注<text class="bold_box">周到安排</text>公众号,及时获取更多优惠券动态<view class="more" style="margin-left: 20rpx;"></view> 84 <view class="font28r publicity" bindtap="wananchi">关注<text class="bold_box">周到安排</text>公众号,及时获取更多优惠券动态<view class="more" style="margin-left: 20rpx;"></view>
85 </view> 85 </view>
86 </view> 86 </view>
87 - <subscribe ids="{{[2,3]}}" bindtap="certificate"> 87 + <subscribe ids="{{[2]}}" bindtap="certificate">
88 <button class="font32r btnsPay">完成</button> 88 <button class="font32r btnsPay">完成</button>
89 </subscribe> 89 </subscribe>
90 </view> 90 </view>
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 <view bindtap="callPhone">预订包间</view> 168 <view bindtap="callPhone">预订包间</view>
169 </view> 169 </view>
170 <block wx:if="{{resultCoupon == '0' && detail.grant_last>0}}"> 170 <block wx:if="{{resultCoupon == '0' && detail.grant_last>0}}">
171 - <subscribe ids="{{[2,3]}}" bindtap="submitOrder"> 171 + <subscribe ids="{{[2]}}" bindtap="submitOrder">
172 <view class="btn font36r">领取到卡包</view> 172 <view class="btn font36r">领取到卡包</view>
173 </subscribe> 173 </subscribe>
174 </block> 174 </block>
@@ -336,7 +336,7 @@ @@ -336,7 +336,7 @@
336 <text class="font48r">到店微信扫码</text> 336 <text class="font48r">到店微信扫码</text>
337 <text class="font48r">自动识别</text> 337 <text class="font48r">自动识别</text>
338 </view> 338 </view>
339 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 339 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
340 <view class="couponBtn font28r">我知道了</view> 340 <view class="couponBtn font28r">我知道了</view>
341 </subscribe> 341 </subscribe>
342 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 342 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -504,7 +504,7 @@ @@ -504,7 +504,7 @@
504 <text class="font48r">到店微信扫码</text> 504 <text class="font48r">到店微信扫码</text>
505 <text class="font48r">自动识别</text> 505 <text class="font48r">自动识别</text>
506 </view> 506 </view>
507 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 507 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
508 <view class="couponBtn font28r">我知道了</view> 508 <view class="couponBtn font28r">我知道了</view>
509 </subscribe> 509 </subscribe>
510 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 510 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -428,7 +428,7 @@ @@ -428,7 +428,7 @@
428 <text class="font48r">到店微信扫码</text> 428 <text class="font48r">到店微信扫码</text>
429 <text class="font48r">自动识别</text> 429 <text class="font48r">自动识别</text>
430 </view> 430 </view>
431 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 431 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
432 <view class="couponBtn font28r">我知道了</view> 432 <view class="couponBtn font28r">我知道了</view>
433 </subscribe> 433 </subscribe>
434 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 434 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -374,7 +374,7 @@ @@ -374,7 +374,7 @@
374 <text class="font48r">到店微信扫码</text> 374 <text class="font48r">到店微信扫码</text>
375 <text class="font48r">自动识别</text> 375 <text class="font48r">自动识别</text>
376 </view> 376 </view>
377 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 377 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
378 <view class="couponBtn font28r">我知道了</view> 378 <view class="couponBtn font28r">我知道了</view>
379 </subscribe> 379 </subscribe>
380 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 380 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -379,7 +379,7 @@ @@ -379,7 +379,7 @@
379 <text class="font48r">到店微信扫码</text> 379 <text class="font48r">到店微信扫码</text>
380 <text class="font48r">自动识别</text> 380 <text class="font48r">自动识别</text>
381 </view> 381 </view>
382 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 382 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
383 <view class="couponBtn font28r">我知道了</view> 383 <view class="couponBtn font28r">我知道了</view>
384 </subscribe> 384 </subscribe>
385 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 385 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -362,7 +362,7 @@ @@ -362,7 +362,7 @@
362 <text class="font48r">到店微信扫码</text> 362 <text class="font48r">到店微信扫码</text>
363 <text class="font48r">自动识别</text> 363 <text class="font48r">自动识别</text>
364 </view> 364 </view>
365 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 365 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
366 <view class="couponBtn font28r">我知道了</view> 366 <view class="couponBtn font28r">我知道了</view>
367 </subscribe> 367 </subscribe>
368 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 368 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -361,7 +361,7 @@ @@ -361,7 +361,7 @@
361 <text class="font48r">到店微信扫码</text> 361 <text class="font48r">到店微信扫码</text>
362 <text class="font48r">自动识别</text> 362 <text class="font48r">自动识别</text>
363 </view> 363 </view>
364 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 364 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
365 <view class="couponBtn font28r">我知道了</view> 365 <view class="couponBtn font28r">我知道了</view>
366 </subscribe> 366 </subscribe>
367 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 367 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -349,7 +349,7 @@ @@ -349,7 +349,7 @@
349 <text class="font48r">到店微信扫码</text> 349 <text class="font48r">到店微信扫码</text>
350 <text class="font48r">自动识别</text> 350 <text class="font48r">自动识别</text>
351 </view> 351 </view>
352 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 352 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
353 <view class="couponBtn font28r">我知道了</view> 353 <view class="couponBtn font28r">我知道了</view>
354 </subscribe> 354 </subscribe>
355 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 355 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -374,7 +374,7 @@ @@ -374,7 +374,7 @@
374 <text class="font48r">到店微信扫码</text> 374 <text class="font48r">到店微信扫码</text>
375 <text class="font48r">自动识别</text> 375 <text class="font48r">自动识别</text>
376 </view> 376 </view>
377 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 377 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
378 <view class="couponBtn font28r">我知道了</view> 378 <view class="couponBtn font28r">我知道了</view>
379 </subscribe> 379 </subscribe>
380 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 380 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -373,7 +373,7 @@ @@ -373,7 +373,7 @@
373 <text class="font48r">到店微信扫码</text> 373 <text class="font48r">到店微信扫码</text>
374 <text class="font48r">自动识别</text> 374 <text class="font48r">自动识别</text>
375 </view> 375 </view>
376 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 376 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
377 <view class="couponBtn font28r">我知道了</view> 377 <view class="couponBtn font28r">我知道了</view>
378 </subscribe> 378 </subscribe>
379 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 379 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -372,7 +372,7 @@ @@ -372,7 +372,7 @@
372 <text class="font48r">到店微信扫码</text> 372 <text class="font48r">到店微信扫码</text>
373 <text class="font48r">自动识别</text> 373 <text class="font48r">自动识别</text>
374 </view> 374 </view>
375 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 375 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
376 <view class="couponBtn font28r">我知道了</view> 376 <view class="couponBtn font28r">我知道了</view>
377 </subscribe> 377 </subscribe>
378 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view> 378 <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
@@ -253,7 +253,7 @@ @@ -253,7 +253,7 @@
253 </view> 253 </view>
254 </view> --> 254 </view> -->
255 <view class="couponInfo font24r">您到店扫码支付即可自动使用</view> 255 <view class="couponInfo font24r">您到店扫码支付即可自动使用</view>
256 - <subscribe ids="{{[2,3]}}" bindtap="closeCouponModal"> 256 + <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
257 <view class="couponBtn font36r">我知道了</view> 257 <view class="couponBtn font36r">我知道了</view>
258 </subscribe> 258 </subscribe>
259 </view> 259 </view>