Merge branch 'lx-dev' of gitee.com:cabbage_qd/web-base-h5 into lx-test
This commit is contained in:
commit
c3a72be3ca
|
@ -1,26 +1,26 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view @click="goRouter(item.path)"
|
||||
class="kuaibox"
|
||||
v-for="(item,index) in theselfHeader"
|
||||
:key="index">
|
||||
<view
|
||||
@click="goRouter(item.path)"
|
||||
class="kuaibox"
|
||||
v-for="(item, index) in theselfHeader"
|
||||
:key="index"
|
||||
>
|
||||
<view class="">
|
||||
{{item.name}}
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<image class="kuaiimg"
|
||||
:src="item.url"
|
||||
mode=""></image>
|
||||
<image class="kuaiimg" :src="item.url" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as sel from '@/config/selfService.js'
|
||||
import { mapGetters } from "vuex";
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
...mapGetters(["user"]),
|
||||
...mapGetters(['user']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -43,12 +43,6 @@ export default {
|
|||
path: '/pages/selfService/updateDomicile/updateDomicile',
|
||||
id: '3',
|
||||
},
|
||||
{
|
||||
name: '经销商认证',
|
||||
url: '../../static/images/zz_jxs.png',
|
||||
path: '/pages/delear/index',
|
||||
id: '4',
|
||||
},
|
||||
// {
|
||||
// name: '月度历史累计业绩',
|
||||
// url: '../../static/images/zz_thhdd.png',
|
||||
|
@ -69,97 +63,12 @@ export default {
|
|||
},
|
||||
],
|
||||
theselfHeader: [],
|
||||
userInfo:''
|
||||
userInfo: '',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.userInfo = uni.getStorageSync("User");
|
||||
onShow() {
|
||||
this.userInfo = uni.getStorageSync('User')
|
||||
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: {
|
||||
goRouter(path) {
|
||||
|
@ -168,8 +77,8 @@ export default {
|
|||
})
|
||||
},
|
||||
checkIfShow() {
|
||||
sel.checkIfShow().then((res) => {
|
||||
this.selfServiceList.forEach((ele) => {
|
||||
sel.checkIfShow().then(res => {
|
||||
this.selfServiceList.forEach(ele => {
|
||||
if (ele.id == 1) {
|
||||
ele.ifshow = res.data.existAddress
|
||||
} else if (ele.id == 2) {
|
||||
|
@ -187,13 +96,12 @@ export default {
|
|||
// existMemberMonth
|
||||
} else if (ele.id == 8) {
|
||||
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
|
||||
}
|
||||
})
|
||||
const theselfHeader = []
|
||||
this.selfServiceList.forEach((element) => {
|
||||
|
||||
this.selfServiceList.forEach(element => {
|
||||
if (element.ifshow == 0) {
|
||||
theselfHeader.push(element)
|
||||
}
|
||||
|
@ -234,4 +142,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="tab">
|
||||
<!-- <view class="tab">
|
||||
<view
|
||||
v-for="(item, index) in tabList"
|
||||
:key="index"
|
||||
|
@ -10,7 +10,7 @@
|
|||
>
|
||||
{{ item.label }}
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<template v-if="tableData.length > 0">
|
||||
<view class="thecontent" v-for="(item, index) in tableData" :key="index">
|
||||
|
@ -177,7 +177,7 @@ export default {
|
|||
.join('&')
|
||||
// let paramsString = encodeURIComponent(JSON.stringify(params))
|
||||
|
||||
uni.navigateTo({
|
||||
uni.redirectTo({
|
||||
url: '/pages/selfService/updateDomicile/addDomicile?' + queryString,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue