|
|
@@ -96,27 +96,6 @@ export default {
|
|
|
this.beginScan()
|
|
|
// #endif
|
|
|
},
|
|
|
- onReady() {
|
|
|
- uni.$on(this.typescan,(data)=>{
|
|
|
- if (!this.$util.isEmpty(data.result)){
|
|
|
-
|
|
|
- let payCode = res.result
|
|
|
- let newPayCode = payCode.replace(/\s+/g, "")
|
|
|
- if(that.$util.isEmpty(newPayCode)){
|
|
|
- that.$msg('没扫到,请重新扫哦')
|
|
|
- return false
|
|
|
- }
|
|
|
- if(!that.isAllDigits(newPayCode)){
|
|
|
- that.$msg('没扫到,请重新扫')
|
|
|
- return false
|
|
|
- }
|
|
|
-
|
|
|
- this.requestCodePay(newPayCode)
|
|
|
- }else{
|
|
|
- this.$msg('扫码没有成功')
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
methods: {
|
|
|
gotoOrderDetail() {
|
|
|
let id = this.option.orderId ? this.option.orderId : 0
|