Commit bdf400b3 by 张立顺

Merge branch 'fix_dev_v4.29.0' into 'develop'

Fix dev v4.29.0

See merge request !175
2 parents 61c219c2 a310791f
......@@ -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
......
......@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 4
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true
const manual = false
const release = false
// 判断小程序环境
......
......@@ -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)
})
}
})
......@@ -189,7 +189,7 @@
placeholder="30字以内"
value="{{ orderObj.remark }}"
/>
<!-- <view class="sellerUserId">
<view class="sellerUserId">
<gl-cell
border
valueAlign="right"
......@@ -212,7 +212,7 @@
</view>
</block>
</gl-cell>
</view> -->
</view>
</view>
<view class="box">
<block wx:if="{{ orderObj.merchantId }}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!