mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 22:16:45 +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 :border="false" clickable :column-num="4">
|
||||||
<!-- 内勤账号只有月度桂冠会员名单 -->
|
<!-- 内勤账号只有月度桂冠会员名单 -->
|
||||||
<van-grid-item v-for="(item, index) in menuList" :key="index" @click="jumpFunc(item.targetUrl)">
|
<van-grid-item v-for="(item, index) in menuList" :key="index" @click="jumpFunc(item.targetUrl)">
|
||||||
<van-image :src="item.imgSrc" />
|
<van-image :src="item.img" />
|
||||||
<span class="text-center mt10 fs12 w80">{{ item.menuName }}</span>
|
<span class="text-center mt10 fs12 w80">{{ item.title }}</span>
|
||||||
</van-grid-item>
|
</van-grid-item>
|
||||||
</van-grid>
|
</van-grid>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Grid, GridItem } from 'vant'
|
import { Grid, GridItem } from 'vant'
|
||||||
import { getAgentInfo } from '@/api/ebiz/my/my'
|
import { getAgentInfo,getServiceConfig } from '@/api/ebiz/my/my'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LaurelClub',
|
name: 'LaurelClub',
|
||||||
@@ -26,30 +26,30 @@ export default {
|
|||||||
active: 0,
|
active: 0,
|
||||||
menuListNei: [
|
menuListNei: [
|
||||||
{
|
{
|
||||||
menuName: '月度桂冠会员名单',
|
title: '月度桂冠会员名单',
|
||||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/membershipList.png',
|
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggydhy.png',
|
||||||
targetUrl: 'MembershipList'
|
targetUrl: 'MembershipList'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuListWai: [
|
menuListWai: [
|
||||||
{
|
{
|
||||||
menuName: '桂冠数据',
|
title: '桂冠数据',
|
||||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/laurelData.png',
|
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggsj.png',
|
||||||
targetUrl: 'LaurelData'
|
targetUrl: 'LaurelData'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
menuName: '月度桂冠会员名单',
|
title: '月度桂冠会员名单',
|
||||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/membershipList.png',
|
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggydhy.png',
|
||||||
targetUrl: 'MembershipList'
|
targetUrl: 'MembershipList'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
menuName: '桂冠星路历程',
|
title: '桂冠星路历程',
|
||||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/starProcess.png',
|
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggxllc.png',
|
||||||
targetUrl: 'StarProcess'
|
targetUrl: 'StarProcess'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
menuName: '桂冠专属海报',
|
title: '桂冠专属海报',
|
||||||
imgSrc: this.$assetsUrl + 'images/app/service/icon/exclusivePosters.png',
|
img: this.$assetsUrl + 'images/app/service/icon/blue_icon_ggzshb.png',
|
||||||
targetUrl: 'ExclusivePosters'
|
targetUrl: 'ExclusivePosters'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -57,12 +57,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
this.initMenuList()
|
||||||
this.initThisPage()
|
//this.initThisPage()
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
async initThisPage() {
|
||||||
const res = await getAgentInfo({})
|
const res = await getAgentInfo({})
|
||||||
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
// res.branchType 以N打头的是内勤 其他是外勤
|
// res.branchType 以N打头的是内勤 其他是外勤
|
||||||
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0'
|
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0'
|
||||||
|
|||||||
Reference in New Issue
Block a user