jufubao-base 1.0.243-beta2 → 1.0.243-beta202

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