jufubao-base 1.0.237-beta2 → 1.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +8 -0
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -25
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -11
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -8
- package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
- package/src/components/JfbBaseUserInfo/Attr.js +10 -102
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +114 -305
- package/src/components/JfbBaseBalance/Api.js +0 -46
- package/src/components/JfbBaseBalance/Attr.js +0 -316
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -332
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
- package/src/components/JfbBaseBalance/Mock.js +0 -9
- package/src/components/JfbBaseCodeOpenVip/Api.js +0 -36
- package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -253
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
- package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
- package/src/components/JfbBaseConsumpCode/Api.js +0 -133
- package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -961
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
- package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
- package/src/components/JfbBaseOpenVip/Api.js +0 -39
- package/src/components/JfbBaseOpenVip/Attr.js +0 -270
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -424
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
- package/src/components/JfbBaseOpenVip/Mock.js +0 -7
- package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -125
- package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
- package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
- package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
- package/src/components/JfbBaseOpenVipDetail/Api.js +0 -36
- package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -225
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
- package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -13
- package/src/components/JfbBasePersonalData/Api.js +0 -26
- package/src/components/JfbBasePersonalData/Attr.js +0 -12
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -198
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
- package/src/components/JfbBasePersonalData/Mock.js +0 -13
- package/src/components/JfbBasePointsCard/Api.js +0 -18
- package/src/components/JfbBasePointsCard/Attr.js +0 -187
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -208
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
- package/src/components/JfbBasePointsCard/Mock.js +0 -5
- package/src/components/JfbBasePointsDetail/Api.js +0 -48
- package/src/components/JfbBasePointsDetail/Attr.js +0 -304
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
- package/src/components/JfbBasePointsDetail/Mock.js +0 -6
- package/src/components/JfbBasePosterGroup/Api.js +0 -58
- package/src/components/JfbBasePosterGroup/Attr.js +0 -48
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -111
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
- package/src/components/JfbBasePosterGroup/Mock.js +0 -13
- package/src/components/JfbBaseSavingDetail/Api.js +0 -41
- package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -679
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
- package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
- package/src/components/JfbBaseShare/Api.js +0 -20
- package/src/components/JfbBaseShare/Attr.js +0 -14
- package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -261
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
- package/src/components/JfbBaseShare/Mock.js +0 -16
- package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
- package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -334
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
- package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
- package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
- package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
- package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
- package/src/components/JfbBaseWithdraw/Api.js +0 -48
- package/src/components/JfbBaseWithdraw/Attr.js +0 -328
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -245
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
- package/src/components/JfbBaseWithdraw/Mock.js +0 -7
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-open-vip"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-open-vip__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-open-vip__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-open-vip__body" :style="[bodyStyle]">
|
|
17
|
-
<!-- 用户信息 -->
|
|
18
|
-
<view class="u_header">
|
|
19
|
-
<view class="u_avatar">
|
|
20
|
-
<image :src="uInfo.head_url" mode="aspectFill"></image>
|
|
21
|
-
</view>
|
|
22
|
-
<view class="u_info">
|
|
23
|
-
<view class="u_info-top">
|
|
24
|
-
<view class="vip_name">{{ uInfo.show_user_name }}</view>
|
|
25
|
-
<view v-if="isVip" class="vip_level plus">PLUS会员</view>
|
|
26
|
-
<view v-else class="vip_level">普通用户</view>
|
|
27
|
-
</view>
|
|
28
|
-
<view class="u_sub">
|
|
29
|
-
<view v-if="isVip" style="color:#999999;">已省{{ $xdUniHelper.divisionFloatNumber(save_amount, 100) }}</view>
|
|
30
|
-
<view v-else style="color:#333333;">{{ uInfo.phone_number }}</view>
|
|
31
|
-
</view>
|
|
32
|
-
</view>
|
|
33
|
-
<view v-if="isVip" class="buy_btn" @click="showDrawer=true">立即续费</view>
|
|
34
|
-
<view v-else class="buy_btn" @click="showDrawer=true">立即开通</view>
|
|
35
|
-
</view>
|
|
36
|
-
|
|
37
|
-
<!-- plus会员权益 -->
|
|
38
|
-
<view class="vip_info">
|
|
39
|
-
<view class="vip_box">
|
|
40
|
-
<view class="vip_box-left">
|
|
41
|
-
<view class="vip_box-title">PLUS会员</view>
|
|
42
|
-
<view>开通享受更多权益</view>
|
|
43
|
-
</view>
|
|
44
|
-
<view class="vip_logo">
|
|
45
|
-
<image :src="siteLogo" mode="aspectFill"></image>
|
|
46
|
-
</view>
|
|
47
|
-
</view>
|
|
48
|
-
</view>
|
|
49
|
-
<view>
|
|
50
|
-
<image :src="specialImage" mode="widthFix" style="width: 100%;"></image>
|
|
51
|
-
<!--
|
|
52
|
-
<view class="vip_banner">
|
|
53
|
-
<view class="banner_item" v-for="i in 4" :key="i">
|
|
54
|
-
<view class="banner_img"></view>
|
|
55
|
-
<view class="banner_text">生日祝福</view>
|
|
56
|
-
</view>
|
|
57
|
-
</view>
|
|
58
|
-
<view class="vip_good">
|
|
59
|
-
<view class="vip_good-title">
|
|
60
|
-
<text class="_text">4大特权</text>
|
|
61
|
-
<view class="line"></view>
|
|
62
|
-
</view>
|
|
63
|
-
<view class="good_list">
|
|
64
|
-
<view class="good_item" v-for="i in 4" :key="i">
|
|
65
|
-
<view class="good_title">
|
|
66
|
-
<view class="good_title-tag">特权福利1</view>
|
|
67
|
-
<view>生日祝福</view>
|
|
68
|
-
</view>
|
|
69
|
-
<view class="good_cont">平台会在生日当天为用户发放专属的生日祝福</view>
|
|
70
|
-
</view>
|
|
71
|
-
</view>
|
|
72
|
-
</view> -->
|
|
73
|
-
</view>
|
|
74
|
-
|
|
75
|
-
<xd-vip-list v-if="!isVip" :list="vipCardList"
|
|
76
|
-
@handlePrivacy="handlePrivacy"
|
|
77
|
-
@toVipDetail="toVipDetail"
|
|
78
|
-
></xd-vip-list>
|
|
79
|
-
|
|
80
|
-
<xd-down-drawer :show.sync="showDrawer" height="480rpx">
|
|
81
|
-
<view class="drawer_title">立即续费</view>
|
|
82
|
-
<xd-vip-list :list="vipCardList"
|
|
83
|
-
@handlePrivacy="handlePrivacy"
|
|
84
|
-
@toVipDetail="toVipDetail"
|
|
85
|
-
></xd-vip-list>
|
|
86
|
-
</xd-down-drawer>
|
|
87
|
-
|
|
88
|
-
</view>
|
|
89
|
-
</view>
|
|
90
|
-
</template>
|
|
91
|
-
|
|
92
|
-
<script>
|
|
93
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
94
|
-
import XdButton from "@/components/XdButton/XdButton";
|
|
95
|
-
import XdVipList from "./XdVipList.vue";
|
|
96
|
-
import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer.vue"
|
|
97
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
98
|
-
import JfbBaseOpenVipMixin from "./JfbBaseOpenVipMixin";
|
|
99
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
100
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
101
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
102
|
-
import getServiceUrl from "@/common/getServiceUrl"
|
|
103
|
-
|
|
104
|
-
export default {
|
|
105
|
-
name: "JfbBaseOpenVip",
|
|
106
|
-
components: {
|
|
107
|
-
XdFontIcon,
|
|
108
|
-
XdButton,
|
|
109
|
-
XdVipList,
|
|
110
|
-
XdDownDrawer
|
|
111
|
-
},
|
|
112
|
-
mixins: [
|
|
113
|
-
componentsMixins, extsMixins, JfbBaseOpenVipMixin
|
|
114
|
-
],
|
|
115
|
-
data() {
|
|
116
|
-
return {
|
|
117
|
-
closeMask: true,
|
|
118
|
-
|
|
119
|
-
showDrawer: false,
|
|
120
|
-
uInfo: {},
|
|
121
|
-
xnamespace: "",
|
|
122
|
-
vipCardList: [],
|
|
123
|
-
save_amount: 0,
|
|
124
|
-
|
|
125
|
-
siteLogo: "",
|
|
126
|
-
//todo
|
|
127
|
-
vipDetailPath: "",
|
|
128
|
-
specialImage: "",
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
computed: {
|
|
132
|
-
bodyStyle(){
|
|
133
|
-
return {
|
|
134
|
-
minHeight: this.layoutInfo.bodyMinHeightRpx + "rpx",
|
|
135
|
-
'--main-color': this.mainColor
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
isVip(){
|
|
139
|
-
return this.uInfo.user_level === 'VIP';
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
watch: {
|
|
143
|
-
container(value, oldValue) {
|
|
144
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
145
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
created() {
|
|
149
|
-
this.init(this.container);
|
|
150
|
-
this.siteLogo = getServiceUrl(this.projectAttr['site_logo']);
|
|
151
|
-
//todo
|
|
152
|
-
},
|
|
153
|
-
methods: {
|
|
154
|
-
onJfbLoad(options) {
|
|
155
|
-
this.setNameSpace(options);
|
|
156
|
-
this.p_getBaseUserInfo();
|
|
157
|
-
this.p_getVipMoneySaving();
|
|
158
|
-
this.p_getVipList();
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* @description 监听事件变化
|
|
162
|
-
* @param container {object} 业务组件对象自己
|
|
163
|
-
*/
|
|
164
|
-
init(container) {
|
|
165
|
-
this.vipDetailPath = getContainerPropsValue(container, 'content.vipDetailPath', {value: "/system/system/vipdetail"}).value;
|
|
166
|
-
this.specialImage = getServiceUrl(getContainerPropsValue(container, 'content.specialImage', {url: ""}).url);
|
|
167
|
-
},
|
|
168
|
-
p_getBaseUserInfo(){
|
|
169
|
-
jfbRootExec("getOpenBaseUserInfo", {
|
|
170
|
-
vm: this,
|
|
171
|
-
data: {}
|
|
172
|
-
}).then(res => {
|
|
173
|
-
this.uInfo = res;
|
|
174
|
-
})
|
|
175
|
-
},
|
|
176
|
-
p_getVipMoneySaving(){
|
|
177
|
-
jfbRootExec("getVipMoneySaving", {
|
|
178
|
-
vm: this,
|
|
179
|
-
data: {}
|
|
180
|
-
}).then(res => {
|
|
181
|
-
this.save_amount = res.save_amount;
|
|
182
|
-
})
|
|
183
|
-
},
|
|
184
|
-
p_getVipList(){
|
|
185
|
-
jfbRootExec("getVipList", {
|
|
186
|
-
vm: this,
|
|
187
|
-
data: {
|
|
188
|
-
namespace: this.xnamespace,
|
|
189
|
-
}
|
|
190
|
-
}).then(res => {
|
|
191
|
-
this.vipCardList = res.list;
|
|
192
|
-
})
|
|
193
|
-
},
|
|
194
|
-
handlePrivacy(code){
|
|
195
|
-
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
196
|
-
params = `${params}&container_id=${this.containerId}${code}`;
|
|
197
|
-
this.$xdUniHelper.navigateTo({
|
|
198
|
-
url: `/pages/content/content?${params}`
|
|
199
|
-
})
|
|
200
|
-
},
|
|
201
|
-
toVipDetail(vip_card_id){
|
|
202
|
-
this.$xdUniHelper.navigateTo({
|
|
203
|
-
url: `${this.vipDetailPath}?vip_card_id=${vip_card_id}`
|
|
204
|
-
})
|
|
205
|
-
},
|
|
206
|
-
onJfbScroll(options) {
|
|
207
|
-
// console.log('event.onJfbScroll', options)
|
|
208
|
-
},
|
|
209
|
-
onJfbReachBottom(options) {
|
|
210
|
-
console.log('event.onJfbReachBottom', options)
|
|
211
|
-
},
|
|
212
|
-
onJfbShow(options) {
|
|
213
|
-
console.log('event.onJfbShow', options)
|
|
214
|
-
},
|
|
215
|
-
onJfbHide(options) {
|
|
216
|
-
console.log('event.onJfbHide', options)
|
|
217
|
-
},
|
|
218
|
-
onJfbBack(options) {
|
|
219
|
-
console.log('event.onJfbBack', options)
|
|
220
|
-
},
|
|
221
|
-
onJfbUpdate(...data) {
|
|
222
|
-
console.log('event.onJfbUpdate', data)
|
|
223
|
-
},
|
|
224
|
-
onJfbCustomEvent(options) {
|
|
225
|
-
console.log('event.onJfbReachBottom', options)
|
|
226
|
-
},
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
</script>
|
|
231
|
-
|
|
232
|
-
<style scoped lang="less">
|
|
233
|
-
@import "./JfbBaseOpenVipLess.less";
|
|
234
|
-
|
|
235
|
-
.jfb-base-open-vip {
|
|
236
|
-
&__body{
|
|
237
|
-
.u_header{
|
|
238
|
-
display: flex;
|
|
239
|
-
align-items: center;
|
|
240
|
-
padding: 24rpx 40rpx;
|
|
241
|
-
margin: 20rpx;
|
|
242
|
-
|
|
243
|
-
.u_avatar{
|
|
244
|
-
width: 120rpx;
|
|
245
|
-
height: 120rpx;
|
|
246
|
-
border-radius: 120rpx;
|
|
247
|
-
margin-right: 24rpx;
|
|
248
|
-
overflow: hidden;
|
|
249
|
-
image{
|
|
250
|
-
width: 100%;
|
|
251
|
-
height: 100%;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
.u_info{
|
|
255
|
-
flex:1;
|
|
256
|
-
&-top{
|
|
257
|
-
display: flex;
|
|
258
|
-
align-items: center;
|
|
259
|
-
.vip_name{
|
|
260
|
-
font-size: 28rpx;
|
|
261
|
-
color: #333333;
|
|
262
|
-
}
|
|
263
|
-
.vip_level{
|
|
264
|
-
padding: 4rpx 16rpx;
|
|
265
|
-
border-radius: 24rpx;
|
|
266
|
-
font-size: 24rpx;
|
|
267
|
-
background-color: #FFE6C4;
|
|
268
|
-
color: #615850;
|
|
269
|
-
margin-left: 8rpx;
|
|
270
|
-
&.plus{
|
|
271
|
-
background: linear-gradient(180deg, #615243 0%, #2D2824 100%);
|
|
272
|
-
color: #FFEFD7;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
.u_sub{
|
|
277
|
-
margin-top: 24rpx;
|
|
278
|
-
font-size: 24rpx;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
.buy_btn{
|
|
282
|
-
width: 146rpx;
|
|
283
|
-
height: 60rpx;
|
|
284
|
-
background-color: var(--main-color);
|
|
285
|
-
color: #fff;
|
|
286
|
-
border-radius: 60rpx;
|
|
287
|
-
line-height: 60rpx;
|
|
288
|
-
text-align: center;
|
|
289
|
-
font-size: 24rpx;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.vip_info{
|
|
294
|
-
padding: 20rpx;
|
|
295
|
-
.vip_box{
|
|
296
|
-
width: 100%;
|
|
297
|
-
height: 184rpx;
|
|
298
|
-
border-radius: 24rpx;
|
|
299
|
-
background: linear-gradient(90deg, #E8A841 0%, #FAD48E 100%);
|
|
300
|
-
display: flex;
|
|
301
|
-
align-items: center;
|
|
302
|
-
justify-content: space-between;
|
|
303
|
-
padding: 40rpx;
|
|
304
|
-
box-sizing: border-box;
|
|
305
|
-
|
|
306
|
-
&-left{
|
|
307
|
-
font-size: 24rpx;
|
|
308
|
-
font-weight: 400;
|
|
309
|
-
color: #FFFFFF;
|
|
310
|
-
display: flex;
|
|
311
|
-
align-self: stretch;
|
|
312
|
-
flex-direction: column;
|
|
313
|
-
justify-content: space-between;
|
|
314
|
-
}
|
|
315
|
-
&-title{
|
|
316
|
-
font-size: 32rpx;
|
|
317
|
-
font-weight: bold;
|
|
318
|
-
}
|
|
319
|
-
.vip_logo{
|
|
320
|
-
width: 104rpx;
|
|
321
|
-
height: 104rpx;
|
|
322
|
-
image{
|
|
323
|
-
width: 100%;
|
|
324
|
-
height: 100%;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.vip_banner{
|
|
330
|
-
display: flex;
|
|
331
|
-
padding: 16rpx;
|
|
332
|
-
margin: 20rpx 0;
|
|
333
|
-
justify-content: space-around;
|
|
334
|
-
.banner_item{
|
|
335
|
-
display: flex;
|
|
336
|
-
align-items: center;
|
|
337
|
-
flex-direction: column;
|
|
338
|
-
.banner_img{
|
|
339
|
-
width: 108rpx;
|
|
340
|
-
height: 108rpx;
|
|
341
|
-
border-radius: 108rpx;
|
|
342
|
-
background-color: #EBB963;
|
|
343
|
-
}
|
|
344
|
-
.banner_text{
|
|
345
|
-
color: #333333;
|
|
346
|
-
font-size: 24rpx;
|
|
347
|
-
font-weight: 500;
|
|
348
|
-
margin-top: 16rpx;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.vip_good{
|
|
354
|
-
background-color: #FFFFFF;
|
|
355
|
-
border-radius: 24rpx;
|
|
356
|
-
overflow: hidden;
|
|
357
|
-
&-title{
|
|
358
|
-
height: 110rpx;
|
|
359
|
-
line-height: 110rpx;
|
|
360
|
-
font-size: 36rpx;
|
|
361
|
-
font-weight: 500;
|
|
362
|
-
text-align: center;
|
|
363
|
-
color: #000000;
|
|
364
|
-
border-bottom: 1px solid #FAFAFA;
|
|
365
|
-
position: relative;
|
|
366
|
-
.line{
|
|
367
|
-
position: absolute;
|
|
368
|
-
left: 50%;
|
|
369
|
-
top: 50%;
|
|
370
|
-
transform: translate(-50%, -50%);
|
|
371
|
-
width: 280rpx;
|
|
372
|
-
height: 1px;
|
|
373
|
-
background-color: #000000;
|
|
374
|
-
}
|
|
375
|
-
._text{
|
|
376
|
-
position: relative;
|
|
377
|
-
z-index: 10;
|
|
378
|
-
background-color: #fff;
|
|
379
|
-
padding: 0 24rpx;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
.good_item{
|
|
383
|
-
padding: 32rpx 46rpx;
|
|
384
|
-
border-bottom: 1px solid #FAFAFA;
|
|
385
|
-
&:last-child{
|
|
386
|
-
border-bottom: none;
|
|
387
|
-
}
|
|
388
|
-
.good_title{
|
|
389
|
-
display: flex;
|
|
390
|
-
align-items: center;
|
|
391
|
-
font-size: 28rpx;
|
|
392
|
-
font-weight: 500;
|
|
393
|
-
color: #666666;
|
|
394
|
-
|
|
395
|
-
&-tag{
|
|
396
|
-
padding: 8rpx 16rpx;
|
|
397
|
-
border-radius: 8rpx;
|
|
398
|
-
font-size: 22rpx;
|
|
399
|
-
line-height: 1;
|
|
400
|
-
background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
|
|
401
|
-
color: #915714;
|
|
402
|
-
margin-right: 16rpx;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
.good_cont{
|
|
406
|
-
font-size: 28rpx;
|
|
407
|
-
color: #BBBBBB;
|
|
408
|
-
font-size: 400;
|
|
409
|
-
margin-top: 16rpx;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
.drawer_title{
|
|
415
|
-
height: 100rpx;
|
|
416
|
-
line-height: 100rpx;
|
|
417
|
-
text-align: center;
|
|
418
|
-
font-size: 28rpx;
|
|
419
|
-
color: #333333;
|
|
420
|
-
font-weight: 500;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
</style>
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-open-vip {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&__body{
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
z-index: 2
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.editx,&.editx:hover {
|
|
25
|
-
position: relative;
|
|
26
|
-
min-height: unit(100, rpx);
|
|
27
|
-
z-index: 3;
|
|
28
|
-
&::after {
|
|
29
|
-
border: 2rpx dashed blue;
|
|
30
|
-
content: " ";
|
|
31
|
-
position: absolute;
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
&__edit {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
position: absolute;
|
|
46
|
-
right: unit(0, rpx);
|
|
47
|
-
top: unit(-52, rpx);
|
|
48
|
-
height: unit(50, rpx);
|
|
49
|
-
line-height: unit(50, rpx);
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .6);
|
|
54
|
-
border-radius: unit(10, rpx);
|
|
55
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
-
color: #fff;
|
|
57
|
-
font-size: unit(22, rpx);
|
|
58
|
-
|
|
59
|
-
&-icon{
|
|
60
|
-
padding: 0 unit(20, rpx);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.editx {
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//end
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**notPreview**/
|
|
73
|
-
.jfb-base-open-vip {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-open-vip'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
getOpenBaseUserInfo: {"user_name":"","user_code":"Uf4zx6EPfV","nickname":"未来~","real_name":"","head_url":"https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTJsajZzh53IB56crRSdmKvRbjT4V1Ha8v5uCOkASbWS0GibgLeic8OKBzAwUyBa3vZGhjwmd6RfpG9g\/132","province_code":"","city_code":"","province_name":"","city_name":"","sex":"","sex_name":"未知","birthday_date":"","phone_number":"13611111111","show_user_name":"未来~","user_level":"VIP","vip_expire_time":1745026677,"request_id":"250e5709e6c95066"},
|
|
5
|
-
getVipList: {"total_size":3,"next_page_token":"","list":[{"vip_card_id":3,"product_id":60038520,"product_name":"体验卡","sale_price":200,"vip_card_icon":""},{"vip_card_id":2,"product_id":60038519,"product_name":"月卡","sale_price":2678,"vip_card_icon":""},{"vip_card_id":1,"product_id":60038515,"product_name":"测1","sale_price":20085,"vip_card_icon":""}],"request_id":"6b4aef5e06411d8a"},
|
|
6
|
-
getVipMoneySaving: { "save_amount": 100 , "request_id": "6b4aef5e06411d8a" }
|
|
7
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="xd_vip_wrap">
|
|
3
|
-
<view class="vip_list">
|
|
4
|
-
<view class="vip_item" :class="{active: item.vip_card_id===vip_card_id}"
|
|
5
|
-
v-for="item in uiList" :key="item.vip_card_id"
|
|
6
|
-
@click="handleChoseVip(item.vip_card_id)"
|
|
7
|
-
>
|
|
8
|
-
<view class="vip_name">{{ item.product_name}}</view>
|
|
9
|
-
<view class="vip_price">{{ $xdUniHelper.divisionFloatNumber(item.sale_price, 100) }}</view>
|
|
10
|
-
</view>
|
|
11
|
-
</view>
|
|
12
|
-
<view class="vip_pay">
|
|
13
|
-
<view class="pay_btn" @click="toVipDetail">立即支付 <xd-unit style="margin-left: 16rpx;" :price="curVipCard.sale_price" :isOld="false" colorNew="#FFFFFF"></xd-unit></view>
|
|
14
|
-
<view class="vip_tip">开通视为同意<text @click.stop="handlePrivacy('privacy_service')">《共享PLUS会员用户协议》</text></view>
|
|
15
|
-
</view>
|
|
16
|
-
</view>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
import XdButton from "@/components/XdButton/XdButton.vue"
|
|
21
|
-
import XdUnit from "@/components/XdUnit/XdUnit.vue"
|
|
22
|
-
export default {
|
|
23
|
-
components: {
|
|
24
|
-
XdButton,
|
|
25
|
-
XdUnit
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
list: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default(){
|
|
31
|
-
return []
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
watch: {
|
|
36
|
-
list(val){
|
|
37
|
-
this.vip_card_id = val[0].vip_card_id || ''
|
|
38
|
-
this.uiList = val
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
curVipCard(){
|
|
43
|
-
return this.uiList.find(item => item.vip_card_id === this.vip_card_id) || {}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
data(){
|
|
47
|
-
return {
|
|
48
|
-
uiList: [],
|
|
49
|
-
vip_card_id: ''
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
handlePrivacy(type){
|
|
54
|
-
this.$emit('handlePrivacy', type)
|
|
55
|
-
},
|
|
56
|
-
handleChoseVip(vip_card_id){
|
|
57
|
-
this.vip_card_id = vip_card_id
|
|
58
|
-
},
|
|
59
|
-
toVipDetail(){
|
|
60
|
-
if(this.vip_card_id){
|
|
61
|
-
this.$emit('toVipDetail', this.vip_card_id)
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</script>
|
|
67
|
-
|
|
68
|
-
<style lang="less" scoped>
|
|
69
|
-
.xd_vip_wrap{
|
|
70
|
-
background: #FFFFFF;
|
|
71
|
-
.vip_list{
|
|
72
|
-
width: 100%;
|
|
73
|
-
overflow: auto;
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
padding: 32rpx 16rpx;
|
|
76
|
-
.vip_item{
|
|
77
|
-
display: inline-block;
|
|
78
|
-
width: 160rpx;
|
|
79
|
-
height: 112rpx;
|
|
80
|
-
border-radius: 24rpx;
|
|
81
|
-
text-align: center;
|
|
82
|
-
color: #999999;
|
|
83
|
-
border: 4rpx solid #EEEEEE;
|
|
84
|
-
background-color: #EEEEEE;
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
margin: 0 16rpx;
|
|
87
|
-
padding: 20rpx 0;
|
|
88
|
-
line-height: 1;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
&.active{
|
|
91
|
-
border-color: #AB6900;
|
|
92
|
-
background-color: #FFF2DE;
|
|
93
|
-
color: #AB6900;
|
|
94
|
-
}
|
|
95
|
-
.vip_name{
|
|
96
|
-
font-size: 24rpx;
|
|
97
|
-
margin-bottom: 12rpx;
|
|
98
|
-
}
|
|
99
|
-
.vip_price{
|
|
100
|
-
font-size: 36rpx;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.vip_pay{
|
|
105
|
-
padding: 24rpx 0 50rpx;
|
|
106
|
-
.pay_btn{
|
|
107
|
-
width: 600rpx;
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
height: 80rpx;
|
|
112
|
-
background-color: var(--main-color);
|
|
113
|
-
color: #FFFFFF;
|
|
114
|
-
margin: 0 auto;
|
|
115
|
-
border-radius: 80rpx;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
.vip_tip{
|
|
119
|
-
text-align: center;
|
|
120
|
-
font-size: 22rpx;
|
|
121
|
-
color: #999999;
|
|
122
|
-
margin-top: 24rpx;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
</style>
|