Commit edfa9717 by 前端

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents cc4b8f85 d72c682f
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
openSceneArr: [], openSceneArr: [],
flag: false, flag: false,
userInfo: {}, userInfo: {},
selectMerchantId:'' selectMerchantId: ''
} }
}, },
onLoad () { onLoad () {
...@@ -53,7 +53,6 @@ export default { ...@@ -53,7 +53,6 @@ export default {
methods: { methods: {
init (userInfo) { init (userInfo) {
this.userInfo = userInfo this.userInfo = userInfo
this.getMerchantList()
this.getSceneArr() this.getSceneArr()
}, },
getSceneArr () { getSceneArr () {
...@@ -67,6 +66,9 @@ export default { ...@@ -67,6 +66,9 @@ export default {
}).then(result => { }).then(result => {
uni.hideLoading() uni.hideLoading()
this.openSceneArr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || [] this.openSceneArr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || []
this.getMerchantList()
}).catch(err => {
this.getMerchantList()
}) })
}, },
getMerchantList () { getMerchantList () {
...@@ -81,6 +83,7 @@ export default { ...@@ -81,6 +83,7 @@ export default {
this.loginUserInfoList = result this.loginUserInfoList = result
this.copyLoginUserInfoList = result this.copyLoginUserInfoList = result
this.flag = true this.flag = true
if (result && result.length == 1) this.chooseAccount(result[0])
}).catch(err => { }).catch(err => {
uni.hideLoading() uni.hideLoading()
console.log(err) console.log(err)
...@@ -109,7 +112,7 @@ export default { ...@@ -109,7 +112,7 @@ export default {
title: '暂无开通业务,请联系总部管理员', title: '暂无开通业务,请联系总部管理员',
icon: 'none' icon: 'none'
}) })
this.$emit('chooseMerchant',{ this.$emit('chooseMerchant', {
...userInfo, ...userInfo,
shopMerchantName, shopMerchantName,
shopMerchantId, shopMerchantId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!