修复bug

This commit is contained in:
weipengfei 2023-10-31 11:24:20 +08:00
parent f4f5a471e6
commit b63f6f4336
5 changed files with 21 additions and 10 deletions

View File

@ -10,7 +10,8 @@
<view class="content-one">
<view class="content-one-img">
<image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFit"></image>
<!-- <image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFit"></image> -->
<image :src="item.entrust_mer_info&&item.entrust_mer_info.mer_avatar" mode="aspectFill"></image>
</view>
<view class="content-text">
<view class="flex" style="justify-content: space-between;">
@ -570,7 +571,9 @@
width: 148rpx;
height: 148rpx;
margin-right: 28rpx;
border: 1px solid;
// border: 1px solid;
border-radius: 10rpx;
overflow: hidden;
image {
width: 100%;

View File

@ -9,7 +9,7 @@
<view class="content-content" v-for="(item,i) in orderList" :key="i" @click="nav(item)">
<view class="content-one">
<view class="content-one-img">
<image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFit"></image>
<image :src="item.mer_info&&item.mer_info.mer_avatar" mode="aspectFill"></image>
</view>
<view class="content-text">
<view class="flex" style="justify-content: space-between;">
@ -515,7 +515,9 @@
width: 148rpx;
height: 148rpx;
margin-right: 28rpx;
border: 1px solid;
// border: 1px solid;
border-radius: 10rpx;
overflow: hidden;
flex-shrink: 0;
image {

View File

@ -84,7 +84,7 @@
</view>
</view>
<priceComponent :product_id="product_id" v-if="showCommodity"></priceComponent>
<priceComponent :product_id="product_id" :bar_code="code" v-if="showCommodity"></priceComponent>
<!-- <view class="popup_group">
<view class="radio">

View File

@ -22,7 +22,7 @@
components: {
selectForm
},
props: ['product_id'],
props: ['product_id', 'bar_code'],
data() {
return {
singleSpecification: {
@ -108,12 +108,12 @@
watch: {
singleSpecification: {
handler(val) {
handler(val, old) {
this.singleSpecification = val;
this.saveSingleSpecification();
},
deep: true
}
},
},
// onLoad(option) {
// console.log(option);
@ -148,6 +148,7 @@
}
})
}
this.singleSpecification.bar_code = this.$props.bar_code;
// if (!this.$props.product_id) {
// this.formList.push({
// id: 10,

View File

@ -25,7 +25,8 @@
</view>
<view class="top-two_content">
<textarea :value="listobj.content" placeholder="" style="height: auto;" />
<!-- <textarea :value="listobj.content" placeholder="" style="height: auto;" /> -->
<view>{{listobj.content}}</view>
</view>
<view class="top-two_img">
@ -118,6 +119,7 @@
getCommunityshow,
getCommunityaddCart
} from '@/api/trading-floor.js'
import { Toast } from '../../../libs/uniApi';
export default {
@ -159,9 +161,12 @@
uni.navigateTo({
url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id.toString()
})
}
}else {
Toast(res.message)
}
}).catch((err) => {
console.log(err)
Toast(err)
})
}
}