Commit 296fde9f by 张立顺

bug修复

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