进门店验证实名

This commit is contained in:
liuye
2024-06-27 10:38:36 +08:00
parent 1b1a55028f
commit 2c975543be

View File

@@ -4,12 +4,14 @@
<u-tabs :list="tabList" :is-scroll="false" :current="tabIndex" @change="change" inactive-color="#222" active-color="#222"
height="100" :bar-style="barStyle"></u-tabs>
</div>
<Situation v-if="tabIndex != 1" @toStoreDetail="toStoreDetail"></Situation>
<Evaluate v-else @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail"></Evaluate>
<Situation v-if="tabIndex != 1 && user.phone" @toStoreDetail="toStoreDetail"></Situation>
<Evaluate v-if="tabIndex == 1 && user.phone" @toEvaluateForm="toEvaluateForm" @toStoreDetail="toStoreDetail"></Evaluate>
</div>
</template>
<script>
import {mapState} from 'vuex'
import Situation from './components/Situation'
import Evaluate from './components/Evaluate'
export default {
@@ -30,6 +32,9 @@ export default {
}
}
},
computed: {
...mapState(['user'])
},
onReady() {
uni.setNavigationBarColor({
frontColor: '#000000',
@@ -40,6 +45,15 @@ export default {
if(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: {
change(e) {