后台接口对接

This commit is contained in:
donqi 2022-06-13 16:14:21 +08:00
parent e8db1977a0
commit d8bba87d61
3 changed files with 16 additions and 6 deletions

View File

@ -10,9 +10,9 @@ export default {
title: '加载中'
})
// request 触发前拼接 url
// args.url = 'https://www.opsoul.com' + args.url;
args.url = 'https://www.opsoul.com' + args.url;
// args.url = 'http://10.45.137.214:80' + args.url;
args.url = 'http://127.0.0.1:80' + args.url;
// args.url = 'http://127.0.0.1:80' + args.url;
if (args.data) {
args.data.deptId = globalData.deptId;
args.data.from = globalData.from;

View File

@ -6,10 +6,16 @@
<view class="cu-avatar" :style="'background-image:url(' + product.goodsLogoUrl + '); min-width:150rpx; min-height:150rpx;'"></view>
<view class="margin-left-sm flex-column-between" style="width: 100%">
<view class="text-black text-lg">{{product.goodsName}}</view>
<view class="flex flex-wrap">
<view class="basis-xl">{{product.standardName}}</view>
<view class="basis-xs text-right">×{{product.num}}</view>
<view class="flex justify-between align-center" style="width: 480rpx;" v-for="(item,index) in pickedList" :key="index" v-if="index < 3">
<view class="basis-lg text-cut">{{item.standardName}}</view>
<view class="basis-xs text-cut text-right">×{{item.standardNum}}</view>
</view>
<view v-if="pickedList.length > 3">...</view>
<!-- <view class="flex justify-between align-center" style="width: 440rpx;" v-for="(item,index) in 4" :key="index" v-if="index < 3">
<view class="basis-lg text-cut">冰箱冰箱冰箱冰箱冰箱冰箱冰箱冰箱冰箱冰箱冰箱</view>
<view class="basis-xs text-cut">×10000</view>
</view>
<view>...</view> -->
</view>
</view>
</view>
@ -23,6 +29,10 @@
product: {
type: Object,
default: null
},
pickedList: {
type: Array,
default: []
}
}
}

View File

@ -31,7 +31,7 @@
</view>
<view class="padding-lr">
<view class="margin-top-sm">
<product-picked :product="shopOrder"></product-picked>
<product-picked :product="shopOrder" :pickedList="shopOrder.standardList"></product-picked>
</view>
<view class="flex justify-end align-end padding-bottom-sm">
<view class="margin-right-sm"><text>总价</text><text class="text-price text-red">{{shopOrder.totalMoney}}</text>