jufubao-base 1.0.293 → 1.0.295-beta1
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
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.sale_price, 100) }}</xd-list-item>
|
|
40
40
|
</view>
|
|
41
41
|
<view class="fixed_bottom" :style="fixed_bottom">
|
|
42
|
-
<xd-button type="primary" width="600rpx" @click="
|
|
42
|
+
<xd-button type="primary" width="600rpx" @click="createVipOrder">立即兑换</xd-button>
|
|
43
43
|
<view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')">《共享PLUS会员用户协议》</text></view>
|
|
44
44
|
</view>
|
|
45
45
|
</view>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
exchange_code: "",
|
|
77
77
|
step: 1,
|
|
78
78
|
vipInfo: {},
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
description: "",
|
|
81
81
|
vipSuccessPath: "",
|
|
82
82
|
payPath: "",
|
|
@@ -102,11 +102,15 @@
|
|
|
102
102
|
created() {
|
|
103
103
|
this.init(this.container);
|
|
104
104
|
|
|
105
|
-
//todo
|
|
106
105
|
},
|
|
107
106
|
methods: {
|
|
108
107
|
onJfbLoad(options) {
|
|
108
|
+
if(options['ecode']) {
|
|
109
|
+
this.exchange_code = options['ecode'];
|
|
110
|
+
this.searchCode();
|
|
111
|
+
}
|
|
109
112
|
},
|
|
113
|
+
|
|
110
114
|
/**
|
|
111
115
|
* @description 监听事件变化
|
|
112
116
|
* @param container {object} 业务组件对象自己
|
|
@@ -123,6 +127,7 @@
|
|
|
123
127
|
url: `/pages/content/content?${params}`
|
|
124
128
|
})
|
|
125
129
|
},
|
|
130
|
+
|
|
126
131
|
searchCode(){
|
|
127
132
|
if(!this.exchange_code) return;
|
|
128
133
|
this.$xdShowLoading({});
|
|
@@ -135,9 +140,12 @@
|
|
|
135
140
|
this.$xdHideLoading();
|
|
136
141
|
this.step = 2;
|
|
137
142
|
this.vipInfo = res;
|
|
143
|
+
}).catch(e=>{
|
|
144
|
+
this.$xdHideLoading();
|
|
138
145
|
})
|
|
139
146
|
},
|
|
140
|
-
|
|
147
|
+
|
|
148
|
+
createVipOrder(){
|
|
141
149
|
jfbRootExec("createVipOrder", {
|
|
142
150
|
vm: this,
|
|
143
151
|
data: {
|
|
@@ -159,27 +167,6 @@
|
|
|
159
167
|
}
|
|
160
168
|
})
|
|
161
169
|
},
|
|
162
|
-
onJfbScroll(options) {
|
|
163
|
-
// console.log('event.onJfbScroll', options)
|
|
164
|
-
},
|
|
165
|
-
onJfbReachBottom(options) {
|
|
166
|
-
console.log('event.onJfbReachBottom', options)
|
|
167
|
-
},
|
|
168
|
-
onJfbShow(options) {
|
|
169
|
-
console.log('event.onJfbShow', options)
|
|
170
|
-
},
|
|
171
|
-
onJfbHide(options) {
|
|
172
|
-
console.log('event.onJfbHide', options)
|
|
173
|
-
},
|
|
174
|
-
onJfbBack(options) {
|
|
175
|
-
console.log('event.onJfbBack', options)
|
|
176
|
-
},
|
|
177
|
-
onJfbUpdate(...data) {
|
|
178
|
-
console.log('event.onJfbUpdate', data)
|
|
179
|
-
},
|
|
180
|
-
onJfbCustomEvent(options) {
|
|
181
|
-
console.log('event.onJfbReachBottom', options)
|
|
182
|
-
},
|
|
183
170
|
}
|
|
184
171
|
}
|
|
185
172
|
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
},
|
|
155
155
|
tab(value, oldValue) {
|
|
156
156
|
//请求数据
|
|
157
|
+
this.option = null;
|
|
157
158
|
this.hasNext = true;
|
|
158
159
|
this.page_token = 1
|
|
159
160
|
if (value === 'month') {
|
|
@@ -350,7 +351,7 @@
|
|
|
350
351
|
},
|
|
351
352
|
angleAxis: {
|
|
352
353
|
max: max,
|
|
353
|
-
startAngle: 90, // 开始的角度
|
|
354
|
+
startAngle: 90, // 开始的角度
|
|
354
355
|
show: false,
|
|
355
356
|
},
|
|
356
357
|
radiusAxis: {
|
|
@@ -446,7 +447,7 @@
|
|
|
446
447
|
},
|
|
447
448
|
angleAxis: {
|
|
448
449
|
max: max,
|
|
449
|
-
startAngle: 90, // 开始的角度
|
|
450
|
+
startAngle: 90, // 开始的角度
|
|
450
451
|
show: false,
|
|
451
452
|
},
|
|
452
453
|
radiusAxis: {
|
|
@@ -534,10 +535,10 @@
|
|
|
534
535
|
// 提取年份和月份
|
|
535
536
|
const year = dateStr.match(/(\d{4})年/)[1];
|
|
536
537
|
const month = dateStr.match(/(\d+)月/)[1];
|
|
537
|
-
|
|
538
|
+
|
|
538
539
|
// 确保月份是两位数
|
|
539
540
|
const formattedMonth = month.padStart(2, '0');
|
|
540
|
-
|
|
541
|
+
|
|
541
542
|
// 组合成目标格式
|
|
542
543
|
return `${year}-${formattedMonth}-01`;
|
|
543
544
|
},
|
|
@@ -733,4 +734,4 @@
|
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
736
|
}
|
|
736
|
-
</style>
|
|
737
|
+
</style>
|