|
@@ -2,7 +2,8 @@
|
|
<view class="page">
|
|
<view class="page">
|
|
<!-- <dpupop :show="showLsPop" dtitle="LS会员标签" /> -->
|
|
<!-- <dpupop :show="showLsPop" dtitle="LS会员标签" /> -->
|
|
|
|
|
|
- <view class="top" :style="{background: `url(${picUrl+'/static/other/inviteBg.jpg'}) no-repeat;`}">
|
|
|
|
|
|
+ <view class="top"
|
|
|
|
+ :style="{background: `url(${ defBg?picBase+defBg:picUrl+'/static/other/inviteBg.jpg'}) no-repeat;`}">
|
|
<navBar title="" :back="true" color="white" background="rgba(0,0,0,0)" />
|
|
<navBar title="" :back="true" color="white" background="rgba(0,0,0,0)" />
|
|
|
|
|
|
<view class="title">
|
|
<view class="title">
|
|
@@ -480,6 +481,8 @@ height: 140rpx;"></image>
|
|
postInviteReq,
|
|
postInviteReq,
|
|
getMyInviteReq,
|
|
getMyInviteReq,
|
|
addInviteReq,
|
|
addInviteReq,
|
|
|
|
+
|
|
|
|
+ getInviteDetailBg
|
|
} from '@/api/test/index.js'
|
|
} from '@/api/test/index.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -487,7 +490,16 @@ height: 140rpx;"></image>
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ defBg: '',
|
|
|
|
+ defVip: '',
|
|
|
|
+ defLs: '',
|
|
|
|
+ defHy: '',
|
|
|
|
+ defYh: '',
|
|
|
|
+ defDg: '',
|
|
|
|
+
|
|
|
|
+
|
|
picUrl: this.$picUrl,
|
|
picUrl: this.$picUrl,
|
|
|
|
+ picBase: this.$picBase,
|
|
currTabIndex: 0,
|
|
currTabIndex: 0,
|
|
type: '',
|
|
type: '',
|
|
|
|
|
|
@@ -570,7 +582,30 @@ height: 140rpx;"></image>
|
|
forbidQuickClick: false
|
|
forbidQuickClick: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onLoad(o) {
|
|
|
|
|
|
+ async onLoad(o) {
|
|
|
|
+ // 获取自定义图
|
|
|
|
+ let res = await getInviteDetailBg()
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ console.log('获取邀请详情页背景图返回值:', res);
|
|
|
|
+ res.data[0].forEach((item, index) => {
|
|
|
|
+ if (item.share_type == "vip") {
|
|
|
|
+ this.defVip = item.head_image
|
|
|
|
+ } else if (item.share_type == "ls") {
|
|
|
|
+ this.defLs = item.head_image
|
|
|
|
+ } else if (item.share_type == "hy") {
|
|
|
|
+ this.defHy = item.head_image
|
|
|
|
+ } else if (item.share_type == "hd") {
|
|
|
|
+ this.defYh = item.head_image
|
|
|
|
+ } else if (item.share_type == "dg") {
|
|
|
|
+ this.defDg = item.head_image
|
|
|
|
+ } else {
|
|
|
|
+ this.defBg = item.head_image
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$toast(res.message)
|
|
|
|
+ }
|
|
|
|
+
|
|
this.type = o.type
|
|
this.type = o.type
|
|
|
|
|
|
if (o.type == 'vip') {
|
|
if (o.type == 'vip') {
|
|
@@ -746,7 +781,7 @@ height: 140rpx;"></image>
|
|
return {
|
|
return {
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
- imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
|
|
+ imageUrl: this.$picBase + this.defDg,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
mpId: this.$appId,
|
|
mpId: this.$appId,
|
|
type: this.$shareType,
|
|
type: this.$shareType,
|
|
@@ -800,7 +835,7 @@ height: 140rpx;"></image>
|
|
return {
|
|
return {
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
- imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
|
|
+ imageUrl: this.$picBase + this.defHy,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
mpId: this.$appId,
|
|
mpId: this.$appId,
|
|
type: this.$shareType,
|
|
type: this.$shareType,
|
|
@@ -851,7 +886,8 @@ height: 140rpx;"></image>
|
|
return {
|
|
return {
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
- imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
|
|
+ // imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
+ imageUrl: this.$picBase + this.defYh,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
mpId: this.$appId,
|
|
mpId: this.$appId,
|
|
type: this.$shareType,
|
|
type: this.$shareType,
|
|
@@ -905,7 +941,7 @@ height: 140rpx;"></image>
|
|
return {
|
|
return {
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
- imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
|
|
+ imageUrl: this.$picBase + this.defLs,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
mpId: this.$appId,
|
|
mpId: this.$appId,
|
|
type: this.$shareType,
|
|
type: this.$shareType,
|
|
@@ -976,7 +1012,7 @@ height: 140rpx;"></image>
|
|
return {
|
|
return {
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
title: this.type == 'vip' ? '邀您成为VIP' : this.type == 'ls' ? '邀您成为L会员' : this.type == 'hy' ?
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
'邀您成为会员' : this.type == 'yh' ? '邀您成为活动用户' : '邀您成为产业电工',
|
|
- imageUrl: this.$picUrl + '/static/other/inviteBg.jpg',
|
|
|
|
|
|
+ imageUrl: this.$picBase + this.defVip,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
path: '/pages/index?inviteId=' + this.inviteId,
|
|
mpId: this.$appId,
|
|
mpId: this.$appId,
|
|
type: this.$shareType,
|
|
type: this.$shareType,
|