|
|
@@ -70,7 +70,6 @@ import { mapGetters } from "vuex";
|
|
|
import wexinPay from "@/utils/pay/wxPay";
|
|
|
import { postWxCode } from '@/api/mini'
|
|
|
import { updateMiniOpenId } from '@/api/admin'
|
|
|
-import { getAliPayCode } from '@/api/purchase'
|
|
|
export default {
|
|
|
name: "wechatPay",
|
|
|
components: {
|
|
|
@@ -141,15 +140,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getAliPayCodeFn(orderSn){
|
|
|
- getAliPayCode({orderSn:orderSn}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- if(res.data.imgUrl){
|
|
|
- this.aliPayCodeImg = res.data.imgUrl
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
init(){
|
|
|
let that = this
|
|
|
getDetail({id:this.option.id}).then(res=>{
|
|
|
@@ -169,9 +159,6 @@ export default {
|
|
|
}
|
|
|
},1000);
|
|
|
}
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- that.getAliPayCodeFn(this.orderSn)
|
|
|
- // #endif
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -290,9 +277,6 @@ export default {
|
|
|
this.pageId = res.data.id
|
|
|
this.orderSn = res.data.orderSn
|
|
|
wexinPay(res.data, this.getSuccess, this.getError)
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- this.getAliPayCodeFn(this.orderSn)
|
|
|
- // #endif
|
|
|
}
|
|
|
})
|
|
|
}
|