Commit 8a906050 authored by zhengke's avatar zhengke

no message

parent a5399ddd
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
:margin="marginStyle" :margin="marginStyle"
></u-search> ></u-search>
</view> --> </view> -->
<div <div
style="height: calc(100vh - 0px);width: calc(100vw);overflow: hidden;margin-top: 105rpx;"> style="height: calc(100vh - 0px);width: calc(100vw);overflow: hidden;margin-top: 105rpx;">
<view class="right-box"> <view class="right-box">
<uni-indexed-list :options="list" :show-select="true" @click="bindClick"/> <uni-indexed-list :options="list" :show-select="true" @click="bindClick"/>
...@@ -43,6 +43,29 @@ ...@@ -43,6 +43,29 @@
</view> --> </view> -->
</div> </div>
<!-- <div style='height: calc(100vh - 50px);'>
<u-index-list :scrollTop="scrollTop">
<view v-for="(item, index) in indexList" :key="index">
<u-index-anchor :index="item.ti" />
<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"/>
</view>
</view>
<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>
<text>x.Name</text>
</view>
</template>
</view>
</view>
</u-index-list>
</div> -->
<auth <auth
v-if="showAuth" v-if="showAuth"
@changeuserinfo="reloadUserinfo" @changeuserinfo="reloadUserinfo"
...@@ -64,6 +87,7 @@ ...@@ -64,6 +87,7 @@
}, },
data() { data() {
return { return {
scrollTop:0,
showAuth:false, showAuth:false,
cat_style:2, cat_style:2,
isloading: true, isloading: true,
...@@ -90,6 +114,10 @@ ...@@ -90,6 +114,10 @@
Id:'' Id:''
}, },
AllList:[], AllList:[],
indexList: [{ti:"*"}, {ti:"A"}, {ti:"B"}, {ti:"C"}, {ti:"D"}, {ti:"E"}, {ti:"F"}, {ti:"G"},{ ti:"H"}, {ti:"I"}, {ti:"J"}, {ti:"K"}, {ti:"L"},
{ti:"M"}, {ti:"N"}, {ti:"O"}, {ti:"P"},{ ti:"Q"}, {ti:"R"}, {ti:"S"}, {ti:"T"}, {ti:"U"},
{ti:"V"}, {ti:"W"}, {ti:"X"}, {ti:"Y"}, {ti:"Z"}
],
list: [{ list: [{
letter: '*', letter: '*',
data: [] data: []
...@@ -185,7 +213,7 @@ ...@@ -185,7 +213,7 @@
if(value){ if(value){
let arr = this.AllList let arr = this.AllList
arr = arr.filter(item=>{ arr = arr.filter(item=>{
return item.Name.indexOf(value)!=-1 return item.Name.toLowerCase().indexOf(value.toLowerCase())!=-1
}) })
this.list.forEach(i=>{ this.list.forEach(i=>{
return i.data = [] return i.data = []
...@@ -302,6 +330,30 @@ ...@@ -302,6 +330,30 @@
// searchHandler(){ // searchHandler(){
// }, // },
onPageScroll(e) {
this.scrollTop = e.scrollTop;
},
goback(item,type){
let Name
if(type==1){
Name=item.RegionName
}else{
Name=item.Name
}
let pages = getCurrentPages(); // 当前页面
let beforePage
beforePage = pages[pages.length - 2]; // 前一个页面
// console.log( beforePage.$vm)
setTimeout(()=>{
uni.navigateBack({
delta:1,
success: function() {
beforePage.$vm.getPickcar(Name); // 执行前一个页面的方法
}
});
},100)
},
// 获取品牌列表 // 获取品牌列表
getBrand(){ getBrand(){
uni.showLoading({ uni.showLoading({
...@@ -317,8 +369,20 @@ ...@@ -317,8 +369,20 @@
res => { res => {
this.isloading = false; this.isloading = false;
if(res.resultCode==1){ if(res.resultCode==1){
this.AllList = res.data this.AllList = res.data
this.indexList.forEach(x=>{
x.children=[];
this.AllList.forEach(j=>{
let obj={}
if(x.ti==j.PinYin.substr(0,1)){
x.children.push(j)
}
if(x.ti=='*'&&j.IsHot){
x.children.push(j)
}
})
})
// 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){
...@@ -332,7 +396,9 @@ ...@@ -332,7 +396,9 @@
} }
}) })
}) })
uni.hideLoading(); setTimeout(()=>{
uni.hideLoading();
},1000)
} }
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
} }
......
...@@ -117,32 +117,34 @@ ...@@ -117,32 +117,34 @@
<view class="cutOff"/> <view class="cutOff"/>
<view v-if="!showShanchu" class="ValuationCenter-box"> <view v-if="!showShanchu" class="ValuationCenter-box">
<view class="Valuation_item"> <view class="Valuation_item">
<view class="class-title"> <view class="ReplyContent-title">
<view></view> <view class="title-text">
<text>回复</text> 回复
<view class="optional"></view> </view>
</view> </view>
</view> </view>
<!-- <view class="hint"> <view class="ValuationCenter-textarea" style="margin-top: 0;padding: 0 20rpx 20rpx 20rpx;">
</view> -->
<view class="ValuationCenter-textarea" style="margin-top: 0;">
<view class="textarea-box"> <view class="textarea-box">
<text>{{datas.ReplyContent}}</text> <text>{{datas.ReplyContent}}</text>
<view class="ReplyDate-text">{{datas.ReplyDate}}</view>
</view> </view>
</view> </view>
</view> </view>
<view class="hintTwo"> <template v-if="showShanchu">
<text>*</text>的内容为必填内容 <view class="hintTwo">
</view> <text>*</text>的内容为必填内容
<view class="footer-buttom">
<view v-if="loading" @click="setMsg">
提交
</view> </view>
<view v-else class="active"> <view class="footer-buttom">
提交 <view v-if="loading" @click="setMsg">
提交
</view>
<view v-else class="active">
提交
</view>
</view> </view>
</view> </template>
</div> </div>
<auth <auth
v-if="showAuth" v-if="showAuth"
...@@ -513,9 +515,23 @@ ...@@ -513,9 +515,23 @@
font-weight: 600; font-weight: 600;
margin-right: 15rpx; margin-right: 15rpx;
} }
.class-title text{ .ReplyContent-title{
width: 100%;
display: flex;
align-items: center;
font-size: 28rpx;
}
.title-text{
color: black; color: black;
font-size: 30rpx; font-size: 30rpx;
margin-left: 15rpx;
}
.ReplyDate-text{
display: block;
text-align: right;
color: #a8a8a8;
font-weight: 400;
font-size: 26rpx;
} }
.class-name{ .class-name{
display: flex; display: flex;
...@@ -636,4 +652,5 @@ ...@@ -636,4 +652,5 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
</style> </style>
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
@click="goDetails(item)"> @click="goDetails(item)">
<view class="listBox_t" @click="redirectToDetail()"> <view class="listBox_t" @click="redirectToDetail()">
<Text>{{item.BrandName}}</Text> <Text>{{item.BrandName}}</Text>
<Text style="color: #a8a8a8;font-weight: 0;">{{item.CreateDate}}</Text> <Text style="color: #a8a8a8;font-weight: 0;font-size: 26rpx;">{{item.CreateDate}}</Text>
</view> </view>
<view class="listBox_c"> <view class="listBox_c">
<view v-for="(i,indexs) in item.GoodsImgList" :key="indexs" <view v-for="(i,indexs) in item.GoodsImgList" :key="indexs"
...@@ -37,8 +37,11 @@ ...@@ -37,8 +37,11 @@
</view> </view>
</view> </view>
<view v-if="item.ReplyDate" class="listBox_Reply"> <view v-if="item.ReplyDate" class="listBox_Reply">
<text>回复:</text> <view class="ReplyContent">
<tetx>{{item.ReplyContent}}</tetx> <text>回复:</text>
<text>{{item.ReplyContent}}</text>
</view>
<view class="ReplyDate">{{item.ReplyDate}}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -145,6 +148,9 @@ ...@@ -145,6 +148,9 @@
}); });
}, },
onLoad: function(option) { onLoad: function(option) {
},
onShow(){
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
...@@ -153,6 +159,7 @@ ...@@ -153,6 +159,7 @@
}; };
this.showAuth = true; this.showAuth = true;
} else { } else {
this.list = []
this.init(); this.init();
} }
}, },
...@@ -180,13 +187,13 @@ ...@@ -180,13 +187,13 @@
data: this.msg data: this.msg
}, },
res => { res => {
uni.hideLoading();
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.list = this.list.concat(res.data.pageData); this.list = this.list.concat(res.data.pageData);
this.page_count = res.data.pageCount; this.page_count = res.data.pageCount;
if (this.page_count == 1) { if (this.page_count == 1) {
this.status = "nomore"; this.status = "nomore";
} }
uni.hideLoading();
} }
} }
); );
...@@ -291,13 +298,34 @@ ...@@ -291,13 +298,34 @@
margin-top: 20rpx; margin-top: 20rpx;
background: #F6F6F6; background: #F6F6F6;
display: flex; display: flex;
flex-direction: column;
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
} }
.listBox_Reply text:first-child{ .ReplyContent{
display: flex;
}
.ReplyContent text:first-child{
width: 70rpx;
flex-shrink: 0;
margin-right: 10rpx; margin-right: 10rpx;
font-weight: 500; font-weight: 500;
color: black; color: black;
}.listBox_Reply text:last-child{ }
.ReplyContent text:last-child{
width: 600rpx;
word-wrap: break-word;
color: #191919; color: #191919;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
-webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
-webkit-line-clamp: 2; /** 显示的行数 **/
overflow: hidden;
}
.ReplyDate{
text-align: right;
color: #a8a8a8;
font-weight: 400;
font-size: 26rpx;
} }
</style> </style>
\ No newline at end of file
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