Commit 2bb2366f authored by zhengke's avatar zhengke

no message

parent c698422a
......@@ -7,9 +7,11 @@
<!-- #ifndef APP-NVUE -->
<scroll-view :scroll-into-view="scrollViewId" class="uni-indexed-list__scroll" scroll-y>
<view class="right-img">
<!-- <image src="" /> -->
{{classObj.Image}}
<image :src="classObj.Image" style="width: 100%; height: 100%;" mode="aspectFill"/>
</view>
<view v-for="(list, idx) in lists" :key="idx" :id="'uni-indexed-list-' + idx">
<!-- #endif -->
<indexed-list-item :list="list" :loaded="loaded" :idx="idx" :showSelect="showSelect"
......@@ -97,6 +99,12 @@
},
emits: ['click'],
props: {
classObj:{
type: Object,
default () {
return {}
}
},
options: {
type: Array,
default () {
......@@ -377,7 +385,6 @@
.right-img{
width: 100%;
height: 200rpx;
background: #ffffff;
}
.right-img image{
......
......@@ -8,15 +8,15 @@
<view class="ClassList-form">
<view class="form-left">
<view v-for="(item,index) in classData" :key="index"
class="name-box" :class="{'active':classObj.name==item.name}"
class="name-box" :class="{'active':classObj.Name==item.Name}"
@click="chooseType(item)">
<view></view>
<text>{{item.name}}</text>
<text>{{item.Name}}</text>
</view>
</view>
<view class="form-right">
<view class="right-box">
<uni-indexed-list :options="list" :show-select="true" @click="bindClick" />
<uni-indexed-list :class-Obj="classObj" :options="list" :show-select="true" @click="bindClick" />
</view>
</view>
......@@ -51,14 +51,8 @@
Style:1
},
cat_id:'',
classData:[
{name:'戒指'},
{name:'项链'},
{name:'手镯'},
],
classObj:{
name:'戒指',
},
classData:[],
classObj:null,
list: [{
letter: '*',
data: [
......@@ -394,19 +388,22 @@
uni.redirectTo({ url: "/pages/index/main" });
},
getStyle(){
uni.showLoading({
title: '加载中'
});
var UserPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.request2(
{
url: '/api/AppletGoods/GetProductCategoryTreeList',
data: {
RootId:this.cat_id,
CategoryPageType:UserPageType
}
url: '/api/AppletAssess/GetCategoryDropList',
data: {}
},
res => {
this.isloading = false;
if(res.resultCode==1){
this.types = res.data;
uni.hideLoading();
this.classData = res.data;
this.classObj = this.classData[0]
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// x.IconPath =
......
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