Commit 45d3dcaf authored by zhangjianguo's avatar zhangjianguo

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 40aa6457 bea6f0b9
...@@ -45,6 +45,7 @@ export default { ...@@ -45,6 +45,7 @@ export default {
}, },
getDataInfo() { getDataInfo() {
let that=this; let that=this;
console.log("that.payInfo",that.payInfo)
let msg = { let msg = {
OpenId: that.payInfo.OpenId, OpenId: that.payInfo.OpenId,
OrderId: that.payInfo.OrderId, OrderId: that.payInfo.OrderId,
......
...@@ -145,9 +145,11 @@ export default { ...@@ -145,9 +145,11 @@ export default {
}; };
}, },
created() { created() {
setTimeout(() => {
this.navs = uni.getStorageSync("basedata") this.navs = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").navbar.navs ? uni.getStorageSync("basedata").navbar.navs
: []; : [];
}, 400);
}, },
mounted() { mounted() {
this.flagTypeInfo = this.$uiConfig.is_bang; this.flagTypeInfo = this.$uiConfig.is_bang;
......
...@@ -235,7 +235,8 @@ export default { ...@@ -235,7 +235,8 @@ export default {
OrderPayType: 1, OrderPayType: 1,
GoodsName: '' GoodsName: ''
}, },
ShoppingCartIdList: [] ShoppingCartIdList: [],
BuyerMessage:'',
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -335,7 +336,12 @@ export default { ...@@ -335,7 +336,12 @@ export default {
that.payInfo.OrderId = res.data.OrderId; that.payInfo.OrderId = res.data.OrderId;
that.payInfo.total_price = that.ds.total_price; that.payInfo.total_price = that.ds.total_price;
} }
else{
that.$refs.uToast.show({
title: res.data.message,
type: 'warning'
});
}
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
} }
); );
...@@ -451,7 +457,6 @@ export default { ...@@ -451,7 +457,6 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
if (e && e.val) { if (e && e.val) {
if (this.mchs[i].delivery.send_type != e.val) { if (this.mchs[i].delivery.send_type != e.val) {
this.formData.list[i].send_type = e.val;
this.formdata.DeliveryMethod = e.val; this.formdata.DeliveryMethod = e.val;
this.init(); this.init();
} }
...@@ -503,7 +508,8 @@ export default { ...@@ -503,7 +508,8 @@ export default {
this.address = res.data.address; this.address = res.data.address;
this.address_enable=res.data.address_enable; this.address_enable=res.data.address_enable;
this.mchs = res.data.mch_list; this.mchs = res.data.mch_list;
this.payInfo.GoodsName = this.mchs[0].goods_list[0].name; this.payInfo.GoodsName = this.mchs[0].goods_list[0].name.slice(0,10);
this.formdata.DeliveryMethod=this.mchs[0].delivery.send_type;
this.ds = res.data; this.ds = res.data;
this.expressPrice = 0.0; this.expressPrice = 0.0;
this.goodPrice = 0.0; this.goodPrice = 0.0;
......
...@@ -464,7 +464,7 @@ export default { ...@@ -464,7 +464,7 @@ export default {
}, },
payment(e){ payment(e){
this.payInfo.OrderId = e.OrderId; this.payInfo.OrderId = e.OrderId;
this.payInfo.GoodsName = e.DetailList[0].GoodsName; this.payInfo.GoodsName = e.DetailList[0].GoodsName.slice(0,10);
this.payInfo.PaymentWay = e.PaymentWay; this.payInfo.PaymentWay = e.PaymentWay;
this.payInfo.total_price = e.Income; this.payInfo.total_price = e.Income;
this.payBtn=true this.payBtn=true
......
...@@ -530,7 +530,7 @@ export default { ...@@ -530,7 +530,7 @@ export default {
payment(e){ payment(e){
console.log(e.OrderId) console.log(e.OrderId)
this.payInfo.OrderId = e.OrderId; this.payInfo.OrderId = e.OrderId;
this.payInfo.GoodsName = e.DetailList[0].GoodsName; this.payInfo.GoodsName = e.DetailList[0].GoodsName.slice(0,10);
this.payInfo.PaymentWay = e.PaymentWay; this.payInfo.PaymentWay = e.PaymentWay;
this.payInfo.total_price = e.Income; this.payInfo.total_price = e.Income;
this.payBtn=true this.payBtn=true
......
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