Commit b511068a by weijiguang

修改状态显示

parent edeacfa5
...@@ -53,14 +53,14 @@ export default { ...@@ -53,14 +53,14 @@ export default {
// 15 已退款 // 15 已退款
// 50 其他人工干预状态 // 50 其他人工干预状态
showMask() { showMask() {
return ['2', '3'].indexOf(this.orderInfo.state) != -1 return ['2', '3'].indexOf(this.orderInfo.state) != -1;
}, },
orderStatusText() { orderStatusText() {
switch (this.orderInfo.state) { switch (this.orderInfo.state) {
case '2': case '2':
return '已支付' return '已支付'
case '3': case '3':
return '等待中' return '制作中'
default: default:
return '' return ''
} }
......
...@@ -73,9 +73,6 @@ ...@@ -73,9 +73,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="order_describe"> <div class="order_describe">
<h3>订单信息</h3> <h3>订单信息</h3>
<div class="item"> <div class="item">
...@@ -90,9 +87,7 @@ ...@@ -90,9 +87,7 @@
<span class="label">订单编号:</span> <span class="label">订单编号:</span>
<span class="value">{{ orderInfo.orderNo }}</span> <span class="value">{{ orderInfo.orderNo }}</span>
</div> </div>
</div> </div>
<div class="customer_service"> <div class="customer_service">
<button class="function_item_text" open-type="contact" bindcontact="handleContact" session-from="sessionFrom"> <button class="function_item_text" open-type="contact" bindcontact="handleContact" session-from="sessionFrom">
<span>有疑问,联系客服</span> <span>有疑问,联系客服</span>
...@@ -114,7 +109,7 @@ export default { ...@@ -114,7 +109,7 @@ export default {
const resData = uni.getStorageSync('orderInfo'); const resData = uni.getStorageSync('orderInfo');
this.orderInfo = resData this.orderInfo = resData
this.ewmImg = '/static/imgs/noQr.png' this.ewmImg = '/static/imgs/noQr.png'
const isBuild = ['4', '5', '6', '7'].indexOf(this.orderInfo.state) != -1; const isBuild = ['2', '3', '4', '5'].indexOf(this.orderInfo.state) != -1;
if (isBuild) { if (isBuild) {
new QRCode('myQrcode', { new QRCode('myQrcode', {
...@@ -188,9 +183,9 @@ export default { ...@@ -188,9 +183,9 @@ export default {
}, },
}, },
computed: { computed: {
qrShow() { qrShow() {
return ['8', '9', '10', '11', '12', '13', '14', '15', '50'].indexOf(this.orderInfo.state) == -1 console.log("order state:"+this.orderInfo.state);
return ['2','3','4','5'].indexOf(this.orderInfo.state) != -1
}, },
isBuildQrcode() { isBuildQrcode() {
return return
...@@ -300,7 +295,7 @@ export default { ...@@ -300,7 +295,7 @@ export default {
.btn_cancel { .btn_cancel {
width: 160rpx; width: 160rpx;
height: 52rpx; height: 52rpx;
border: 1rpx solid #006ECF; border: 1rpx solid #CCCCCC;
border-radius: 6rpx; border-radius: 6rpx;
display: inline-block; display: inline-block;
margin: 20rpx; margin: 20rpx;
...@@ -485,7 +480,7 @@ export default { ...@@ -485,7 +480,7 @@ export default {
.discount { .discount {
margin-top: 24rpx; margin-top: 24rpx;
padding-bottom: 24rpx; padding-bottom: 24rpx;
border-bottom: 1rpx solid #666; border-bottom: 1rpx solid #CCCCCC;
.discount_1 { .discount_1 {
display: flex; display: flex;
...@@ -566,7 +561,7 @@ export default { ...@@ -566,7 +561,7 @@ export default {
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #000000; color: #000000;
border-bottom: 1rpx solid #666; border-bottom: 1rpx solid #CCCCCC;
} }
.item { .item {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="item.state == 4 || item.state == 5 || item.state == 6 || item.state == 7" <view v-if="item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5"
class="qr_code"> class="qr_code">
<image class="qr_code_img" src="/static/imgs/icon-barcode.png"></image> <image class="qr_code_img" src="/static/imgs/icon-barcode.png"></image>
<view class="qr_text">点击二维码取单</view> <view class="qr_text">点击二维码取单</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment