mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 08:06:44 +08:00
【桂冠首页】---与服务页调一样的接口控制
This commit is contained in:
@@ -102,5 +102,14 @@ export function getWXHeadImgConfig(data) {
|
||||
})
|
||||
}
|
||||
|
||||
//登录用户
|
||||
export function getServiceConfig(data) {
|
||||
return request({
|
||||
url: getUrl('/app/service-Config', 1),
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<van-grid :border="false" clickable :column-num="4">
|
||||
<!-- 内勤账号只有月度桂冠会员名单 -->
|
||||
<van-grid-item v-for="(item, index) in menuList" :key="index" @click="jumpFunc(item.targetUrl)">
|
||||
<van-image :src="item.imgSrc" />
|
||||
<span class="text-center mt10 fs12 w80">{{ item.menuName }}</span>
|
||||
<van-image :src="item.img" />
|
||||
<span class="text-center mt10 fs12 w80">{{ item.title }}</span>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
</div>
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<script>
|
||||
import { Grid, GridItem } from 'vant'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my'
|
||||
import { getAgentInfo,getServiceConfig } from '@/api/ebiz/my/my'
|
||||
|
||||
export default {
|
||||
name: 'LaurelClub',
|
||||
@@ -26,30 +26,30 @@ export default {
|
||||
active: 0,
|
||||
menuListNei: [
|
||||
{
|
||||
menuName: '月度桂冠会员名单',
|
||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/membershipList.png',
|
||||
title: '月度桂冠会员名单',
|
||||
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggydhy.png',
|
||||
targetUrl: 'MembershipList'
|
||||
}
|
||||
],
|
||||
menuListWai: [
|
||||
{
|
||||
menuName: '桂冠数据',
|
||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/laurelData.png',
|
||||
title: '桂冠数据',
|
||||
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggsj.png',
|
||||
targetUrl: 'LaurelData'
|
||||
},
|
||||
{
|
||||
menuName: '月度桂冠会员名单',
|
||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/membershipList.png',
|
||||
title: '月度桂冠会员名单',
|
||||
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggydhy.png',
|
||||
targetUrl: 'MembershipList'
|
||||
},
|
||||
{
|
||||
menuName: '桂冠星路历程',
|
||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/starProcess.png',
|
||||
title: '桂冠星路历程',
|
||||
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggxllc.png',
|
||||
targetUrl: 'StarProcess'
|
||||
},
|
||||
{
|
||||
menuName: '桂冠专属海报',
|
||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/exclusivePosters.png',
|
||||
title: '桂冠专属海报',
|
||||
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggzshb.png',
|
||||
targetUrl: 'ExclusivePosters'
|
||||
}
|
||||
],
|
||||
@@ -57,12 +57,24 @@ export default {
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
|
||||
this.initThisPage()
|
||||
this.initMenuList()
|
||||
//this.initThisPage()
|
||||
},
|
||||
methods: {
|
||||
async initMenuList(){
|
||||
const res =await getServiceConfig({})
|
||||
if (res.sections) {
|
||||
res.sections.forEach(e=>{
|
||||
if(e.name.indexOf('桂冠俱乐部')!=-1){
|
||||
this.menuList =e.items;
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
async initThisPage() {
|
||||
const res = await getAgentInfo({})
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
// res.branchType 以N打头的是内勤 其他是外勤
|
||||
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0'
|
||||
|
||||
Reference in New Issue
Block a user