|
|
@@ -4,7 +4,7 @@
|
|
|
<u-navbar title="协商记录" :autoBack="true" :placeholder="true" :border-bottom="true"></u-navbar>
|
|
|
<view class="product">
|
|
|
<view class="left">
|
|
|
- <image :src="data.productImage || `${$config.apiUrl}/${data.productImage.split(',')[0]}`" mode=""></image>
|
|
|
+ <image :src="productImageUrl" mode=""></image>
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
<view>
|
|
|
@@ -131,6 +131,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ productImageUrl() {
|
|
|
+ if (!this.data.productImage) return '';
|
|
|
+ if (this.data.productImage.indexOf('http') === 0) return this.data.productImage;
|
|
|
+ return `${this.$config.apiUrl}/${this.data.productImage.split(',')[0]}`;
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
// 订单状态 0 待支付 1 待成团 2 已成团 3 已出餐 4 已送达 5 已取消 6 售后
|
|
|
},
|