Commit 296fde9f by 张立顺

bug修复

1 parent e68e36f6
......@@ -28,12 +28,17 @@ Component({
// 处理先要调用销售顾问接口再调用转化人员接口的问题
observers: {
'orderObj.sellerUserId': function (id) {
// console.log(id)
// console.log('orderObj.sellerUserId', this.data.orderObj)
let { type, selesFirstRender } = this.data
let { type, selesFirstRender,oldid } = this.data
// console.log(type == 1 && selesFirstRender)
// selesFirstRender
if (type == 1 && id) {
if (type == 1 && id&&id!=oldid) {
this.setData({
oldid: id
})
this.getMerchantList()
// this.setData({
// selesFirstRender: false
......@@ -51,7 +56,8 @@ Component({
orderObj: {},
isFirst: true,
selesFirstRender: true,
orderSellerInfo: ''
orderSellerInfo: '',
oldid:''
},
/**
......
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -188,13 +188,17 @@ Page({
this.setData({
orderPaySource
})
let result = await createPayOrder({
orderCode,
payType: orderPaySource
})
let { code, data } = result
if (code != 0) return
orderPaySource == 3 ? this.posPay(data.outTradeNo) : this.createWxQrcode()
if (orderPaySource == 3) {
let result = await createPayOrder({
orderCode,
payType: orderPaySource
})
let { code, data } = result
if (code != 0) return
this.posPay(data.outTradeNo)
}
// orderPaySource == 3 ? this.posPay(data.outTradeNo) : this.createWxQrcode()
},
back() {
wx.$router.back()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!