jufubao-base 1.0.302-beta4 → 1.0.302-beta9
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
|
@@ -115,7 +115,11 @@
|
|
|
115
115
|
</view>
|
|
116
116
|
</view>
|
|
117
117
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
118
|
-
<XdButton
|
|
118
|
+
<XdButton
|
|
119
|
+
width="700rpx"
|
|
120
|
+
@click="handleToSecondStep"
|
|
121
|
+
size="small"
|
|
122
|
+
type="primary"
|
|
119
123
|
>下一步</XdButton
|
|
120
124
|
>
|
|
121
125
|
</view>
|
|
@@ -165,13 +169,18 @@
|
|
|
165
169
|
</view>
|
|
166
170
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
167
171
|
<XdButton
|
|
172
|
+
style="width: 300rpx"
|
|
168
173
|
:cusStyle="[btnStyle]"
|
|
169
174
|
@click="handleBack"
|
|
170
175
|
size="small"
|
|
171
176
|
type="default"
|
|
172
177
|
>返回修改</XdButton
|
|
173
178
|
>
|
|
174
|
-
<XdButton
|
|
179
|
+
<XdButton
|
|
180
|
+
style="width: 300rpx"
|
|
181
|
+
@click="handleConfirm"
|
|
182
|
+
size="small"
|
|
183
|
+
type="primary"
|
|
175
184
|
>确认提交</XdButton
|
|
176
185
|
>
|
|
177
186
|
</view>
|
|
@@ -189,7 +198,7 @@ import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
|
189
198
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
190
199
|
import extsMixins from "@/mixins/extsMixins";
|
|
191
200
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
192
|
-
import XdUnit from "@/components/XdUnit/XdUnit
|
|
201
|
+
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
193
202
|
export default {
|
|
194
203
|
name: "JfbBaseInvoice",
|
|
195
204
|
components: {
|
|
@@ -288,7 +297,6 @@ export default {
|
|
|
288
297
|
"content.detailPath",
|
|
289
298
|
{ value: "" }
|
|
290
299
|
).value;
|
|
291
|
-
debugger
|
|
292
300
|
},
|
|
293
301
|
radioChange: function (evt) {
|
|
294
302
|
for (let i = 0; i < this.invoice_header_type_list.length; i++) {
|
|
@@ -330,13 +338,26 @@ export default {
|
|
|
330
338
|
return;
|
|
331
339
|
}
|
|
332
340
|
}
|
|
333
|
-
if (!this.email) {
|
|
334
|
-
this.$xdAlert({ content: "请填写接收邮箱" });
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
341
|
if (!this.phone_number) {
|
|
338
342
|
this.$xdAlert({ content: "请填写联系电话" });
|
|
339
343
|
return;
|
|
344
|
+
} else {
|
|
345
|
+
const reg = /^1[3456789]\d{9}$/;
|
|
346
|
+
if (!reg.test(this.phone_number)) {
|
|
347
|
+
this.$xdAlert({ content: "请填写正确的手机号" });
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if (!this.email) {
|
|
352
|
+
this.$xdAlert({ content: "请填写接收邮箱" });
|
|
353
|
+
return;
|
|
354
|
+
} else {
|
|
355
|
+
const reg =
|
|
356
|
+
/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/;
|
|
357
|
+
if (!reg.test(this.email)) {
|
|
358
|
+
this.$xdAlert({ content: "请填写正确的邮箱" });
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
340
361
|
}
|
|
341
362
|
this.firstStep = false;
|
|
342
363
|
},
|
|
@@ -431,7 +452,7 @@ export default {
|
|
|
431
452
|
}
|
|
432
453
|
input {
|
|
433
454
|
font-size: 26rpx;
|
|
434
|
-
text-align:
|
|
455
|
+
text-align: right;
|
|
435
456
|
}
|
|
436
457
|
}
|
|
437
458
|
.required {
|
|
@@ -461,7 +482,7 @@ export default {
|
|
|
461
482
|
padding: 0 unit(15, rpx);
|
|
462
483
|
}
|
|
463
484
|
}
|
|
464
|
-
|
|
485
|
+
&-step2-content {
|
|
465
486
|
padding: 24rpx;
|
|
466
487
|
border-radius: 16rpx;
|
|
467
488
|
&-item {
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
v-else-if="info.status === 'Y'"
|
|
37
37
|
class="jfb-base-invoice-detail__body-status-text"
|
|
38
38
|
>已开发票金额:<xd-unit
|
|
39
|
+
fontSize="28"
|
|
40
|
+
colorNew="#fff"
|
|
39
41
|
:isOld="false"
|
|
40
42
|
:price="info.invoice_amount"
|
|
41
43
|
></xd-unit
|
|
@@ -111,6 +113,7 @@
|
|
|
111
113
|
<image @click="handlePreview(index, item)" :src="item"></image>
|
|
112
114
|
</view>
|
|
113
115
|
</view>
|
|
116
|
+
<view :style="{ height: layoutInfo.bottom + 'rpx' }"></view>
|
|
114
117
|
<view v-if="info.status === 'Y'" class="fixe_bottom" :style="prod_bottom">
|
|
115
118
|
<view :style="[bottomBtnWrapStyle]">
|
|
116
119
|
<XdButton
|
|
@@ -153,6 +156,7 @@
|
|
|
153
156
|
<script>
|
|
154
157
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
155
158
|
import XdDailog from "@/components/XdDailog/XdDailog";
|
|
159
|
+
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
156
160
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
157
161
|
import JfbBaseInvoiceDetailMixin from "./JfbBaseInvoiceDetailMixin";
|
|
158
162
|
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
@@ -164,6 +168,7 @@ export default {
|
|
|
164
168
|
components: {
|
|
165
169
|
XdFontIcon,
|
|
166
170
|
XdDailog,
|
|
171
|
+
XdUnit,
|
|
167
172
|
},
|
|
168
173
|
mixins: [componentsMixins, extsMixins, JfbBaseInvoiceDetailMixin],
|
|
169
174
|
data() {
|
|
@@ -244,12 +249,17 @@ export default {
|
|
|
244
249
|
).fullTime;
|
|
245
250
|
}
|
|
246
251
|
if (res.invoice_result.file_info) {
|
|
247
|
-
res.invoice_result.file_info = JSON.parse(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
252
|
+
res.invoice_result.file_info = JSON.parse(
|
|
253
|
+
res.invoice_result.file_info
|
|
254
|
+
);
|
|
255
|
+
this.images = res.invoice_result.file_info.map((item) => {
|
|
256
|
+
return getServiceUrl(item.path, "size3");
|
|
257
|
+
});
|
|
251
258
|
}
|
|
252
259
|
this.info = res.invoice_result;
|
|
260
|
+
if (this.info.status_name === "待开票") {
|
|
261
|
+
this.info.status_name = "开票中";
|
|
262
|
+
}
|
|
253
263
|
})
|
|
254
264
|
.catch();
|
|
255
265
|
},
|
|
@@ -299,6 +309,7 @@ export default {
|
|
|
299
309
|
}).then((res) => {
|
|
300
310
|
this.showDialog = false;
|
|
301
311
|
this.email = "";
|
|
312
|
+
this.$xdAlert({ content: "发送成功" });
|
|
302
313
|
});
|
|
303
314
|
},
|
|
304
315
|
handleSend() {
|
|
@@ -394,6 +405,7 @@ export default {
|
|
|
394
405
|
justify-content: center;
|
|
395
406
|
padding: 8rpx;
|
|
396
407
|
margin-right: 16rpx;
|
|
408
|
+
margin-bottom: 16rpx;
|
|
397
409
|
|
|
398
410
|
& > image {
|
|
399
411
|
width: 192rpx;
|
|
@@ -1668,7 +1668,6 @@ export default {
|
|
|
1668
1668
|
url: `${this.invoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1669
1669
|
});
|
|
1670
1670
|
}if (item.action === "viewInvoice") {
|
|
1671
|
-
this.viewInvoicePath='/plus/invoice/detail'
|
|
1672
1671
|
this.$xdUniHelper.navigateTo({
|
|
1673
1672
|
url: `${this.viewInvoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.info.pay_info.pay_order_id}`,
|
|
1674
1673
|
});
|