Browse Source

越南

yuenan
xubinxcode 3 years ago
parent
commit
038facf423
5 changed files with 25 additions and 24 deletions
  1. +22
    -21
      addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue
  2. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html
  3. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.438971fc.js
  4. +0
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.3b3d4014.js
  5. +1
    -0
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.a93ad97f.js

+ 22
- 21
addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue View File

@@ -447,26 +447,6 @@
this.payType = type;
},
async submit() {
let adres = JSON.parse(JSON.stringify(this.addressData));
if (!adres.name) {
this.$api.msg('Tên người nhận');
return;
}
if (!/(^0[0-9]{9}$)/.test(adres.mobile)) {
this.$api.msg('Số điện thoại chưa đúng');
return;
}
if (!adres.address || !this.cityLebel) {
this.$api.msg('Địa chỉ cụ thể');
return;
}
// 如果没有地址则提示先加地址
if (!this.addressData) {
this.$api.msg('请选择收货地址');
return;
}

this.$api.msg('Đặt hàng...', 20000);
let delivery_id = 0;
if (this.deliveryList && this.deliveryList[this.deliveryIndex] && this.deliveryList[this.deliveryIndex].id) {
delivery_id = this.deliveryList[this.deliveryIndex].id;
@@ -494,13 +474,34 @@
data.spec.push(item.spec.replace(/,/g, '|'));
data.number.push(item.number);
});
this.$api.request("/order/submitbar", 'POST', data,false);

let adres = JSON.parse(JSON.stringify(this.addressData));
if (!adres.name) {
this.$api.msg('Tên người nhận');
return;
}
if (!/(^0[0-9]{9}$)/.test(adres.mobile)) {
this.$api.msg('Số điện thoại chưa đúng');
return;
}
if (!adres.address || !this.cityLebel) {
this.$api.msg('Địa chỉ cụ thể');
return;
}
// 如果没有地址则提示先加地址
if (!this.addressData) {
this.$api.msg('请选择收货地址');
return;
}

this.$api.msg('Đặt hàng...', 20000);

if (this.submitLock) {
return;
}
this.submitLock = true; // 提交锁
let apiUrl = this.flash_id == 0 ? '/order/submit' : '/flash/submitOrder';
this.$api.request("/order/submitbar", 'POST', data);
let result = await this.$api.request(apiUrl, 'POST', data);
if (result) {
this.submitLock = false; // 解除锁


+ 1
- 1
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html View File

@@ -6,4 +6,4 @@

ttq.load('C2EIC3IQV140ORDINJS0');
ttq.page();
}(window, document, 'ttq');</script></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5/static/js/chunk-vendors.3d13fd81.js></script><script src=/h5/static/js/index.02f701c9.js></script></body></html>
}(window, document, 'ttq');</script></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5/static/js/chunk-vendors.3d13fd81.js></script><script src=/h5/static/js/index.438971fc.js></script></body></html>

addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.438971fc.js
File diff suppressed because it is too large
View File


+ 0
- 1
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.3b3d4014.js
File diff suppressed because it is too large
View File


+ 1
- 0
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.a93ad97f.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save