邓洁 : 发布店铺转让接口

This commit is contained in:
邓洁
2023-11-18 21:52:08 +08:00
parent cbe7bdf60a
commit ed9078f912
3 changed files with 91 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="detail" ref="viewref">
<view class="swiper">
<u-swiper :list="shopInfo.pics" keyName="pics" height="500rpx" radius="0"></u-swiper>
<u-swiper :list="shopInfo.pics" height="500rpx" radius="0"></u-swiper>
</view>
<view class="sub-detail u-flex">
<view class="title">
@@ -100,7 +100,17 @@
this.$api.getShopDetail(type, id).then(res => {
const data = res.data.data
if (res.data.code == 1) {
data.pics = [this.$api.imgUrl + data.pics]
console.log('data.pics', data.pics);
var arr = [];
var arr1 = [];
let obj = {}
arr = data.pics.split(",")
arr.map(item => {
obj = this.$api.imgUrl + item
arr1.push(obj)
})
data.pics = arr1
console.log('arr', arr1);
this.shopInfo = data
}
})