Commit ccc02112 authored by zhengke's avatar zhengke

no message

parent 8a906050
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:mode="imageMode"></image> :mode="imageMode"></image>
</view> </view>
<slot name="file" :file="lists"></slot> <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> <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="{ <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', width: width + 'rpx',
......
...@@ -45,20 +45,26 @@ ...@@ -45,20 +45,26 @@
</div> </div>
<!-- <div style='height: calc(100vh - 50px);'> <!-- <div style='height: calc(100vh - 50px);'>
<u-index-list :scrollTop="scrollTop"> <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" /> <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 class="list-cell" v-for="(x,y) in item.children" :key='y' @click="goback(x,2)">
<view v-if="item.ti=='*'" class="imgList"> {{x.Name}}
<view v-for="(i,indexs) in x.BrandImgList" :key="indexs"> <template v-if="item.ti=='*'">
<image :src="i.Path" mode="scaleToFill"/> <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>
</view> </template>
<template v-else> <template v-else>
<view v-for="(i,indexs) in x.BrandImgList" :key="indexs"> <view v-for="(i,indexs) in x" :key="indexs">
<view class="imgs" style="margin-right: 20rpx;"> <view v-for="(b,k) in x.BrandImgList" :key="k">
<image :src="i.Path" mode="scaleToFill"/> <view class="imgs" style="margin-right: 20rpx;">
<image :src="b.Path" mode="scaleToFill"/>
</view>
<text>b.Name</text>
</view> </view>
<text>x.Name</text>
</view> </view>
</template> </template>
</view> </view>
...@@ -382,7 +388,7 @@ ...@@ -382,7 +388,7 @@
} }
}) })
}) })
// console.log(this.indexList,'---') console.log(this.indexList,'---')
this.AllList.forEach(item=>{ this.AllList.forEach(item=>{
this.list.forEach(i=>{ this.list.forEach(i=>{
if(!item.IsHot){ if(!item.IsHot){
......
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
} else { } else {
this.getDetails() this.getDetails()
this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false; this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false;
this.subscription()
} }
}, },
...@@ -242,6 +242,7 @@ ...@@ -242,6 +242,7 @@
}, },
// 提交 // 提交
setMsg(){ setMsg(){
this.subscription()
if(this.msg.GoodsImgList.length==0||this.msg.GoodsImgList.length<this.data.BrandImgList.length){ if(this.msg.GoodsImgList.length==0||this.msg.GoodsImgList.length<this.data.BrandImgList.length){
uni.showToast({ uni.showToast({
title: "请上传商品图", title: "请上传商品图",
......
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
} else { } else {
this.getDetails() this.getDetails()
this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false; this.showOpenSettingDialog = uni.getStorageSync('showOpenSettingDialog') || false;
this.subscription()
} }
}, },
...@@ -265,6 +265,7 @@ ...@@ -265,6 +265,7 @@
}, },
// 提交 // 提交
setMsg(){ setMsg(){
this.subscription()
let arr = this.msg.GoodsImgList.map(item=>{ let arr = this.msg.GoodsImgList.map(item=>{
return item.Path 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