From 0225154ffdbcef878b27d63972fa9f306c4bc327 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com>
Date: Sun, 20 Dec 2020 16:23:02 +0800
Subject: [PATCH 01/13] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E4=BC=97?=
=?UTF-8?q?=E5=8F=B7=E7=AB=AF=E8=B0=83=E8=AF=95=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 9 ++++++++-
package.json | 1 +
utils/vconsole.min.js | 10 ++++++++++
3 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 utils/vconsole.min.js
diff --git a/App.vue b/App.vue
index 6591b55..c5f3d4a 100644
--- a/App.vue
+++ b/App.vue
@@ -1,5 +1,8 @@
+
diff --git a/pages/orderAdmin/AdminOrderList/index.vue b/pages/orderAdmin/AdminOrderList/index.vue
index ad161ba..3e2a3b6 100644
--- a/pages/orderAdmin/AdminOrderList/index.vue
+++ b/pages/orderAdmin/AdminOrderList/index.vue
@@ -31,7 +31,7 @@
¥{{ val.productInfo.price }}
x{{ val.cartNum }}
- ¥{{ val.productInfo.otPrice }}
+ ¥{{ val.productInfo.otPrice }}
@@ -54,7 +54,9 @@
一键改价
立即退款
确认付款
- 去发货
+ 去发货
+ 快速核销
+ 立即核销
@@ -75,6 +77,7 @@
setOfflinePay,
setOrderRefund
} from "@/api/admin";
+ import {orderVerific} from "@/api/order";
import {
required,
num
@@ -119,7 +122,7 @@
this.getIndex();
}
},
- mounted: function() {
+ onShow: function() {
let that = this;
that.where.status = that.$yroute.query.types;
that.current = "";
@@ -318,10 +321,64 @@
});
}
);
- }
+ },
+ storeCancellation(index,verifyCode) {
+ const that = this;
+ that.check = true;
+ if (index == 0) {
+ uni.showModal({
+ title: "确定核销订单?",
+ content: "注意:请务必核对核销码的与客户正确性",
+ success(res) {
+ if (res.confirm) {
+ uni.showLoading({
+ title: "查询中"
+ });
+ orderVerific(verifyCode, 1)
+ .then(res => {
+ console.log(res)
+ uni.hideLoading();
+ that.iShidden = false;
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 1000
+ });
+ //最后就是返回上一个页面。
+ setTimeout(function() {
+ uni.navigateBack({
+ delta: 1, // 返回上一级页面。
+ success: function() {
+ console.log('成功!')
+ }
+ })
+ }, 1000);
+ })
+ .catch((err) => {
+ console.log(err)
+ uni.hideLoading();
+ uni.showToast({
+ title: err.data.msg,
+ icon: "none",
+ duration: 2000
+ });
+ });
+ }
+ }
+ });
+
+ } else {
+ that.$yrouter.push({
+ path: '/pages/orderAdmin/OrderCancellation/index'
+ })
+ }
+ }
}
};
diff --git a/utils/index.js b/utils/index.js
index 692a9c4..4eefecf 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -215,6 +215,9 @@ export const login = () => {
console.log(redirect)
if (redirect) {
redirect = redirect.split('/pages')[1]
+ if(!redirect){
+ redirect="/Loading/index";
+ }
reLaunch({
path: '/pages' + redirect,
});
From 87864d675132583e496f01bb5d5d4a273b8d48cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com>
Date: Sat, 26 Dec 2020 16:01:33 +0800
Subject: [PATCH 03/13] =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E6=A8=A1=E6=9D=BFID?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/order.js | 8 ++++++++
libs/order.js | 31 +++++++++++++++++--------------
2 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/api/order.js b/api/order.js
index e7f2348..7d17603 100644
--- a/api/order.js
+++ b/api/order.js
@@ -140,3 +140,11 @@ export function payOrder(uni, paytype, from) {
export function orderVerific(verifyCode, isConfirm) {
return request.post("order/order_verific", { verifyCode, isConfirm });
}
+/**
+ * 获取订阅消息ID
+ * @param price
+ * @returns {*}
+ */
+export function getSubscribeTemplate() {
+ return request.get("/order/getSubscribeTemplate");
+}
diff --git a/libs/order.js b/libs/order.js
index dde6d5c..511f25a 100644
--- a/libs/order.js
+++ b/libs/order.js
@@ -2,7 +2,8 @@ import {
cancelOrder,
takeOrder,
delOrder,
- payOrder
+ payOrder,
+ getSubscribeTemplate
} from "@/api/order";
import dialog from "@/utils/dialog";
import {
@@ -194,19 +195,21 @@ export function handleOrderPayResults(data, type, payType) {
}
export function subscribeMessage() {
- // 调用订阅
- console.log('调用订阅')
- uni.requestSubscribeMessage({
- tmplIds: ['W5r2c2kzhbq8uxStkPAVx_sk-5aapMFCqe7b7KU5jXI', '2CB_1UyQrbnlyjJa5syraqJ3cfztPPDOAHe3DEXpMjg',
- 'vuztugw9VbKbKJDAAVePkjqPpT5mdoREpd4Aq7EGPRU'
- ],
- success(res) {
- console.log(res)
- },
- fail(error) {
- console.log(error)
- }
- })
+ // 调用订阅
+ console.log('调用订阅')
+ getSubscribeTemplate()
+ .then(res => {
+ uni.requestSubscribeMessage({
+ tmplIds: res.data,
+ success(res) {
+ console.log(res)
+ },
+ fail(error) {
+ console.log(error)
+ }
+ })
+ })
+ .catch(err => {});
}
From 1a9d9bcb1db0921c8699a8e444e8d1737091b946 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com>
Date: Wed, 6 Jan 2021 20:29:35 +0800
Subject: [PATCH 04/13] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=AF=E5=88=86?=
=?UTF-8?q?=E6=94=AF=E4=BB=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/OrderSubmission/index.vue | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue
index dbeeaa0..1d58d8f 100644
--- a/pages/order/OrderSubmission/index.vue
+++ b/pages/order/OrderSubmission/index.vue
@@ -125,6 +125,12 @@
可用余额:{{ userInfo.nowMoney || 0 }}
+
+
+ 积分支付
+
+ 可用积分:{{ userInfo.integral || 0 }}
+
From 6d4fe7f4cb7a526dfc1e7f1ec271c69db7776bc5 Mon Sep 17 00:00:00 2001
From: Gaoxs <704041637@qq.com>
Date: Tue, 12 Jan 2021 15:19:11 +0800
Subject: [PATCH 05/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=AF=E5=88=86?=
=?UTF-8?q?=E5=95=86=E5=9F=8E=E7=9A=84=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/OrderGoods.vue | 4 +-
pages/order/MyOrder/index.vue | 8 +-
pages/order/OrderDetails/index.vue | 779 +++++++++++++-------------
pages/order/OrderSubmission/index.vue | 40 +-
pages/shop/GoodsCon/index.vue | 27 +-
5 files changed, 449 insertions(+), 409 deletions(-)
diff --git a/components/OrderGoods.vue b/components/OrderGoods.vue
index 18682ca..5669af9 100644
--- a/components/OrderGoods.vue
+++ b/components/OrderGoods.vue
@@ -15,7 +15,8 @@
class="attr line1"
v-if="cart.productInfo.attrInfo"
>{{ cart.productInfo.attrInfo.sku }}
- ¥{{ cart.truePrice }}
+ ¥{{ cart.truePrice }}
+ {{ cart.productInfo.attrInfo.integral }}积分
评价
@@ -26,6 +27,7 @@
export default {
name: "OrderGoods",
props: {
+ isIntegral:Boolean,
evaluate: Number,
cartInfo: {
type: Array,
diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue
index 457bf3d..561dd70 100644
--- a/pages/order/MyOrder/index.vue
+++ b/pages/order/MyOrder/index.vue
@@ -90,13 +90,16 @@
{{ cart.productInfo.storeName }}
-
+
¥{{
cart.productInfo.attrInfo
? cart.productInfo.attrInfo.price
: cart.productInfo.price
}}
+
+ {{order.payIntegral}}积分
+
x{{ cart.cartNum }}
@@ -104,7 +107,8 @@
共{{ order.cartInfo.length || 0 }}件商品,总金额
- ¥{{ order.payPrice }}
+ ¥{{ order.payPrice }}
+ {{order.payIntegral}}积分
diff --git a/pages/order/OrderDetails/index.vue b/pages/order/OrderDetails/index.vue
index b2d9044..385da6f 100644
--- a/pages/order/OrderDetails/index.vue
+++ b/pages/order/OrderDetails/index.vue
@@ -18,67 +18,44 @@
已完成
-
+ ]">
-
-
-
+
+
-
+
-
+
-
+
-
+
+ ]">
@@ -110,15 +87,9 @@
-
+
自提地址信息
-
@@ -134,7 +105,8 @@
{{ system_store.name}}
{{ system_store.phone }}
-
+
{{ system_store.address }}
@@ -142,7 +114,7 @@
-
+
订单编号:
@@ -223,10 +195,14 @@
-
+
支付金额:
¥{{ orderInfo.totalPrice }}
+
+ 支付积分:
+ {{ orderInfo.payIntegral }}积分
+
优惠券抵扣:
-¥{{ orderInfo.couponPrice }}
@@ -241,7 +217,8 @@
实付款:
- ¥{{ orderInfo.payPrice }}
+ ¥{{ orderInfo.payPrice }}
+ {{ orderInfo.payIntegral }}积分
@@ -255,26 +232,19 @@
- 查看物流
+ 查看物流
确认收货
- 查看物流
+ 查看物流
删除订单
- 查看物流
+ ">查看物流
查看拼团
@@ -282,355 +252,384 @@
-
+
diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue
index dbeeaa0..519bcc2 100644
--- a/pages/order/OrderSubmission/index.vue
+++ b/pages/order/OrderSubmission/index.vue
@@ -44,9 +44,9 @@
-
+
-
+
优惠券
{{ usableCoupon.couponTitle || "请选择" }}
@@ -65,7 +65,7 @@
当前积分
{{ userInfo.integral || 0 }}
-
+
@@ -101,7 +101,7 @@
-
+
支付方式
@@ -131,17 +131,18 @@
商品总价:
- ¥{{ orderPrice.totalPrice }}
+ ¥{{ orderPrice.totalPrice }}
+ {{ orderPrice.payIntegral }}积分
-
+
运费:
¥{{ orderPrice.payPostage }}
-
+
优惠券抵扣:
-¥{{ orderPrice.couponPrice }}
-
+
积分抵扣:
-¥{{ orderPrice.deductionPrice }}
@@ -150,7 +151,8 @@
@@ -324,6 +326,7 @@
contactsTel: "",
storeSelfMention: 0,
cartid: "",
+ isIntegral: false
};
},
computed: mapGetters(["userInfo", "storeItems"]),
@@ -346,6 +349,8 @@
if (that.$yroute.query.pinkid !== undefined) {
that.pinkId = that.$yroute.query.pinkid;
}
+ this.isIntegral = that.$yroute.query.isIntegral == 'true'
+ this.useIntegral = this.isIntegral
if (that.$yroute.query.id !== undefined) {
that.cartid = that.$yroute.query.id;
console.log(that.cartid);
@@ -372,6 +377,9 @@
},
changeUseIntegral: function (e) {
// this.computedPrice();
+ if (this.isIntegral) {
+ return
+ }
this.useIntegral = e.mp.detail.value[0];
},
computedPrice() {
@@ -460,8 +468,20 @@
this.computedPrice();
},
createOrder() {
+ if (this.isIntegral) {
+ // 积分支付
+ if (this.userInfo.integral < this.orderPrice.payIntegral) {
+ uni.showToast({
+ title: "积分不足",
+ icon: "none",
+ duration: 2000,
+ });
+ return
+ }
+ this.active = 'integral'
+ }
let shipping_type = this.shipping_type;
- if (!this.active) {
+ if (!this.isIntegral && !this.active) {
uni.showToast({
title: "请选择支付方式",
icon: "none",
diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index d554105..8ec7378 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -7,7 +7,7 @@
-
+
¥
{{
attr.productSelect.price || storeInfo.price
@@ -16,11 +16,16 @@
v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0">¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }}
+
+ {{
+ attr.productSelect.integral || storeInfo.integral
+ }}积分
+
{{ storeInfo.storeName }}
- 原价:¥{{ storeInfo.otPrice }}
+ 原价:¥{{ storeInfo.otPrice }}
库存:{{ storeInfo.stock }}{{ storeInfo.unitName }}
销量:{{ storeInfo.sales }}{{ storeInfo.unitName }}
@@ -311,7 +316,7 @@
qqmapsdk: null,
productConClass: "product-con",
tempName: "全国包邮",
- isIntegral: "false"
+ isIntegral: false
};
},
computed: mapGetters(["isLogin", "location"]),
@@ -331,6 +336,7 @@
} else {
this.id = this._route.query.id;
}
+ this.isIntegral = url.isIntegral == 'true'
this.productCon();
this.setOpenShare();
},
@@ -507,6 +513,7 @@
this.$set(this.attr.productSelect, "price", productSelect.price);
this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.unique);
+ this.$set(this.attr.productSelect, "integral", productSelect.integral);
this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this, "attrValue", value.sort().join(","));
this.$set(this, "attrTxt", "已选择");
@@ -518,6 +525,7 @@
);
this.$set(this.attr.productSelect, "image", this.storeInfo.image);
this.$set(this.attr.productSelect, "price", this.storeInfo.price);
+ this.$set(this.attr.productSelect, "integral", this.storeInfo.integral);
this.$set(this.attr.productSelect, "stock", 0);
this.$set(this.attr.productSelect, "unique", "");
this.$set(this.attr.productSelect, "cart_num", 0);
@@ -532,6 +540,7 @@
this.$set(this.attr.productSelect, "image", this.storeInfo.image);
this.$set(this.attr.productSelect, "price", this.storeInfo.price);
this.$set(this.attr.productSelect, "stock", this.storeInfo.stock);
+ this.$set(this.attr.productSelect, "integral", this.storeInfo.integral);
this.$set(
this.attr.productSelect,
"unique",
@@ -632,12 +641,14 @@
this.$set(this.attr.productSelect, "price", productSelect.price);
this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.unique);
+ this.$set(this.attr.productSelect, "integral", productSelect.integral);
this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this, "attrValue", res.value);
this.$set(this, "attrTxt", "已选择");
} else {
this.$set(this.attr.productSelect, "image", this.storeInfo.image);
this.$set(this.attr.productSelect, "price", this.storeInfo.price);
+ this.$set(this.attr.productSelect, "integral", this.storeInfo.price);
this.$set(this.attr.productSelect, "stock", 0);
this.$set(this.attr.productSelect, "unique", "");
this.$set(this.attr.productSelect, "cart_num", 0);
@@ -698,11 +709,11 @@
cartNum: that.attr.productSelect.cart_num,
new: news,
uniqueId: that.attr.productSelect !== undefined ?
- that.attr.productSelect.unique :
- "",
+ that.attr.productSelect.unique : "",
};
postCartAdd(q)
.then(function (res) {
+ console.log(res)
that.isOpen = false;
that.attr.cartAttr = false;
if (news) {
@@ -718,6 +729,7 @@
path: "/pages/order/OrderSubmission/index",
query: {
id: res.data.cartId,
+ isIntegral:that.isIntegral
},
});
} else {
@@ -732,9 +744,12 @@
}
})
.catch((error) => {
+ console.log(error)
that.isOpen = false;
uni.showToast({
- title: error.response.data.msg,
+ title: error.msg ||
+ error.response.data.msg ||
+ error.response.data.message,
icon: "none",
duration: 2000,
});
From dec56d700e0a2e04be6b65d2a2d3c86e1b76e496 Mon Sep 17 00:00:00 2001
From: Gaoxs <704041637@qq.com>
Date: Tue, 12 Jan 2021 15:21:22 +0800
Subject: [PATCH 06/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=AF=E5=88=86?=
=?UTF-8?q?=E5=95=86=E5=9F=8E=E7=9A=84=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/ProductWindow.vue | 7 ++++++-
pages/shop/GoodsCon/index.vue | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue
index 3e6e79b..0dda009 100644
--- a/components/ProductWindow.vue
+++ b/components/ProductWindow.vue
@@ -7,11 +7,15 @@
{{ attr.productSelect.store_name }}
-
+
¥
{{ attr.productSelect.price }}
库存: {{ attr.productSelect.stock }}
+
+ {{ attr.productSelect.integral }}积分
+ 库存: {{ attr.productSelect.stock }}
+
@@ -65,6 +69,7 @@
export default {
name: "ProductWindow",
props: {
+ isIntegral:Boolean,
attr: {
type: Object,
default: () => {},
diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index 8ec7378..e4e3e02 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -184,7 +184,7 @@
-
+
From 24b30dbd2fb8887c48f0d1abcd13c39c74501c56 Mon Sep 17 00:00:00 2001
From: Gaoxs <704041637@qq.com>
Date: Tue, 12 Jan 2021 20:09:26 +0800
Subject: [PATCH 07/13] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=99=AE=E9=80=9A?=
=?UTF-8?q?=E5=95=86=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/OrderDetails/index.vue | 2 +-
pages/order/OrderSubmission/index.vue | 17 ++++++++++-------
pages/shop/GoodsCon/index.vue | 2 +-
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/pages/order/OrderDetails/index.vue b/pages/order/OrderDetails/index.vue
index 385da6f..e123b33 100644
--- a/pages/order/OrderDetails/index.vue
+++ b/pages/order/OrderDetails/index.vue
@@ -114,7 +114,7 @@
-
+
订单编号:
diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue
index 18c1109..96e1e74 100644
--- a/pages/order/OrderSubmission/index.vue
+++ b/pages/order/OrderSubmission/index.vue
@@ -44,7 +44,7 @@
-
+
优惠券
@@ -53,7 +53,7 @@
-
+
积分抵扣
@@ -65,7 +65,7 @@
当前积分
{{ userInfo.integral || 0 }}
-
+
@@ -101,25 +101,25 @@
-
+
支付方式
-
微信支付
微信快捷支付
-
微信支付
微信快捷支付
-
+
余额支付
@@ -357,6 +357,9 @@
}
this.isIntegral = that.$yroute.query.isIntegral == 'true'
this.useIntegral = this.isIntegral
+ if(this.isIntegral){
+ this.active='integral'
+ }
if (that.$yroute.query.id !== undefined) {
that.cartid = that.$yroute.query.id;
console.log(that.cartid);
diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index d4d8edb..1e9c5ff 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -184,7 +184,7 @@
-
+
From 33cff0fb8199a87112547806b11c9874da51adf4 Mon Sep 17 00:00:00 2001
From: taozi <552920369@qq.com>
Date: Wed, 27 Jan 2021 11:04:58 +0800
Subject: [PATCH 08/13] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81?=
=?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E8=8E=B7=E5=8F=96=E4=B8=8D=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/CouponPop.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/CouponPop.vue b/components/CouponPop.vue
index 1fe65d4..83ed731 100644
--- a/components/CouponPop.vue
+++ b/components/CouponPop.vue
@@ -14,16 +14,16 @@
>
¥
- {{ item.coupon_price }}
+ {{ item.couponPrice }}
- 购物满{{ item.use_min_price }}元可用
+ 购物满{{ item.useMinPrice }}元可用
不限时
- {{ item.start_time }}-{{ item.end_time }}
+ {{ item.startTime }}-{{ item.endTime }}
{{ !item.is_use ? "立即领取" : "已领取" }}
From 38160460cf111791ee7d2f9ebebd22275a7931c1 Mon Sep 17 00:00:00 2001
From: taozi <552920369@qq.com>
Date: Wed, 27 Jan 2021 11:07:20 +0800
Subject: [PATCH 09/13] =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BC=98=E6=83=A0?=
=?UTF-8?q?=E5=88=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/CouponPop.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/CouponPop.vue b/components/CouponPop.vue
index 83ed731..cee117c 100644
--- a/components/CouponPop.vue
+++ b/components/CouponPop.vue
@@ -24,7 +24,7 @@
{{ !item.is_use ? "立即领取" : "已领取" }}
+ >{{ !item.isUse ? "立即领取" : "已领取" }}
From 504e476e3075788234dba1cc32da9cb6d017a401 Mon Sep 17 00:00:00 2001
From: anhaogxs <704041637@qq.com>
Date: Tue, 2 Feb 2021 20:38:50 +0800
Subject: [PATCH 10/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A3=85=E4=BF=AE?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/public.js | 8 +
config/index.js | 3 +-
package-lock.json | 19 +
package.json | 2 +-
pages/home/index.vue | 861 +++++++++++++++++++++----------------------
5 files changed, 449 insertions(+), 444 deletions(-)
diff --git a/api/public.js b/api/public.js
index b34f64b..b4bde62 100644
--- a/api/public.js
+++ b/api/public.js
@@ -8,6 +8,14 @@ export function getHomeData() {
return request.get("index", {}, { login: false });
}
+/**
+ * 首页
+ * @returns {*}
+ */
+export function getCanvas() {
+ return request.get("/getCanvas?terminal=3", {}, { login: false });
+}
+
/**
* 文章 轮播列表
* @returns {*}
diff --git a/config/index.js b/config/index.js
index 8629e6a..ade4699 100644
--- a/config/index.js
+++ b/config/index.js
@@ -2,7 +2,8 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
// export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api';
- export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api';
+ export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
+ // export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static';
diff --git a/package-lock.json b/package-lock.json
index 4acba4f..a1f2da4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -287,6 +287,11 @@
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
},
+ "mutation-observer": {
+ "version": "1.0.3",
+ "resolved": "http://192.168.1.56:8081/repository/npm-public/mutation-observer/-/mutation-observer-1.0.3.tgz",
+ "integrity": "sha1-QukiKxAbyoLlup1aes9KFMDyY9A="
+ },
"normalize-url": {
"version": "4.5.0",
"resolved": "https://registry.npm.taobao.org/normalize-url/download/normalize-url-4.5.0.tgz?cache=0&sync_timestamp=1596373090568&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-url%2Fdownload%2Fnormalize-url-4.5.0.tgz",
@@ -399,6 +404,11 @@
"resolved": "https://registry.npm.taobao.org/to-readable-stream/download/to-readable-stream-1.0.0.tgz",
"integrity": "sha1-zgqgwvPfat+FLvtASng+d8BHV3E="
},
+ "transitionEnd": {
+ "version": "1.0.2",
+ "resolved": "http://192.168.1.56:8081/repository/npm-public/transitionEnd/-/transitionEnd-1.0.2.tgz",
+ "integrity": "sha1-GRTbW0Wn79w0oBr2koWjppOHFjM="
+ },
"url-parse-lax": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/url-parse-lax/download/url-parse-lax-3.0.0.tgz",
@@ -407,6 +417,15 @@
"prepend-http": "^2.0.0"
}
},
+ "vconsole": {
+ "version": "3.4.0",
+ "resolved": "http://192.168.1.56:8081/repository/npm-public/vconsole/-/vconsole-3.4.0.tgz",
+ "integrity": "sha1-LPL/qobNerc2mXoitj0FYnxqtWc=",
+ "requires": {
+ "mutation-observer": "^1.0.3",
+ "transitionEnd": "^1.0.2"
+ }
+ },
"vue": {
"version": "2.6.12",
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz",
diff --git a/package.json b/package.json
index 7db4ceb..297db34 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
"jweixin-module": "^1.6.0",
"miniapp-color-thief": "^1.0.5",
"vue-ydui": "^1.2.6",
- "vconsole": "^3.3.4",
+ "vconsole": "^3.3.4",
"wechat-jssdk": "^5.0.4"
},
"devDependencies": {
diff --git a/pages/home/index.vue b/pages/home/index.vue
index ebe34dc..556b47e 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -1,470 +1,447 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ "YSHOP商城" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ item.componentContent.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .nav-title {
+ margin-left: 20rpx;
+ line-height: 40px;
+ }
+
From 41a2882fd393b7d55800c106a27be945b1446040 Mon Sep 17 00:00:00 2001
From: anhaogxs <704041637@qq.com>
Date: Wed, 3 Feb 2021 21:01:16 +0800
Subject: [PATCH 11/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9adv=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/Adv.vue | 46 +++++++++++++++++++++++---------------------
pages/home/index.vue | 2 +-
2 files changed, 25 insertions(+), 23 deletions(-)
diff --git a/components/Adv.vue b/components/Adv.vue
index d3d8146..37d777f 100644
--- a/components/Adv.vue
+++ b/components/Adv.vue
@@ -2,55 +2,55 @@
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
@@ -63,14 +63,16 @@ export default {
return {};
},
props: {
- detail: {}
+ detail: Object
},
computed: {},
created() {},
methods: {
// 路由跳转
jump(path) {
- this.$tools.routerTo(path);
+ if (item.uniapp_url) {
+ this.$yrouter.push(path)
+ }
}
}
};
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 556b47e..7c16011 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -25,7 +25,7 @@
-
+
From 67f91522c9ad7c2a0eb5663ba4273d5a97c010e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com>
Date: Sat, 6 Feb 2021 11:43:40 +0800
Subject: [PATCH 12/13] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=BE=AE=E4=BF=A1?=
=?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
utils/index.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/utils/index.js b/utils/index.js
index 4eefecf..7d511bc 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -217,7 +217,7 @@ export const login = () => {
redirect = redirect.split('/pages')[1]
if(!redirect){
redirect="/Loading/index";
- }
+ }
reLaunch({
path: '/pages' + redirect,
});
@@ -619,13 +619,13 @@ export function routerPermissions(url, type) {
})
cookie.set('redirect', path)
})
- // } else if (Vue.prototype.$deviceType == 'weixin') {
- // wechat().then(() => oAuth());
- // if (!type) {
- // push({
- // path: url,
- // })
- // }
+ } else if (Vue.prototype.$deviceType == 'weixin') {
+ wechat().then(() => oAuth());
+ if (!type) {
+ push({
+ path: url,
+ })
+ }
} else {
console.log(path)
// 如果不是小程序跳转到登录页
From b6e8e267beec03175b1cff840a708fd440b36773 Mon Sep 17 00:00:00 2001
From: anhaogxs <704041637@qq.com>
Date: Wed, 10 Feb 2021 10:48:07 +0800
Subject: [PATCH 13/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=AF=E5=88=86?=
=?UTF-8?q?=E5=85=91=E6=8D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/index.js | 7 +-
pages.json | 926 +++++++-------
pages/order/OrderSubmission/index.vue | 779 ++++++------
pages/shop/GoodsCon/index.vue | 1592 ++++++++++++-------------
pages/shop/GoodsList/index.vue | 429 ++++---
pages/shop/IntegralGoodsCon/index.vue | 867 ++++++++++++++
pages/user/User/index.vue | 5 -
7 files changed, 2676 insertions(+), 1929 deletions(-)
create mode 100644 pages/shop/IntegralGoodsCon/index.vue
diff --git a/config/index.js b/config/index.js
index ade4699..153eca6 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,9 +1,8 @@
-
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
// export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api';
- export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
- // export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api';
+// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
+export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
-export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static';
+export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static'
diff --git a/pages.json b/pages.json
index 6bf8133..11102a0 100644
--- a/pages.json
+++ b/pages.json
@@ -1,460 +1,470 @@
{
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/Loading/index",
- "style": {
- "navigationBarTitleText": "yshop商城"
- }
- },
- {
- "path": "pages/authorization/index",
- "style": {
- "navigationBarTitleText": "微信授权"
- }
- },
- {
- "path": "pages/user/Login/index",
- "style": {
- "navigationBarTitleText": "登录"
- }
- },
- {
- "path": "pages/user/Register/index",
- "style": {
- "navigationBarTitleText": "注册"
- }
- },
- {
- "path": "pages/user/RetrievePassword/index",
- "style": {
- "navigationBarTitleText": "重置密码"
- }
- },
- {
- "path": "pages/launch/index",
- "style": {
- "navigationBarTitleText": "首页"
- }
- },
- {
- "path": "pages/home/index",
- "style": {
- "navigationBarTitleText": "yshop商城",
- "navigationBarTextStyle": "white",
- // "enablePullDownRefresh": true,
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/shop/GoodSearch/index",
- "style": {
- "navigationBarTitleText": "搜索商品"
- }
- },
- {
- "path": "pages/shop/GoodsClass/index",
- "style": {
- "navigationBarTitleText": "商品分类"
- }
- },
- {
- "path": "pages/shop/ShoppingCart/index",
- "style": {
- "navigationBarTitleText": "购物车"
- }
- },
- {
- "path": "pages/shop/StoreList/index",
- "style": {
- "navigationBarTitleText": "商家列表"
- }
- },
- {
- "path": "pages/shop/GoodsList/index",
- "style": {
- "navigationBarTitleText": "商品列表"
- }
- },
- {
- "path": "pages/NotDefined/index",
- "style": {
- "navigationBarTitleText": "404"
- }
- },
- {
- "path": "pages/user/User/index",
- "style": {
- "navigationBarTitleText": "我的"
- }
- },
- {
- "path": "pages/shop/GoodsCollection/index",
- "style": {
- "navigationBarTitleText": "商品收藏"
- }
- },
- {
- "path": "pages/shop/GoodsFoot/index",
- "style": {
- "navigationBarTitleText": "我的足迹"
- }
- },
- {
- "path": "pages/shop/news/NewsDetail/index",
- "style": {
- "navigationBarTitleText": "新闻详情"
- }
- },
- {
- "path": "pages/shop/news/NewsList/index",
- "style": {
- "navigationBarTitleText": "新闻列表"
- }
- },
- {
- "path": "pages/shop/EvaluateList/index",
- "style": {
- "navigationBarTitleText": "评价列表"
- }
- },
- {
- "path": "pages/shop/GoodsEvaluate/index",
- "style": {
- "navigationBarTitleText": "商品评价"
- }
- },
- {
- "path": "pages/shop/GoodsPromotion/index",
- "style": {
- "navigationBarTitleText": "促销商品"
- }
- },
- {
- "path": "pages/shop/HotNewGoods/index",
- "style": {
- "navigationBarTitleText": "热门商品"
- }
- },
- {
- "path": "pages/shop/GoodsCon/index",
- "style": {
- "navigationBarTitleText": "商品详情"
- }
- },
- {
- "path": "pages/user/BindingPhone/index",
- "style": {
- "navigationBarTitleText": "绑定手机号"
- }
- },
- {
- "path": "pages/user/address/AddAddress/index",
- "style": {
- "navigationBarTitleText": "新增收货地址"
- }
- },
- {
- "path": "pages/user/UserAccount/index",
- "style": {
- "navigationBarTitleText": "账户余额"
- }
- },
- {
- "path": "pages/user/address/AddressManagement/index",
- "style": {
- "navigationBarTitleText": "收货地址"
- }
- },
- {
- "path": "pages/user/promotion/Poster/index",
- "style": {
- "navigationBarTitleText": "推广名片"
- }
- },
- {
- "path": "pages/user/signIn/Sign/index",
- "style": {
- "navigationBarTitleText": "签到"
- }
- },
- {
- "path": "pages/user/signIn/SignRecord/index",
- "style": {
- "navigationBarTitleText": "签到记录"
- }
- },
- {
- "path": "pages/user/promotion/CashAudit/index",
- "style": {
- "navigationBarTitleText": "提现结果"
- }
- },
- {
- "path": "pages/user/promotion/PromoterOrder/index",
- "style": {
- "navigationBarTitleText": "分销详情"
- }
- },
- {
- "path": "pages/user/promotion/PromoterList/index",
- "style": {
- "navigationBarTitleText": "分销列表"
- }
- },
- {
- "path": "pages/user/promotion/UserPromotion/index",
- "style": {
- "navigationBarTitleText": "佣金"
- }
- },
- {
- "path": "pages/user/UserBill/index",
- "style": {
- "navigationBarTitleText": "账单记录"
- }
- },
- {
- "path": "pages/user/promotion/CashRecord/index",
- "style": {
- "navigationBarTitleText": "提现记录"
- }
- },
- {
- "path": "pages/user/promotion/CommissionDetails/index",
- "style": {
- "navigationBarTitleText": "佣金明细"
- }
- },
- {
- "path": "pages/user/signIn/Integral/index",
- "style": {
- "navigationBarTitleText": "我的积分"
- }
- },
- {
- "path": "pages/user/UserVip/index",
- "style": {
- "navigationBarTitleText": "用户vip"
- }
- },
- {
- "path": "pages/user/PersonalData/index",
- "style": {
- "navigationBarTitleText": "个人资料"
- }
- },
- {
- "path": "pages/user/coupon/UserCoupon/index",
- "style": {
- "navigationBarTitleText": "优惠券"
- }
- },
- {
- "path": "pages/user/coupon/GetCoupon/index",
- "style": {
- "navigationBarTitleText": "领取优惠券"
- }
- },
- {
- "path": "pages/user/promotion/UserCash/index",
- "style": {
- "navigationBarTitleText": "提现"
- }
- },
- {
- "path": "pages/user/CustomerList/index",
- "style": {
- "navigationBarTitleText": "客服列表"
- }
- },
- {
- "path": "pages/user/Recharge/index",
- "style": {
- "navigationBarTitleText": "充值"
- }
- },
- {
- "path": "pages/order/MyOrder/index",
- "style": {
- "navigationBarTitleText": "我的订单"
- }
- },
- {
- "path": "pages/order/Logistics/index",
- "style": {
- "navigationBarTitleText": "查看物流"
- }
- },
- {
- "path": "pages/order/OrderDetails/index",
- "style": {
- "navigationBarTitleText": "订单详情"
- }
- },
- {
- "path": "pages/order/OrderSubmission/index",
- "style": {
- "navigationBarTitleText": "提交订单"
- }
- },
- {
- "path": "pages/order/PaymentStatus/index",
- "style": {
- "navigationBarTitleText": "支付状态"
- }
- },
- {
- "path": "pages/order/GoodsReturn/index",
- "style": {
- "navigationBarTitleText": "商品退货"
- }
- },
- {
- "path": "pages/order/ReturnList/index",
- "style": {
- "navigationBarTitleText": "退货列表"
- }
- },
- {
- "path": "pages/orderAdmin/OrderIndex/index",
- "style": {
- "navigationBarTitleText": "商家订单统计"
- }
- },
- {
- "path": "pages/orderAdmin/AdminOrderList/index",
- "style": {
- "navigationBarTitleText": "订单"
- }
- },
- {
- "path": "pages/orderAdmin/GoodsDeliver/index",
- "style": {
- "navigationBarTitleText": "发货"
- }
- },
- {
- "path": "pages/orderAdmin/AdminOrder/index",
- "style": {
- "navigationBarTitleText": "商家订单列表"
- }
- },
- {
- "path": "pages/orderAdmin/Statistics/index",
- "style": {
- "navigationBarTitleText": "商家统计数据"
- }
- },
- {
- "path": "pages/orderAdmin/OrderCancellation/index",
- "style": {
- "navigationBarTitleText": "商家核销订单"
- }
- },
- {
- "path": "pages/activity/Poster/index",
- "style": {
- "navigationBarTitleText": "推广海报"
- }
- },
- {
- "path": "pages/activity/DargainDetails/index",
- "style": {
- "navigationBarTitleText": "帮砍价"
- }
- },
- {
- "path": "pages/activity/GoodsBargain/index",
- "style": {
- "navigationBarTitleText": "砍价列表"
- }
- },
- {
- "path": "pages/activity/BargainRecord/index",
- "style": {
- "navigationBarTitleText": "砍价记录"
- }
- },
- {
- "path": "pages/activity/GoodsGroup/index",
- "style": {
- "navigationBarTitleText": "团购商品列表"
- }
- },
- {
- "path": "pages/activity/GroupDetails/index",
- "style": {
- "navigationBarTitleText": "团购商品详情"
- }
- },
- {
- "path": "pages/activity/GroupRule/index",
- "style": {
- "navigationBarTitleText": "团购规则"
- }
- },
- {
- "path": "pages/activity/GoodsSeckill/index",
- "style": {
- "navigationBarTitleText": "秒杀"
- }
- },
- {
- "path": "pages/activity/SeckillDetails/index",
- "style": {
- "navigationBarTitleText": "秒杀详情"
- }
- },
- {
- "path": "pages/map/index",
- "style": {
- "navigationBarTitleText": "地图"
- }
- },
- {
- "path": "pages/shop/Live/LiveList/index",
- "style": {
- "navigationBarTitleText": "直播列表"
- }
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "Yshop",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8",
- "navigationStyle": "default"
-
- },
- "tabBar": {
- "color": "#282828",
- "selectedColor": "#eb3729",
- "borderStyle": "black",
- "backgroundColor": "#ffffff",
- "height": "50px",
- "fontSize": "10px",
- "iconWidth": "24px",
- "spacing": "3px",
- "list": [{
- "pagePath": "pages/home/index",
- "iconPath": "static/icon-home.png",
- "selectedIconPath": "static/icon-home-hot.png",
- "text": "首页"
- }, {
- "pagePath": "pages/shop/GoodsClass/index",
- "iconPath": "static/icon-class.png",
- "selectedIconPath": "static/icon-class-hot.png",
- "text": "分类"
- }, {
- "pagePath": "pages/shop/ShoppingCart/index",
- "iconPath": "static/icon-cart.png",
- "selectedIconPath": "static/icon-cart-hot.png",
- "text": "购物车"
- }, {
- "pagePath": "pages/user/User/index",
- "iconPath": "static/icon-user.png",
- "selectedIconPath": "static/icon-user-hot.png",
- "text": "我的"
- }]
- }
+ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/Loading/index",
+ "style": {
+ "navigationBarTitleText": "yshop商城"
+ }
+ },
+ {
+ "path": "pages/authorization/index",
+ "style": {
+ "navigationBarTitleText": "微信授权"
+ }
+ },
+ {
+ "path": "pages/user/Login/index",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ },
+ {
+ "path": "pages/user/Register/index",
+ "style": {
+ "navigationBarTitleText": "注册"
+ }
+ },
+ {
+ "path": "pages/user/RetrievePassword/index",
+ "style": {
+ "navigationBarTitleText": "重置密码"
+ }
+ },
+ {
+ "path": "pages/launch/index",
+ "style": {
+ "navigationBarTitleText": "首页"
+ }
+ },
+ {
+ "path": "pages/home/index",
+ "style": {
+ "navigationBarTitleText": "yshop商城",
+ "navigationBarTextStyle": "white",
+ // "enablePullDownRefresh": true,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/shop/GoodSearch/index",
+ "style": {
+ "navigationBarTitleText": "搜索商品"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsClass/index",
+ "style": {
+ "navigationBarTitleText": "商品分类"
+ }
+ },
+ {
+ "path": "pages/shop/ShoppingCart/index",
+ "style": {
+ "navigationBarTitleText": "购物车"
+ }
+ },
+ {
+ "path": "pages/shop/StoreList/index",
+ "style": {
+ "navigationBarTitleText": "商家列表"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsList/index",
+ "style": {
+ "navigationBarTitleText": "商品列表"
+ }
+ },
+ {
+ "path": "pages/NotDefined/index",
+ "style": {
+ "navigationBarTitleText": "404"
+ }
+ },
+ {
+ "path": "pages/user/User/index",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsCollection/index",
+ "style": {
+ "navigationBarTitleText": "商品收藏"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsFoot/index",
+ "style": {
+ "navigationBarTitleText": "我的足迹"
+ }
+ },
+ {
+ "path": "pages/shop/news/NewsDetail/index",
+ "style": {
+ "navigationBarTitleText": "新闻详情"
+ }
+ },
+ {
+ "path": "pages/shop/news/NewsList/index",
+ "style": {
+ "navigationBarTitleText": "新闻列表"
+ }
+ },
+ {
+ "path": "pages/shop/EvaluateList/index",
+ "style": {
+ "navigationBarTitleText": "评价列表"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsEvaluate/index",
+ "style": {
+ "navigationBarTitleText": "商品评价"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsPromotion/index",
+ "style": {
+ "navigationBarTitleText": "促销商品"
+ }
+ },
+ {
+ "path": "pages/shop/HotNewGoods/index",
+ "style": {
+ "navigationBarTitleText": "热门商品"
+ }
+ },
+ {
+ "path": "pages/shop/GoodsCon/index",
+ "style": {
+ "navigationBarTitleText": "商品详情"
+ }
+ },
+ {
+ "path": "pages/shop/IntegralGoodsCon/index",
+ "style": {
+ "navigationBarTitleText": "积分商品详情"
+ }
+ },
+ {
+ "path": "pages/user/BindingPhone/index",
+ "style": {
+ "navigationBarTitleText": "绑定手机号"
+ }
+ },
+ {
+ "path": "pages/user/address/AddAddress/index",
+ "style": {
+ "navigationBarTitleText": "新增收货地址"
+ }
+ },
+ {
+ "path": "pages/user/UserAccount/index",
+ "style": {
+ "navigationBarTitleText": "账户余额"
+ }
+ },
+ {
+ "path": "pages/user/address/AddressManagement/index",
+ "style": {
+ "navigationBarTitleText": "收货地址"
+ }
+ },
+ {
+ "path": "pages/user/promotion/Poster/index",
+ "style": {
+ "navigationBarTitleText": "推广名片"
+ }
+ },
+ {
+ "path": "pages/user/signIn/Sign/index",
+ "style": {
+ "navigationBarTitleText": "签到"
+ }
+ },
+ {
+ "path": "pages/user/signIn/SignRecord/index",
+ "style": {
+ "navigationBarTitleText": "签到记录"
+ }
+ },
+ {
+ "path": "pages/user/promotion/CashAudit/index",
+ "style": {
+ "navigationBarTitleText": "提现结果"
+ }
+ },
+ {
+ "path": "pages/user/promotion/PromoterOrder/index",
+ "style": {
+ "navigationBarTitleText": "分销详情"
+ }
+ },
+ {
+ "path": "pages/user/promotion/PromoterList/index",
+ "style": {
+ "navigationBarTitleText": "分销列表"
+ }
+ },
+ {
+ "path": "pages/user/promotion/UserPromotion/index",
+ "style": {
+ "navigationBarTitleText": "佣金"
+ }
+ },
+ {
+ "path": "pages/user/UserBill/index",
+ "style": {
+ "navigationBarTitleText": "账单记录"
+ }
+ },
+ {
+ "path": "pages/user/promotion/CashRecord/index",
+ "style": {
+ "navigationBarTitleText": "提现记录"
+ }
+ },
+ {
+ "path": "pages/user/promotion/CommissionDetails/index",
+ "style": {
+ "navigationBarTitleText": "佣金明细"
+ }
+ },
+ {
+ "path": "pages/user/signIn/Integral/index",
+ "style": {
+ "navigationBarTitleText": "我的积分"
+ }
+ },
+ {
+ "path": "pages/user/UserVip/index",
+ "style": {
+ "navigationBarTitleText": "用户vip"
+ }
+ },
+ {
+ "path": "pages/user/PersonalData/index",
+ "style": {
+ "navigationBarTitleText": "个人资料"
+ }
+ },
+ {
+ "path": "pages/user/coupon/UserCoupon/index",
+ "style": {
+ "navigationBarTitleText": "优惠券"
+ }
+ },
+ {
+ "path": "pages/user/coupon/GetCoupon/index",
+ "style": {
+ "navigationBarTitleText": "领取优惠券"
+ }
+ },
+ {
+ "path": "pages/user/promotion/UserCash/index",
+ "style": {
+ "navigationBarTitleText": "提现"
+ }
+ },
+ {
+ "path": "pages/user/CustomerList/index",
+ "style": {
+ "navigationBarTitleText": "客服列表"
+ }
+ },
+ {
+ "path": "pages/user/Recharge/index",
+ "style": {
+ "navigationBarTitleText": "充值"
+ }
+ },
+ {
+ "path": "pages/order/MyOrder/index",
+ "style": {
+ "navigationBarTitleText": "我的订单"
+ }
+ },
+ {
+ "path": "pages/order/Logistics/index",
+ "style": {
+ "navigationBarTitleText": "查看物流"
+ }
+ },
+ {
+ "path": "pages/order/OrderDetails/index",
+ "style": {
+ "navigationBarTitleText": "订单详情"
+ }
+ },
+ {
+ "path": "pages/order/OrderSubmission/index",
+ "style": {
+ "navigationBarTitleText": "提交订单"
+ }
+ },
+ {
+ "path": "pages/order/PaymentStatus/index",
+ "style": {
+ "navigationBarTitleText": "支付状态"
+ }
+ },
+ {
+ "path": "pages/order/GoodsReturn/index",
+ "style": {
+ "navigationBarTitleText": "商品退货"
+ }
+ },
+ {
+ "path": "pages/order/ReturnList/index",
+ "style": {
+ "navigationBarTitleText": "退货列表"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/OrderIndex/index",
+ "style": {
+ "navigationBarTitleText": "商家订单统计"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/AdminOrderList/index",
+ "style": {
+ "navigationBarTitleText": "订单"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/GoodsDeliver/index",
+ "style": {
+ "navigationBarTitleText": "发货"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/AdminOrder/index",
+ "style": {
+ "navigationBarTitleText": "商家订单列表"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/Statistics/index",
+ "style": {
+ "navigationBarTitleText": "商家统计数据"
+ }
+ },
+ {
+ "path": "pages/orderAdmin/OrderCancellation/index",
+ "style": {
+ "navigationBarTitleText": "商家核销订单"
+ }
+ },
+ {
+ "path": "pages/activity/Poster/index",
+ "style": {
+ "navigationBarTitleText": "推广海报"
+ }
+ },
+ {
+ "path": "pages/activity/DargainDetails/index",
+ "style": {
+ "navigationBarTitleText": "帮砍价"
+ }
+ },
+ {
+ "path": "pages/activity/GoodsBargain/index",
+ "style": {
+ "navigationBarTitleText": "砍价列表"
+ }
+ },
+ {
+ "path": "pages/activity/BargainRecord/index",
+ "style": {
+ "navigationBarTitleText": "砍价记录"
+ }
+ },
+ {
+ "path": "pages/activity/GoodsGroup/index",
+ "style": {
+ "navigationBarTitleText": "团购商品列表"
+ }
+ },
+ {
+ "path": "pages/activity/GroupDetails/index",
+ "style": {
+ "navigationBarTitleText": "团购商品详情"
+ }
+ },
+ {
+ "path": "pages/activity/GroupRule/index",
+ "style": {
+ "navigationBarTitleText": "团购规则"
+ }
+ },
+ {
+ "path": "pages/activity/GoodsSeckill/index",
+ "style": {
+ "navigationBarTitleText": "秒杀"
+ }
+ },
+ {
+ "path": "pages/activity/SeckillDetails/index",
+ "style": {
+ "navigationBarTitleText": "秒杀详情"
+ }
+ },
+ {
+ "path": "pages/map/index",
+ "style": {
+ "navigationBarTitleText": "地图"
+ }
+ },
+ {
+ "path": "pages/shop/Live/LiveList/index",
+ "style": {
+ "navigationBarTitleText": "直播列表"
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "Yshop",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8",
+ "navigationStyle": "default"
+ },
+ "tabBar": {
+ "color": "#282828",
+ "selectedColor": "#eb3729",
+ "borderStyle": "black",
+ "backgroundColor": "#ffffff",
+ "height": "50px",
+ "fontSize": "10px",
+ "iconWidth": "24px",
+ "spacing": "3px",
+ "list": [
+ {
+ "pagePath": "pages/home/index",
+ "iconPath": "static/icon-home.png",
+ "selectedIconPath": "static/icon-home-hot.png",
+ "text": "首页"
+ },
+ {
+ "pagePath": "pages/shop/GoodsClass/index",
+ "iconPath": "static/icon-class.png",
+ "selectedIconPath": "static/icon-class-hot.png",
+ "text": "分类"
+ },
+ {
+ "pagePath": "pages/shop/ShoppingCart/index",
+ "iconPath": "static/icon-cart.png",
+ "selectedIconPath": "static/icon-cart-hot.png",
+ "text": "购物车"
+ },
+ {
+ "pagePath": "pages/user/User/index",
+ "iconPath": "static/icon-user.png",
+ "selectedIconPath": "static/icon-user-hot.png",
+ "text": "我的"
+ }
+ ]
+ }
}
diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue
index 96e1e74..284cd0c 100644
--- a/pages/order/OrderSubmission/index.vue
+++ b/pages/order/OrderSubmission/index.vue
@@ -2,10 +2,8 @@
-
-
+
+
@@ -15,7 +13,7 @@
[默认]
- {{ addressInfo.province }}{{ addressInfo.city}}{{ addressInfo.district }}{{ addressInfo.detail }}
+ {{ addressInfo.province }}{{ addressInfo.city }}{{ addressInfo.district }}{{ addressInfo.detail }}
@@ -27,14 +25,14 @@
{{ storeItems.name }}
- {{storeItems.phone }}
+ {{ storeItems.phone }}
-
{{ storeItems.address}}
+
{{ storeItems.address }}
{{ systemStore.name }}
- {{systemStore.phone}}
+ {{ systemStore.phone }}
{{ systemStore.address }}
@@ -46,10 +44,10 @@
-
+
优惠券
- {{ usableCoupon.couponTitle || "请选择" }}
+ {{ usableCoupon.couponTitle || '请选择' }}
@@ -75,11 +73,7 @@
快递费用
- {{
- orderGroupInfo.priceGroup.storePostage > 0
- ? orderGroupInfo.priceGroup.storePostage
- : "免运费"
- }}
+ {{ orderGroupInfo.priceGroup.storePostage > 0 ? orderGroupInfo.priceGroup.storePostage : '免运费' }}
@@ -105,32 +99,22 @@
支付方式
-
-
- 微信支付
-
+
+ 微信支付
微信快捷支付
-
-
- 微信支付
-
+
+ 微信支付
微信快捷支付
-
- 余额支付
-
+ 余额支付
可用余额:{{ userInfo.nowMoney || 0 }}
-
-
- 积分支付
-
- 可用积分:{{ userInfo.integral || 0 }}
-
+
+ 积分支付
+ 可用积分:{{ userInfo.integral || 0 }}
+
@@ -140,11 +124,11 @@
¥{{ orderPrice.totalPrice }}
{{ orderPrice.payIntegral }}积分
-
+
运费:
¥{{ orderPrice.payPostage }}
-
+
优惠券抵扣:
-¥{{ orderPrice.couponPrice }}
@@ -153,7 +137,7 @@
-¥{{ orderPrice.deductionPrice }}
-
+
-
-
+
+
diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index 1e9c5ff..b0b776a 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -9,17 +9,12 @@
¥
- {{
- attr.productSelect.price || storeInfo.price
- }}
- ¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }}
+ {{ attr.productSelect.price || storeInfo.price }}
+ ¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }}
- {{
- attr.productSelect.integral || storeInfo.integral
- }}积分
+ {{ attr.productSelect.integral || storeInfo.integral }}积分
@@ -32,8 +27,7 @@
优惠券:
- 满{{ item.useMinPrice }}减{{ item.couponPrice }}
+ 满{{ item.useMinPrice }}减{{ item.couponPrice }}
@@ -98,7 +92,7 @@
-
+
@@ -157,17 +151,13 @@
- {{
- CartCount
- }}
+ {{ CartCount }}
购物车
- {{
- CartCount
- }}
+ {{ CartCount }}
购物车
@@ -186,8 +176,7 @@
-
+
@@ -212,853 +201,788 @@
-
-
diff --git a/pages/shop/GoodsList/index.vue b/pages/shop/GoodsList/index.vue
index a833bfe..d8cda9f 100644
--- a/pages/shop/GoodsList/index.vue
+++ b/pages/shop/GoodsList/index.vue
@@ -10,7 +10,7 @@
- {{ title ? title : "默认" }}
+ {{ title ? title : '默认' }}
价格
@@ -26,10 +26,8 @@
新品
-
-
+
+
@@ -46,10 +44,8 @@
-
-
+
+
@@ -71,229 +67,222 @@
-
+
diff --git a/pages/shop/IntegralGoodsCon/index.vue b/pages/shop/IntegralGoodsCon/index.vue
new file mode 100644
index 0000000..ed13062
--- /dev/null
+++ b/pages/shop/IntegralGoodsCon/index.vue
@@ -0,0 +1,867 @@
+
+
+
+
+
+
+
+
+
+
+ {{ attr.productSelect.integral || storeInfo.integral }}积分
+
+
+
+ {{ storeInfo.storeName }}
+
+ 库存:{{ storeInfo.stock }}{{ storeInfo.unitName }}
+ 销量:{{ storeInfo.sales }}{{ storeInfo.unitName }}
+
+
+
+
+
+
+ {{ attrTxt }}:
+ {{ attrValue }}
+
+
+
+
+
+
+
+ 用户评价({{ replyCount }})
+
+ {{ replyChance }}%好评率
+
+
+
+
+
+
+
+
+ 产品介绍
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue
index 59a0943..15e7128 100644
--- a/pages/user/User/index.vue
+++ b/pages/user/User/index.vue
@@ -114,11 +114,6 @@
-
-
- 积分商城
-
-