jufubao-base 1.0.302-beta1 → 1.0.302-beta13
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/JfbBaseInvoice/Api.js +20 -29
- package/src/components/JfbBaseInvoice/Attr.js +12 -39
- package/src/components/JfbBaseInvoice/JfbBaseInvoice.vue +491 -78
- package/src/components/JfbBaseInvoice/Mock.js +3 -5
- package/src/components/JfbBaseInvoice/cusAttr/advanced.js +33 -0
- package/src/components/JfbBaseInvoice/cusAttr/content.js +12 -0
- package/src/components/JfbBaseInvoice/cusAttr/style.js +41 -0
- package/src/components/JfbBaseInvoiceDetail/Api.js +12 -35
- package/src/components/JfbBaseInvoiceDetail/Attr.js +12 -39
- package/src/components/JfbBaseInvoiceDetail/JfbBaseInvoiceDetail.vue +434 -80
- package/src/components/JfbBaseInvoiceDetail/Mock.js +2 -6
- package/src/components/JfbBaseInvoiceDetail/cusAttr/advanced.js +6 -0
- package/src/components/JfbBaseInvoiceDetail/cusAttr/content.js +12 -0
- package/src/components/JfbBaseInvoiceDetail/cusAttr/style.js +41 -0
- package/src/components/JfbBaseOrderDetail/Api.js +13 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +38 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +78 -1
- package/src/components/JfbBaseOrderDetail/Mock.js +2 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +23 -4
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +24 -20
- package/src/components/JfbBaseInvoiceConfirm/Api.js +0 -58
- package/src/components/JfbBaseInvoiceConfirm/Attr.js +0 -48
- package/src/components/JfbBaseInvoiceConfirm/JfbBaseInvoiceConfirm.vue +0 -111
- package/src/components/JfbBaseInvoiceConfirm/JfbBaseInvoiceConfirmLess.less +0 -79
- package/src/components/JfbBaseInvoiceConfirm/JfbBaseInvoiceConfirmMixin.js +0 -30
- package/src/components/JfbBaseInvoiceConfirm/Mock.js +0 -13
|
@@ -300,6 +300,20 @@ export default {
|
|
|
300
300
|
{ label: '不允许', value: 'N' },
|
|
301
301
|
]
|
|
302
302
|
},
|
|
303
|
+
{
|
|
304
|
+
label: "发票申请:",
|
|
305
|
+
ele: 'xd-radio',
|
|
306
|
+
valueKey: "is_show_invoice",
|
|
307
|
+
value: data['is_show_invoice'] || 'N',
|
|
308
|
+
groupKey: 'content',
|
|
309
|
+
placeholder: '请选择是否发票申请',
|
|
310
|
+
multiple: false,
|
|
311
|
+
className: 'input80',
|
|
312
|
+
list: [
|
|
313
|
+
{ label: '显示', value: 'Y' },
|
|
314
|
+
{ label: '隐藏', value: 'N' },
|
|
315
|
+
]
|
|
316
|
+
},
|
|
303
317
|
{
|
|
304
318
|
label: '外填充:',
|
|
305
319
|
ele: 'xd-margin-padding',
|
|
@@ -530,6 +544,30 @@ export default {
|
|
|
530
544
|
},
|
|
531
545
|
inline: false,
|
|
532
546
|
},
|
|
547
|
+
{
|
|
548
|
+
label: '发票申请页面路径:',
|
|
549
|
+
ele: 'xd-select-pages-path',
|
|
550
|
+
valueKey: 'invoicePath',
|
|
551
|
+
groupKey: 'advanced',
|
|
552
|
+
placeholder: '发票申请页面路径',
|
|
553
|
+
value: data['invoicePath'] || null,
|
|
554
|
+
setting: {
|
|
555
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
556
|
+
},
|
|
557
|
+
inline: false,
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
label: '查看发票页面路径:',
|
|
561
|
+
ele: 'xd-select-pages-path',
|
|
562
|
+
valueKey: 'viewInvoicePath',
|
|
563
|
+
groupKey: 'advanced',
|
|
564
|
+
placeholder: '发票申请页面路径',
|
|
565
|
+
value: data['viewInvoicePath'] || null,
|
|
566
|
+
setting: {
|
|
567
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
568
|
+
},
|
|
569
|
+
inline: false,
|
|
570
|
+
},
|
|
533
571
|
|
|
534
572
|
|
|
535
573
|
// 废弃 - 隐藏
|
|
@@ -894,6 +894,32 @@
|
|
|
894
894
|
@click="handleAction(item)"
|
|
895
895
|
>{{ item.text }}</xd-button>
|
|
896
896
|
</view>
|
|
897
|
+
<view v-else-if="item.action === 'invoice'">
|
|
898
|
+
<xd-button
|
|
899
|
+
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='N'"
|
|
900
|
+
size="small"
|
|
901
|
+
:type="item.type !== undefined ? item.type: 'primary'"
|
|
902
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
903
|
+
:style="{
|
|
904
|
+
height: bottomBtnHeight + 'rpx',
|
|
905
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
906
|
+
}"
|
|
907
|
+
@click="handleAction(item)"
|
|
908
|
+
>{{ item.text }}</xd-button>
|
|
909
|
+
</view>
|
|
910
|
+
<view v-else-if="item.action === 'viewInvoice'">
|
|
911
|
+
<xd-button
|
|
912
|
+
v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus!=='N'"
|
|
913
|
+
size="small"
|
|
914
|
+
:type="item.type !== undefined ? item.type: 'primary'"
|
|
915
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
916
|
+
:style="{
|
|
917
|
+
height: bottomBtnHeight + 'rpx',
|
|
918
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
919
|
+
}"
|
|
920
|
+
@click="handleAction(item)"
|
|
921
|
+
>{{ item.text }}</xd-button>
|
|
922
|
+
</view>
|
|
897
923
|
<view v-else>
|
|
898
924
|
<xd-button
|
|
899
925
|
size="small"
|
|
@@ -1057,7 +1083,12 @@ export default {
|
|
|
1057
1083
|
supplementList: [],
|
|
1058
1084
|
supplementTitle: "",
|
|
1059
1085
|
|
|
1060
|
-
code_location:'none',
|
|
1086
|
+
code_location: 'none',
|
|
1087
|
+
is_show_invoice: 'N',
|
|
1088
|
+
invoicePath: '',
|
|
1089
|
+
isShowInvoice: false,
|
|
1090
|
+
invoiceStatus: '',
|
|
1091
|
+
viewInvoicePath: ''
|
|
1061
1092
|
};
|
|
1062
1093
|
},
|
|
1063
1094
|
watch: {
|
|
@@ -1081,6 +1112,11 @@ export default {
|
|
|
1081
1112
|
this.getOrderDetail();
|
|
1082
1113
|
}
|
|
1083
1114
|
},
|
|
1115
|
+
is_show_invoice(){
|
|
1116
|
+
if (this.isPreview) {
|
|
1117
|
+
this.getOrderDetail();
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1084
1120
|
},
|
|
1085
1121
|
computed: {
|
|
1086
1122
|
...mapState(['siteInfo']),
|
|
@@ -1159,6 +1195,18 @@ export default {
|
|
|
1159
1195
|
this.getCountDown();
|
|
1160
1196
|
}
|
|
1161
1197
|
},
|
|
1198
|
+
getIsInvoice() {
|
|
1199
|
+
jfbRootExec("getCheckInvoice", {
|
|
1200
|
+
vm: this,
|
|
1201
|
+
data: {
|
|
1202
|
+
main_order_id: this.main_order_id,
|
|
1203
|
+
pay_order_id: this.info.pay_info.pay_order_id,
|
|
1204
|
+
},
|
|
1205
|
+
}).then(res => {
|
|
1206
|
+
this.isShowInvoice = res.is_allow_open === 'Y'
|
|
1207
|
+
this.invoiceStatus = res.status
|
|
1208
|
+
})
|
|
1209
|
+
},
|
|
1162
1210
|
getOrderDetail() {
|
|
1163
1211
|
jfbRootExec("getBaseOrderDetail", {
|
|
1164
1212
|
vm: this,
|
|
@@ -1331,6 +1379,21 @@ export default {
|
|
|
1331
1379
|
});
|
|
1332
1380
|
}
|
|
1333
1381
|
|
|
1382
|
+
//增加删除订单按钮
|
|
1383
|
+
if(this.is_show_invoice === 'Y') {
|
|
1384
|
+
let pay = (res.buttons||[]).filter(item => item.action === 'invoice');
|
|
1385
|
+
let del = [{action:'invoice', text:'申请开票'}];
|
|
1386
|
+
if(pay.length === 1) del = []
|
|
1387
|
+
res.buttons = del.concat(res.buttons || [])
|
|
1388
|
+
}
|
|
1389
|
+
//增加删除订单按钮
|
|
1390
|
+
if(this.is_show_invoice === 'Y') {
|
|
1391
|
+
let pay = (res.buttons||[]).filter(item => item.action === 'viewInvoice');
|
|
1392
|
+
let del = [{action:'viewInvoice', text:'查看开票'}];
|
|
1393
|
+
if(pay.length === 1) del = []
|
|
1394
|
+
res.buttons = del.concat(res.buttons || [])
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1334
1397
|
if (res.product) {
|
|
1335
1398
|
try {
|
|
1336
1399
|
jfbRootExec("getBaseProductDetail", {
|
|
@@ -1358,6 +1421,9 @@ export default {
|
|
|
1358
1421
|
}
|
|
1359
1422
|
else {
|
|
1360
1423
|
this.info = res;
|
|
1424
|
+
if (this.is_show_invoice === 'Y') {
|
|
1425
|
+
this.getIsInvoice()
|
|
1426
|
+
}
|
|
1361
1427
|
if (this.info.status.loading_timeout != "-1") {
|
|
1362
1428
|
this.timeDown();
|
|
1363
1429
|
}
|
|
@@ -1432,6 +1498,9 @@ export default {
|
|
|
1432
1498
|
this.showPreviewCode = true;
|
|
1433
1499
|
}
|
|
1434
1500
|
}
|
|
1501
|
+
this.is_show_invoice = getContainerPropsValue(container, "content.is_show_invoice", "N");
|
|
1502
|
+
this.invoicePath = getContainerPropsValue(container, "content.invoicePath", { value: "", }).value;
|
|
1503
|
+
this.viewInvoicePath = getContainerPropsValue(container, "content.viewInvoicePath", { value: "", }).value;
|
|
1435
1504
|
},
|
|
1436
1505
|
getCountDown() {
|
|
1437
1506
|
this.timer = setInterval(() => {
|
|
@@ -1594,6 +1663,14 @@ export default {
|
|
|
1594
1663
|
}).catch(err => {
|
|
1595
1664
|
this.$xdHideLoading();
|
|
1596
1665
|
})
|
|
1666
|
+
}if (item.action === "invoice") {
|
|
1667
|
+
this.$xdUniHelper.navigateTo({
|
|
1668
|
+
url: `${this.invoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1669
|
+
});
|
|
1670
|
+
}if (item.action === "viewInvoice") {
|
|
1671
|
+
this.$xdUniHelper.navigateTo({
|
|
1672
|
+
url: `${this.viewInvoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1673
|
+
});
|
|
1597
1674
|
}
|
|
1598
1675
|
else {
|
|
1599
1676
|
console.error(`item.action=${item.action}, 此action不可用`)
|
|
@@ -102,5 +102,6 @@ module.exports = {
|
|
|
102
102
|
"request_id": "6178d3499b91f274"
|
|
103
103
|
},
|
|
104
104
|
cancelBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
|
|
105
|
-
deleteBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
|
|
105
|
+
deleteBaseOrder: { "pay_order_id": "488003809474256896", "request_id": "6178d3499b91f274" },
|
|
106
|
+
getCheckInvoice: { "partner_id": 0, "site_id": "", "user_id": 5000358, "is_allow_open": "Y", "error_reason": "", "open_nnid": "", "status": "N", "status_name": "未开票", "request_id": "420fc4fe050beb91" }
|
|
106
107
|
}
|
|
@@ -175,6 +175,8 @@ export default {
|
|
|
175
175
|
callback_url: "",
|
|
176
176
|
is_show_skip: "Y",
|
|
177
177
|
isCollectUsername: false,
|
|
178
|
+
phonePlaceholder:'', //
|
|
179
|
+
codePlaceholder:'', //
|
|
178
180
|
|
|
179
181
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
180
182
|
formBorderColor: "#F9F9F9", //
|
|
@@ -350,10 +352,27 @@ export default {
|
|
|
350
352
|
this.phoneIcon = getContainerPropsValue(value, "content.phoneIcon", '');
|
|
351
353
|
this.codeIcon = getContainerPropsValue(value, "content.codeIcon", '');
|
|
352
354
|
this.passwordIcon = getContainerPropsValue(value, "content.passwordIcon", '');
|
|
353
|
-
this.labelFont = getContainerPropsValue(value, "content.labelFont", {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
this.labelFont = getContainerPropsValue(value, "content.labelFont", {
|
|
356
|
+
color: "#333",
|
|
357
|
+
fontSize: "24rpx",
|
|
358
|
+
fontWeight: "normal",
|
|
359
|
+
});
|
|
360
|
+
this.placeholderFont = getContainerPropsValue(value, "content.placeholderFont", {
|
|
361
|
+
color: "#d4d4d4",
|
|
362
|
+
fontSize: "24rpx",
|
|
363
|
+
fontWeight: "normal",
|
|
364
|
+
});
|
|
365
|
+
this.contentFont = getContainerPropsValue(value, "content.contentFont", {
|
|
366
|
+
color: "#333",
|
|
367
|
+
fontSize: "24rpx",
|
|
368
|
+
fontWeight: "normal",
|
|
369
|
+
});
|
|
370
|
+
this.getCodeFont = getContainerPropsValue(value, "content.getCodeFont", {
|
|
371
|
+
color: "#ff5a39",
|
|
372
|
+
fontSize: "24rpx",
|
|
373
|
+
fontWeight: "normal",
|
|
374
|
+
});
|
|
375
|
+
|
|
357
376
|
this.getCodeShowType = getContainerPropsValue(value, "content.getCodeShowType", 'text');
|
|
358
377
|
this.btnMargin = getContainerPropsValue(value, "content.btnMargin", {});
|
|
359
378
|
this.btnRadius = getContainerPropsValue(value, "content.btnRadius", '20');
|
|
@@ -65,10 +65,7 @@
|
|
|
65
65
|
label="手机号"
|
|
66
66
|
content-align="left"
|
|
67
67
|
>
|
|
68
|
-
<xd-form-input
|
|
69
|
-
v-model="accountForm.phone_number"
|
|
70
|
-
:placeholder="phonePlaceholder"
|
|
71
|
-
/>
|
|
68
|
+
<xd-form-input v-model="accountForm.phone_number" :placeholder="phonePlaceholder"/>
|
|
72
69
|
</xd-form-item>
|
|
73
70
|
<xd-form-item
|
|
74
71
|
class="form-item"
|
|
@@ -199,6 +196,8 @@ export default {
|
|
|
199
196
|
isCollectUsername: false,
|
|
200
197
|
showDialog: false,
|
|
201
198
|
share_code: "",
|
|
199
|
+
phonePlaceholder:'', //
|
|
200
|
+
codePlaceholder:'', //
|
|
202
201
|
|
|
203
202
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
204
203
|
formBorderColor: "#F9F9F9", //
|
|
@@ -432,22 +431,27 @@ export default {
|
|
|
432
431
|
"content.passwordIcon",
|
|
433
432
|
""
|
|
434
433
|
);
|
|
435
|
-
this.labelFont = getContainerPropsValue(value, "content.labelFont", {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
"
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
434
|
+
this.labelFont = getContainerPropsValue(value, "content.labelFont", {
|
|
435
|
+
color: "#333",
|
|
436
|
+
fontSize: "24rpx",
|
|
437
|
+
fontWeight: "normal",
|
|
438
|
+
});
|
|
439
|
+
this.placeholderFont = getContainerPropsValue( value, "content.placeholderFont", {
|
|
440
|
+
color: "#d4d4d4",
|
|
441
|
+
fontSize: "24rpx",
|
|
442
|
+
fontWeight: "normal",
|
|
443
|
+
});
|
|
444
|
+
this.contentFont = getContainerPropsValue(value, "content.contentFont", {
|
|
445
|
+
//表单内容字体
|
|
446
|
+
color: "#333",
|
|
447
|
+
fontSize: "24rpx",
|
|
448
|
+
fontWeight: "normal",
|
|
449
|
+
});
|
|
450
|
+
this.getCodeFont = getContainerPropsValue(value, "content.getCodeFont", {
|
|
451
|
+
color: "#ff5a39",
|
|
452
|
+
fontSize: "24rpx",
|
|
453
|
+
fontWeight: "normal",
|
|
454
|
+
});
|
|
451
455
|
this.getCodeShowType = getContainerPropsValue(
|
|
452
456
|
value,
|
|
453
457
|
"content.getCodeShowType",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Invoice
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
10
|
-
mapFnName: 'getInvoiceByIdFilmSquate',
|
|
11
|
-
title: '获取电影广场列表',
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
13
|
-
isRule: false,
|
|
14
|
-
params: {
|
|
15
|
-
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
-
},
|
|
18
|
-
isConsole: true,
|
|
19
|
-
disabled: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
23
|
-
mapFnName: 'updateInvoiceFilmPaiqiDate',
|
|
24
|
-
title: '更新排期',
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
26
|
-
isRule: false,
|
|
27
|
-
params: {
|
|
28
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
-
},
|
|
31
|
-
isConsole: true,
|
|
32
|
-
disabled: true,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
36
|
-
mapFnName: 'removeInvoiceFilmAddress',
|
|
37
|
-
title: '删除我的配送地址',
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
39
|
-
isRule: false,
|
|
40
|
-
params: {
|
|
41
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
-
},
|
|
43
|
-
isConsole: true,
|
|
44
|
-
disabled: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
48
|
-
mapFnName: 'addInvoiceFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
-
},
|
|
55
|
-
isConsole: true,
|
|
56
|
-
disabled: true,
|
|
57
|
-
},
|
|
58
|
-
];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
style: [],
|
|
8
|
-
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '背景颜色:',
|
|
12
|
-
ele: 'xd-color',
|
|
13
|
-
valueKey: 'bgColor',
|
|
14
|
-
value: data.bgColor || '',
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
groupKey:'content',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: '选中路径:',
|
|
20
|
-
groupKey:'advanced',
|
|
21
|
-
className: 'input100',
|
|
22
|
-
ele: 'xd-select-pages-path',
|
|
23
|
-
valueKey: 'select-pages-path',
|
|
24
|
-
value: data['select-pages-path'] || null,
|
|
25
|
-
setting: {
|
|
26
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
data.bgColor && {
|
|
30
|
-
label: '高度:',
|
|
31
|
-
ele: 'el-input',
|
|
32
|
-
groupKey:'style',
|
|
33
|
-
type: 'number',
|
|
34
|
-
valueKey: 'height',
|
|
35
|
-
value: data.height || 100,
|
|
36
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
-
className: 'input60',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: '', //label
|
|
41
|
-
groupKey:'advanced',
|
|
42
|
-
ele: 'slot', //package 名称
|
|
43
|
-
slot: 'is_reference',
|
|
44
|
-
},
|
|
45
|
-
].filter(i=>i)
|
|
46
|
-
},
|
|
47
|
-
advanced: [],
|
|
48
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-invoice-confirm"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-invoice-confirm__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-invoice-confirm__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-invoice-confirm__body">
|
|
17
|
-
<view>测试插件( {{containerId}} )</view>
|
|
18
|
-
</view>
|
|
19
|
-
</view>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
-
import JfbBaseInvoiceConfirmMixin from "./JfbBaseInvoiceConfirmMixin";
|
|
26
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
-
export default {
|
|
30
|
-
name: "JfbBaseInvoiceConfirm",
|
|
31
|
-
components: {
|
|
32
|
-
XdFontIcon
|
|
33
|
-
},
|
|
34
|
-
mixins: [
|
|
35
|
-
componentsMixins, extsMixins, JfbBaseInvoiceConfirmMixin
|
|
36
|
-
],
|
|
37
|
-
data() {
|
|
38
|
-
return {
|
|
39
|
-
|
|
40
|
-
//todo
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
watch: {
|
|
44
|
-
container(value, oldValue) {
|
|
45
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
created() {
|
|
50
|
-
this.init(this.container);
|
|
51
|
-
|
|
52
|
-
//todo
|
|
53
|
-
},
|
|
54
|
-
methods: {
|
|
55
|
-
onJfbLoad(options) {
|
|
56
|
-
|
|
57
|
-
// jfbRootExec('baiduUserLogin', {
|
|
58
|
-
|
|
59
|
-
// vm: this,// data: {
|
|
60
|
-
|
|
61
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
|
|
65
|
-
// }).then().catch()
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* @description 监听事件变化
|
|
69
|
-
* @param container {object} 业务组件对象自己
|
|
70
|
-
*/
|
|
71
|
-
init(container) {
|
|
72
|
-
|
|
73
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
-
|
|
75
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
-
},
|
|
77
|
-
onJfbScroll(options) {
|
|
78
|
-
console.log('event.onJfbScroll', options)
|
|
79
|
-
},
|
|
80
|
-
onJfbReachBottom(options) {
|
|
81
|
-
console.log('event.onJfbReachBottom', options)
|
|
82
|
-
},
|
|
83
|
-
onJfbShow(options) {
|
|
84
|
-
console.log('event.onJfbShow', options)
|
|
85
|
-
},
|
|
86
|
-
onJfbHide(options) {
|
|
87
|
-
console.log('event.onJfbHide', options)
|
|
88
|
-
},
|
|
89
|
-
onJfbBack(options) {
|
|
90
|
-
console.log('event.onJfbBack', options)
|
|
91
|
-
},
|
|
92
|
-
onJfbUpdate(...data) {
|
|
93
|
-
console.log('event.onJfbUpdate', data)
|
|
94
|
-
},
|
|
95
|
-
onJfbCustomEvent(options) {
|
|
96
|
-
console.log('event.onJfbReachBottom', options)
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style scoped lang="less">
|
|
104
|
-
@import "./JfbBaseInvoiceConfirmLess.less";
|
|
105
|
-
|
|
106
|
-
.jfb-base-invoice-confirm {
|
|
107
|
-
&__body{
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
</style>
|
|
@@ -1,79 +0,0 @@
|
|
|
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-invoice-confirm {
|
|
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-invoice-confirm {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
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-invoice-confirm'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|