diff --git a/components/coupon-obj/coupon-obj.vue b/components/coupon-obj/coupon-obj.vue
new file mode 100644
index 0000000..909cf76
--- /dev/null
+++ b/components/coupon-obj/coupon-obj.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.use_condition}}
+
+
+
+ {{item.name}}
+ {{item.coupon_type}}
+ {{item.use_time_tips}}
+
+
+
+
+
+ {{item.tips}}
+
+
+
+
+
+ 暂无优惠券~
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
diff --git a/components/mplogin/mplogin.vue b/components/mplogin/mplogin.vue
index c5b6fc8..96fbd28 100644
--- a/components/mplogin/mplogin.vue
+++ b/components/mplogin/mplogin.vue
@@ -55,6 +55,10 @@
value: {
type: Boolean,
required: true
+ },
+ token: {
+ type: String,
+ default: ''
}
},
data() {
@@ -74,7 +78,8 @@
title: "正在上传中...",
mask: true,
});
- uploadFile(avatarUrl).then((res) => {
+
+ uploadFile(avatarUrl, this.token).then((res) => {
uni.hideLoading();
this.avatar = res.url;
}).catch(() => {
diff --git a/components/tab/tab.vue b/components/tab/tab.vue
new file mode 100644
index 0000000..fad37bf
--- /dev/null
+++ b/components/tab/tab.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/tabs/tabs.vue b/components/tabs/tabs.vue
new file mode 100644
index 0000000..c9a0a4c
--- /dev/null
+++ b/components/tabs/tabs.vue
@@ -0,0 +1,252 @@
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/login/login.vue b/pages/login/login.vue
index a8848cd..3b54cea 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -42,7 +42,7 @@
-
+
@@ -69,7 +69,8 @@
},
loginData: {},
mpLoginPopup: false,
- mobilePopup: false
+ mobilePopup: false,
+ token: ''
}
},
@@ -109,8 +110,11 @@
if (code == 1) {
if (data.is_new_user) {
uni.hideLoading()
- this.mpLoginPopup = true
- this.loginData = data
+ this.token = data.token
+ this.$nextTick(() => {
+ this.mpLoginPopup = true
+ })
+ this.loginData = data
} else {
this.loginHandle(data)
}
diff --git a/pages/order_now/order_now.vue b/pages/order_now/order_now.vue
index 78c51d5..18eeb3a 100644
--- a/pages/order_now/order_now.vue
+++ b/pages/order_now/order_now.vue
@@ -1,6 +1,6 @@
-
+
-
+
@@ -38,7 +35,7 @@
请选择收货地址
-
+
@@ -76,15 +73,8 @@
-->
-
+
-
+
+
+ 优惠券
+
+ -¥{{ orderInfo.discount_amount }}
+ {{
+ usableCoupon.length + '张可用'
+ }}
+ 无优惠券可用
+
+
+
+
+
备注
- xxxx
+
-
+
预约时间
@@ -121,186 +124,204 @@
-
+
-
-
-
-
- 微信
-
-
-
-
-
-
-
+
+
+
+
+ 微信
+
+
+
+
+
+
+
-
+
-
-
-
-
- 支付宝
-
-
-
-
-
-
-
+
+
+
+
+ 支付宝
+
+
+
+
+
+
+
-
+
- 共1件
+ 共{{orderInfo.total_num}}件
合计:
-
+
-
- 去支付
+
+ 去支付
-
+
+
+ 优惠券
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/utils/tools.js b/utils/tools.js
index ac3f9a6..9cdcc59 100644
--- a/utils/tools.js
+++ b/utils/tools.js
@@ -269,14 +269,14 @@ export function menuJump(item) {
}
}
-export function uploadFile(path) {
+export function uploadFile(path, token = '') {
return new Promise((resolve, reject) => {
uni.uploadFile({
url: `${baseURL}/api/file/formimage`,
filePath: path,
name: "file",
header: {
- token: store.getters.token,
+ token: store.getters.token || token,
},
fileType: "image",
cloudPath: "",