进门店验证实名
This commit is contained in:
@@ -4,12 +4,14 @@
|
|||||||
<u-tabs :list="tabList" :is-scroll="false" :current="tabIndex" @change="change" inactive-color="#222" active-color="#222"
|
<u-tabs :list="tabList" :is-scroll="false" :current="tabIndex" @change="change" inactive-color="#222" active-color="#222"
|
||||||
height="100" :bar-style="barStyle"></u-tabs>
|
height="100" :bar-style="barStyle"></u-tabs>
|
||||||
</div>
|
</div>
|
||||||
<Situation v-if="tabIndex != 1" @toStoreDetail="toStoreDetail"></Situation>
|
<Situation v-if="tabIndex != 1 && user.phone" @toStoreDetail="toStoreDetail"></Situation>
|
||||||
<Evaluate v-else @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail"></Evaluate>
|
<Evaluate v-if="tabIndex == 1 && user.phone" @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail"></Evaluate>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from 'vuex'
|
||||||
import Situation from './components/Situation'
|
import Situation from './components/Situation'
|
||||||
import Evaluate from './components/Evaluate'
|
import Evaluate from './components/Evaluate'
|
||||||
export default {
|
export default {
|
||||||
@@ -30,6 +32,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user'])
|
||||||
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
uni.setNavigationBarColor({
|
uni.setNavigationBarColor({
|
||||||
frontColor: '#000000',
|
frontColor: '#000000',
|
||||||
@@ -40,6 +45,15 @@ export default {
|
|||||||
if(e.tabIndex) {
|
if(e.tabIndex) {
|
||||||
this.tabIndex = e.tabIndex
|
this.tabIndex = e.tabIndex
|
||||||
}
|
}
|
||||||
|
if(!this.user.phone) {
|
||||||
|
this.$dialog.confirm({
|
||||||
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
|
confirmText: '去认证'
|
||||||
|
}).then(() => {
|
||||||
|
this.$linkTo('/pages/AppMine/userInfo?isFromTabbar=1&path=/pages/AppStore/AppStore')
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
change(e) {
|
change(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user