jufubao-base 1.0.115 → 1.0.116-beta10
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/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
- package/src/components/JfbBaseCardInfo/Attr.js +21 -0
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +35 -33
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +287 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
- package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
- package/src/components/JfbBaseConFlashList/Api.js +60 -0
- package/src/components/JfbBaseConFlashList/Attr.js +106 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +110 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
- package/src/components/JfbBaseConFlashList/Mock.js +5 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +93 -98
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +5 -0
- package/src/components/JfbBaseMySetting/Api.js +43 -0
- package/src/components/JfbBaseMySetting/Attr.js +23 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +202 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
- package/src/components/JfbBaseMySetting/Mock.js +5 -0
- package/src/components/JfbBaseMySetting/XdListItem.vue +136 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +48 -0
- package/src/components/JfbBaseSaasHome/Attr.js +35 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +39 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
package/package.json
CHANGED
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
<text>券号:</text>
|
|
178
178
|
<text>{{item.card_number}}</text>
|
|
179
179
|
</view>
|
|
180
|
-
<view @click.stop="toDetail(item)"
|
|
180
|
+
<view @click.stop="toDetail(item)">
|
|
181
181
|
<view>
|
|
182
182
|
<xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
|
|
183
183
|
</view>
|
|
@@ -15,6 +15,17 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
inline: false,
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
label: '我的票券跳转地址:', //label
|
|
20
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
21
|
+
valueKey: 'my_card_url', //form[valueKey]
|
|
22
|
+
placeholder: '请选择我的票券跳转地址',
|
|
23
|
+
value: null,
|
|
24
|
+
setting: {
|
|
25
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
26
|
+
},
|
|
27
|
+
inline: false,
|
|
28
|
+
},
|
|
18
29
|
{
|
|
19
30
|
label: '券号框自定义文案:',
|
|
20
31
|
ele: 'el-input',
|
|
@@ -33,5 +44,15 @@ export default {
|
|
|
33
44
|
placeholder: '请输入密码框自定义文案',
|
|
34
45
|
className: 'input80'
|
|
35
46
|
},
|
|
47
|
+
{
|
|
48
|
+
label: "票券过期是否展示余额",
|
|
49
|
+
ele: "xd-radio",
|
|
50
|
+
valueKey: "is_show_balance",
|
|
51
|
+
value: "N",
|
|
52
|
+
list: [
|
|
53
|
+
{label: "是", value: "Y"},
|
|
54
|
+
{label: "否", value: "N"},
|
|
55
|
+
]
|
|
56
|
+
}
|
|
36
57
|
],
|
|
37
58
|
};
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
info[item.key]
|
|
64
64
|
}}</view>
|
|
65
65
|
</view>
|
|
66
|
-
<view class="jfb-base-card-info__body-residue">
|
|
66
|
+
<view v-if="isShowBalance" class="jfb-base-card-info__body-residue">
|
|
67
67
|
<view class="jfb-base-card-info__body-residue-wrap">
|
|
68
68
|
<view class="jfb-base-card-info__body-residue-label">
|
|
69
69
|
<view :style="{ color: '#242424', fontSize: '28rpx' }"
|
|
@@ -166,12 +166,20 @@ export default {
|
|
|
166
166
|
|
|
167
167
|
//页面跳转地址
|
|
168
168
|
backUrl: "",
|
|
169
|
+
is_show_balance: "N", //是否显示余额
|
|
170
|
+
my_card_url: "", //我的票券跳转地址
|
|
169
171
|
};
|
|
170
172
|
},
|
|
171
173
|
computed: {
|
|
172
174
|
prod_bottom() {
|
|
173
175
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
174
176
|
},
|
|
177
|
+
isShowBalance(){
|
|
178
|
+
if(this.info.is_expired === "Y"){
|
|
179
|
+
return this.is_show_balance === "Y";
|
|
180
|
+
}
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
175
183
|
},
|
|
176
184
|
created() {},
|
|
177
185
|
methods: {
|
|
@@ -187,10 +195,11 @@ export default {
|
|
|
187
195
|
vm: this,
|
|
188
196
|
data: {
|
|
189
197
|
card_qrcode: this.qrcode,
|
|
198
|
+
is_show_pop: "Y"
|
|
190
199
|
},
|
|
191
200
|
})
|
|
192
201
|
.then((res) => {
|
|
193
|
-
this.handlerAfterBindCard();
|
|
202
|
+
this.handlerAfterBindCard(res);
|
|
194
203
|
})
|
|
195
204
|
.catch();
|
|
196
205
|
} else {
|
|
@@ -199,15 +208,21 @@ export default {
|
|
|
199
208
|
data: {
|
|
200
209
|
card_password: this.card_password,
|
|
201
210
|
card_number: this.card_number + "",
|
|
211
|
+
is_show_pop: "Y"
|
|
202
212
|
},
|
|
203
213
|
})
|
|
204
214
|
.then((res) => {
|
|
205
|
-
this.handlerAfterBindCard();
|
|
215
|
+
this.handlerAfterBindCard(res);
|
|
206
216
|
})
|
|
207
217
|
.catch();
|
|
208
218
|
}
|
|
209
219
|
},
|
|
210
|
-
handlerAfterBindCard(){
|
|
220
|
+
handlerAfterBindCard(res){
|
|
221
|
+
if(res.pop_info && res.pop_info.pop_code === '1001'){
|
|
222
|
+
this.handleBindConfirm();
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
211
226
|
if(this.hasCon){
|
|
212
227
|
this.toShowCouponDialog();
|
|
213
228
|
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
@@ -228,6 +243,25 @@ export default {
|
|
|
228
243
|
});
|
|
229
244
|
}
|
|
230
245
|
},
|
|
246
|
+
//卡券已被自己绑定时的弹框
|
|
247
|
+
handleBindConfirm(){
|
|
248
|
+
this.$xdConfirm({
|
|
249
|
+
$vm: this,
|
|
250
|
+
width: '90%',
|
|
251
|
+
content: '您已绑定该票券,无需再次绑定',
|
|
252
|
+
confirmText: '我的票券',
|
|
253
|
+
cancelText: '返回',
|
|
254
|
+
showClose: false,
|
|
255
|
+
success: (res) => {
|
|
256
|
+
if (res.confirm) {
|
|
257
|
+
this.$xdUniHelper.redirectTo({
|
|
258
|
+
url: this.my_card_url || this.backUrl,
|
|
259
|
+
});
|
|
260
|
+
}else{
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
},
|
|
231
265
|
init() {
|
|
232
266
|
this.backUrl = getContainerPropsValue(
|
|
233
267
|
this.container,
|
|
@@ -244,6 +278,8 @@ export default {
|
|
|
244
278
|
"content.card_pwd_placeholder",
|
|
245
279
|
"请输入密码"
|
|
246
280
|
);
|
|
281
|
+
this.is_show_balance = getContainerPropsValue(this.container, 'content.is_show_balance', "N");
|
|
282
|
+
this.my_card_url = getContainerPropsValue(this.container, 'content.my_card_url', { value: "" }).value;
|
|
247
283
|
},
|
|
248
284
|
onJfbLoad(options) {
|
|
249
285
|
this.init();
|
|
@@ -15,6 +15,17 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
inline: false,
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
label: '我的票券跳转地址:', //label
|
|
20
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
21
|
+
valueKey: 'my_card_url', //form[valueKey]
|
|
22
|
+
placeholder: '请选择我的票券跳转地址',
|
|
23
|
+
value: null,
|
|
24
|
+
setting: {
|
|
25
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
26
|
+
},
|
|
27
|
+
inline: false,
|
|
28
|
+
},
|
|
18
29
|
{
|
|
19
30
|
label: '券号框自定义文案:',
|
|
20
31
|
ele: 'el-input',
|
|
@@ -162,6 +162,7 @@ export default {
|
|
|
162
162
|
//页面跳转地址
|
|
163
163
|
backUrl: "",
|
|
164
164
|
headerBg: {},
|
|
165
|
+
my_card_url: "", //我的票券跳转地址
|
|
165
166
|
};
|
|
166
167
|
},
|
|
167
168
|
watch: {
|
|
@@ -204,10 +205,11 @@ export default {
|
|
|
204
205
|
vm: this,
|
|
205
206
|
data: {
|
|
206
207
|
card_qrcode: this.qrcode,
|
|
208
|
+
is_show_pop: "Y",
|
|
207
209
|
},
|
|
208
210
|
})
|
|
209
211
|
.then((res) => {
|
|
210
|
-
this.handlerAfterBindCard();
|
|
212
|
+
this.handlerAfterBindCard(res);
|
|
211
213
|
})
|
|
212
214
|
.catch();
|
|
213
215
|
} else {
|
|
@@ -216,17 +218,24 @@ export default {
|
|
|
216
218
|
data: {
|
|
217
219
|
card_password: this.card_password,
|
|
218
220
|
card_number: this.card_number + "",
|
|
219
|
-
is_show_entry_settings: "Y"
|
|
221
|
+
is_show_entry_settings: "Y",
|
|
222
|
+
is_show_pop: "Y",
|
|
220
223
|
},
|
|
221
224
|
})
|
|
222
225
|
.then((res) => {
|
|
223
226
|
console.log(this.$xdAlert, "this.$xdAlertfsdfs");
|
|
224
|
-
this.handlerAfterBindCard();
|
|
227
|
+
this.handlerAfterBindCard(res);
|
|
225
228
|
})
|
|
226
229
|
.catch();
|
|
227
230
|
}
|
|
228
231
|
},
|
|
229
|
-
handlerAfterBindCard(){
|
|
232
|
+
handlerAfterBindCard(res){
|
|
233
|
+
|
|
234
|
+
if(res.pop_info && res.pop_info.pop_code === '1001'){
|
|
235
|
+
this.handleBindConfirm();
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
|
|
230
239
|
if(this.hasCon){
|
|
231
240
|
this.toShowCouponDialog();
|
|
232
241
|
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
@@ -247,6 +256,25 @@ export default {
|
|
|
247
256
|
});
|
|
248
257
|
}
|
|
249
258
|
},
|
|
259
|
+
//卡券已被自己绑定时的弹框
|
|
260
|
+
handleBindConfirm(){
|
|
261
|
+
this.$xdConfirm({
|
|
262
|
+
$vm: this,
|
|
263
|
+
width: '90%',
|
|
264
|
+
content: '您已绑定该票券,无需再次绑定',
|
|
265
|
+
confirmText: '我的票券',
|
|
266
|
+
cancelText: '返回',
|
|
267
|
+
showClose: false,
|
|
268
|
+
success: (res) => {
|
|
269
|
+
if (res.confirm) {
|
|
270
|
+
this.$xdUniHelper.redirectTo({
|
|
271
|
+
url: this.my_card_url || this.backUrl,
|
|
272
|
+
});
|
|
273
|
+
}else{
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
})
|
|
277
|
+
},
|
|
250
278
|
init() {
|
|
251
279
|
this.backUrl = getContainerPropsValue(
|
|
252
280
|
this.container,
|
|
@@ -263,6 +291,7 @@ export default {
|
|
|
263
291
|
"content.card_pwd_placeholder",
|
|
264
292
|
"请输入密码"
|
|
265
293
|
);
|
|
294
|
+
this.my_card_url = getContainerPropsValue(this.container, 'content.my_card_url', { value: "" }).value;
|
|
266
295
|
},
|
|
267
296
|
onJfbLoad(options) {
|
|
268
297
|
this.init();
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</view>
|
|
63
63
|
</view>
|
|
64
64
|
</view>
|
|
65
|
-
<view class="code">
|
|
65
|
+
<view class="code" v-if="0">
|
|
66
66
|
<view>验证码:</view>
|
|
67
67
|
<view>
|
|
68
68
|
<input v-model="valid_code" class="uni-input" placeholder="请输入验证码"/>
|
|
@@ -248,13 +248,13 @@ export default {
|
|
|
248
248
|
},
|
|
249
249
|
|
|
250
250
|
handleToSubmit() {
|
|
251
|
-
if (!this.valid_code) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
251
|
+
// if (!this.valid_code) {
|
|
252
|
+
// uni.showToast({
|
|
253
|
+
// title: "验证码不能为空!",
|
|
254
|
+
// icon: "none",
|
|
255
|
+
// });
|
|
256
|
+
// return;
|
|
257
|
+
// }
|
|
258
258
|
|
|
259
259
|
let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
|
|
260
260
|
let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
|
|
@@ -269,8 +269,8 @@ export default {
|
|
|
269
269
|
let params = {
|
|
270
270
|
from_card_number: this.fromSelect.value,
|
|
271
271
|
to_card_number: this.toSelect.value,
|
|
272
|
-
valid_code: this.valid_code,
|
|
273
|
-
valid_token: this.valid_token
|
|
272
|
+
// valid_code: this.valid_code,
|
|
273
|
+
// valid_token: this.valid_token
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
if (action.confirm) {
|
|
@@ -321,9 +321,14 @@ export default {
|
|
|
321
321
|
otherParams = this.$xdUniHelper.jsonToParams(this.dispatchData);
|
|
322
322
|
}
|
|
323
323
|
} catch (error) {}
|
|
324
|
+
let curCoup = this.list[this.currentIndex];
|
|
325
|
+
let linkUrl = this.list_url;
|
|
326
|
+
if(curCoup.show_url){
|
|
327
|
+
linkUrl = curCoup.show_url
|
|
328
|
+
}
|
|
324
329
|
|
|
325
330
|
this.$xdUniHelper.navigateTo({
|
|
326
|
-
url: `${
|
|
331
|
+
url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
|
|
327
332
|
});
|
|
328
333
|
},
|
|
329
334
|
handleClose() {
|
|
@@ -6,21 +6,22 @@
|
|
|
6
6
|
<view class="ticket_list">
|
|
7
7
|
<view class="ticket_item" :class="item.can_take_num"
|
|
8
8
|
v-for="(item,i) in uiList" :key="i"
|
|
9
|
-
:style="{backgroundImage: item.backgroundImage}"
|
|
10
9
|
>
|
|
11
|
-
<view class="
|
|
12
|
-
<
|
|
13
|
-
<view
|
|
10
|
+
<view class="item_head">
|
|
11
|
+
<image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
|
|
12
|
+
<view>{{ item.prize_type }}</view>
|
|
14
13
|
</view>
|
|
15
|
-
<view class="
|
|
16
|
-
|
|
14
|
+
<view class="item_sub">{{ item.prize_name }}</view>
|
|
15
|
+
|
|
16
|
+
<xd-font-icon class="ticket_icon" :color="item.iconColor" :icon="item.icon"></xd-font-icon>
|
|
17
17
|
<view class="btn">
|
|
18
18
|
<xd-button
|
|
19
19
|
size="small"
|
|
20
20
|
type="primary"
|
|
21
21
|
:disabled="item.remain_card_count == 0"
|
|
22
22
|
:style="{
|
|
23
|
-
backgroundImage: item.btnImage
|
|
23
|
+
backgroundImage: item.btnImage,
|
|
24
|
+
backgroundSize: '100% 100%',
|
|
24
25
|
}"
|
|
25
26
|
@click="getCoupont(item)"
|
|
26
27
|
>{{item.btn_txt}}</xd-button>
|
|
@@ -63,13 +64,15 @@ export default{
|
|
|
63
64
|
let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
|
|
64
65
|
item.btn_txt = mapArr[item.can_take_num];
|
|
65
66
|
if(item.can_take_num === "Y" || item.can_take_num === "P"){
|
|
66
|
-
item.
|
|
67
|
+
item.headIcon = getServiceUrl(this.setting.app_coupon_url);
|
|
67
68
|
item.btnImage = `url(${getServiceUrl(this.setting.app_coupon_button_bg_url)})`;
|
|
68
69
|
item.icon = item.can_take_num === "Y" ? "iconyilingqu" : "icondailingqu";
|
|
70
|
+
item.iconColor = item.can_take_num === "Y"?'#D6D6D6':"#FF4D4A"
|
|
69
71
|
}else if(item.can_take_num === "N"){
|
|
70
|
-
item.
|
|
72
|
+
item.headIcon = getServiceUrl(this.setting.app_coupon_invalid_url);
|
|
71
73
|
item.btnImage = "";
|
|
72
74
|
item.icon = "iconyifawan";
|
|
75
|
+
item.iconColor = '#D6D6D6'
|
|
73
76
|
}
|
|
74
77
|
return item;
|
|
75
78
|
})
|
|
@@ -116,6 +119,7 @@ export default{
|
|
|
116
119
|
|
|
117
120
|
.ticket_item{
|
|
118
121
|
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
119
123
|
position: relative;
|
|
120
124
|
width: 540rpx;
|
|
121
125
|
height: @ticketHeight;
|
|
@@ -123,19 +127,19 @@ export default{
|
|
|
123
127
|
border-radius: 20rpx;
|
|
124
128
|
padding: 30rpx;
|
|
125
129
|
box-sizing: border-box;
|
|
126
|
-
background: #
|
|
127
|
-
background-size: auto @bgHeight;
|
|
128
|
-
background-position: 30rpx center;
|
|
130
|
+
background: #FFF8F8;
|
|
129
131
|
|
|
130
132
|
&.P,
|
|
131
133
|
&.Y{
|
|
132
134
|
|
|
133
135
|
}
|
|
134
136
|
&.N{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
background: #F3F3F3;
|
|
138
|
+
.item_head{
|
|
139
|
+
color: #BBBBBB;
|
|
140
|
+
}
|
|
141
|
+
.item_sub{
|
|
142
|
+
color: #BBBBBB;
|
|
139
143
|
}
|
|
140
144
|
.ticket_icon{
|
|
141
145
|
color: #D6D6D6;
|
|
@@ -148,25 +152,23 @@ export default{
|
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.name_main{
|
|
161
|
-
margin-bottom: 26rpx;
|
|
162
|
-
margin-top: 20rpx;
|
|
163
|
-
color: #fb5b3f;
|
|
164
|
-
}
|
|
165
|
-
.name_sub{
|
|
166
|
-
font-size: 24rpx;
|
|
167
|
-
color: #FFFFFF;
|
|
155
|
+
.item_head{
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
font-size: 40rpx;
|
|
159
|
+
color: #000000;
|
|
160
|
+
font-weight: 500;
|
|
161
|
+
.t_icon{
|
|
162
|
+
width: 44rpx;
|
|
163
|
+
margin-right: 20rpx;
|
|
168
164
|
}
|
|
169
165
|
}
|
|
166
|
+
.item_sub{
|
|
167
|
+
margin-top: 20rpx;
|
|
168
|
+
color: #FF4D4A;
|
|
169
|
+
font-size: 36rpx;
|
|
170
|
+
font-weight: 400;
|
|
171
|
+
}
|
|
170
172
|
.ticket_icon{
|
|
171
173
|
font-size: 80rpx !important;
|
|
172
174
|
position: absolute;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
|
|
16
|
+
title: '获取电影广场列表',
|
|
17
|
+
path: '/api/account/film/list-film-square',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
+
},
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
+
title: '更新排期',
|
|
29
|
+
path: '/api/account/film/paiqi-date',
|
|
30
|
+
isRule: false,
|
|
31
|
+
params: {
|
|
32
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
+
},
|
|
35
|
+
isConsole: true,
|
|
36
|
+
disabled: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
+
title: '删除我的配送地址',
|
|
41
|
+
path: '/api/account/film/paiqi-date',
|
|
42
|
+
isRule: false,
|
|
43
|
+
params: {
|
|
44
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
+
},
|
|
46
|
+
isConsole: true,
|
|
47
|
+
disabled: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
+
title: '添加购物车',
|
|
52
|
+
path: '/api/account/film/paiqi-date',
|
|
53
|
+
isRule: false,
|
|
54
|
+
params: {
|
|
55
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
56
|
+
},
|
|
57
|
+
isConsole: true,
|
|
58
|
+
disabled: true,
|
|
59
|
+
},
|
|
60
|
+
];
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: "选择业务线",
|
|
12
|
+
ele: "xd-choose-namespace",
|
|
13
|
+
valueKey: "xnamespace",
|
|
14
|
+
value: data.xnamespace || null,
|
|
15
|
+
handleCustom: (cb) => {
|
|
16
|
+
XdBus.getParentApi('getOptionsNamespaces')()
|
|
17
|
+
.then(res => {
|
|
18
|
+
cb(res.list)
|
|
19
|
+
})
|
|
20
|
+
.catch();
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: '样式:',
|
|
25
|
+
ele: 'xd-radio',
|
|
26
|
+
valueKey: 'position',
|
|
27
|
+
value: data['position'] || 1,
|
|
28
|
+
rules: [
|
|
29
|
+
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
30
|
+
],
|
|
31
|
+
list: [
|
|
32
|
+
{"label": "商品靠左", "value": 1},
|
|
33
|
+
{"label": "商品靠右", "value": 2},
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: '是否显示价格:',
|
|
38
|
+
ele: 'xd-radio',
|
|
39
|
+
valueKey: 'isPrice',
|
|
40
|
+
value: data['isPrice'] || 'Y',
|
|
41
|
+
placeholder: '请选择是否显示价格',
|
|
42
|
+
multiple: false,
|
|
43
|
+
className: 'input80',
|
|
44
|
+
list: [
|
|
45
|
+
{label: '是', value: 'Y'},
|
|
46
|
+
{label: '否', value: 'N'},
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: '是否展示原价:',
|
|
51
|
+
ele: 'xd-radio',
|
|
52
|
+
valueKey: 'isShowDiscount',
|
|
53
|
+
value: data.isShowDiscount || "Y",
|
|
54
|
+
rules: [
|
|
55
|
+
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
56
|
+
],
|
|
57
|
+
list: [
|
|
58
|
+
{"label": "显示", "value": "Y"},
|
|
59
|
+
{"label": "隐藏", "value": "N"},
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
data.isShowDiscount==='Y'&&{
|
|
63
|
+
label: '价差大于多少展示原价:',
|
|
64
|
+
ele: 'el-input',
|
|
65
|
+
type: 'number',
|
|
66
|
+
valueKey: 'differ',
|
|
67
|
+
value: data['differ'] || '',
|
|
68
|
+
placeholder: '价差',
|
|
69
|
+
className: 'input80',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: '展示商品个数:',
|
|
73
|
+
ele: 'el-input',
|
|
74
|
+
type: 'number',
|
|
75
|
+
valueKey: 'number',
|
|
76
|
+
value: data.number || '',
|
|
77
|
+
placeholder: '请输入',
|
|
78
|
+
className: 'input80',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: '商品展示方式:',
|
|
82
|
+
ele: 'xd-radio',
|
|
83
|
+
valueKey: 'productShowType',
|
|
84
|
+
value: data.productShowType,
|
|
85
|
+
rules: [
|
|
86
|
+
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
87
|
+
],
|
|
88
|
+
list: [
|
|
89
|
+
{"label": "固定展示", "value": "regular"},
|
|
90
|
+
{"label": "向左轮播", "value": "left"},
|
|
91
|
+
{"label": "向上轮播", "value": "top"},
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: '限时秒杀背景图:', //label
|
|
96
|
+
ele: 'xd-upload', //package 名称
|
|
97
|
+
valueKey: 'secondBackground', //form[valueKey]
|
|
98
|
+
value: data.secondBackground || null, //v-model
|
|
99
|
+
defaultValue: data.secondBackground || null, //默认图片对象
|
|
100
|
+
slot: true, //按钮是否使用slot
|
|
101
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
102
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
103
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
104
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
105
|
+
size: 5, //5M
|
|
106
|
+
action: 'aliyun',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: '场次文字颜色:',
|
|
110
|
+
ele: 'xd-color',
|
|
111
|
+
valueKey: 'textColor',
|
|
112
|
+
value: data.textColor,
|
|
113
|
+
placeholder: '请选择文字颜色',
|
|
114
|
+
classNmae: 'input80',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: '场次文字背景颜色:',
|
|
118
|
+
ele: 'xd-color',
|
|
119
|
+
valueKey: 'textBgColor',
|
|
120
|
+
value: data.textBgColor,
|
|
121
|
+
placeholder: '请选择场次文字背景颜色',
|
|
122
|
+
classNmae: 'input80',
|
|
123
|
+
},
|
|
124
|
+
].filter(i=>i)
|
|
125
|
+
},
|
|
126
|
+
advanced: [
|
|
127
|
+
|
|
128
|
+
],
|
|
129
|
+
};
|