| @@ -98,5 +98,6 @@ | |||||
| "request": 30000, | "request": 30000, | ||||
| "downloadFile": 10000 | "downloadFile": 10000 | ||||
| }, | }, | ||||
| "debug": false | |||||
| "debug": false, | |||||
| "sitemapLocation": "sitemap.json" | |||||
| } | } | ||||
| @@ -52,6 +52,14 @@ Page({ | |||||
| that.getStopFee(listCardNum); | that.getStopFee(listCardNum); | ||||
| } | } | ||||
| }, | }, | ||||
| //停车费用为0 | |||||
| paySuccess: function () { | |||||
| wx.showModal({ | |||||
| title: '支付成功', | |||||
| content: '请尽快离场', | |||||
| showCancel: false | |||||
| }) | |||||
| }, | |||||
| gotomange: function () { | gotomange: function () { | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/managelicenseplate/managelicenseplate', | url: '/pages/managelicenseplate/managelicenseplate', | ||||
| @@ -101,6 +109,7 @@ Page({ | |||||
| * 才会进行券和车牌的绑定 | * 才会进行券和车牌的绑定 | ||||
| */ | */ | ||||
| if (wx.getStorageSync("chosed") && that.data.quanid) { | if (wx.getStorageSync("chosed") && that.data.quanid) { | ||||
| that.getStopFee(that.data.listCardNum); | |||||
| that.bindCoupon(that.data.quanid); | that.bindCoupon(that.data.quanid); | ||||
| wx.setStorage({ | wx.setStorage({ | ||||
| key: 'chosed', | key: 'chosed', | ||||
| @@ -51,13 +51,16 @@ | |||||
| <text class="fl">待缴费用:</text> | <text class="fl">待缴费用:</text> | ||||
| <text class='fr' style='color:#ff4949;'>{{stopFees.remainingFee}}<text class='yuan'>元</text></text> | <text class='fr' style='color:#ff4949;'>{{stopFees.remainingFee}}<text class='yuan'>元</text></text> | ||||
| </view> | </view> | ||||
| <view class="buy-view" wx:if="{{stopFees.orderId}}"> | |||||
| <navigator bindfail="bindfail" path="pages/main/main" wx:if="{{canIUse}}" class='buy' target="miniProgram" open-type="navigate" app-id="{{etcpAppId}}" extra-data='{{extraData}}' version="{{etcpVersion}}"> | |||||
| <!-- 停车费用大于0 --> | |||||
| <view class="buy-view" wx:if="{{stopFees.orderId&&stopFees.remainingFee>0}}"> | |||||
| <navigator bindfail="bindfail" path="pages/main/main" wx:if="{{canIUse}}" class='buy' target="miniProgram" open-type="navigate" app-id="{{passCarAppId}}" extra-data='{{extraData}}' version="{{etcpversion}}"> | |||||
| 立即支付 | 立即支付 | ||||
| </navigator> | </navigator> | ||||
| <view wx:if="{{!canIUse}}" class='buy' bindtap='gotoetcp'>立即支付</view> | <view wx:if="{{!canIUse}}" class='buy' bindtap='gotoetcp'>立即支付</view> | ||||
| </view> | </view> | ||||
| <!-- 停车费用为0 --> | |||||
| <view wx:if="{{stopFees.remainingFee==0}}" class='buy' bindtap='paySuccess'>立即支付</view> | |||||
| </view> | </view> | ||||
| @@ -0,0 +1,7 @@ | |||||
| { | |||||
| "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", | |||||
| "rules": [{ | |||||
| "action": "allow", | |||||
| "page": "*" | |||||
| }] | |||||
| } | |||||