Browse Source

[停车][修改]:[停车修改]

AnHuiRelese_4.1.2
meo 5 years ago
parent
commit
0433b0646a
4 changed files with 24 additions and 4 deletions
  1. +2
    -1
      app.json
  2. +9
    -0
      pages/passCar/passCar.js
  3. +6
    -3
      pages/passCar/passCar.wxml
  4. +7
    -0
      sitemap.json

+ 2
- 1
app.json View File

@@ -98,5 +98,6 @@
"request": 30000,
"downloadFile": 10000
},
"debug": false
"debug": false,
"sitemapLocation": "sitemap.json"
}

+ 9
- 0
pages/passCar/passCar.js View File

@@ -52,6 +52,14 @@ Page({
that.getStopFee(listCardNum);
}
},
//停车费用为0
paySuccess: function () {
wx.showModal({
title: '支付成功',
content: '请尽快离场',
showCancel: false
})
},
gotomange: function () {
wx.navigateTo({
url: '/pages/managelicenseplate/managelicenseplate',
@@ -101,6 +109,7 @@ Page({
* 才会进行券和车牌的绑定
*/
if (wx.getStorageSync("chosed") && that.data.quanid) {
that.getStopFee(that.data.listCardNum);
that.bindCoupon(that.data.quanid);
wx.setStorage({
key: 'chosed',


+ 6
- 3
pages/passCar/passCar.wxml View File

@@ -51,13 +51,16 @@
<text class="fl">待缴费用:</text>
<text class='fr' style='color:#ff4949;'>{{stopFees.remainingFee}}<text class='yuan'>元</text></text>
</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>
<view wx:if="{{!canIUse}}" class='buy' bindtap='gotoetcp'>立即支付</view>
</view>
<!-- 停车费用为0 -->
<view wx:if="{{stopFees.remainingFee==0}}" class='buy' bindtap='paySuccess'>立即支付</view>
</view>




+ 7
- 0
sitemap.json View File

@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}

Loading…
Cancel
Save