Browse Source

越南

yuenan
xubinxcode 3 years ago
parent
commit
f39b4d4c5d
11 changed files with 63 additions and 27 deletions
  1. +11
    -0
      addons/unishop/uniapp/uni-shop/pages/index/index.vue
  2. +20
    -17
      addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue
  3. +27
    -5
      addons/unishop/uniapp/uni-shop/pages/product/product.vue
  4. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html
  5. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.ad285bc9.js
  6. +1
    -0
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.29f4b874.js
  7. +0
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.8197387b.js
  8. +0
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.13981727.js
  9. +1
    -0
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.434be371.js
  10. +1
    -0
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.465c61f8.js
  11. +0
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.fd3d8dea.js

+ 11
- 0
addons/unishop/uniapp/uni-shop/pages/index/index.vue View File

@@ -189,6 +189,9 @@
<text class="price"><text class="symbol">¥</text> {{ item.sales_price }} <text class="sales"> {{' '+item.sales}}人付款</text></text>
</view>
</view>
<view style="text-align: center;margin: 20px 0">
<text style="" @click="showPolicy">Privacy Policy</text>
</view>
</view>
</template>

@@ -326,6 +329,14 @@ export default {
uni.navigateTo({
url: `/pages/product/list?fid=${fid}&sid=0`
});
},
showPolicy(){
uni.showModal({
showCancel: false,
title: 'Privacy Policy',
content: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
confirmText: 'OK'
})
}
},
// #ifndef MP


+ 20
- 17
addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue View File

@@ -111,7 +111,7 @@
<!-- <text style="color:red" @click="deliveryTemplate">(查看详情)</text> -->
</view>
<view class="cell-tip">
Thanh toán khi nhận hàng
Đơn 299k Freeship toàn quốc
</view>
</view>
<view class="yt-list-cell b-b">
@@ -579,23 +579,26 @@
let delivery = this.deliveryList[this.deliveryIndex];
if (delivery) {
let deliveryPrice = 0;
if (delivery.hasOwnProperty('id')) {
if (delivery.min > number) {
this.$api.msg('必须至少购买' + delivery.min + '件商品才能使用此配送方式', 6000)
}
// 如何为0就赋值1,不然下面的循环会死循环
delivery.first = delivery.first == 0 ? 1 : delivery.first;
delivery.additional = delivery.additional == 0 ? 1 : delivery.additional;
for (let i = 0; i < number;) {
if (i === 0) {
deliveryPrice = deliveryPrice + parseInt(delivery.first_fee);
i = i + parseInt(delivery.first);
} else {
deliveryPrice = deliveryPrice + parseInt(delivery.additional_fee);
i = i + parseInt(delivery.additional);
}
}
if(this.total<299000){
deliveryPrice=30000
}
// if (delivery.hasOwnProperty('id')) {
// if (delivery.min > number) {
// this.$api.msg('必须至少购买' + delivery.min + '件商品才能使用此配送方式', 6000)
// }
// // 如何为0就赋值1,不然下面的循环会死循环
// delivery.first = delivery.first == 0 ? 1 : delivery.first;
// delivery.additional = delivery.additional == 0 ? 1 : delivery.additional;
// for (let i = 0; i < number;) {
// if (i === 0) {
// deliveryPrice = deliveryPrice + parseInt(delivery.first_fee);
// i = i + parseInt(delivery.first);
// } else {
// deliveryPrice = deliveryPrice + parseInt(delivery.additional_fee);
// i = i + parseInt(delivery.additional);
// }
// }
// }
this.deliveryPrice = deliveryPrice.toFixed(2);
total = total + deliveryPrice;
}


+ 27
- 5
addons/unishop/uniapp/uni-shop/pages/product/product.vue View File

@@ -40,12 +40,30 @@
<text class="yticon icon-you"></text>
</view>
<view class="c-row b-b">
<text class="tit">ƯU ĐÃI</text>
<view class="bz-list con">
Đơn 299k Freeship toàn quốc
</view>
</view>
<view class="c-row b-b">
<text class="tit">Hỗ trợ</text>
<view class="bz-list con">
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx">Thanh toán khi nhận hàng</text>
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx">Freeship</text>
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx"> Chất lượng kém đền gấp 3</text>
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg> <text style="margin: 0 10upx">Đổi trả trong vòng 7 ngày</text>
<view class="tin">
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx">Thanh toán khi nhận hàng</text>
</view>
<view class="tin">
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx">Freeship</text>
</view>
<view class="tin">
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg><text style="margin: 0 10upx"> Chất lượng kém đền gấp 3</text>
</view>
<view class="tin">
<svg t="1620655994453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2670" width="20" height="20"><path d="M878.08 731.274667a32 32 0 0 1-54.88-32.938667A360.789333 360.789333 0 0 0 874.666667 512c0-200.298667-162.368-362.666667-362.666667-362.666667S149.333333 311.701333 149.333333 512s162.368 362.666667 362.666667 362.666667a360.789333 360.789333 0 0 0 186.314667-51.445334 32 32 0 0 1 32.928 54.88A424.778667 424.778667 0 0 1 512 938.666667C276.362667 938.666667 85.333333 747.637333 85.333333 512S276.362667 85.333333 512 85.333333s426.666667 191.029333 426.666667 426.666667c0 78.293333-21.152 153.568-60.586667 219.274667zM374.581333 489.450667l84.341334 83.989333 190.432-190.72a32 32 0 0 1 45.290666 45.226667l-213.013333 213.333333a32 32 0 0 1-45.226667 0.064l-106.986666-106.549333a32 32 0 1 1 45.162666-45.344z" p-id="2671" fill="#d81e06"></path></svg> <text style="margin: 0 10upx">Đổi trả trong vòng 7 ngày</text>
</view>




</view>
</view>
</view>
@@ -666,10 +684,14 @@
font-size: $font-sm+2upx;
color: $font-color-dark;
display: flex;
flex-flow: wrap;
flex-flow: column;
text {
display: inline-block;
}
.tin{
display: flex;

}
}

.con-list {


+ 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.370a61aa.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.ad285bc9.js></script></body></html>

addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.ad285bc9.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-index-index.29f4b874.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-index-index.8197387b.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.13981727.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.434be371.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-product-product.465c61f8.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-product-product.fd3d8dea.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save