jufubao-base 1.0.242 → 1.0.243-beta1001

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.
Files changed (130) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +46 -0
  3. package/src/components/JfbBaseBalance/Attr.js +316 -0
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  5. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  7. package/src/components/JfbBaseBalance/Mock.js +9 -0
  8. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  9. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  10. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  11. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  13. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  14. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  15. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  16. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1109 -0
  17. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  19. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  20. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  21. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  22. package/src/components/JfbBaseFooter/Attr.js +12 -0
  23. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  24. package/src/components/JfbBaseHeader/Attr.js +82 -0
  25. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  26. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  27. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  28. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +24 -3
  29. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  30. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  31. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
  32. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  33. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  34. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  35. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
  36. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
  37. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  38. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  39. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  40. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
  41. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  42. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  43. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  44. package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -0
  45. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  46. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  47. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  48. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  49. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  50. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  51. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  52. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  53. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  54. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  55. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  56. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  57. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +177 -18
  58. package/src/components/JfbBasePay/Attr.js +52 -0
  59. package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
  60. package/src/components/JfbBasePay/Mock.js +0 -9
  61. package/src/components/JfbBasePersonalData/Api.js +26 -0
  62. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  63. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -0
  64. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  65. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  66. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  67. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
  68. package/src/components/JfbBasePointsCard/Api.js +18 -0
  69. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  70. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  71. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  72. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  73. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  74. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  75. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  76. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  77. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  78. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  79. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  80. package/src/components/JfbBasePoster/Attr.js +1 -1
  81. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  82. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  83. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  84. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  85. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  86. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  87. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  88. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  89. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  90. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  91. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  92. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  93. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  94. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  95. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  96. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  97. package/src/components/JfbBaseShare/Api.js +20 -0
  98. package/src/components/JfbBaseShare/Attr.js +59 -0
  99. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  100. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  101. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  102. package/src/components/JfbBaseShare/Mock.js +16 -0
  103. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +9 -3
  104. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  105. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  106. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  107. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  108. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  109. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +336 -114
  110. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  111. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  112. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  113. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  114. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  115. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  116. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  117. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  118. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  119. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  120. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  121. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  122. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  123. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  124. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  125. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  126. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  127. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  128. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  129. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  130. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
@@ -0,0 +1,457 @@
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;" @click="handleToDetail">已省{{ $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" :style="{
40
+ backgroundImage: `url(${bannerBgImg})`,
41
+ }">
42
+ <view class="vip_box-left">
43
+ <view class="vip_box-title">PLUS会员</view>
44
+ <view v-if="isVip">有效期至:{{ vip_expire_time }}</view>
45
+ <view v-else>开通享受更多权益</view>
46
+ </view>
47
+ <!-- <view class="vip_logo">
48
+ <image :src="siteLogo" mode="aspectFill"></image>
49
+ </view> -->
50
+ </view>
51
+ </view>
52
+ <view>
53
+ <image :src="specialImage" mode="widthFix" style="width: 100%;"></image>
54
+ <!--
55
+ <view class="vip_banner">
56
+ <view class="banner_item" v-for="i in 4" :key="i">
57
+ <view class="banner_img"></view>
58
+ <view class="banner_text">生日祝福</view>
59
+ </view>
60
+ </view>
61
+ <view class="vip_good">
62
+ <view class="vip_good-title">
63
+ <text class="_text">4大特权</text>
64
+ <view class="line"></view>
65
+ </view>
66
+ <view class="good_list">
67
+ <view class="good_item" v-for="i in 4" :key="i">
68
+ <view class="good_title">
69
+ <view class="good_title-tag">特权福利1</view>
70
+ <view>生日祝福</view>
71
+ </view>
72
+ <view class="good_cont">平台会在生日当天为用户发放专属的生日祝福</view>
73
+ </view>
74
+ </view>
75
+ </view> -->
76
+ </view>
77
+
78
+ <xd-vip-list v-if="!isVip" :list="showVipCardList"
79
+ @handlePrivacy="handlePrivacy"
80
+ @toVipDetail="toVipDetail"
81
+ ></xd-vip-list>
82
+
83
+ <xd-down-drawer :show.sync="showDrawer" height="480rpx">
84
+ <view class="drawer_title">立即续费</view>
85
+ <xd-vip-list :list="showVipCardList"
86
+ @handlePrivacy="handlePrivacy"
87
+ @toVipDetail="toVipDetail"
88
+ ></xd-vip-list>
89
+ </xd-down-drawer>
90
+
91
+ </view>
92
+ </view>
93
+ </template>
94
+
95
+ <script>
96
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
97
+ import XdButton from "@/components/XdButton/XdButton";
98
+ import XdVipList from "./XdVipList.vue";
99
+ import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer.vue"
100
+ import { jfbRootExec } from "@/utils/xd.event";
101
+ import JfbBaseOpenVipMixin from "./JfbBaseOpenVipMixin";
102
+ import { getContainerPropsValue } from "@/utils/xd.base";
103
+ import componentsMixins from "@/mixins/componentsMixins";
104
+ import extsMixins from "@/mixins/extsMixins";
105
+ import getServiceUrl from "@/common/getServiceUrl"
106
+
107
+ export default {
108
+ name: "JfbBaseOpenVip",
109
+ components: {
110
+ XdFontIcon,
111
+ XdButton,
112
+ XdVipList,
113
+ XdDownDrawer
114
+ },
115
+ mixins: [
116
+ componentsMixins, extsMixins, JfbBaseOpenVipMixin
117
+ ],
118
+ data() {
119
+ return {
120
+ closeMask: true,
121
+
122
+ showDrawer: false,
123
+ uInfo: {},
124
+ vipCardList: [],
125
+ save_amount: 0,
126
+ vip_expire_time: "",
127
+
128
+ siteLogo: "",
129
+ exchangeCodeVip: {
130
+ product_name: "兑换码",
131
+ sale_price: 0,
132
+ vip_card_id: -1
133
+ },
134
+ //todo
135
+ vipDetailPath: "",
136
+ bannerBgImg: "",
137
+ specialImage: "",
138
+ showExchangeCode: "",
139
+ exchangeCodePath: "",
140
+ moneyDetailPath: "",
141
+ }
142
+ },
143
+ computed: {
144
+ bodyStyle(){
145
+ return {
146
+ minHeight: this.layoutInfo.bodyMinHeightRpx + "rpx",
147
+ '--main-color': this.mainColor
148
+ }
149
+ },
150
+ isVip(){
151
+ return this.uInfo.user_level === 'VIP';
152
+ },
153
+ showVipCardList(){
154
+ return this.showExchangeCode === 'Y' ? [this.exchangeCodeVip, ...this.vipCardList] : [...this.vipCardList]
155
+ }
156
+ },
157
+ watch: {
158
+ container(value, oldValue) {
159
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
160
+ if (this.$configProject['isPreview']) this.init(value)
161
+ },
162
+ },
163
+ created() {
164
+ this.init(this.container);
165
+ this.siteLogo = getServiceUrl(this.projectAttr['site_logo']);
166
+ //todo
167
+ },
168
+ methods: {
169
+ onJfbLoad(options) {
170
+ this.p_getBaseUserInfo();
171
+ this.p_getVipMoneySaving();
172
+ this.p_getVipList();
173
+ },
174
+ /**
175
+ * @description 监听事件变化
176
+ * @param container {object} 业务组件对象自己
177
+ */
178
+ init(container) {
179
+ this.vipDetailPath = getContainerPropsValue(container, 'content.vipDetailPath', {value: "/system/system/vipdetail"}).value;
180
+ this.bannerBgImg = getServiceUrl(getContainerPropsValue(container, 'content.bannerBgImg', {url: ""}).url);
181
+ this.specialImage = getServiceUrl(getContainerPropsValue(container, 'content.specialImage', {url: ""}).url);
182
+ this.exchangeCodePath = getContainerPropsValue(container, 'content.exchangeCodePath', {value: ""}).value;
183
+ this.showExchangeCode = getContainerPropsValue(container, 'content.showExchangeCode', '');
184
+ this.moneyDetailPath = getContainerPropsValue(container, 'content.moneyDetailPath', {value: ""}).value;
185
+ },
186
+ p_getBaseUserInfo(){
187
+ jfbRootExec("getOpenBaseUserInfo", {
188
+ vm: this,
189
+ data: {}
190
+ }).then(res => {
191
+ this.uInfo = res;
192
+ this.vip_expire_time = this.$xdUniHelper.getDate(res.vip_expire_time * 1000 ).fullDate;
193
+ })
194
+ },
195
+ p_getVipMoneySaving(){
196
+ jfbRootExec("getVipMoneySaving", {
197
+ vm: this,
198
+ data: {}
199
+ }).then(res => {
200
+ this.save_amount = res.save_amount;
201
+ })
202
+ },
203
+ p_getVipList(){
204
+ jfbRootExec("getVipList", {
205
+ vm: this,
206
+ data: {}
207
+ }).then(res => {
208
+ this.vipCardList = res.list;
209
+ })
210
+ },
211
+ handleToDetail(){
212
+ this.$xdUniHelper.navigateTo({
213
+ url: this.moneyDetailPath
214
+ })
215
+ },
216
+ handlePrivacy(code){
217
+ let params = `page_id=${this.pageAttr["page_id"]}`;
218
+ params = `${params}&container_id=${this.containerId}${code}`;
219
+ this.$xdUniHelper.navigateTo({
220
+ url: `/pages/content/content?${params}`
221
+ })
222
+ },
223
+ toVipDetail(vip_card_id){
224
+ if(vip_card_id === -1){
225
+ this.$xdUniHelper.navigateTo({
226
+ url: this.exchangeCodePath
227
+ })
228
+ return;
229
+ }
230
+ this.$xdUniHelper.navigateTo({
231
+ url: `${this.vipDetailPath}?vip_card_id=${vip_card_id}`
232
+ })
233
+ },
234
+ onJfbScroll(options) {
235
+ // console.log('event.onJfbScroll', options)
236
+ },
237
+ onJfbReachBottom(options) {
238
+ console.log('event.onJfbReachBottom', options)
239
+ },
240
+ onJfbShow(options) {
241
+ // console.log('event.onJfbShow', options)
242
+ this.onJfbLoad(options)
243
+ },
244
+ onJfbHide(options) {
245
+ console.log('event.onJfbHide', options)
246
+ },
247
+ onJfbBack(options) {
248
+ console.log('event.onJfbBack', options)
249
+ },
250
+ onJfbUpdate(...data) {
251
+ console.log('event.onJfbUpdate', data)
252
+ },
253
+ onJfbCustomEvent(options) {
254
+ console.log('event.onJfbReachBottom', options)
255
+ },
256
+ }
257
+ }
258
+
259
+ </script>
260
+
261
+ <style scoped lang="less">
262
+ @import "./JfbBaseOpenVipLess.less";
263
+
264
+ .jfb-base-open-vip {
265
+ &__body{
266
+ .u_header{
267
+ display: flex;
268
+ align-items: center;
269
+ padding: 24rpx 40rpx;
270
+ margin: 20rpx;
271
+
272
+ .u_avatar{
273
+ width: 120rpx;
274
+ height: 120rpx;
275
+ border-radius: 120rpx;
276
+ margin-right: 24rpx;
277
+ overflow: hidden;
278
+ image{
279
+ width: 100%;
280
+ height: 100%;
281
+ }
282
+ }
283
+ .u_info{
284
+ flex:1;
285
+ &-top{
286
+ display: flex;
287
+ align-items: center;
288
+ .vip_name{
289
+ font-size: 28rpx;
290
+ color: #333333;
291
+ }
292
+ .vip_level{
293
+ padding: 4rpx 16rpx;
294
+ border-radius: 24rpx;
295
+ font-size: 24rpx;
296
+ background-color: #FFE6C4;
297
+ color: #615850;
298
+ margin-left: 8rpx;
299
+ &.plus{
300
+ background: linear-gradient(180deg, #615243 0%, #2D2824 100%);
301
+ color: #FFEFD7;
302
+ }
303
+ }
304
+ }
305
+ .u_sub{
306
+ margin-top: 24rpx;
307
+ font-size: 24rpx;
308
+ }
309
+ }
310
+ .buy_btn{
311
+ width: 146rpx;
312
+ height: 60rpx;
313
+ background-color: var(--main-color);
314
+ color: #fff;
315
+ border-radius: 60rpx;
316
+ line-height: 60rpx;
317
+ text-align: center;
318
+ font-size: 24rpx;
319
+ }
320
+ }
321
+
322
+ .vip_info{
323
+ // padding: 20rpx;
324
+ .vip_box{
325
+ width: 710rpx;
326
+ height: 184rpx;
327
+ margin: auto;
328
+ border-radius: 24rpx;
329
+ background-color: #E8A841;
330
+ // background: linear-gradient(90deg, #E8A841 0%, #FAD48E 100%);
331
+ background-size: 100% 100%;
332
+ background-repeat: no-repeat;
333
+ display: flex;
334
+ align-items: center;
335
+ justify-content: space-between;
336
+ padding: 40rpx;
337
+ box-sizing: border-box;
338
+
339
+ &-left{
340
+ font-size: 24rpx;
341
+ font-weight: 400;
342
+ color: #FFFFFF;
343
+ display: flex;
344
+ align-self: stretch;
345
+ flex-direction: column;
346
+ justify-content: space-between;
347
+ }
348
+ &-title{
349
+ font-size: 32rpx;
350
+ font-weight: bold;
351
+ }
352
+ .vip_logo{
353
+ width: 104rpx;
354
+ height: 104rpx;
355
+ image{
356
+ width: 100%;
357
+ height: 100%;
358
+ }
359
+ }
360
+ }
361
+
362
+ .vip_banner{
363
+ display: flex;
364
+ padding: 16rpx;
365
+ margin: 20rpx 0;
366
+ justify-content: space-around;
367
+ .banner_item{
368
+ display: flex;
369
+ align-items: center;
370
+ flex-direction: column;
371
+ .banner_img{
372
+ width: 108rpx;
373
+ height: 108rpx;
374
+ border-radius: 108rpx;
375
+ background-color: #EBB963;
376
+ }
377
+ .banner_text{
378
+ color: #333333;
379
+ font-size: 24rpx;
380
+ font-weight: 500;
381
+ margin-top: 16rpx;
382
+ }
383
+ }
384
+ }
385
+
386
+ .vip_good{
387
+ background-color: #FFFFFF;
388
+ border-radius: 24rpx;
389
+ overflow: hidden;
390
+ &-title{
391
+ height: 110rpx;
392
+ line-height: 110rpx;
393
+ font-size: 36rpx;
394
+ font-weight: 500;
395
+ text-align: center;
396
+ color: #000000;
397
+ border-bottom: 1px solid #FAFAFA;
398
+ position: relative;
399
+ .line{
400
+ position: absolute;
401
+ left: 50%;
402
+ top: 50%;
403
+ transform: translate(-50%, -50%);
404
+ width: 280rpx;
405
+ height: 1px;
406
+ background-color: #000000;
407
+ }
408
+ ._text{
409
+ position: relative;
410
+ z-index: 10;
411
+ background-color: #fff;
412
+ padding: 0 24rpx;
413
+ }
414
+ }
415
+ .good_item{
416
+ padding: 32rpx 46rpx;
417
+ border-bottom: 1px solid #FAFAFA;
418
+ &:last-child{
419
+ border-bottom: none;
420
+ }
421
+ .good_title{
422
+ display: flex;
423
+ align-items: center;
424
+ font-size: 28rpx;
425
+ font-weight: 500;
426
+ color: #666666;
427
+
428
+ &-tag{
429
+ padding: 8rpx 16rpx;
430
+ border-radius: 8rpx;
431
+ font-size: 22rpx;
432
+ line-height: 1;
433
+ background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
434
+ color: #915714;
435
+ margin-right: 16rpx;
436
+ }
437
+ }
438
+ .good_cont{
439
+ font-size: 28rpx;
440
+ color: #BBBBBB;
441
+ font-size: 400;
442
+ margin-top: 16rpx;
443
+ }
444
+ }
445
+ }
446
+ }
447
+ .drawer_title{
448
+ height: 100rpx;
449
+ line-height: 100rpx;
450
+ text-align: center;
451
+ font-size: 28rpx;
452
+ color: #333333;
453
+ font-weight: 500;
454
+ }
455
+ }
456
+ }
457
+ </style>
@@ -0,0 +1,79 @@
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**/
@@ -0,0 +1,30 @@
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
+ }
@@ -0,0 +1,7 @@
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_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
+ }
@@ -0,0 +1,131 @@
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">
14
+ <template v-if="vip_card_id===-1">0元开通</template>
15
+ <template v-else>
16
+ 立即支付 ¥{{ $xdUniHelper.divisionFloatNumber(curVipCard.sale_price, 100) }}
17
+ {{ curVipCard.vip_card_life_cycle_unit ? '/'+curVipCard.vip_card_life_cycle_unit:'' }}
18
+ </template>
19
+ </view>
20
+ <view class="vip_tip">开通视为同意<text @click.stop="handlePrivacy('privacy_service')">《共享PLUS会员用户协议》</text></view>
21
+ </view>
22
+ </view>
23
+ </template>
24
+
25
+ <script>
26
+ import XdButton from "@/components/XdButton/XdButton.vue"
27
+ import XdUnit from "@/components/XdUnit/XdUnit.vue"
28
+ export default {
29
+ components: {
30
+ XdButton,
31
+ XdUnit
32
+ },
33
+ props: {
34
+ list: {
35
+ type: Array,
36
+ default(){
37
+ return []
38
+ }
39
+ }
40
+ },
41
+ watch: {
42
+ list(val){
43
+ this.vip_card_id = val[0].vip_card_id || ''
44
+ this.uiList = val
45
+ }
46
+ },
47
+ computed: {
48
+ curVipCard(){
49
+ return this.uiList.find(item => item.vip_card_id === this.vip_card_id) || {}
50
+ }
51
+ },
52
+ data(){
53
+ return {
54
+ uiList: [],
55
+ vip_card_id: ''
56
+ }
57
+ },
58
+ methods: {
59
+ handlePrivacy(type){
60
+ this.$emit('handlePrivacy', type)
61
+ },
62
+ handleChoseVip(vip_card_id){
63
+ this.vip_card_id = vip_card_id
64
+ },
65
+ toVipDetail(){
66
+ if(this.vip_card_id){
67
+ this.$emit('toVipDetail', this.vip_card_id)
68
+ }
69
+ }
70
+ }
71
+ }
72
+ </script>
73
+
74
+ <style lang="less" scoped>
75
+ .xd_vip_wrap{
76
+ background: #FFFFFF;
77
+ .vip_list{
78
+ width: 100%;
79
+ overflow: auto;
80
+ white-space: nowrap;
81
+ padding: 32rpx 16rpx;
82
+ .vip_item{
83
+ display: inline-block;
84
+ width: 160rpx;
85
+ height: 112rpx;
86
+ border-radius: 24rpx;
87
+ text-align: center;
88
+ color: #999999;
89
+ border: 4rpx solid #EEEEEE;
90
+ background-color: #EEEEEE;
91
+ box-sizing: border-box;
92
+ margin: 0 16rpx;
93
+ padding: 20rpx 0;
94
+ line-height: 1;
95
+ font-weight: 500;
96
+ &.active{
97
+ border-color: #AB6900;
98
+ background-color: #FFF2DE;
99
+ color: #AB6900;
100
+ }
101
+ .vip_name{
102
+ font-size: 24rpx;
103
+ margin-bottom: 12rpx;
104
+ }
105
+ .vip_price{
106
+ font-size: 36rpx;
107
+ }
108
+ }
109
+ }
110
+ .vip_pay{
111
+ padding: 24rpx 0 50rpx;
112
+ .pay_btn{
113
+ width: 600rpx;
114
+ display: flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ height: 80rpx;
118
+ background-color: var(--main-color);
119
+ color: #FFFFFF;
120
+ margin: 0 auto;
121
+ border-radius: 80rpx;
122
+ }
123
+ }
124
+ .vip_tip{
125
+ text-align: center;
126
+ font-size: 22rpx;
127
+ color: #999999;
128
+ margin-top: 24rpx;
129
+ }
130
+ }
131
+ </style>