Commit 64e57829 authored by youjie's avatar youjie

no message

parent a7652d90
......@@ -333,6 +333,13 @@
:showModal="showModal"
@cancel="cancelModal"
:orderNo="OrderNo"></cancelPrompt>
<u-modal :border-radius="16"
@confirm="nativageToOrderHandle"
title="订单提醒"
content="订单创建成功,请您在5分钟内完成付款,否则将会被取消."
@cancel="navigatorToHomeHandle"
v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页'
confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal>
</view>
</template>
......@@ -368,6 +375,7 @@
showModal: false,
erpBaseInfo: null,
b2b_user: {},
successVisible: false,
}
},
computed:{
......@@ -424,6 +432,23 @@
this.navigatorToHomeHandle()
},
methods: {
navigatorToHomeHandle() {
uni.redirectTo({
url: '/pages/index/index'
})
},
nativageToOrderHandle(){
let OrderTypeStr = ''
// #ifdef MP-DI
OrderTypeStr = '16'
// #endif
// #ifdef MP-AG
OrderTypeStr = '1'
// #endif
uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`,
});
},
cancelModal(){
this.showModal = false
},
......@@ -475,10 +500,11 @@
fail: function(err) {
console.log("fail:", err);
that.submit = false;
uni.showToast({
title: "支付失败",
icon: "none",
});
that.successVisible = true
// uni.showToast({
// title: "支付失败",
// icon: "none",
// });
},
});
},
......
......@@ -264,6 +264,13 @@
@cancel="cancelModal"
:orderNo="OrderNo"
:CancelPolicy="CancelPolicy"></cancelPrompt>
<u-modal :border-radius="16"
@confirm="nativageToOrderHandle"
title="订单提醒"
content="订单创建成功,请您在5分钟内完成付款,否则将会被取消."
@cancel="navigatorToHomeHandle"
v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页'
confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal>
</view>
</template>
......@@ -365,6 +372,7 @@
showModal: false,
OrderNo: '',
CancelPolicy: '',
successVisible: false,
};
},
created() {
......@@ -390,6 +398,23 @@
if (this.id) this.getOrderDetail();
},
methods: {
navigatorToHomeHandle() {
uni.redirectTo({
url: '/pages/index/index'
})
},
nativageToOrderHandle(){
let OrderTypeStr = ''
// #ifdef MP-DI
OrderTypeStr = '12,13,14'
// #endif
// #ifdef MP-AG
OrderTypeStr = '5'
// #endif
uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`,
});
},
cancelModal(){
this.showModal = false
},
......@@ -443,10 +468,11 @@
},
fail: function(err) {
that.submit = false;
uni.showToast({
title: "支付失败",
icon: "none",
});
that.successVisible = true
// uni.showToast({
// title: "支付失败",
// icon: "none",
// });
},
});
},
......
......@@ -603,6 +603,13 @@
:showModal="showModal"
@cancel="cancelModal"
:orderNo="orderData.OrderNo"></cancelPrompt>
<u-modal :border-radius="16"
@confirm="nativageToOrderHandle"
title="订单提醒"
content="订单创建成功,请您在5分钟内完成付款,否则将会被取消."
@cancel="navigatorToHomeHandle"
v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页'
confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal>
</view>
</template>
......@@ -638,7 +645,8 @@
showCoupons:false,
couponMessage:[],
showModal: false,
b2b_user: {}
b2b_user: {},
successVisible: false,
};
},
created() {},
......@@ -661,6 +669,23 @@
}
},
methods: {
navigatorToHomeHandle() {
uni.redirectTo({
url: '/pages/index/index'
})
},
nativageToOrderHandle(){
let OrderTypeStr = ''
// #ifdef MP-DI
OrderTypeStr = '1,2,3'
// #endif
// #ifdef MP-AG
OrderTypeStr = '2'
// #endif
uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`,
});
},
cancelModal(){
this.showModal = false
},
......@@ -718,10 +743,11 @@
fail: function(err) {
console.log("fail:", err);
that.submit = false;
uni.showToast({
title: "支付失败",
icon: "none",
});
that.successVisible = true
// uni.showToast({
// title: "支付失败",
// icon: "none",
// });
},
});
},
......
......@@ -540,7 +540,7 @@
</button>
<!-- #endif -->
<!-- #ifdef MP-AG -->
<button v-if="!submit&&((b2b_user.isGuideOrLeader==1&&orderData.OrderModel.Income==0&&orderData.OrderModel.VisaOrderStatus==3)||b2b_user.isGuideOrLeader!=1)" class="jz_OrderReNow" @click="goCancel"
<button v-if="((b2b_user.isGuideOrLeader==1&&orderData.OrderModel.Income==0&&orderData.OrderModel.VisaOrderStatus==3)||b2b_user.isGuideOrLeader!=1)" class="jz_OrderReNow" @click="goCancel"
style="background: #fff; color: #111; border: 1px solid #111"
:disabled="submitCancel"
:loading="submitCancel">
......@@ -560,6 +560,13 @@
<cancelPrompt v-if="showModal"
:showModal="showModal"
@cancel="cancelModal" :orderNo="orderData.OrderNo"></cancelPrompt>
<u-modal :border-radius="16"
@confirm="nativageToOrderHandle"
title="订单提醒"
content="订单创建成功,请您在5分钟内完成付款,否则将会被取消."
@cancel="navigatorToHomeHandle"
v-model="successVisible" confirm-text='查看订单' cancel-text='返回首页'
confirm-color='#DEBF7B' cancel-color='#080A09' :show-cancel-button="true"></u-modal>
</view>
</template>
......@@ -593,7 +600,8 @@
OrderTypeStr: 0,
OrderNo: '',
showModal: false,
b2b_user: {}
b2b_user: {},
successVisible: false,
};
},
created() {},
......@@ -610,6 +618,23 @@
}
},
methods: {
navigatorToHomeHandle() {
uni.redirectTo({
url: '/pages/index/index'
})
},
nativageToOrderHandle(){
let OrderTypeStr = ''
// #ifdef MP-DI
OrderTypeStr = '15'
// #endif
// #ifdef MP-AG
OrderTypeStr = '6'
// #endif
uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${OrderTypeStr}`,
});
},
cancelModal(){
this.showModal = false
},
......@@ -660,10 +685,11 @@
fail: function(err) {
console.log("fail:", err);
that.submit = false;
uni.showToast({
title: "支付失败",
icon: "none",
});
that.successVisible = true
// uni.showToast({
// title: "支付失败",
// icon: "none",
// });
},
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment