Commit 3fe29bf3f59f0120b95a4d405e7562129472de24

Authored by chenbiao
1 parent 83c49479

add 8月需求

Showing 1 changed file with 60 additions and 25 deletions
pages/parkPay/parkPay.vue
... ... @@ -42,14 +42,14 @@
42 42 </view>
43 43 </view>
44 44 </view>
45   - <view class="uni-list-cell-pd pos-rel">
  45 + <!-- <view class="uni-list-cell-pd pos-rel">
46 46 <input class="" type="number"
47 47 style="background-color: #fff;height:40px;line-height: 40px;padding-left: 15px;font-size: 20px;" v-model="rechargeNum"
48 48 @input="checkNum" :maxlength="maxlength" placeholder="确认支付金额(单位:元)">
49 49 <view class="pos-abs paywarp">
50 50
51 51 </view>
52   - </view>
  52 + </view> -->
53 53 <view class="order-line-bold"></view>
54 54  
55 55 <view class="order-title">
... ... @@ -101,7 +101,7 @@
101 101 this.staytime = data.parkDuration;
102 102 this.due = data.totalFee;
103 103 this.orderFee = data.unPayFee;
104   - this.rechargeNum = data.unPayFee / 100;
  104 + // this.rechargeNum = data.unPayFee / 100;
105 105 this.orderId = data.orderId;
106 106 },
107 107 onShow() {},
... ... @@ -119,26 +119,9 @@
119 119 }
120 120 },
121 121 payClick() {
122   - let that = this;
123   - let orderFee = that.orderFee;
124   - let rechargeNum = that.rechargeNum;
125   - if (rechargeNum <= 0) {
126   - return uni.showToast({
127   - title: '不能输入小于等于0的金额',
128   - icon: 'error'
129   - })
130   - } else if (rechargeNum === " ") {
131   - return uni.showToast({
132   - title: '金额不能为空',
133   - icon: 'error'
134   - })
135   - } else if (rechargeNum > orderFee) {
136   - return uni.showToast({
137   - title: '金额不能大于需支付金额',
138   - icon: 'error'
139   - })
140   - } else {
141   -
  122 + let that = this;
  123 + let orderFee = that.orderFee;
  124 +
142 125 let paramsData = {
143 126 payType: '35',
144 127 paySrcType: '101',
... ... @@ -167,9 +150,61 @@
167 150 })
168 151 }, 2000);
169 152 })
170   - }
  153 +
  154 + },
  155 +
  156 + // payClick() {
  157 + // let that = this;
  158 + // let orderFee = that.orderFee;
  159 + // let rechargeNum = that.rechargeNum;
  160 + // if (rechargeNum <= 0) {
  161 + // return uni.showToast({
  162 + // title: '不能输入小于等于0的金额',
  163 + // icon: 'error'
  164 + // })
  165 + // } else if (rechargeNum === " ") {
  166 + // return uni.showToast({
  167 + // title: '金额不能为空',
  168 + // icon: 'error'
  169 + // })
  170 + // } else if (rechargeNum > orderFee) {
  171 + // return uni.showToast({
  172 + // title: '金额不能大于需支付金额',
  173 + // icon: 'error'
  174 + // })
  175 + // } else {
171 176  
172   - },
  177 + // let paramsData = {
  178 + // payType: '35',
  179 + // paySrcType: '101',
  180 + // orderId: that.orderId,
  181 + // payFee: (rechargeNum * 100).toString(),
  182 + // }
  183 + // // 获取 接口
  184 + // that.$myRequest({
  185 + // url: that.$common.accountPay,
  186 + // method: 'POST',
  187 + // data: that.$common.requestSign(paramsData)
  188 + // }).then(res => {
  189 + // console.log('余额支付:' + res)
  190 + // uni.showToast({
  191 + // title: "支付成功",
  192 + // icon: 'success',
  193 + // duration: 2000
  194 + // });
  195 + // setTimeout(function() {
  196 + // let pages = getCurrentPages(); //当前页
  197 + // let beforePage = pages[pages.length - 2];
  198 + // uni.navigateBack({
  199 + // success: function() {
  200 + // beforePage.onLoad();
  201 + // }
  202 + // })
  203 + // }, 2000);
  204 + // })
  205 + // }
  206 +
  207 + // },
173 208 }
174 209 }
175 210 </script>
... ...