diff --git a/src/models/utils-model.js b/src/models/utils-model.js index f3cd7ec..adc7cee 100644 --- a/src/models/utils-model.js +++ b/src/models/utils-model.js @@ -14,8 +14,8 @@ instance.interceptors.request.use( if (token) { config.headers.encodeToken = token; } - // config.headers.encodeToken = - // "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzEyMjQ3Mjc1OTcsInBheWxvYWQiOiJcIjE4MDYwMTE0MDkyODM4NDEwMXwxNTM5Njg4NzI3NTc5XCIifQ.sJBefUfJwybtWTNauW3j-w8VA6BlV56ASKmgQvDJc_Y"; + config.headers.encodeToken = + "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzEyMjQ3Mjc1OTcsInBheWxvYWQiOiJcIjE4MDYwMTE0MDkyODM4NDEwMXwxNTM5Njg4NzI3NTc5XCIifQ.sJBefUfJwybtWTNauW3j-w8VA6BlV56ASKmgQvDJc_Y"; console.log(config); return config; }, diff --git a/src/view/order-detail.vue b/src/view/order-detail.vue index 9a17fe9..3b7322e 100644 --- a/src/view/order-detail.vue +++ b/src/view/order-detail.vue @@ -9,7 +9,7 @@
{{info.merchantName}}
-
{{stateText}}
+
{{stateText}}
@@ -19,7 +19,7 @@
{{info.shortDesc}}
-
¥{{info.totalPrice/100}}
+
¥{{info.totalPrice?info.totalPrice/100:''}}
{{item.labelText}} @@ -45,7 +45,7 @@
下单时间:
{{info.create}}
-
付款时间: +
付款时间:
{{info.payTime}}
@@ -53,7 +53,7 @@
订单金额:
-
¥{{info.totalPrice/100}}
+
¥{{info.totalPrice?info.totalPrice/100:""}}
@@ -62,7 +62,7 @@
{{info.primeCoupon.couponName}}
-
¥{{info.couponPrice/100}}
+
¥{{info.couponPrice?info.couponPrice/100:''}}
@@ -82,10 +82,10 @@
重新下单
-
+
立即付款
-
+
预约服务
@@ -141,11 +141,15 @@ export default { }, methods: { getData() { + this.$vux.loading.show({ + text: "Loading" + }); orderApi .getDetail({ orderNo: this.orderNo }) .then(res => { + this.$vux.loading.hide(); if (res.code === 0 && res.response.data) { this.authUrl = res.response.authUrl || ""; let info = res.response.data; @@ -385,6 +389,18 @@ export default { color: #999; font-size: 0.28rem; } + .state0 { + color: #fcac21; + } + .state10 { + color: #00ba86; + } + .state11 { + color: #00ba86; + } + .state20 { + color: #fc4f21; + } } .item-main { display: flex; @@ -516,6 +532,7 @@ export default { margin-bottom: 0.12rem; } .box { + word-break: break-all; width: 100%; height: 1.47rem; font-size: 0.28rem; @@ -530,8 +547,7 @@ export default { } .time-box { width: 100%; - // height: 1.5rem; - padding: 0.4rem 0.2rem; + padding: 0.4rem 0.2rem 0rem 0.2rem; background-color: #fff; box-sizing: border-box; margin-bottom: 0.2rem; @@ -541,6 +557,7 @@ export default { .time-item { display: flex; font-size: 0.28rem; + margin-bottom: 0.3rem; align-items: center; line-height: 1; color: #666;