Commit 14ebfa9282a84130fa69329ee59d7f5f5e19df4d

Authored by yiren
1 parent bb6c123e

商家端优惠券购买分享

@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 </view> 8 </view>
9 <view class="info_right"> 9 <view class="info_right">
10 <view class="preferential font32r"> 10 <view class="preferential font32r">
11 - <text wx:if="{{use.cash && (use.is_cash=='1' || use.is_cash)}}" class="font32r">{{use.cash}}元/</text> 11 + <text wx:if="{{use.cash && (use.is_cash=='1' || use.is_cash) && detail.price}}" class="font32r">{{use.cash}}元/</text>
12 {{detail.price}}元 12 {{detail.price}}元
13 </view> 13 </view>
14 <view class="operation"> 14 <view class="operation">
@@ -89,9 +89,19 @@ Page({ @@ -89,9 +89,19 @@ Page({
89 duration: 1000, 89 duration: 1000,
90 icon:'none', 90 icon:'none',
91 success: function () { 91 success: function () {
  92 + let url='';
  93 + if(that.data.opt.types=='1'){
  94 + url='/pages/customer/detail_owner_invitation_new?id='+that.data.opt.detail.oid;
  95 + }
  96 + if(that.data.opt.types=='2'){
  97 + url='/pack-cookbook/pages/success_new';
  98 + }
  99 + if(that.data.opt.types=='3'){
  100 + url='/pages/reserve/index';
  101 + }
92 setTimeout(function () { 102 setTimeout(function () {
93 wx.reLaunch({ 103 wx.reLaunch({
94 - url: `/pages/customer/detail_owner_invitation_new?id=${that.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1` 104 + url
95 }) 105 })
96 }, 1000); 106 }, 1000);
97 } 107 }