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({ ...@@ -172,7 +172,7 @@ Component({
if (!chooseList.length) return wx.$util.showToast('请勾选商品') if (!chooseList.length) return wx.$util.showToast('请勾选商品')
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
thisPage.setGoodsTotal&&thisPage.setGoodsTotal(chooseList) // thisPage.setGoodsTotal&&thisPage.setGoodsTotal(chooseList)
// console.log(chooseList) // console.log(chooseList)
thisPage.setData({ thisPage.setData({
goodsList: chooseList goodsList: chooseList
......
...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 4 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2 //手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true const manual = false
const release = false const release = false
// 判断小程序环境 // 判断小程序环境
......
...@@ -12,12 +12,12 @@ Page({ ...@@ -12,12 +12,12 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { }, onLoad(options) {},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { }, onReady() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -29,35 +29,37 @@ Page({ ...@@ -29,35 +29,37 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { }, onHide() {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { }, onUnload() {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { }, onPullDownRefresh() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { }, onReachBottom() {},
init() { init() {
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
wx.nextTick(() => { wx.nextTick(() => {
// 没有登录信息 退出登录 // 没有登录信息 退出登录
if (!userInfo || !Object.keys(userInfo).length) { if (!userInfo || !Object.keys(userInfo).length) {
return app.login(false,'请重新登录') return app.login(false, '请重新登录')
} }
// 未选择4s店 非超管 // 未选择4s店 非超管
if ((userInfo?.shopMerchantId ?? '') === '' && !userInfo?.isSuper) return wx.$router.reLaunch('pages.accountItems') 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('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 @@ ...@@ -189,7 +189,7 @@
placeholder="30字以内" placeholder="30字以内"
value="{{ orderObj.remark }}" value="{{ orderObj.remark }}"
/> />
<!-- <view class="sellerUserId"> <view class="sellerUserId">
<gl-cell <gl-cell
border border
valueAlign="right" valueAlign="right"
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
</view> </view>
</block> </block>
</gl-cell> </gl-cell>
</view> --> </view>
</view> </view>
<view class="box"> <view class="box">
<block wx:if="{{ orderObj.merchantId }}"> <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!