Commit 68fee097 by zhangxw

联调修改

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