Browse Source

'更新接口数据'

master
Lj 2 days ago
parent
commit
9750da9b72
5 changed files with 34 additions and 167 deletions
  1. +9
    -68
      pages/subcomponent/promotion.vue
  2. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/subcomponent/promotion.js.map
  3. +20
    -47
      unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.js
  4. +1
    -1
      unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.wxml
  5. +3
    -50
      unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.wxss

+ 9
- 68
pages/subcomponent/promotion.vue View File

@ -82,18 +82,7 @@
<!-- 权益说明表格 -->
<view class="rights-section">
<view class="rights-title">权益说明</view>
<view class="rights-table">
<view class="table-header">
<view class="th" v-for="(h, i) in rightsHeader" :key="i">{{h}}</view>
</view>
<view class="table-row" v-for="(row, i) in rightsRows" :key="i">
<view class="td" v-for="(cell, j) in row" :key="j">
<text v-if="cell==='✓'" class="cell-check"></text>
<text v-else-if="cell==='X'" class="cell-x">X</text>
<text v-else>{{cell}}</text>
</view>
</view>
</view>
<image :src="indexLvxingUrl" mode="widthFix" class="rights-image" />
</view>
<!-- 联系客服二维码 -->
<view class="qrcode-section">
@ -149,18 +138,6 @@ export default {
tabActive: 0,
rankList: [
],
rightsHeader: ['推广锁粉权限', '用户', '推广官', '合伙人'],
rightsRows: [
['推广锁粉权限', 'X', '✓', '✓'],
['直接推广收益', 'X', '20%', '20%'],
['间接推广收益', 'X', 'X', '5%'],
['官方群服务', 'X', '20%', '25%'],
['推广课程支持', 'X', '5%', '25%'],
['推广工具包', 'X', '20%', '25%'],
['VIP专属客服', 'X', 'X', '25%'],
['收益模式', 'X', '5%', '主动收益'],
['线下沙龙', 'X', '✓', '主动收益'],
],
status: 0,
showProgressModal: false
}
@ -171,6 +148,11 @@ export default {
const item = getApp().globalData.configData.find(i => i.keyName === 'kefu_code')
return item ? item.keyContent : ''
},
indexLvxingUrl() {
console.log(getApp().globalData.configData,'getApp().globalData.configData')
const item = getApp().globalData.configData.find(i => i.keyName === 'index_lvxing')
return item ? item.keyContent : ''
}
},
onLoad() {
const sysInfo = uni.getSystemInfoSync()
@ -604,50 +586,9 @@ export default {
text-align: center;
margin-bottom: 24rpx;
}
.rights-table {
background: #fff;
border-radius: 24rpx;
border: 1rpx solid #ff9900;
overflow: hidden;
box-sizing: border-box;
.table-header {
display: flex;
background: #fff7ed;
border-bottom: 1rpx solid #ff9900;
.th {
flex: 1;
text-align: center;
font-size: 26rpx;
color: #ff9900;
font-weight: bold;
padding: 24rpx 0;
border-right: 1rpx solid #ff9900;
&:last-child { border-right: none; }
}
}
.table-row {
display: flex;
border-bottom: 1rpx solid #ffe5c2;
&:last-child { border-bottom: none; }
.td {
flex: 1;
text-align: center;
font-size: 26rpx;
color: #222;
padding: 20rpx 0;
border-right: 1rpx solid #ffe5c2;
&:last-child { border-right: none; }
.cell-check {
color: #13ac47;
font-size: 30rpx;
font-weight: bold;
}
.cell-x {
color: #bbb;
font-size: 30rpx;
}
}
}
.rights-image {
width: 100%;
height: auto;
}
}


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/subcomponent/promotion.js.map
File diff suppressed because it is too large
View File


+ 20
- 47
unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.js View File

@ -21,27 +21,20 @@ const _sfc_main = {
},
tabActive: 0,
rankList: [],
rightsHeader: ["推广锁粉权限", "用户", "推广官", "合伙人"],
rightsRows: [
["推广锁粉权限", "X", "✓", "✓"],
["直接推广收益", "X", "20%", "20%"],
["间接推广收益", "X", "X", "5%"],
["官方群服务", "X", "20%", "25%"],
["推广课程支持", "X", "5%", "25%"],
["推广工具包", "X", "20%", "25%"],
["VIP专属客服", "X", "X", "25%"],
["收益模式", "X", "5%", "主动收益"],
["线下沙龙", "X", "✓", "主动收益"]
],
status: 0,
showProgressModal: false
};
},
computed: {
qrcodeUrl() {
common_vendor.index.__f__("log", "at pages/subcomponent/promotion.vue:170", getApp().globalData.configData, "getApp().globalData.configData");
common_vendor.index.__f__("log", "at pages/subcomponent/promotion.vue:147", getApp().globalData.configData, "getApp().globalData.configData");
const item = getApp().globalData.configData.find((i) => i.keyName === "kefu_code");
return item ? item.keyContent : "";
},
indexLvxingUrl() {
common_vendor.index.__f__("log", "at pages/subcomponent/promotion.vue:152", getApp().globalData.configData, "getApp().globalData.configData");
const item = getApp().globalData.configData.find((i) => i.keyName === "index_lvxing");
return item ? item.keyContent : "";
}
},
onLoad() {
@ -112,7 +105,7 @@ const _sfc_main = {
this.$api("getMyPromotionInfo", {}, (res) => {
if (res && res.success && res.result) {
this.status = res.result.status;
common_vendor.index.__f__("log", "at pages/subcomponent/promotion.vue:246", this.status, "this.status");
common_vendor.index.__f__("log", "at pages/subcomponent/promotion.vue:228", this.status, "this.status");
}
});
},
@ -185,52 +178,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: idx
});
}),
v: common_vendor.f($data.rightsHeader, (h, i, i0) => {
return {
a: common_vendor.t(h),
b: i
};
}),
w: common_vendor.f($data.rightsRows, (row, i, i0) => {
return {
a: common_vendor.f(row, (cell, j, i1) => {
return common_vendor.e({
a: cell === "✓"
}, cell === "✓" ? {} : cell === "X" ? {} : {
c: common_vendor.t(cell)
}, {
b: cell === "X",
d: j
});
}),
b: i
};
}),
x: $options.qrcodeUrl,
y: common_vendor.o((...args) => $options.goQrcode && $options.goQrcode(...args)),
z: $data.status === ""
v: $options.indexLvxingUrl,
w: $options.qrcodeUrl,
x: common_vendor.o((...args) => $options.goQrcode && $options.goQrcode(...args)),
y: $data.status === ""
}, $data.status === "" ? {
A: common_vendor.o((...args) => $options.goUpgrade && $options.goUpgrade(...args))
z: common_vendor.o((...args) => $options.goUpgrade && $options.goUpgrade(...args))
} : {}, {
B: $data.status == 0
A: $data.status == 0
}, $data.status == 0 ? {
C: common_vendor.o(($event) => $data.showProgressModal = true)
B: common_vendor.o(($event) => $data.showProgressModal = true)
} : {}, {
D: $data.showProgressModal
C: $data.showProgressModal
}, $data.showProgressModal ? {
E: common_vendor.p({
D: common_vendor.p({
type: "right",
size: "22",
color: "#bbb"
}),
F: common_vendor.o((...args) => $options.goToFaq && $options.goToFaq(...args)),
G: common_vendor.p({
E: common_vendor.o((...args) => $options.goToFaq && $options.goToFaq(...args)),
F: common_vendor.p({
type: "right",
size: "22",
color: "#bbb"
}),
H: common_vendor.o((...args) => $options.goToFaq && $options.goToFaq(...args)),
I: common_vendor.o(($event) => $data.showProgressModal = false)
G: common_vendor.o((...args) => $options.goToFaq && $options.goToFaq(...args)),
H: common_vendor.o(($event) => $data.showProgressModal = false)
} : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-50cfba12"]]);


+ 1
- 1
unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.wxml
File diff suppressed because it is too large
View File


+ 3
- 50
unpackage/dist/dev/mp-weixin/pages/subcomponent/promotion.wxss View File

@ -365,56 +365,9 @@
text-align: center;
margin-bottom: 24rpx;
}
.rights-section .rights-table.data-v-50cfba12 {
background: #fff;
border-radius: 24rpx;
border: 1rpx solid #ff9900;
overflow: hidden;
box-sizing: border-box;
}
.rights-section .rights-table .table-header.data-v-50cfba12 {
display: flex;
background: #fff7ed;
border-bottom: 1rpx solid #ff9900;
}
.rights-section .rights-table .table-header .th.data-v-50cfba12 {
flex: 1;
text-align: center;
font-size: 26rpx;
color: #ff9900;
font-weight: bold;
padding: 24rpx 0;
border-right: 1rpx solid #ff9900;
}
.rights-section .rights-table .table-header .th.data-v-50cfba12:last-child {
border-right: none;
}
.rights-section .rights-table .table-row.data-v-50cfba12 {
display: flex;
border-bottom: 1rpx solid #ffe5c2;
}
.rights-section .rights-table .table-row.data-v-50cfba12:last-child {
border-bottom: none;
}
.rights-section .rights-table .table-row .td.data-v-50cfba12 {
flex: 1;
text-align: center;
font-size: 26rpx;
color: #222;
padding: 20rpx 0;
border-right: 1rpx solid #ffe5c2;
}
.rights-section .rights-table .table-row .td.data-v-50cfba12:last-child {
border-right: none;
}
.rights-section .rights-table .table-row .td .cell-check.data-v-50cfba12 {
color: #13ac47;
font-size: 30rpx;
font-weight: bold;
}
.rights-section .rights-table .table-row .td .cell-x.data-v-50cfba12 {
color: #bbb;
font-size: 30rpx;
.rights-section .rights-image.data-v-50cfba12 {
width: 100%;
height: auto;
}
.qrcode-section.data-v-50cfba12 {
margin: 48rpx 32rpx 0 32rpx;


Loading…
Cancel
Save