jufubao-base 1.0.397 → 1.0.398-beta1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.397",
3
+ "version": "1.0.398-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -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="handleToJump(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="handleToJump(btn.url)"
516
+ >{{ btn.name }}</view>
517
+ </view>
500
518
  </view>
501
519
  </view>
502
520
  <!--其他情况显示-->
@@ -2644,6 +2662,22 @@ export default {
2644
2662
  color: #999;
2645
2663
  }
2646
2664
 
2665
+ &-reserve {
2666
+ display: flex;
2667
+ flex-wrap: wrap;
2668
+ gap: 16rpx;
2669
+ margin-top: 20rpx;
2670
+ }
2671
+
2672
+ &-reserve-btn {
2673
+ flex: 1;
2674
+ min-width: 0;
2675
+ text-align: center;
2676
+ font-size: 28rpx;
2677
+ color: #2A82E4;
2678
+ text-decoration: underline;
2679
+ }
2680
+
2647
2681
  }
2648
2682
  .ticket_method_msg {
2649
2683
  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="handleToLink(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>
@@ -1007,6 +1025,21 @@ export default {
1007
1025
  }
1008
1026
  }
1009
1027
  }
1028
+ &-reserve {
1029
+ display: flex;
1030
+ flex-wrap: wrap;
1031
+ gap: 16rpx;
1032
+ margin-top: 20rpx;
1033
+
1034
+ &-btn {
1035
+ flex: 1;
1036
+ min-width: 0;
1037
+ text-align: center;
1038
+ font-size: 28rpx;
1039
+ color: #2A82E4;
1040
+ text-decoration: underline;
1041
+ }
1042
+ }
1010
1043
  &-cashier {
1011
1044
  &-code {
1012
1045
  font-size: unit(32, rpx);
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }