Commit 2bb2366f authored by zhengke's avatar zhengke

no message

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