Commit 8a906050 authored by zhengke's avatar zhengke

no message

parent a5399ddd
......@@ -18,7 +18,7 @@
:margin="marginStyle"
></u-search>
</view> -->
<div
<div
style="height: calc(100vh - 0px);width: calc(100vw);overflow: hidden;margin-top: 105rpx;">
<view class="right-box">
<uni-indexed-list :options="list" :show-select="true" @click="bindClick"/>
......@@ -43,6 +43,29 @@
</view> -->
</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
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
......@@ -64,6 +87,7 @@
},
data() {
return {
scrollTop:0,
showAuth:false,
cat_style:2,
isloading: true,
......@@ -90,6 +114,10 @@
Id:''
},
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: [{
letter: '*',
data: []
......@@ -185,7 +213,7 @@
if(value){
let arr = this.AllList
arr = arr.filter(item=>{
return item.Name.indexOf(value)!=-1
return item.Name.toLowerCase().indexOf(value.toLowerCase())!=-1
})
this.list.forEach(i=>{
return i.data = []
......@@ -302,6 +330,30 @@
// 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(){
uni.showLoading({
......@@ -317,8 +369,20 @@
res => {
this.isloading = false;
if(res.resultCode==1){
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.list.forEach(i=>{
if(!item.IsHot){
......@@ -332,7 +396,9 @@
}
})
})
uni.hideLoading();
setTimeout(()=>{
uni.hideLoading();
},1000)
}
uni.hideNavigationBarLoading();
}
......
......@@ -117,32 +117,34 @@
<view class="cutOff"/>
<view v-if="!showShanchu" class="ValuationCenter-box">
<view class="Valuation_item">
<view class="class-title">
<view></view>
<text>回复</text>
<view class="optional"></view>
<view class="ReplyContent-title">
<view class="title-text">
回复
</view>
</view>
</view>
<!-- <view class="hint">
</view> -->
<view class="ValuationCenter-textarea" style="margin-top: 0;">
<view class="ValuationCenter-textarea" style="margin-top: 0;padding: 0 20rpx 20rpx 20rpx;">
<view class="textarea-box">
<text>{{datas.ReplyContent}}</text>
<view class="ReplyDate-text">{{datas.ReplyDate}}</view>
</view>
</view>
</view>
<view class="hintTwo">
<text>*</text>的内容为必填内容
</view>
<view class="footer-buttom">
<view v-if="loading" @click="setMsg">
提交
<template v-if="showShanchu">
<view class="hintTwo">
<text>*</text>的内容为必填内容
</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>
</template>
</div>
<auth
v-if="showAuth"
......@@ -513,9 +515,23 @@
font-weight: 600;
margin-right: 15rpx;
}
.class-title text{
.ReplyContent-title{
width: 100%;
display: flex;
align-items: center;
font-size: 28rpx;
}
.title-text{
color: black;
font-size: 30rpx;
margin-left: 15rpx;
}
.ReplyDate-text{
display: block;
text-align: right;
color: #a8a8a8;
font-weight: 400;
font-size: 26rpx;
}
.class-name{
display: flex;
......@@ -636,4 +652,5 @@
justify-content: center;
align-items: center;
}
</style>
\ No newline at end of file
......@@ -25,7 +25,7 @@
@click="goDetails(item)">
<view class="listBox_t" @click="redirectToDetail()">
<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 class="listBox_c">
<view v-for="(i,indexs) in item.GoodsImgList" :key="indexs"
......@@ -37,8 +37,11 @@
</view>
</view>
<view v-if="item.ReplyDate" class="listBox_Reply">
<text>回复:</text>
<tetx>{{item.ReplyContent}}</tetx>
<view class="ReplyContent">
<text>回复:</text>
<text>{{item.ReplyContent}}</text>
</view>
<view class="ReplyDate">{{item.ReplyDate}}</view>
</view>
</view>
</view>
......@@ -145,6 +148,9 @@
});
},
onLoad: function(option) {
},
onShow(){
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
......@@ -153,6 +159,7 @@
};
this.showAuth = true;
} else {
this.list = []
this.init();
}
},
......@@ -180,13 +187,13 @@
data: this.msg
},
res => {
uni.hideLoading();
if (res.resultCode == 1) {
this.list = this.list.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
uni.hideLoading();
}
}
);
......@@ -291,13 +298,34 @@
margin-top: 20rpx;
background: #F6F6F6;
display: flex;
flex-direction: column;
padding: 20rpx 30rpx;
}
.listBox_Reply text:first-child{
.ReplyContent{
display: flex;
}
.ReplyContent text:first-child{
width: 70rpx;
flex-shrink: 0;
margin-right: 10rpx;
font-weight: 500;
color: black;
}.listBox_Reply text:last-child{
}
.ReplyContent text:last-child{
width: 600rpx;
word-wrap: break-word;
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>
\ 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