jufubao-base 1.0.400 → 1.0.401
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
|
@@ -330,6 +330,15 @@
|
|
|
330
330
|
<text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
|
|
331
331
|
<xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
|
|
332
332
|
</view>
|
|
333
|
+
<!-- 预约按钮 -->
|
|
334
|
+
<view v-if="info.codes[0].reservation_buttons && info.codes[0].reservation_buttons.length > 0" class="jfb-base-order-detail__body-reserve">
|
|
335
|
+
<view
|
|
336
|
+
v-for="(btn, idx) in info.codes[0].reservation_buttons"
|
|
337
|
+
:key="idx"
|
|
338
|
+
class="jfb-base-order-detail__body-reserve-btn"
|
|
339
|
+
@click="handleReservationJump(btn.url)"
|
|
340
|
+
>{{ btn.name }}</view>
|
|
341
|
+
</view>
|
|
333
342
|
</view>
|
|
334
343
|
<!--单条条形码或者二维码-->
|
|
335
344
|
<!--其他情况显示-->
|
|
@@ -497,6 +506,15 @@
|
|
|
497
506
|
<text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
|
|
498
507
|
<xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
|
|
499
508
|
</view>
|
|
509
|
+
<!-- 预约按钮 -->
|
|
510
|
+
<view v-if="item.reservation_buttons && item.reservation_buttons.length > 0" class="jfb-base-order-detail__body-reserve">
|
|
511
|
+
<view
|
|
512
|
+
v-for="(btn, idx) in item.reservation_buttons"
|
|
513
|
+
:key="idx"
|
|
514
|
+
class="jfb-base-order-detail__body-reserve-btn"
|
|
515
|
+
@click="handleReservationJump(btn.url)"
|
|
516
|
+
>{{ btn.name }}</view>
|
|
517
|
+
</view>
|
|
500
518
|
</view>
|
|
501
519
|
</view>
|
|
502
520
|
<!--其他情况显示-->
|
|
@@ -1761,6 +1779,18 @@ export default {
|
|
|
1761
1779
|
});
|
|
1762
1780
|
}
|
|
1763
1781
|
},
|
|
1782
|
+
handleReservationJump(url) {
|
|
1783
|
+
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
1784
|
+
if (reg.test(url)) {
|
|
1785
|
+
this.$xdUniHelper.redirectTo({
|
|
1786
|
+
url: url,
|
|
1787
|
+
});
|
|
1788
|
+
} else {
|
|
1789
|
+
this.$xdAlert({
|
|
1790
|
+
content: "访问路径格式错误!",
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1764
1794
|
handleToPay(item) {
|
|
1765
1795
|
//餐饮固定逻辑
|
|
1766
1796
|
if (this.$configProject.type === "food") {
|
|
@@ -2849,6 +2879,22 @@ export default {
|
|
|
2849
2879
|
color: #999;
|
|
2850
2880
|
}
|
|
2851
2881
|
|
|
2882
|
+
&-reserve {
|
|
2883
|
+
display: flex;
|
|
2884
|
+
flex-wrap: wrap;
|
|
2885
|
+
gap: 16rpx;
|
|
2886
|
+
margin-top: 20rpx;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
&-reserve-btn {
|
|
2890
|
+
flex: 1;
|
|
2891
|
+
min-width: 0;
|
|
2892
|
+
text-align: center;
|
|
2893
|
+
font-size: 28rpx;
|
|
2894
|
+
color: #2A82E4;
|
|
2895
|
+
text-decoration: underline;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2852
2898
|
}
|
|
2853
2899
|
.ticket_method_msg {
|
|
2854
2900
|
background-color: #FFEAE6;
|
|
@@ -141,6 +141,15 @@
|
|
|
141
141
|
<text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
|
|
142
142
|
<xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
|
|
143
143
|
</view>
|
|
144
|
+
<!-- 预约按钮 -->
|
|
145
|
+
<view v-if="info.codes[0].reservation_buttons && info.codes[0].reservation_buttons.length > 0" class="jfb-base-success__body-reserve">
|
|
146
|
+
<view
|
|
147
|
+
v-for="(btn, idx) in info.codes[0].reservation_buttons"
|
|
148
|
+
:key="idx"
|
|
149
|
+
class="jfb-base-success__body-reserve-btn"
|
|
150
|
+
@click="handleReservationJump(btn.url)"
|
|
151
|
+
>{{ btn.name }}</view>
|
|
152
|
+
</view>
|
|
144
153
|
</view>
|
|
145
154
|
<view v-else>
|
|
146
155
|
<view
|
|
@@ -317,6 +326,15 @@
|
|
|
317
326
|
<text>{{ codeRefreshMinute }}分{{ codeRefreshSecond }}秒后自动刷新</text>
|
|
318
327
|
<xd-font-icon icon="iconmian-loading" size="24" color="#999"></xd-font-icon>
|
|
319
328
|
</view>
|
|
329
|
+
<!-- 预约按钮 -->
|
|
330
|
+
<view v-if="item.reservation_buttons && item.reservation_buttons.length > 0" class="jfb-base-success__body-reserve">
|
|
331
|
+
<view
|
|
332
|
+
v-for="(btn, idx) in item.reservation_buttons"
|
|
333
|
+
:key="idx"
|
|
334
|
+
class="jfb-base-success__body-reserve-btn"
|
|
335
|
+
@click="handleToLink(btn.url)"
|
|
336
|
+
>{{ btn.name }}</view>
|
|
337
|
+
</view>
|
|
320
338
|
</view>
|
|
321
339
|
</view>
|
|
322
340
|
</view>
|
|
@@ -551,6 +569,20 @@ export default {
|
|
|
551
569
|
}
|
|
552
570
|
},
|
|
553
571
|
|
|
572
|
+
handleReservationJump(url) {
|
|
573
|
+
if (this.$configProject.isPreview) return;
|
|
574
|
+
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
575
|
+
if (reg.test(url)) {
|
|
576
|
+
this.$xdUniHelper.redirectTo({
|
|
577
|
+
url: url,
|
|
578
|
+
});
|
|
579
|
+
} else {
|
|
580
|
+
this.$xdAlert({
|
|
581
|
+
content: "访问路径格式错误!",
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
|
|
554
586
|
/**
|
|
555
587
|
* @description 监听事件变化
|
|
556
588
|
* @param value {object} 业务组件对象自己
|
|
@@ -1007,6 +1039,21 @@ export default {
|
|
|
1007
1039
|
}
|
|
1008
1040
|
}
|
|
1009
1041
|
}
|
|
1042
|
+
&-reserve {
|
|
1043
|
+
display: flex;
|
|
1044
|
+
flex-wrap: wrap;
|
|
1045
|
+
gap: 16rpx;
|
|
1046
|
+
margin-top: 20rpx;
|
|
1047
|
+
|
|
1048
|
+
&-btn {
|
|
1049
|
+
flex: 1;
|
|
1050
|
+
min-width: 0;
|
|
1051
|
+
text-align: center;
|
|
1052
|
+
font-size: 28rpx;
|
|
1053
|
+
color: #2A82E4;
|
|
1054
|
+
text-decoration: underline;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1010
1057
|
&-cashier {
|
|
1011
1058
|
&-code {
|
|
1012
1059
|
font-size: unit(32, rpx);
|