jufubao-base 1.0.366-beta3 → 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
|
@@ -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: {
|
|
@@ -1691,25 +1708,12 @@ export default {
|
|
|
1691
1708
|
}
|
|
1692
1709
|
}).then(res => {
|
|
1693
1710
|
this.$xdHideLoading();
|
|
1694
|
-
if(
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
reOrderPath = {
|
|
1701
|
-
url: urlObj['page_value'],
|
|
1702
|
-
'jfb-platform': urlObj
|
|
1703
|
-
}
|
|
1704
|
-
}else{
|
|
1705
|
-
throw new Error('不合法的extras');
|
|
1706
|
-
}
|
|
1707
|
-
}catch(err){
|
|
1708
|
-
reOrderPath = {
|
|
1709
|
-
url: item.extras
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
this.$xdUniHelper.navigateTo(reOrderPath);
|
|
1711
|
+
if(res.tips && res.tips.length){
|
|
1712
|
+
this.reorderTips = res.tips;
|
|
1713
|
+
this.reorderBtnItem = item;
|
|
1714
|
+
this.showReorderDialog = true;
|
|
1715
|
+
}else{
|
|
1716
|
+
this.reorderNavigate(item);
|
|
1713
1717
|
}
|
|
1714
1718
|
}).catch(err => {
|
|
1715
1719
|
this.$xdHideLoading();
|
|
@@ -1719,6 +1723,33 @@ export default {
|
|
|
1719
1723
|
console.error(`item.action=${item.action}, 此action不可用`)
|
|
1720
1724
|
}
|
|
1721
1725
|
},
|
|
1726
|
+
handleReorderDlgConfirm(){
|
|
1727
|
+
this.showReorderDialog = false;
|
|
1728
|
+
this.reorderNavigate(this.reorderBtnItem);
|
|
1729
|
+
this.reorderBtnItem = null;
|
|
1730
|
+
},
|
|
1731
|
+
reorderNavigate(item){
|
|
1732
|
+
if(item.extras){
|
|
1733
|
+
let reOrderPath = {};
|
|
1734
|
+
try{
|
|
1735
|
+
let extras = JSON.parse(item.extras);
|
|
1736
|
+
let urlObj = JSON.parse(extras.place_order_url);
|
|
1737
|
+
if(this.$xdUniHelper.checkVarType(urlObj) === 'object'){
|
|
1738
|
+
reOrderPath = {
|
|
1739
|
+
url: urlObj['page_value'],
|
|
1740
|
+
'jfb-platform': urlObj
|
|
1741
|
+
}
|
|
1742
|
+
}else{
|
|
1743
|
+
throw new Error('不合法的extras');
|
|
1744
|
+
}
|
|
1745
|
+
}catch(err){
|
|
1746
|
+
reOrderPath = {
|
|
1747
|
+
url: item.extras
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
this.$xdUniHelper.navigateTo(reOrderPath);
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1722
1753
|
handleToProduct(item){
|
|
1723
1754
|
let productPath = {};
|
|
1724
1755
|
if(item.product_detail_url){
|
|
@@ -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
|
|
|
@@ -482,26 +501,12 @@ export default {
|
|
|
482
501
|
}
|
|
483
502
|
}).then(res => {
|
|
484
503
|
this.$xdHideLoading();
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
if(this.$xdUniHelper.checkVarType(urlObj) === 'object'){
|
|
492
|
-
reOrderPath = {
|
|
493
|
-
url: urlObj['page_value'],
|
|
494
|
-
'jfb-platform': urlObj
|
|
495
|
-
}
|
|
496
|
-
}else{
|
|
497
|
-
throw new Error('不合法的extras');
|
|
498
|
-
}
|
|
499
|
-
}catch(err){
|
|
500
|
-
reOrderPath = {
|
|
501
|
-
url: btnReOrder.extras
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
this.$xdUniHelper.navigateTo(reOrderPath);
|
|
504
|
+
if(res.tips && res.tips.length){
|
|
505
|
+
this.reorderTips = res.tips;
|
|
506
|
+
this.reorderItem = item;
|
|
507
|
+
this.showReorderDialog = true;
|
|
508
|
+
}else{
|
|
509
|
+
this.reorderNavigate(item);
|
|
505
510
|
}
|
|
506
511
|
|
|
507
512
|
}).catch(err => {
|
|
@@ -509,6 +514,34 @@ export default {
|
|
|
509
514
|
})
|
|
510
515
|
}
|
|
511
516
|
},
|
|
517
|
+
handleReorderConfirm(){
|
|
518
|
+
this.showReorderDialog = false;
|
|
519
|
+
this.reorderNavigate(this.reorderItem);
|
|
520
|
+
this.reorderItem = null;
|
|
521
|
+
},
|
|
522
|
+
reorderNavigate(item){
|
|
523
|
+
let btnReOrder = item.buttons.find(item => item.action === 'reorder');
|
|
524
|
+
if(btnReOrder.extras){
|
|
525
|
+
let reOrderPath = {};
|
|
526
|
+
try{
|
|
527
|
+
let extras = JSON.parse(btnReOrder.extras);
|
|
528
|
+
let urlObj = JSON.parse(extras.place_order_url);
|
|
529
|
+
if(this.$xdUniHelper.checkVarType(urlObj) === 'object'){
|
|
530
|
+
reOrderPath = {
|
|
531
|
+
url: urlObj['page_value'],
|
|
532
|
+
'jfb-platform': urlObj
|
|
533
|
+
}
|
|
534
|
+
}else{
|
|
535
|
+
throw new Error('不合法的extras');
|
|
536
|
+
}
|
|
537
|
+
}catch(err){
|
|
538
|
+
reOrderPath = {
|
|
539
|
+
url: btnReOrder.extras
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
this.$xdUniHelper.navigateTo(reOrderPath);
|
|
543
|
+
}
|
|
544
|
+
},
|
|
512
545
|
|
|
513
546
|
getList(status) {
|
|
514
547
|
this.$xdShowLoading({});
|