Commit f1a5e97b2609ac10e45187f3c1c382ceb2c8fafd
1 parent
11048911
赤峰扫码
Showing
3 changed files
with
34 additions
and
22 deletions
config/index.js
src/components/orderPay.vue
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | </ul> |
| 24 | 24 | |
| 25 | 25 | <p style="margin-top: 20px;padding-left: 15px;">停车引导员工号(非必填)</p> |
| 26 | - <mt-field style="font-size: 14px;color: #333;" label="" placeholder="请输入员工号" type="number" v-model="tollNumber" :attr="{ oninput: 'if(value.length>7)value=value.slice(0,7)' }" ></mt-field> | |
| 26 | + <mt-field style="font-size: 14px;color: #333;" label="" placeholder="请输入员工号" type="number" v-model="tollNxumber" :attr="{ oninput: 'if(value.length>7)value=value.slice(0,7)' }" ></mt-field> | |
| 27 | 27 | |
| 28 | 28 | <div style="padding: 20px 18px"> |
| 29 | 29 | <div class="toPay" @click="toPay">{{clientBrowser}}支付</div> |
| ... | ... | @@ -66,7 +66,7 @@ export default { |
| 66 | 66 | webAppCode: '', // 微信code |
| 67 | 67 | appOrderTimeout: '', // 超时描述 |
| 68 | 68 | tollNumber:'', // 收费员员工号 |
| 69 | - backDeveloperCode: '' | |
| 69 | + // backDeveloperCode: '' | |
| 70 | 70 | } |
| 71 | 71 | }, |
| 72 | 72 | created() { |
| ... | ... | @@ -122,12 +122,15 @@ export default { |
| 122 | 122 | this.orderId = [] |
| 123 | 123 | this.orderId = _order |
| 124 | 124 | } |
| 125 | - if(this.tollNumber){ | |
| 126 | - this.backDeveloperCode = this.tollNumber | |
| 127 | - }else{ | |
| 128 | - this.backDeveloperCode = this.$route.query.backDeveloperCode | |
| 129 | - } | |
| 130 | - | |
| 125 | + // if(this.tollNumber){ | |
| 126 | + // this.backDeveloperCode = this.tollNumber | |
| 127 | + // }else{ | |
| 128 | + // this.backDeveloperCode = this.$route.query.backDeveloperCode | |
| 129 | + // } | |
| 130 | + | |
| 131 | + // tollNumber | |
| 132 | + // this.backDeveloperCode = this.tollNumber // 输入字段 | |
| 133 | + let ticketChargeCode = this.$route.query.ticketChargeCode // 二维码里面的收费员编号 | |
| 131 | 134 | if (this.clientBrowser == '支付宝') { // 支付宝支付 |
| 132 | 135 | let me = this |
| 133 | 136 | var aliParams = {}; |
| ... | ... | @@ -138,7 +141,8 @@ export default { |
| 138 | 141 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
| 139 | 142 | aliParams.orgId = this.$utils.myOrgId |
| 140 | 143 | aliParams.backType = 2 |
| 141 | - aliParams.backDeveloperCode = this.backDeveloperCode | |
| 144 | + aliParams.backDeveloperCode = this.tollNumber | |
| 145 | + aliParams.ticketChargeCode = ticketChargeCode | |
| 142 | 146 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 143 | 147 | console.log(aliParams) |
| 144 | 148 | aliPay(aliParams).then(response => { |
| ... | ... | @@ -180,7 +184,8 @@ export default { |
| 180 | 184 | bankabcParams.orgId = this.$utils.myOrgId |
| 181 | 185 | bankabcParams.backType = 2 |
| 182 | 186 | bankabcParams.PaymentLinkType = 1 |
| 183 | - bankabcParams.backDeveloperCode = this.backDeveloperCode | |
| 187 | + bankabcParams.backDeveloperCode = this.tollNumber | |
| 188 | + bankabcParams.ticketChargeCode = ticketChargeCode | |
| 184 | 189 | bankabcParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 185 | 190 | console.log(bankabcParams) |
| 186 | 191 | bankH5Pay(bankabcParams).then(response => { |
| ... | ... | @@ -292,7 +297,8 @@ export default { |
| 292 | 297 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
| 293 | 298 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
| 294 | 299 | wxParams.openId = openIdData; |
| 295 | - wxParams.backDeveloperCode = this.backDeveloperCode | |
| 300 | + wxParams.backDeveloperCode = this.tollNumber | |
| 301 | + wxParams.ticketChargeCode = ticketChargeCode | |
| 296 | 302 | wxParams.appId = this.$utils.myVxAppId; |
| 297 | 303 | vxPayQuery(wxParams).then(res => { |
| 298 | 304 | if (res.code == 0) { // | ... | ... |
src/components/plateNumber.vue
| ... | ... | @@ -259,14 +259,14 @@ |
| 259 | 259 | </div> |
| 260 | 260 | |
| 261 | 261 | |
| 262 | - <modal-alert ref="alert"> | |
| 263 | - <div class="trave-tip-content txt-l" slot="content"> | |
| 264 | - <div class="confirm-text"> | |
| 265 | - <p>请输入正确的车牌号</p> | |
| 266 | - </div> | |
| 267 | - </div> | |
| 268 | - <span slot="button">知道了</span> | |
| 269 | - </modal-alert> | |
| 262 | + <!--<modal-alert ref="alert">--> | |
| 263 | + <!--<div class="trave-tip-content txt-l" slot="content">--> | |
| 264 | + <!--<div class="confirm-text">--> | |
| 265 | + <!--<p>请输入正确的车牌号</p>--> | |
| 266 | + <!--</div>--> | |
| 267 | + <!--</div>--> | |
| 268 | + <!--<span slot="button">知道了</span>--> | |
| 269 | + <!--</modal-alert>--> | |
| 270 | 270 | </div> |
| 271 | 271 | </template> |
| 272 | 272 | <script> |
| ... | ... | @@ -423,7 +423,10 @@ export default { |
| 423 | 423 | plateLicense = this.plate_license_1 |
| 424 | 424 | plateLicense = this.palindrome(plateLicense) |
| 425 | 425 | if (plateLicense.length < 7) { |
| 426 | - this.$refs.alert.open() | |
| 426 | + this.$msgbox({ | |
| 427 | + title: '提示', | |
| 428 | + message: '请输入正确的车牌号', | |
| 429 | + }) | |
| 427 | 430 | return |
| 428 | 431 | } |
| 429 | 432 | } |
| ... | ... | @@ -431,7 +434,10 @@ export default { |
| 431 | 434 | plateLicense = this.plate_license_2 |
| 432 | 435 | plateLicense = this.palindrome(plateLicense) |
| 433 | 436 | if (plateLicense.length < 8) { |
| 434 | - this.$refs.alert.open() | |
| 437 | + this.$msgbox({ | |
| 438 | + title: '提示', | |
| 439 | + message: '请输入正确的车牌号', | |
| 440 | + }) | |
| 435 | 441 | return |
| 436 | 442 | } |
| 437 | 443 | } | ... | ... |