Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
8a906050
Commit
8a906050
authored
Jul 26, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a5399ddd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
28 deletions
+139
-28
ClassList.vue
pages/Luxury/ClassList.vue
+70
-4
ValuationDetails.vue
pages/Luxury/ValuationDetails.vue
+35
-18
myValuation.vue
pages/Luxury/myValuation.vue
+34
-6
No files found.
pages/Luxury/ClassList.vue
View file @
8a906050
...
...
@@ -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();
}
...
...
pages/Luxury/ValuationDetails.vue
View file @
8a906050
...
...
@@ -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
:
15
rpx
;
}
.class-title
text
{
.ReplyContent-title
{
width
:
100%
;
display
:
flex
;
align-items
:
center
;
font-size
:
28
rpx
;
}
.title-text
{
color
:
black
;
font-size
:
30
rpx
;
margin-left
:
15
rpx
;
}
.ReplyDate-text
{
display
:
block
;
text-align
:
right
;
color
:
#a8a8a8
;
font-weight
:
400
;
font-size
:
26
rpx
;
}
.class-name
{
display
:
flex
;
...
...
@@ -636,4 +652,5 @@
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
\ No newline at end of file
pages/Luxury/myValuation.vue
View file @
8a906050
...
...
@@ -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
:
20
rpx
;
background
:
#F6F6F6
;
display
:
flex
;
flex-direction
:
column
;
padding
:
20
rpx
30
rpx
;
}
.listBox_Reply
text
:first-child
{
.ReplyContent
{
display
:
flex
;
}
.ReplyContent
text
:first-child
{
width
:
70
rpx
;
flex-shrink
:
0
;
margin-right
:
10
rpx
;
font-weight
:
500
;
color
:
black
;
}
.listBox_Reply
text
:last-child
{
}
.ReplyContent
text
:last-child
{
width
:
600
rpx
;
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
:
26
rpx
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment