Commit 68fee097 by zhangxw

联调修改

1 parent 2caa338c
...@@ -10,8 +10,7 @@ Page({ ...@@ -10,8 +10,7 @@ Page({
data: { data: {
...order_mixins.data, ...order_mixins.data,
orderInfo: {}, orderInfo: {},
showTips: true, showTips: true
positionTypeList: []
}, },
closeTips() { closeTips() {
this.setData({ this.setData({
...@@ -225,24 +224,15 @@ Page({ ...@@ -225,24 +224,15 @@ Page({
setWebSocket() setWebSocket()
}, },
onRoute(options) { onRoute(options) {
this.getGoodsPosition(options)
},
// 获取太阳膜类商品部位数据
getGoodsPosition(options) {
getPositionList().then(res => {
this.setData({
positionTypeList: res || []
})
if (options.orderCode) { if (options.orderCode) {
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
this.getDetail(options.orderCode) this.getDetail(options.orderCode)
} }
})
}, },
getDetail(orderCode) { async getDetail(orderCode) {
// console.log(orderCode) // console.log(orderCode)
let _this = this let _this = this
let { positionTypeList } = _this.data const positionTypeList = await getPositionList() || []
api api
.getOrderDetail({ .getOrderDetail({
orderCode orderCode
......
...@@ -20,8 +20,7 @@ Page({ ...@@ -20,8 +20,7 @@ Page({
showTip: false, showTip: false,
warrantyCardVisible: true, warrantyCardVisible: true,
showRatingPopup: false, showRatingPopup: false,
showRatingCard: true, // 显示评价卡片 showRatingCard: true // 显示评价卡片
positionTypeList: []
}, },
RatingPopupSetting() { RatingPopupSetting() {
this.setData({ this.setData({
...@@ -120,7 +119,13 @@ Page({ ...@@ -120,7 +119,13 @@ Page({
onRoute(options) { onRoute(options) {
console.log(options) console.log(options)
// options.orderCode = '230331185108355' // options.orderCode = '230331185108355'
this.getGoodsPosition(options) if (options.orderCode) {
this.setData({
orderCode: options.orderCode
})
this.getOrderDetail(options.orderCode)
// this.getGrass(options.orderCode)
}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -128,7 +133,9 @@ Page({ ...@@ -128,7 +133,9 @@ Page({
onLoad: function (options) { onLoad: function (options) {
console.log(options) console.log(options)
// debugger // debugger
this.getGoodsPosition(options) if (options.orderCode) {
this.getOrderDetail(options.orderCode)
}
let o = wx.$util.getStorageSync('dj_boutique_user_info') let o = wx.$util.getStorageSync('dj_boutique_user_info')
this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig) this.checkPhoneShow(app.globalData.YQorderSetting?.yqPhoneConfig)
this.setData({ this.setData({
...@@ -137,20 +144,7 @@ Page({ ...@@ -137,20 +144,7 @@ Page({
isStaff: app.globalData.isStaff isStaff: app.globalData.isStaff
}) })
}, },
// 获取太阳膜类商品部位数据
getGoodsPosition(options) {
getPositionList().then(res => {
this.setData({
positionTypeList: res || []
})
if (options.orderCode) {
this.setData({
orderCode: options.orderCode
})
this.getOrderDetail(options.orderCode)
}
})
},
checkPhoneShow(config) { checkPhoneShow(config) {
console.log('config', config) console.log('config', config)
// 有就屏蔽手机号的显示 // 有就屏蔽手机号的显示
...@@ -162,9 +156,9 @@ Page({ ...@@ -162,9 +156,9 @@ Page({
}) })
} }
}, },
getOrderDetail(orderCode) { async getOrderDetail(orderCode) {
let _this = this let _this = this
let { positionTypeList } = _this.data const positionTypeList = await getPositionList() || []
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
api api
.getOrderDetail({ .getOrderDetail({
......
...@@ -585,10 +585,14 @@ Page({ ...@@ -585,10 +585,14 @@ Page({
} }
}, },
getOrderBaseGoodsList(merchantId) { async getOrderBaseGoodsList(merchantId) {
let { first, orderObj, positionTypeList } = this.data let { first, orderObj } = this.data
let { subOrderList } = orderObj let { subOrderList } = orderObj
const selectPayType = orderObj.selectPayType == 0 const selectPayType = orderObj.selectPayType == 0
const positionTypeList = await getPositionList() || []
this.setData({
positionTypeList
})
api api
.getOrderBaseGoodsList({ .getOrderBaseGoodsList({
merchantId, merchantId,
...@@ -742,21 +746,12 @@ Page({ ...@@ -742,21 +746,12 @@ Page({
}) })
}, },
// 获取太阳膜类商品部位数据
getGoodsPosition() {
getPositionList().then(res => {
this.setData({
positionTypeList: res || []
})
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {
this.getConfig() this.getConfig()
this.getGoodsPosition()
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
......
...@@ -17,8 +17,7 @@ Page({ ...@@ -17,8 +17,7 @@ Page({
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png', defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
failCustomerService: '../images/kfrefresh.png', failCustomerService: '../images/kfrefresh.png',
warrantyCardVisible: true, warrantyCardVisible: true,
signatureSwitch: false, //不需要走签名逻辑 没有开启签名功能或则是战败订单 signatureSwitch: false //不需要走签名逻辑 没有开启签名功能或则是战败订单
positionTypeList: []
}, },
jumpUserPortrait (){ jumpUserPortrait (){
wx.$router.go('tabDate.userPortrait', this.data.orderInfo) wx.$router.go('tabDate.userPortrait', this.data.orderInfo)
...@@ -87,14 +86,24 @@ Page({ ...@@ -87,14 +86,24 @@ Page({
}, },
onRoute(options) { onRoute(options) {
// console.log(options) // console.log(options)
this.getGoodsPosition(options) if (options.orderCode) {
this.getOrderDetail(options.orderCode)
this.setData({
orderCode: options.orderCode
})
}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(options.orderCode) // console.log(options.orderCode)
this.getGoodsPosition(options) if (options.orderCode) {
this.getOrderDetail(options.orderCode)
this.setData({
orderCode: options.orderCode
})
}
let o = wx.$util.getStorageSync('dj_boutique_user_info') let o = wx.$util.getStorageSync('dj_boutique_user_info')
...@@ -107,21 +116,6 @@ Page({ ...@@ -107,21 +116,6 @@ Page({
}) })
}, },
// 获取太阳膜类商品部位数据
getGoodsPosition(options) {
getPositionList().then(res => {
this.setData({
positionTypeList: res || []
})
if (options.orderCode) {
this.getOrderDetail(options.orderCode)
this.setData({
orderCode: options.orderCode
})
}
})
},
checkPhoneShow(config) { checkPhoneShow(config) {
// 有就屏蔽手机号的显示 // 有就屏蔽手机号的显示
if (config) { if (config) {
...@@ -132,10 +126,10 @@ Page({ ...@@ -132,10 +126,10 @@ Page({
}) })
} }
}, },
getOrderDetail(orderCode) { async getOrderDetail(orderCode) {
// console.log(orderCode) // console.log(orderCode)
let _this = this let _this = this
let { positionTypeList } = _this.data const positionTypeList = await getPositionList() || []
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
api api
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!