Commit a310791f by 张立顺

线上bug补单订单修复

1 parent a86b0e11
......@@ -172,7 +172,7 @@ Component({
if (!chooseList.length) return wx.$util.showToast('请勾选商品')
let thisPage = wx.$router.getPageInstance()
thisPage.setGoodsTotal&&thisPage.setGoodsTotal(chooseList)
// thisPage.setGoodsTotal&&thisPage.setGoodsTotal(chooseList)
// console.log(chooseList)
thisPage.setData({
goodsList: chooseList
......
......@@ -12,12 +12,12 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) { },
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
onReady() {},
/**
* 生命周期函数--监听页面显示
......@@ -29,35 +29,37 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() { },
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() { },
onReachBottom() {},
init() {
let userInfo = wx.$util.getUserInfo()
wx.nextTick(() => {
// 没有登录信息 退出登录
if (!userInfo || !Object.keys(userInfo).length) {
return app.login(false,'请重新登录')
return app.login(false, '请重新登录')
}
// 未选择4s店 非超管
if ((userInfo?.shopMerchantId ?? '') === '' && !userInfo?.isSuper) return wx.$router.reLaunch('pages.accountItems')
// 未选择场景
if ((userInfo?.sceneType ?? '') === '') return wx.$router.reLaunch('pages.sceneIndex')
if (!((userInfo?.sceneType ?? '') === '')) return wx.$router.reLaunch(constantData?.pageUrl[userInfo?.sceneType], {resetStoreList: true})
if (!((userInfo?.sceneType ?? '') === '')) return wx.$router.reLaunch(constantData?.pageUrl[userInfo?.sceneType], { resetStoreList: true })
// 登录了更新用户权限
app.gobalCheckYqdSuper(userInfo)
})
}
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!