-
- {{ item.goodsName }}
-
+
+
+
+ {{item.storeName}}
+
+
+
+
+
+
+
-
- ¥{{ item.price | unitPrice }}
+
+
+ {{ item.goodsName }}
+
+
+
+ ¥{{ item.price | unitPrice }}
+
+
+
-
-
-
+
+
diff --git a/pages/navigation/point/point-mall.vue b/pages/navigation/point/point-mall.vue
index 2e4ecab..0fcfe64 100644
--- a/pages/navigation/point/point-mall.vue
+++ b/pages/navigation/point/point-mall.vue
@@ -97,7 +97,7 @@ export default {
}
},
},
- async mounted() {
+ async onShow() {
//获取顶级分类
let response = await getPointsCategory();
if (response.data.success) {
diff --git a/pages/navigation/selectShops.vue b/pages/navigation/selectShops.vue
deleted file mode 100644
index 9818d56..0000000
--- a/pages/navigation/selectShops.vue
+++ /dev/null
@@ -1,325 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ store.storeName }}自营
-
-
-
-
- {{ store.store_collect }} 关注
-
-
-
-
-
- 进店逛逛
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue
index cea9e04..9237efb 100644
--- a/pages/order/fillorder.vue
+++ b/pages/order/fillorder.vue
@@ -252,7 +252,6 @@ export default {
};
},
filters: {
-
/**
* 发票收据类型
*/
@@ -403,73 +402,72 @@ export default {
/**
* 提交订单准备支付
*/
- submit() {
- if (!this.address.id) {
- uni.showToast({
- title: "请选择地址",
- duration: 2000,
- icon: "none",
- });
- return false;
- }
- // 创建订单
- let client;
- // #ifdef H5
- client = "H5";
- // #endif
- // #ifdef MP-WEIXIN
- client = "WECHAT_MP";
- // #endif
- // #ifdef APP-PLUS
- client = "APP";
- // #endif
-
- let submit = {
- client,
- way: this.routerVal.way,
- remark: this.remarkVal,
- parentOrderSn: "",
- };
- // 如果是拼团并且当前用户不是团长
- this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
- ? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
- : delete submit.parentOrderSn;
-
- /**
- * 创建订单
- */
- API_Trade.createTrade(submit).then((res) => {
- if (res.data.success) {
- uni.showToast({
- title: "创建订单成功!",
- duration: 2000,
- icon: "none",
- });
-
- // #ifdef MP-WEIXIN
- // 微信小程序中点击创建订单直接开始支付
- this.pay(res.data.result.sn);
- // #endif
-
- // #ifndef MP-WEIXIN
- this.navigateTo(
- `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}`
- );
- // #endif
- } else {
- uni.showToast({
- title: "创建订单有误!请稍后重试",
- duration: 2000,
- icon: "none",
- });
- }
- });
- },
// 创建订单
createTradeFun() {
// 防抖
- this.$u.debounce(this.submit(), 3000);
+ this.$u.throttle(() => {
+ if (!this.address.id) {
+ uni.showToast({
+ title: "请选择地址",
+ duration: 2000,
+ icon: "none",
+ });
+ return false;
+ }
+ // 创建订单
+ let client;
+ // #ifdef H5
+ client = "H5";
+ // #endif
+ // #ifdef MP-WEIXIN
+ client = "WECHAT_MP";
+ // #endif
+ // #ifdef APP-PLUS
+ client = "APP";
+ // #endif
+
+ let submit = {
+ client,
+ way: this.routerVal.way,
+ remark: this.remarkVal,
+ parentOrderSn: "",
+ };
+ // 如果是拼团并且当前用户不是团长
+ this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
+ ? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
+ : delete submit.parentOrderSn;
+
+ /**
+ * 创建订单
+ */
+ API_Trade.createTrade(submit).then((res) => {
+ if (res.data.success) {
+ uni.showToast({
+ title: "创建订单成功!",
+ duration: 2000,
+ icon: "none",
+ });
+
+ // #ifdef MP-WEIXIN
+ // 微信小程序中点击创建订单直接开始支付
+ this.pay(res.data.result.sn);
+ // #endif
+
+ // #ifndef MP-WEIXIN
+ this.navigateTo(
+ `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}`
+ );
+ // #endif
+ } else {
+ uni.showToast({
+ title: "创建订单有误!请稍后重试",
+ duration: 2000,
+ icon: "none",
+ });
+ }
+ });
+ }, 3000);
},
/**
diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue
index 0686c9d..ec1c5b2 100644
--- a/pages/order/myOrder.vue
+++ b/pages/order/myOrder.vue
@@ -7,7 +7,7 @@
-
+
@@ -67,10 +67,6 @@
-
-
-
-
@@ -100,14 +96,12 @@
@@ -96,16 +138,18 @@ export default {
.slot-wrap {
display: flex;
align-items: center;
-
/* 如果您想让slot内容占满整个导航栏的宽度 */
flex: 1;
/* 如果您想让slot内容与导航栏左右有空隙 */
/* padding: 0 30rpx; */
}
+.invalid {
+ filter: grayscale(1);
+}
.wrapper {
padding: 0 24rpx;
}
-.live-list {
+.live-item {
display: flex;
overflow: hidden;
border-radius: 20rpx;
@@ -138,10 +182,6 @@ export default {
margin: 20rpx 0;
overflow: hidden;
width: calc(100% - 50rpx);
- > span {
- color: #999;
- margin-left: 20rpx;
- }
}
.live-gif {
width: 20rpx;
@@ -168,6 +208,7 @@ export default {
padding-right: 38rpx;
}
}
+
.live-icon,
.zan {
position: absolute;
diff --git a/pages/promotion/sale.vue b/pages/promotion/sale.vue
index 5fbff00..6c36be8 100644
--- a/pages/promotion/sale.vue
+++ b/pages/promotion/sale.vue
@@ -69,22 +69,7 @@
this.goods = response.data;
},
onBackPress() {
- // uni.preloadPage({
- // url: '/pages/tabbar/home/index',
- // success: function(res) {
- // // 通过eventChannel向被打开页面传送数据
-
- // }
- // });
-
- // //莫名其妙的,无法后退,尝试追加参数解决缓存问题
- // uni.switchTab({
- // url: '/pages/tabbar/home/index?' + new Date().getTime(),
- // success: function(res) {
- // // 通过eventChannel向被打开页面传送数据
-
- // }
- // });
+
},
methods: {
// 跳转
diff --git a/pages/tabbar/home/index.vue b/pages/tabbar/home/index.vue
index d287b83..885ddae 100644
--- a/pages/tabbar/home/index.vue
+++ b/pages/tabbar/home/index.vue
@@ -6,7 +6,9 @@