Commit ccc02112 authored by zhengke's avatar zhengke

no message

parent 8a906050
......@@ -13,7 +13,7 @@
:mode="imageMode"></image>
</view>
<slot name="file" :file="lists"></slot>
<view style="display: inline-block;" @tap="selectFile" v-if="maxCount > lists.length">
<view style="display: inline-block;" @tap="selectFile" v-if="maxCount > lists.length&&showShanchu">
<slot name="addBtn"></slot>
<view v-if="!customBtn" class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" :style="{
width: width + 'rpx',
......
......@@ -45,20 +45,26 @@
</div>
<!-- <div style='height: calc(100vh - 50px);'>
<u-index-list :scrollTop="scrollTop">
<view v-for="(item, index) in indexList" :key="index">
<view v-for="(item,index) in indexList" :key="index">
<u-index-anchor :index="item.ti" />
{{item.children}}
<view class="list-cell" v-for="(x,y) in item.children" :key='y' @click="goback(x,2)">
<view v-if="item.ti=='*'" class="imgList">
<view v-for="(i,indexs) in x.BrandImgList" :key="indexs">
<image :src="i.Path" mode="scaleToFill"/>
{{x.Name}}
<template v-if="item.ti=='*'">
<view class="imgList" v-for="(i,indexs) in x" :key="indexs">
<view v-for="(b,k) in i.BrandImgList" :key="k">
<image :src="b.Path" mode="scaleToFill"/>
</view>
</view>
</view>
</template>
<template v-else>
<view v-for="(i,indexs) in x.BrandImgList" :key="indexs">
<view class="imgs" style="margin-right: 20rpx;">
<image :src="i.Path" mode="scaleToFill"/>
<view v-for="(i,indexs) in x" :key="indexs">
<view v-for="(b,k) in x.BrandImgList" :key="k">
<view class="imgs" style="margin-right: 20rpx;">
<image :src="b.Path" mode="scaleToFill"/>
</view>
<text>b.Name</text>
</view>
<text>x.Name</text>
</view>
</template>
</view>
......@@ -382,7 +388,7 @@
}
})
})
// console.log(this.indexList,'---')
console.log(this.indexList,'---')
this.AllList.forEach(item=>{
this.list.forEach(i=>{
if(!item.IsHot){
......
......@@ -199,7 +199,7 @@
} else {
this.getDetails()
this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false;
this.subscription()
}
},
......@@ -242,6 +242,7 @@
},
// 提交
setMsg(){
this.subscription()
if(this.msg.GoodsImgList.length==0||this.msg.GoodsImgList.length<this.data.BrandImgList.length){
uni.showToast({
title: "请上传商品图",
......
......@@ -224,7 +224,7 @@
} else {
this.getDetails()
this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false;
this.subscription()
}
},
......@@ -265,6 +265,7 @@
},
// 提交
setMsg(){
this.subscription()
let arr = this.msg.GoodsImgList.map(item=>{
return item.Path
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment