jufubao-base 1.0.366-beta4 → 1.0.366-beta5

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.366-beta4",
3
+ "version": "1.0.366-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -957,6 +957,20 @@
957
957
  <view v-if="dialogCode && dialogCode.tips" class="dialog_password"> {{ dialogCode.tips}}</view>
958
958
  <view v-if="dialogPassword" class="dialog_password">{{ dialogPassword }}</view>
959
959
  </xd-dailog>
960
+ <xd-dailog
961
+ :show.sync="showReorderDialog"
962
+ title="提示"
963
+ :showClose="false"
964
+ width="85%"
965
+ @close="showReorderDialog = false"
966
+ >
967
+ <view style="padding: 20rpx 0;">
968
+ <view v-for="(tip, index) in reorderTips" :key="index" style="color: #333; font-size: 28rpx; line-height: 44rpx;">{{ tip }}</view>
969
+ </view>
970
+ <view slot="btn">
971
+ <xd-button type="primary" size="small" @click="handleReorderDlgConfirm">我知道了</xd-button>
972
+ </view>
973
+ </xd-dailog>
960
974
  <XdDownDrawer :isClose="false" height="auto" :show.sync="showSupplement">
961
975
  <view class="supplement">
962
976
  <view class="supplement-title">
@@ -1097,7 +1111,10 @@ export default {
1097
1111
  invoicePath: '',
1098
1112
  isShowInvoice: false,
1099
1113
  invoiceStatus: '',
1100
- viewInvoicePath: ''
1114
+ viewInvoicePath: '',
1115
+ showReorderDialog: false,
1116
+ reorderTips: [],
1117
+ reorderBtnItem: null,
1101
1118
  };
1102
1119
  },
1103
1120
  watch: {
@@ -1692,18 +1709,9 @@ export default {
1692
1709
  }).then(res => {
1693
1710
  this.$xdHideLoading();
1694
1711
  if(res.tips && res.tips.length){
1695
- this.$xdConfirm({
1696
- content: res.tips.join('\n'),
1697
- cancel:false,
1698
- confirmText: '我知道了',
1699
- width: '85%',
1700
- title: '提示',
1701
- contentColor: this.$mainColor,
1702
- isTitle: true,
1703
- success:()=>{
1704
- this.reorderNavigate(item);
1705
- }
1706
- });
1712
+ this.reorderTips = res.tips;
1713
+ this.reorderBtnItem = item;
1714
+ this.showReorderDialog = true;
1707
1715
  }else{
1708
1716
  this.reorderNavigate(item);
1709
1717
  }
@@ -1715,6 +1723,11 @@ export default {
1715
1723
  console.error(`item.action=${item.action}, 此action不可用`)
1716
1724
  }
1717
1725
  },
1726
+ handleReorderDlgConfirm(){
1727
+ this.showReorderDialog = false;
1728
+ this.reorderNavigate(this.reorderBtnItem);
1729
+ this.reorderBtnItem = null;
1730
+ },
1718
1731
  reorderNavigate(item){
1719
1732
  if(item.extras){
1720
1733
  let reOrderPath = {};
@@ -209,6 +209,20 @@
209
209
  </template>
210
210
 
211
211
  </view>
212
+ <xd-dialog
213
+ :show.sync="showReorderDialog"
214
+ title="提示"
215
+ :showClose="false"
216
+ width="85%"
217
+ @close="showReorderDialog = false"
218
+ >
219
+ <view style="padding: 20rpx 0;">
220
+ <view v-for="(tip, index) in reorderTips" :key="index" style="color: #333; font-size: 28rpx; line-height: 44rpx;">{{ tip }}</view>
221
+ </view>
222
+ <view slot="btn">
223
+ <xd-button type="primary" size="small" @click="handleReorderConfirm">我知道了</xd-button>
224
+ </view>
225
+ </xd-dialog>
212
226
  </view>
213
227
  </template>
214
228
 
@@ -217,6 +231,7 @@ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
217
231
  import XdTab from "@/components/XdTab/XdTab";
218
232
  import XdUnit from "@/components/XdUnit/XdUnit";
219
233
  import XdButton from "@/components/XdButton/XdButton";
234
+ import XdDialog from "@/components/XdDailog/XdDailog";
220
235
  import { jfbRootExec } from "@/utils/xd.event";
221
236
  import JfbBaseOrderListMixin from "./JfbBaseOrderListMixin";
222
237
  import componentsMixins from "@/mixins/componentsMixins";
@@ -234,6 +249,7 @@ export default {
234
249
  XdUnit,
235
250
  XdButton,
236
251
  XdTfkOrderItem,
252
+ XdDialog,
237
253
  },
238
254
  mixins: [componentsMixins, extsMixins, JfbBaseOrderListMixin],
239
255
  data() {
@@ -287,7 +303,10 @@ export default {
287
303
  refundFastPath: "",
288
304
 
289
305
  noticeBgc:'',
290
- actionBtns: ['cancel_unpaid', 'pay', 'apply_refund', 'reorder']
306
+ actionBtns: ['cancel_unpaid', 'pay', 'apply_refund', 'reorder'],
307
+ showReorderDialog: false,
308
+ reorderTips: [],
309
+ reorderItem: null,
291
310
  };
292
311
  },
293
312
 
@@ -483,18 +502,9 @@ export default {
483
502
  }).then(res => {
484
503
  this.$xdHideLoading();
485
504
  if(res.tips && res.tips.length){
486
- this.$xdConfirm({
487
- content: res.tips.join('\n'),
488
- cancel:false,
489
- confirmText: '我知道了',
490
- width: '85%',
491
- title: '提示',
492
- contentColor: this.$mainColor,
493
- isTitle: true,
494
- success:()=>{
495
- this.reorderNavigate(item);
496
- }
497
- });
505
+ this.reorderTips = res.tips;
506
+ this.reorderItem = item;
507
+ this.showReorderDialog = true;
498
508
  }else{
499
509
  this.reorderNavigate(item);
500
510
  }
@@ -504,6 +514,11 @@ export default {
504
514
  })
505
515
  }
506
516
  },
517
+ handleReorderConfirm(){
518
+ this.showReorderDialog = false;
519
+ this.reorderNavigate(this.reorderItem);
520
+ this.reorderItem = null;
521
+ },
507
522
  reorderNavigate(item){
508
523
  let btnReOrder = item.buttons.find(item => item.action === 'reorder');
509
524
  if(btnReOrder.extras){