3
0
Fork 0

feat(selfSerivce): 自助服务-户籍变更跳转逻辑处理

This commit is contained in:
woody 2025-05-26 17:58:09 +08:00
parent 1f11f6ba79
commit cbadf2ae09
3 changed files with 557 additions and 559 deletions

View File

@ -1,26 +1,26 @@
<template> <template>
<view class="content"> <view class="content">
<view @click="goRouter(item.path)" <view
class="kuaibox" @click="goRouter(item.path)"
v-for="(item,index) in theselfHeader" class="kuaibox"
:key="index"> v-for="(item, index) in theselfHeader"
:key="index"
>
<view class=""> <view class="">
{{item.name}} {{ item.name }}
</view> </view>
<image class="kuaiimg" <image class="kuaiimg" :src="item.url" mode=""></image>
:src="item.url"
mode=""></image>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import * as sel from '@/config/selfService.js' import * as sel from '@/config/selfService.js'
import { mapGetters } from "vuex"; import { mapGetters } from 'vuex'
export default { export default {
computed: { computed: {
...mapGetters(["user"]), ...mapGetters(['user']),
}, },
data() { data() {
return { return {
@ -43,12 +43,6 @@ export default {
path: '/pages/selfService/updateDomicile/updateDomicile', path: '/pages/selfService/updateDomicile/updateDomicile',
id: '3', id: '3',
}, },
{
name: '经销商认证',
url: '../../static/images/zz_jxs.png',
path: '/pages/delear/index',
id: '4',
},
// { // {
// name: '', // name: '',
// url: '../../static/images/zz_thhdd.png', // url: '../../static/images/zz_thhdd.png',
@ -69,97 +63,12 @@ export default {
}, },
], ],
theselfHeader: [], theselfHeader: [],
userInfo:'' userInfo: '',
} }
}, },
onLoad() { onShow() {
this.userInfo = uni.getStorageSync("User"); this.userInfo = uni.getStorageSync('User')
this.checkIfShow() this.checkIfShow()
if(this.userInfo.makerSpaceShow == 1||this.userInfo.makerSpaceShow==undefined) {
this.selfServiceList= [
{
name: '修改地址',
url: '../../static/images/zz_dz.png',
path: '/pages/selfService/updateAdress/updateAdress',
id: '1',
},
// {
// name: '',
// url: '../../static/images/zz_tjbb.png',
// path: '/pages/selfService/orderPick/orderPick',
// id: '2',
// },
{
name: '户籍变更',
url: '../../static/images/zz_gxbg.png',
path: '/pages/selfService/updateDomicile/updateDomicile',
id: '3',
},
// {
// name: '',
// url: '../../static/images/zz_thhdd.png',
// path: '/pages/selfService/monthlyHistory/monthlyHistory',
// id: '7',
// },
{
name: '自助撤单',
url: '../../static/images/zz_gzs.png',
path: '/pages/selfService/cancleOrder/index',
id: '8',
},
{
name: '实名认证',
url: '../../static/images/zz_jxs.png',
path: '/pages/selfService/realName/realName',
id: '9',
},
]
}else{
this.selfServiceList= [
{
name: '修改地址',
url: '../../static/images/zz_dz.png',
path: '/pages/selfService/updateAdress/updateAdress',
id: '1',
},
// {
// name: '',
// url: '../../static/images/zz_tjbb.png',
// path: '/pages/selfService/orderPick/orderPick',
// id: '2',
// },
{
name: '户籍变更',
url: '../../static/images/zz_gxbg.png',
path: '/pages/selfService/updateDomicile/updateDomicile',
id: '3',
},
{
name: '体验中心发起人认证',
url: '../../static/images/zz_cxlj.png',
path: '/pages/makerspace/index',
id: '6',
},
// {
// name: '',
// url: '../../static/images/zz_thhdd.png',
// path: '/pages/selfService/monthlyHistory/monthlyHistory',
// id: '7',
// },
{
name: '自助撤单',
url: '../../static/images/zz_gzs.png',
path: '/pages/selfService/cancleOrder/index',
id: '8',
},
{
name: '实名认证',
url: '../../static/images/zz_jxs.png',
path: '/pages/selfService/realName/realName',
id: '9',
},
]
}
}, },
methods: { methods: {
goRouter(path) { goRouter(path) {
@ -168,8 +77,8 @@ export default {
}) })
}, },
checkIfShow() { checkIfShow() {
sel.checkIfShow().then((res) => { sel.checkIfShow().then(res => {
this.selfServiceList.forEach((ele) => { this.selfServiceList.forEach(ele => {
if (ele.id == 1) { if (ele.id == 1) {
ele.ifshow = res.data.existAddress ele.ifshow = res.data.existAddress
} else if (ele.id == 2) { } else if (ele.id == 2) {
@ -187,13 +96,12 @@ export default {
// existMemberMonth // existMemberMonth
} else if (ele.id == 8) { } else if (ele.id == 8) {
ele.ifshow = res.data.selfRevokeOrder ele.ifshow = res.data.selfRevokeOrder
} else if (ele.id == 9&&this.userInfo.pkCountry == 1) { } else if (ele.id == 9 && this.userInfo.pkCountry == 1) {
ele.ifshow = res.data.existRealName ele.ifshow = res.data.existRealName
} }
}) })
const theselfHeader = [] const theselfHeader = []
this.selfServiceList.forEach((element) => { this.selfServiceList.forEach(element => {
if (element.ifshow == 0) { if (element.ifshow == 0) {
theselfHeader.push(element) theselfHeader.push(element)
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="content"> <view class="content">
<view class="tab"> <!-- <view class="tab">
<view <view
v-for="(item, index) in tabList" v-for="(item, index) in tabList"
:key="index" :key="index"
@ -10,7 +10,7 @@
> >
{{ item.label }} {{ item.label }}
</view> </view>
</view> </view> -->
<template v-if="tableData.length > 0"> <template v-if="tableData.length > 0">
<view class="thecontent" v-for="(item, index) in tableData" :key="index"> <view class="thecontent" v-for="(item, index) in tableData" :key="index">
@ -177,7 +177,7 @@ export default {
.join('&') .join('&')
// let paramsString = encodeURIComponent(JSON.stringify(params)) // let paramsString = encodeURIComponent(JSON.stringify(params))
uni.navigateTo({ uni.redirectTo({
url: '/pages/selfService/updateDomicile/addDomicile?' + queryString, url: '/pages/selfService/updateDomicile/addDomicile?' + queryString,
}) })
} }