|
|
|
@ -65,7 +65,8 @@ |
|
|
|
|
<!-- <view class="orderInfo"> |
|
|
|
|
<text>订单号:{{orderInfo.order_no}}</text> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="list" v-for="(item,index) in orderInfo.goods" :key="index" @click="handleTargetGoods(item.goods_id)"> |
|
|
|
|
<view class="list" v-for="(item,index) in orderInfo.goods" :key="index" |
|
|
|
|
@click="handleTargetGoods(item.goods_id)"> |
|
|
|
|
<image :src="item.goods_image" mode="aspectFill" class="thumb"></image> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="title">{{item.goods_name}}</view> |
|
|
|
@ -74,7 +75,8 @@ |
|
|
|
|
<text class="num">x{{item.total_num}}</text> |
|
|
|
|
<view> |
|
|
|
|
<text class="moneyFlag">¥</text> |
|
|
|
|
<text class="numText">{{item.total_pay_price?Number(item.total_pay_price):item.total_pay_price}}</text> |
|
|
|
|
<text |
|
|
|
|
class="numText">{{item.total_pay_price?Number(item.total_pay_price):item.total_pay_price}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -182,10 +184,20 @@ |
|
|
|
|
{{orderInfo.pay_method_text}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="list" v-if="orderInfo.remark"> |
|
|
|
|
<view class="title">订单备注:</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
{{orderInfo.remark}} |
|
|
|
|
<view class="remarkTitle" v-if="orderInfo.merchant.length>0"> |
|
|
|
|
<view class="total"> |
|
|
|
|
商家备注: |
|
|
|
|
</view> |
|
|
|
|
<view style="overflow: hidden;"> |
|
|
|
|
<view class="merchant" v-for="(item, idx) in orderInfo.merchant"> |
|
|
|
|
<view class="merchantImg"> |
|
|
|
|
<image @click="previewImage(idxs,item.image_url)" :src="img.preview_url" |
|
|
|
|
v-for="(img, idxs) in item.image_url" mode=""></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="remarks"> |
|
|
|
|
{{item.remark}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -202,8 +214,10 @@ |
|
|
|
|
<view class="btn" |
|
|
|
|
v-show="!orderInfo.order_refund_id&&orderInfo.delivery_type==10&&orderInfo.order_status==10&&orderInfo.pay_status==20&&orderInfo.delivery_status==10&&userInfo.user_type == 40" |
|
|
|
|
@click="goJump('/pages/news3/sendOutGoods',orderInfo,2)">发货</view> |
|
|
|
|
<view class="del" v-show="orderInfo.audit_status==0&&userInfo.user_type == 40" @click="refuseOrder(orderInfo,20)">拒绝</view> |
|
|
|
|
<view class="btn" v-show="orderInfo.audit_status==0&&userInfo.user_type == 40" @click="refuseOrder(orderInfo,10)">同意</view> |
|
|
|
|
<view class="del" v-show="orderInfo.audit_status==0&&userInfo.user_type == 40" |
|
|
|
|
@click="refuseOrder(orderInfo,20)">拒绝</view> |
|
|
|
|
<view class="btn" v-show="orderInfo.audit_status==0&&userInfo.user_type == 40" |
|
|
|
|
@click="refuseOrder(orderInfo,10)">同意</view> |
|
|
|
|
<view class="del" @click="onDelete(orderInfo)" |
|
|
|
|
v-show="(!orderInfo.order_refund_id&&orderInfo.order_status==30&&orderInfo.pay_status==20&&orderInfo.delivery_status==20)||(!orderInfo.order_refund_id&&orderInfo.order_status==20&&orderInfo.pay_status==10&&orderInfo.delivery_status==10)"> |
|
|
|
|
删除订单</view> |
|
|
|
@ -292,6 +306,16 @@ |
|
|
|
|
this.getOrderDetail(this.order_id) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
previewImage(index, list) { |
|
|
|
|
let newList=[] |
|
|
|
|
list.forEach(item => { |
|
|
|
|
newList.push(item.preview_url) |
|
|
|
|
}); |
|
|
|
|
uni.previewImage({ |
|
|
|
|
current: index, // 当前显示图片索引 |
|
|
|
|
urls: newList, // 需要预览的图片http链接列表 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 跳转到商品详情页面 |
|
|
|
|
handleTargetGoods(goodsId) { |
|
|
|
|
uni.redirectTo({ |
|
|
|
@ -1238,4 +1262,51 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.remarkTitle { |
|
|
|
|
overflow: hidden; |
|
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
|
|
.total { |
|
|
|
|
float: left; |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
color: #7E7E7E; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.merchantImg { |
|
|
|
|
width: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
flex-direction: row; |
|
|
|
|
min-height: 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.merchantImg image { |
|
|
|
|
width: 100rpx; |
|
|
|
|
height: 100rpx; |
|
|
|
|
margin: 0 20rpx 20rpx 0; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.merchant { |
|
|
|
|
margin-top: 5rpx; |
|
|
|
|
overflow: hidden; |
|
|
|
|
border-top: 1rpx solid #F4F4F4; |
|
|
|
|
padding: 20rpx 0; |
|
|
|
|
|
|
|
|
|
.remarks { |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: #1E1E1E; |
|
|
|
|
line-height: 34rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.merchant:nth-child(1) { |
|
|
|
|
padding-top: 0; |
|
|
|
|
border-top: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|