jufubao-base 1.0.230 → 1.0.232-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
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
|
+
let cardShow = 'N';
|
|
10
|
+
if(data.cardShow && ['Y','N'].includes(data.cardShow)) {
|
|
11
|
+
cardShow = data.cardShow
|
|
12
|
+
}
|
|
9
13
|
return [
|
|
10
14
|
{
|
|
11
15
|
label: '提示内容:',
|
|
@@ -230,6 +234,17 @@ export default {
|
|
|
230
234
|
}
|
|
231
235
|
},
|
|
232
236
|
},
|
|
237
|
+
{
|
|
238
|
+
label: "是否展示票券信息:",
|
|
239
|
+
ele: "xd-radio",
|
|
240
|
+
valueKey: "cardShow",
|
|
241
|
+
value: cardShow,
|
|
242
|
+
list: [
|
|
243
|
+
{ label: "展示", value: "Y" },
|
|
244
|
+
{ label: "不展示", value: "N" }
|
|
245
|
+
],
|
|
246
|
+
groupKey: "content",
|
|
247
|
+
},
|
|
233
248
|
{
|
|
234
249
|
label: '票券支付路径:',
|
|
235
250
|
ele: 'xd-select-pages-path',
|
|
@@ -16,11 +16,27 @@
|
|
|
16
16
|
<view class="jfb-base-card-delay__body">
|
|
17
17
|
<view>
|
|
18
18
|
<view class="wrap">
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
<view>
|
|
20
|
+
<input
|
|
21
|
+
placeholder="输入券号"
|
|
22
|
+
v-model.trim="card_number"
|
|
23
|
+
type="text"
|
|
24
|
+
/>
|
|
25
|
+
</view>
|
|
26
|
+
<view class="card-info" v-if="cardShow ==='Y' && info !== null">
|
|
27
|
+
<view class="card-info-list">
|
|
28
|
+
<view>延期券号:</view>
|
|
29
|
+
<view>{{info.card_number}}</view>
|
|
30
|
+
</view>
|
|
31
|
+
<view class="card-info-list">
|
|
32
|
+
<view>剩余点次:</view>
|
|
33
|
+
<view>{{info['card_point']}} {{info['unit']}}</view>
|
|
34
|
+
</view>
|
|
35
|
+
<view class="card-info-list">
|
|
36
|
+
<view>过期时间:</view>
|
|
37
|
+
<view>{{info['end_time']}}</view>
|
|
38
|
+
</view>
|
|
39
|
+
</view>
|
|
24
40
|
</view>
|
|
25
41
|
<view v-if="packageList !== null">
|
|
26
42
|
<view v-if="packageList.length > 0" class="package">
|
|
@@ -124,7 +140,7 @@ export default {
|
|
|
124
140
|
data() {
|
|
125
141
|
return {
|
|
126
142
|
notice: "",
|
|
127
|
-
card_number: "",
|
|
143
|
+
card_number: "101001000005238",
|
|
128
144
|
backgroundColor: "",
|
|
129
145
|
packageList: null,
|
|
130
146
|
activeIndex: 0,
|
|
@@ -132,6 +148,10 @@ export default {
|
|
|
132
148
|
payPath: "",
|
|
133
149
|
pay_amount: 0,
|
|
134
150
|
successPath: "",
|
|
151
|
+
|
|
152
|
+
//票券信息
|
|
153
|
+
info: null,
|
|
154
|
+
cardShow:'N',
|
|
135
155
|
};
|
|
136
156
|
},
|
|
137
157
|
computed: {
|
|
@@ -160,8 +180,6 @@ export default {
|
|
|
160
180
|
created() {
|
|
161
181
|
this.backgroundColor = Color(this.mainColor).alpha(0.2).toString();
|
|
162
182
|
this.init(this.container);
|
|
163
|
-
|
|
164
|
-
//todo
|
|
165
183
|
},
|
|
166
184
|
methods: {
|
|
167
185
|
onJfbLoad(options) {
|
|
@@ -207,9 +225,21 @@ export default {
|
|
|
207
225
|
this.packageList = res.list;
|
|
208
226
|
this.package_id = this.packageList[0].id;
|
|
209
227
|
this.pay_amount = this.packageList[0].pay_amount;
|
|
210
|
-
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
211
230
|
this.packageList = [];
|
|
212
231
|
}
|
|
232
|
+
|
|
233
|
+
//票券信息
|
|
234
|
+
if(res && res['card_detail']) {
|
|
235
|
+
this.info = {
|
|
236
|
+
card_number: res['card_detail']['card_number'],
|
|
237
|
+
end_time: res['card_detail']['end_time'],
|
|
238
|
+
card_point: this.$xdUniHelper.divisionFloatNumber(res['card_detail']['card_point'],100),
|
|
239
|
+
unit: res['card_detail']['unit']
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
213
243
|
})
|
|
214
244
|
.catch((error) => {
|
|
215
245
|
console.error(error);
|
|
@@ -246,12 +276,9 @@ export default {
|
|
|
246
276
|
* @param container {object} 业务组件对象自己
|
|
247
277
|
*/
|
|
248
278
|
init(container) {
|
|
249
|
-
this.payPath = getContainerPropsValue(container, "content.payPath", {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
this.successPath = getContainerPropsValue(container, "content.successPath", {
|
|
253
|
-
value: "",
|
|
254
|
-
}).value;
|
|
279
|
+
this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
|
|
280
|
+
this.successPath = getContainerPropsValue(container, "content.successPath", {value: "",}).value;
|
|
281
|
+
this.cardShow = getContainerPropsValue(container, 'content.cardShow', 'Y');
|
|
255
282
|
},
|
|
256
283
|
},
|
|
257
284
|
};
|
|
@@ -307,6 +334,30 @@ export default {
|
|
|
307
334
|
}
|
|
308
335
|
}
|
|
309
336
|
}
|
|
337
|
+
|
|
338
|
+
& .card-info {
|
|
339
|
+
padding: 24rpx 24rpx 0;
|
|
340
|
+
|
|
341
|
+
&-list {
|
|
342
|
+
display: flex;
|
|
343
|
+
justify-content: flex-start;
|
|
344
|
+
align-items: center;
|
|
345
|
+
font-size: 26rpx;
|
|
346
|
+
line-height: 32rpx;
|
|
347
|
+
color: #666;
|
|
348
|
+
padding-bottom: 24rpx;
|
|
349
|
+
&:last-child {
|
|
350
|
+
padding-bottom: 0;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
& > view:first-child {
|
|
354
|
+
flex-shrink: 0;
|
|
355
|
+
}
|
|
356
|
+
& > view:nth-child(2) {
|
|
357
|
+
flex: 1;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
310
361
|
}
|
|
311
362
|
}
|
|
312
363
|
</style>
|