jufubao-base 1.0.302-beta9 → 1.0.303
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/JfbBaseOrderDetail/Api.js +1 -13
- package/src/components/JfbBaseOrderDetail/Attr.js +0 -38
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +1 -78
- package/src/components/JfbBaseOrderDetail/Mock.js +1 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +23 -4
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +24 -20
- package/src/components/JfbBaseInvoice/Api.js +0 -49
- package/src/components/JfbBaseInvoice/Attr.js +0 -21
- package/src/components/JfbBaseInvoice/JfbBaseInvoice.vue +0 -524
- package/src/components/JfbBaseInvoice/JfbBaseInvoiceLess.less +0 -79
- package/src/components/JfbBaseInvoice/JfbBaseInvoiceMixin.js +0 -30
- package/src/components/JfbBaseInvoice/Mock.js +0 -11
- package/src/components/JfbBaseInvoice/cusAttr/advanced.js +0 -33
- package/src/components/JfbBaseInvoice/cusAttr/content.js +0 -12
- package/src/components/JfbBaseInvoice/cusAttr/style.js +0 -41
- package/src/components/JfbBaseInvoiceDetail/Api.js +0 -35
- package/src/components/JfbBaseInvoiceDetail/Attr.js +0 -21
- package/src/components/JfbBaseInvoiceDetail/JfbBaseInvoiceDetail.vue +0 -465
- package/src/components/JfbBaseInvoiceDetail/JfbBaseInvoiceDetailLess.less +0 -79
- package/src/components/JfbBaseInvoiceDetail/JfbBaseInvoiceDetailMixin.js +0 -30
- package/src/components/JfbBaseInvoiceDetail/Mock.js +0 -9
- package/src/components/JfbBaseInvoiceDetail/cusAttr/advanced.js +0 -6
- package/src/components/JfbBaseInvoiceDetail/cusAttr/content.js +0 -12
- package/src/components/JfbBaseInvoiceDetail/cusAttr/style.js +0 -41
package/package.json
CHANGED
|
@@ -61,17 +61,5 @@ module.exports = [
|
|
|
61
61
|
},
|
|
62
62
|
isConsole: true,
|
|
63
63
|
disabled: true,
|
|
64
|
-
}
|
|
65
|
-
{
|
|
66
|
-
mapFnName: 'getCheckInvoice',
|
|
67
|
-
title: '用户开票 - 检查订单是否支持开票',
|
|
68
|
-
path: '/pay/v1/user-invoice/check-allow-open',
|
|
69
|
-
isRule: false,
|
|
70
|
-
params: {
|
|
71
|
-
main_order_id: ['订单编号', 'Number', '必选'],
|
|
72
|
-
pay_order_id: ['支付订单号', 'Number', '必选'],
|
|
73
|
-
},
|
|
74
|
-
isConsole: true,
|
|
75
|
-
disabled: true,
|
|
76
|
-
},
|
|
64
|
+
}
|
|
77
65
|
];
|
|
@@ -300,20 +300,6 @@ 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
|
-
},
|
|
317
303
|
{
|
|
318
304
|
label: '外填充:',
|
|
319
305
|
ele: 'xd-margin-padding',
|
|
@@ -544,30 +530,6 @@ export default {
|
|
|
544
530
|
},
|
|
545
531
|
inline: false,
|
|
546
532
|
},
|
|
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
|
-
},
|
|
571
533
|
|
|
572
534
|
|
|
573
535
|
// 废弃 - 隐藏
|
|
@@ -894,32 +894,6 @@
|
|
|
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>
|
|
923
897
|
<view v-else>
|
|
924
898
|
<xd-button
|
|
925
899
|
size="small"
|
|
@@ -1083,12 +1057,7 @@ export default {
|
|
|
1083
1057
|
supplementList: [],
|
|
1084
1058
|
supplementTitle: "",
|
|
1085
1059
|
|
|
1086
|
-
code_location:
|
|
1087
|
-
is_show_invoice: 'N',
|
|
1088
|
-
invoicePath: '',
|
|
1089
|
-
isShowInvoice: false,
|
|
1090
|
-
invoiceStatus: '',
|
|
1091
|
-
viewInvoicePath: ''
|
|
1060
|
+
code_location:'none',
|
|
1092
1061
|
};
|
|
1093
1062
|
},
|
|
1094
1063
|
watch: {
|
|
@@ -1112,11 +1081,6 @@ export default {
|
|
|
1112
1081
|
this.getOrderDetail();
|
|
1113
1082
|
}
|
|
1114
1083
|
},
|
|
1115
|
-
is_show_invoice(){
|
|
1116
|
-
if (this.isPreview) {
|
|
1117
|
-
this.getOrderDetail();
|
|
1118
|
-
}
|
|
1119
|
-
},
|
|
1120
1084
|
},
|
|
1121
1085
|
computed: {
|
|
1122
1086
|
...mapState(['siteInfo']),
|
|
@@ -1195,18 +1159,6 @@ export default {
|
|
|
1195
1159
|
this.getCountDown();
|
|
1196
1160
|
}
|
|
1197
1161
|
},
|
|
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
|
-
},
|
|
1210
1162
|
getOrderDetail() {
|
|
1211
1163
|
jfbRootExec("getBaseOrderDetail", {
|
|
1212
1164
|
vm: this,
|
|
@@ -1379,21 +1331,6 @@ export default {
|
|
|
1379
1331
|
});
|
|
1380
1332
|
}
|
|
1381
1333
|
|
|
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
|
-
|
|
1397
1334
|
if (res.product) {
|
|
1398
1335
|
try {
|
|
1399
1336
|
jfbRootExec("getBaseProductDetail", {
|
|
@@ -1421,9 +1358,6 @@ export default {
|
|
|
1421
1358
|
}
|
|
1422
1359
|
else {
|
|
1423
1360
|
this.info = res;
|
|
1424
|
-
if (this.is_show_invoice === 'Y') {
|
|
1425
|
-
this.getIsInvoice()
|
|
1426
|
-
}
|
|
1427
1361
|
if (this.info.status.loading_timeout != "-1") {
|
|
1428
1362
|
this.timeDown();
|
|
1429
1363
|
}
|
|
@@ -1498,9 +1432,6 @@ export default {
|
|
|
1498
1432
|
this.showPreviewCode = true;
|
|
1499
1433
|
}
|
|
1500
1434
|
}
|
|
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;
|
|
1504
1435
|
},
|
|
1505
1436
|
getCountDown() {
|
|
1506
1437
|
this.timer = setInterval(() => {
|
|
@@ -1663,14 +1594,6 @@ export default {
|
|
|
1663
1594
|
}).catch(err => {
|
|
1664
1595
|
this.$xdHideLoading();
|
|
1665
1596
|
})
|
|
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
|
-
});
|
|
1674
1597
|
}
|
|
1675
1598
|
else {
|
|
1676
1599
|
console.error(`item.action=${item.action}, 此action不可用`)
|
|
@@ -102,6 +102,5 @@ module.exports = {
|
|
|
102
102
|
"request_id": "6178d3499b91f274"
|
|
103
103
|
},
|
|
104
104
|
cancelBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
|
|
105
|
-
deleteBaseOrder:
|
|
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" }
|
|
105
|
+
deleteBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
|
|
107
106
|
}
|
|
@@ -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,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Invoice
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
10
|
-
mapFnName: 'userInvoiceDetail',
|
|
11
|
-
title: '用户开票 - 详情',
|
|
12
|
-
path: '/pay/v1/user-invoice/detail',
|
|
13
|
-
isRule: false,
|
|
14
|
-
params: {
|
|
15
|
-
main_order_id: ['订单编号', 'Number', '必选'],
|
|
16
|
-
pay_order_id: ['支付订单号', 'Number', '必选'],
|
|
17
|
-
},
|
|
18
|
-
isConsole: true,
|
|
19
|
-
disabled: true,
|
|
20
|
-
}, {
|
|
21
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
22
|
-
mapFnName: 'userInvoiceOptions',
|
|
23
|
-
title: '用户开票 - options',
|
|
24
|
-
path: '/pay/v1/user-invoice/options',
|
|
25
|
-
isRule: false,
|
|
26
|
-
params: {
|
|
27
|
-
main_order_id: ['订单编号', 'Number', '必选'],
|
|
28
|
-
pay_order_id: ['支付订单号', 'Number', '必选'],
|
|
29
|
-
},
|
|
30
|
-
isConsole: true,
|
|
31
|
-
disabled: true,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
//设置方法名字当别忘记加上【模块名字】:Invoice
|
|
35
|
-
mapFnName: 'userInvoiceSubmit',
|
|
36
|
-
title: '用户开票 - 申请开票',
|
|
37
|
-
path: '/pay/v1/user-invoice/submit',
|
|
38
|
-
isRule: false,
|
|
39
|
-
data: {
|
|
40
|
-
main_order_id: ['订单编号', 'Number', '必选'],
|
|
41
|
-
pay_order_id: ['支付订单号', 'Number', '必选'],
|
|
42
|
-
email: ['邮箱', 'Number', '必选'],
|
|
43
|
-
invoice_header: ['发票抬头', 'Number', '必选'],
|
|
44
|
-
invoice_header_type: ['发票抬头类型', 'Number', '必选'],
|
|
45
|
-
},
|
|
46
|
-
isConsole: true,
|
|
47
|
-
disabled: true,
|
|
48
|
-
},
|
|
49
|
-
];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import Content from './cusAttr/content'
|
|
3
|
-
import Style from './cusAttr/style'
|
|
4
|
-
import Advanced from './cusAttr/advanced'
|
|
5
|
-
/**
|
|
6
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
7
|
-
*/
|
|
8
|
-
export default {
|
|
9
|
-
style: [],
|
|
10
|
-
content: (data, gValue, gColor, oldData = {}) => {
|
|
11
|
-
return [
|
|
12
|
-
...Content(data, gValue, gColor, oldData),
|
|
13
|
-
...Style(data, gValue, gColor, oldData),
|
|
14
|
-
...Advanced(data, gValue, gColor, oldData),
|
|
15
|
-
|
|
16
|
-
].filter(i => i)
|
|
17
|
-
},
|
|
18
|
-
advanced: [
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
};
|