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
0958ff95
Commit
0958ff95
authored
Jul 25, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7fc2f016
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1220 additions
and
453 deletions
+1220
-453
uni-indexed-list.vue
components/uni-indexed-list/uni-indexed-list.vue
+1
-0
manifest.json
manifest.json
+1
-1
u-searchB.vue
node_modules/uview-ui/components/u-searchB/u-searchB.vue
+292
-0
u-upload.vue
node_modules/uview-ui/components/u-upload/u-upload.vue
+9
-4
pages.json
pages.json
+16
-14
ClassList.vue
pages/Luxury/ClassList.vue
+5
-10
Valuation.vue
pages/Luxury/Valuation.vue
+293
-67
ValuationDetails.vue
pages/Luxury/ValuationDetails.vue
+562
-0
myValuation.vue
pages/Luxury/myValuation.vue
+41
-357
No files found.
components/uni-indexed-list/uni-indexed-list.vue
View file @
0958ff95
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
let
items
=
value
.
data
.
map
(
item
=>
{
let
items
=
value
.
data
.
map
(
item
=>
{
let
obj
=
{}
let
obj
=
{}
obj
[
'key'
]
=
value
.
letter
obj
[
'key'
]
=
value
.
letter
obj
[
'Id'
]
=
item
.
Id
obj
[
'img'
]
=
item
.
Logo
obj
[
'img'
]
=
item
.
Logo
obj
[
'name'
]
=
item
.
Name
obj
[
'name'
]
=
item
.
Name
obj
[
'itemIndex'
]
=
index
obj
[
'itemIndex'
]
=
index
...
...
manifest.json
View file @
0958ff95
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx
acd9f8cc3480d29e
"
,
"appid"
:
"wx
974a776429e03ee6
"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"minified"
:
false
"minified"
:
false
...
...
node_modules/uview-ui/components/u-searchB/u-searchB.vue
0 → 100644
View file @
0958ff95
<
template
>
<view
class=
"u-search"
:style=
"
{'margin':margin}">
<view
class=
"u-content"
:style=
"
{
backgroundColor: bgColor,
borderRadius: radius+'px',
border: borderStyle,
height: height + 'rpx'
}"
>
<view
class=
"u-icon-wrap"
><u-icon
class=
"u-clear-icon"
:size=
"30"
name=
"search"
color=
"#909399"
></u-icon></view>
<input
confirm-type=
"search"
@
blur=
"blur"
:value=
"value"
@
confirm=
"search"
@
input=
"inputChange"
:disabled=
"disabled"
@
focus=
"getFocus"
:focus=
"focus"
placeholder-class=
"u-placeholder-class"
:placeholder=
"placeholder"
class=
"u-input"
type=
"text"
:style=
"[
{
textAlign: inputAlign,
color:textColor
}, inputStyle]"
/>
<view
class=
"u-close-wrap"
v-if=
"keyword && clearabled && focused"
@
touchstart=
"clear"
>
<u-icon
class=
"u-clear-icon"
name=
"cross"
:size=
"16"
color=
"#fff"
@
touchstart=
"clear"
></u-icon>
</view>
</view>
<view
:style=
"[actionStyle]"
class=
"u-action"
:class=
"[showActionBtn || show ? 'u-action-active' : '']"
@
touchstart
.
stop
.
prevent=
"custom"
>
{{
actionText
}}
</view>
</view>
</
template
>
<
script
>
/**
* search 搜索框
* @description 搜索组件,集成了常见搜索框所需功能,用户可以一键引入,开箱即用。
* @tutorial https://www.uviewui.com/components/search.html
* @property {String} shape 搜索框形状,round-圆形,square-方形(默认round)
* @property {String} bg-color 搜索框背景颜色(默认#f2f2f2)
* @property {String} border-color 边框颜色,配置了颜色,才会有边框
* @property {String} placeholder 占位文字内容(默认“请输入关键字”)
* @property {Boolean} clearabled 是否启用清除控件(默认true)
* @property {Boolean} focus 是否自动获得焦点(默认false)
* @property {Boolean} show-action 是否显示右侧控件(默认true)
* @property {String} action-text 右侧控件文字(默认“搜索”)
* @property {Object} action-style 右侧控件的样式,对象形式
* @property {String} input-align 输入框内容水平对齐方式(默认left)
* @property {Boolean} disabled 是否启用输入框(默认false)
* @property {Boolean} animation 是否开启动画,见上方说明(默认false)
* @property {String} value 输入框初始值
* @property {Boolean} input-style input输入框的样式,可以定义文字颜色,大小等,对象形式
* @property {String Number} height 输入框高度,单位rpx(默认64)
* @event {Function} change 输入框内容发生变化时触发
* @event {Function} search 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发
* @event {Function} custom 用户点击右侧控件时触发
* @example <u-search placeholder="日照香炉生紫烟" v-model="keyword"></u-search>
*/
export
default
{
name
:
"u-search"
,
props
:
{
// 搜索框形状,round-圆形,square-方形
shape
:
{
type
:
String
,
default
:
'round'
},
textColor
:{
type
:
String
,
default
:
'#000'
},
margin
:{
type
:
String
,
default
:
'0'
},
// 搜索框背景色,默认值#f2f2f2
bgColor
:
{
type
:
String
,
default
:
'#FFFFFF'
},
radius
:{
type
:
Number
,
default
:
5
},
// 占位提示文字
placeholder
:
{
type
:
String
,
default
:
'请输入关键字'
},
// 是否启用清除控件
clearabled
:
{
type
:
Boolean
,
default
:
true
},
// 是否自动聚焦
focus
:
{
type
:
Boolean
,
default
:
false
},
// 是否在搜索框右侧显示取消按钮
showAction
:
{
type
:
Boolean
,
default
:
true
},
// 右边控件的样式
actionStyle
:
{
type
:
Object
,
default
()
{
return
{};
}
},
// 取消按钮文字
actionText
:
{
type
:
String
,
default
:
'搜索'
},
// 输入框内容对齐方式,可选值为 left|center|right
inputAlign
:
{
type
:
String
,
default
:
'left'
},
// 是否启用输入框
disabled
:
{
type
:
Boolean
,
default
:
false
},
// 开启showAction时,是否在input获取焦点时才显示
animation
:
{
type
:
Boolean
,
default
:
false
},
// 边框颜色,只要配置了颜色,才会有边框
borderColor
:
{
type
:
String
,
default
:
'none'
},
// 输入框的初始化内容
value
:
{
type
:
String
,
default
:
''
},
// 搜索框高度,单位rpx
height
:
{
type
:
[
Number
,
String
],
default
:
64
},
// input输入框的样式,可以定义文字颜色,大小等,对象形式
inputStyle
:
{
type
:
Object
,
default
()
{
return
{}
}
}
},
data
()
{
return
{
keyword
:
''
,
showClear
:
false
,
// 是否显示右边的清除图标
show
:
false
,
// 标记input当前状态是否处于聚焦中,如果是,才会显示右侧的清除控件
focused
:
this
.
focus
// 绑定输入框的值
// inputValue: this.value
};
},
watch
:
{
keyword
(
nVal
)
{
// 双向绑定值,让v-model绑定的值双向变化
this
.
$emit
(
'input'
,
nVal
);
// 触发change事件,事件效果和v-model双向绑定的效果一样,让用户多一个选择
this
.
$emit
(
'change'
,
nVal
);
},
value
:
{
immediate
:
true
,
handler
(
nVal
)
{
this
.
keyword
=
nVal
;
}
},
},
computed
:
{
showActionBtn
()
{
if
(
!
this
.
animation
&&
this
.
showAction
)
return
true
;
else
return
false
;
},
// 样式,根据用户传入的颜色值生成,如果不传入,默认为none
borderStyle
()
{
if
(
this
.
borderColor
)
return
`1px solid
${
this
.
borderColor
}
`
;
else
return
'none'
;
}
},
methods
:
{
// 目前HX2.6.9 v-model双向绑定无效,故监听input事件获取输入框内容的变化
inputChange
(
e
)
{
this
.
keyword
=
e
.
detail
.
value
;
},
// 清空输入
// 也可以作为用户通过this.$refs形式调用清空输入框内容
clear
()
{
this
.
keyword
=
''
;
},
// 确定搜索
search
()
{
this
.
$emit
(
'search'
,
this
.
keyword
);
// 收起键盘
uni
.
hideKeyboard
();
},
// 点击右边自定义按钮的事件
custom
()
{
this
.
$emit
(
'custom'
,
this
.
keyword
);
// 收起键盘
uni
.
hideKeyboard
();
},
// 获取焦点
getFocus
()
{
this
.
focused
=
true
;
// 开启右侧搜索按钮展开的动画效果
if
(
this
.
animation
&&
this
.
showAction
)
this
.
show
=
true
;
this
.
$emit
(
'focus'
,
this
.
keyword
);
},
// 失去焦点
blur
()
{
this
.
focused
=
false
;
this
.
show
=
false
;
this
.
$emit
(
'blur'
,
this
.
keyword
);
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.u-search
{
display
:
flex
;
align-items
:
center
;
flex
:
1
;
}
.u-content
{
display
:
flex
;
align-items
:
center
;
padding
:
0
18rpx
;
flex
:
1
;
}
.u-clear-icon
{
display
:
flex
;
align-items
:
center
;
}
.u-input
{
flex
:
1
;
font-size
:
28rpx
;
line-height
:
1
;
margin
:
0
10rpx
;
color
:
$u-tips-color
;
}
.u-close-wrap
{
width
:
34rpx
;
height
:
34rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background-color
:
rgb
(
200
,
203
,
204
);
border-radius
:
50%
;
}
.u-placeholder-class
{
color
:
$u-tips-color
;
}
.u-action
{
font-size
:
28rpx
;
color
:
$u-main-color
;
width
:
0
;
overflow
:
hidden
;
transition
:
all
0
.3s
;
white-space
:
nowrap
;
text-align
:
center
;
}
.u-action-active
{
width
:
80rpx
;
margin-left
:
10rpx
;
}
</
style
>
node_modules/uview-ui/components/u-upload/u-upload.vue
View file @
0958ff95
...
@@ -65,6 +65,10 @@
...
@@ -65,6 +65,10 @@
export
default
{
export
default
{
name
:
'u-upload'
,
name
:
'u-upload'
,
props
:
{
props
:
{
obj
:{
type
:
Object
,
default
:
{}
},
//是否显示组件自带的图片预览功能
//是否显示组件自带的图片预览功能
showUploadList
:
{
showUploadList
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -195,7 +199,8 @@
...
@@ -195,7 +199,8 @@
immediate
:
true
,
immediate
:
true
,
handler
(
val
)
{
handler
(
val
)
{
val
.
map
(
value
=>
{
val
.
map
(
value
=>
{
this
.
lists
.
push
({
url
:
value
.
url
,
error
:
false
,
progress
:
100
});
let
data
=
{
url
:
value
.
url
?
value
.
url
:
value
.
Path
,
error
:
false
,
progress
:
100
}
this
.
lists
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
data
)));
})
})
}
}
},
},
...
@@ -326,7 +331,7 @@
...
@@ -326,7 +331,7 @@
this
.
lists
[
index
].
response
=
res
.
data
;
this
.
lists
[
index
].
response
=
res
.
data
;
this
.
lists
[
index
].
progress
=
100
;
this
.
lists
[
index
].
progress
=
100
;
this
.
lists
[
index
].
error
=
false
;
this
.
lists
[
index
].
error
=
false
;
this
.
$emit
(
'on-success'
,
res
.
data
,
index
,
this
.
lists
);
this
.
$emit
(
'on-success'
,
res
.
data
,
index
,
this
.
lists
,
this
.
obj
);
}
}
},
},
fail
:
(
e
)
=>
{
fail
:
(
e
)
=>
{
...
@@ -419,10 +424,10 @@
...
@@ -419,10 +424,10 @@
width
:
200rpx
;
width
:
200rpx
;
height
:
200rpx
;
height
:
200rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin
:
10rpx
;
/* margin: 10rpx; */
background
:
rgb
(
244
,
245
,
246
);
background
:
rgb
(
244
,
245
,
246
);
position
:
relative
;
position
:
relative
;
border-radius
:
10rpx
;
/* border-radius: 10rpx; */
display
:
inline-flex
;
display
:
inline-flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
...
pages.json
View file @
0958ff95
...
@@ -84,20 +84,20 @@
...
@@ -84,20 +84,20 @@
}
}
]
]
},
},
{
//
{
"root"
:
"pages/live"
,
//赞羊、甲鹤、罗演的杂货铺
//
"root"
:
"pages/live"
,
//赞羊、甲鹤、罗演的杂货铺
"plugins"
:
{
//
"plugins"
:
{
"live-player-plugin"
:
{
//
"live-player-plugin"
:
{
"version"
:
"1.3.2"
,
//
"version"
:
"1.3.2"
,
"provider"
:
"wx2b03c6e691cd7370"
//
"provider"
:
"wx2b03c6e691cd7370"
}
//
}
},
//
},
"pages"
:
[{
//
"pages"
:
[{
"path"
:
"index"
//
"path"
:
"index"
},
{
//
},
{
"path"
:
"share"
//
"path"
:
"share"
}]
//
}]
},
//
},
{
{
"root"
:
"pages/user-center"
,
"root"
:
"pages/user-center"
,
"pages"
:
[{
"pages"
:
[{
...
@@ -880,6 +880,8 @@
...
@@ -880,6 +880,8 @@
"path"
:
"Valuation"
//我要估价
"path"
:
"Valuation"
//我要估价
},{
},{
"path"
:
"myValuation"
//等我估价
"path"
:
"myValuation"
//等我估价
},{
"path"
:
"ValuationDetails"
//估价详情
}
}
]
]
}
}
...
...
pages/Luxury/ClassList.vue
View file @
0958ff95
<
template
>
<
template
>
<div
v-if=
"!isloading"
>
<div
v-if=
"!isloading"
>
<view
class=
"ctrl-box"
>
<view
class=
"ctrl-box"
>
<u-search
action-text=
"搜索"
:focus=
"true"
:clearabled=
"true"
:show-action=
"false"
<u-searchB
action-text=
"搜索"
:focus=
"true"
:clearabled=
"true"
:show-action=
"false"
radius=
"40"
v-model=
"Keywords"
radius=
"40"
v-model=
"Keywords"
></u-searchB>
></u-search>
<!-- @search="searchHandler" @custom="searchHandler" @change="changeHandler" -->
<!-- @search="searchHandler" @custom="searchHandler" @change="changeHandler" -->
</view>
</view>
<!--
<view
class=
"search-box"
:style=
"
{ background: bg }" @click="goSearch">
<!--
<view
class=
"search-box"
:style=
"
{ background: bg }" @click="goSearch">
...
@@ -172,7 +171,6 @@
...
@@ -172,7 +171,6 @@
arr
=
arr
.
filter
(
item
=>
{
arr
=
arr
.
filter
(
item
=>
{
return
item
.
Name
.
indexOf
(
value
)
!=-
1
return
item
.
Name
.
indexOf
(
value
)
!=-
1
})
})
console
.
log
(
arr
,
'--=='
)
if
(
arr
.
length
>
0
){
if
(
arr
.
length
>
0
){
arr
.
forEach
(
item
=>
{
arr
.
forEach
(
item
=>
{
this
.
list
.
forEach
(
i
=>
{
this
.
list
.
forEach
(
i
=>
{
...
@@ -245,19 +243,16 @@
...
@@ -245,19 +243,16 @@
this
.
marginStyle
=
`
${
this
.
styleStr
.
top
??
0
}
px
$
{
this
.
styleStr
.
right
??
0
}
px
$
{
this
.
styleStr
.
bottom
??
0
}
px
$
{
this
.
styleStr
.
left
??
0
}
px
`
this
.
marginStyle
=
`
${
this
.
styleStr
.
top
??
0
}
px
$
{
this
.
styleStr
.
right
??
0
}
px
$
{
this
.
styleStr
.
bottom
??
0
}
px
$
{
this
.
styleStr
.
left
??
0
}
px
`
},
},
methods: {
methods: {
// 我要估价
bindClick(e){
bindClick(e){
console.log(e,'--')
uni.navigateTo({
uni.navigateTo({
url: '/pages/Luxury/Valuation?
id=1'
url: '/pages/Luxury/Valuation?
BrandId='+e.item.Id
});
});
},
},
chooseType(item){
chooseType(item){
this.classObj = item
this.classObj = item
this.getBrand()
this.getBrand()
},
},
goHome() {
uni.redirectTo({ url: "/pages/index/main" });
},
// changeHandler(){
// changeHandler(){
// },
// },
...
@@ -273,7 +268,7 @@
...
@@ -273,7 +268,7 @@
{
{
url: '/api/AppletAssess/GetBrandDropList',
url: '/api/AppletAssess/GetBrandDropList',
data: {
data: {
CategoryId: 1
CategoryId:
this.classObj.Id?this.classObj.Id:
1
}
}
},
},
res => {
res => {
...
...
pages/Luxury/Valuation.vue
View file @
0958ff95
<
template
>
<
template
>
<div
v-if=
"isloading"
>
<div
v-if=
"
!
isloading"
>
<div
<div
:style=
"
{ height: contentHeight + 'px' }"
:style=
"
{ height: contentHeight + 'px' }"
style="ovoerflow: hidden; overflow-y: auto;background: #F7F7F7;">
style="ovoerflow: hidden; overflow-y: auto;background: #F7F7F7;">
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<view>
*
</view>
<view>
*
</view>
<text>
分类
</text>
<text>
分类
</text>
</view>
</view>
<view
class=
"class-name"
>
<view
class=
"class-name"
@
click=
"goBack(2)"
>
<text>
首饰
</text>
<text>
{{
data
.
CategoryName
}}
</text>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
</view>
</view>
</view>
</view>
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<view>
*
</view>
<view>
*
</view>
<text>
品牌
</text>
<text>
品牌
</text>
</view>
</view>
<view
class=
"class-name"
>
<view
class=
"class-name"
@
click=
"goBack(1)"
>
<text>
尚美
</text>
<text>
{{
data
.
Name
}}
</text>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
</view>
</view>
</view>
</view>
...
@@ -36,50 +36,25 @@
...
@@ -36,50 +36,25 @@
</view>
</view>
<view
class=
"hint"
>
请按示例上传清晰的照片
</view>
<view
class=
"hint"
>
请按示例上传清晰的照片
</view>
<view
class=
"ValuationCenter-image"
>
<view
class=
"ValuationCenter-image"
>
<view
class=
"upload-comm-image"
>
<view
class=
"upload-comm-image"
v-for=
"(item,index) in data.BrandImgList"
>
<view
class=
"comm-image"
>
<view
class=
"comm-image"
style=
"height: 200rpx;"
<u-upload
:style=
"
{'background':'url('+item.Path+')no-repeat rgba(48,49,60,.1)','background-size': '100% 100%'}">
class=
"uploadImg"
:action=
"action"
:file-list=
"fileList"
max-count=
"1"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandlerA"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
</view>
</u-upload>
</view>
<text
class=
"image-name"
>
正面
</text>
</view>
<view
class=
"upload-comm-image"
>
<view
class=
"comm-image"
>
<u-upload
class=
"uploadImg"
:action=
"action"
:file-list=
"fileList"
max-count=
"1"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandlerB"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
</view>
</u-upload>
</view>
<text
class=
"image-name"
>
刻印
</text>
</view>
<view
class=
"upload-comm-image"
>
<view
class=
"comm-image"
>
<u-upload
<u-upload
class=
"uploadImg"
class=
"uploadImg"
style=
"display: flex;align-items: center;justify-content: center;width: 200rpx;background: rgba(48,49,60,.4)"
:action=
"action"
:action=
"action"
:file-list=
"fileList"
:file-list=
"fileList"
:obj=
"item"
max-count=
"1"
:custom-btn=
"true"
max-count=
"1"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandlerC"
>
@
on-success=
"uploadSuccessHandler"
@
on-remove=
"onRemove"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
</view>
</view>
</u-upload>
</u-upload>
</view>
</view>
<text
class=
"image-name"
>
细节
</text>
<text
class=
"image-name"
>
{{
item
.
Name
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -92,20 +67,40 @@
...
@@ -92,20 +67,40 @@
<view
class=
"optional"
>
(选填)
</view>
<view
class=
"optional"
>
(选填)
</view>
</view>
</view>
</view>
</view>
<view
class=
"hint"
>
上传发票、证书、配件、肩带、及磨损部位、瑕疵等 (选填)
</view>
<view
class=
"hint"
>
<view
class=
"ValuationCenter-image"
>
<!-- 上传发票、证书、配件、肩带、及磨损部位、瑕疵等 (选填) -->
{{
data
.
RemarkDesc
}}
</view>
<view
class=
"ValuationCenter-image"
style=
"padding: 50rpx 10rpx;"
>
<view
class=
"upload-comm-image"
>
<view
class=
"upload-comm-image"
>
<view
class=
"comm-image"
>
<view
class=
"comm-image"
>
<u-upload
<u-upload
style=
"width: 660rpx;flex-wrap: wrap;"
class=
"uploadImg"
:action=
"action"
:file-list=
"fileList"
max-count=
"10"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandlerB"
@
on-remove=
"onRemoveB"
>
<view
slot=
"addBtn"
class=
"slot-btn"
style=
"width: 200rpx;height: 200rpx;background:rgba(48,49,60,.1);"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#888"
style=
"width: 200rpx;height: 200rpx;line-height: 200rpx;justify-content: center;"
></u-icon>
</view>
</u-upload>
<!--
<u-upload
class=
"uploadImg"
class=
"uploadImg"
:style=
"
{'background':'rgba(48,49,60,.1)'}"
:action="action"
:action="action"
:file-list="fileList"
:file-list="fileList"
max-count=
"9"
:custom-btn=
"true"
max-count="9"
@
on-success=
"uploadSuccessHandlerD"
>
:custom-btn="true"
<view
slot=
"addBtn"
class=
"slot-btn"
>
@on-success="uploadSuccessHandlerB"
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
@on-remove="onRemoveB">
</view>
<view
slot=
"addBtn"
class=
"slot-btn"
>
</u-upload>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
</view>
</u-upload>
-->
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -119,10 +114,13 @@
...
@@ -119,10 +114,13 @@
<view
class=
"optional"
>
(选填)
</view>
<view
class=
"optional"
>
(选填)
</view>
</view>
</view>
</view>
</view>
<view
class=
"hint"
>
可简单描述一下物品的购买时间、新旧程度、购买地点等
</view>
<view
class=
"hint"
>
<!-- 可简单描述一下物品的购买时间、新旧程度、购买地点等 -->
{{
data
.
MoreDesc
}}
</view>
<view
class=
"ValuationCenter-textarea"
>
<view
class=
"ValuationCenter-textarea"
>
<view
class=
"textarea-box"
>
<view
class=
"textarea-box"
>
<textarea
placeholder=
"描述"
v-model=
"msg.
Content
"
maxlength=
"-1"
></textarea>
<textarea
placeholder=
"描述"
v-model=
"msg.
Remark
"
maxlength=
"-1"
></textarea>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -130,7 +128,10 @@
...
@@ -130,7 +128,10 @@
带
<text>
*
</text>
的内容为必填内容
带
<text>
*
</text>
的内容为必填内容
</view>
</view>
<view
class=
"footer-buttom"
>
<view
class=
"footer-buttom"
>
<view>
<view
v-if=
"loading"
@
click=
"setMsg"
>
提交
</view>
<view
v-else
class=
"active"
>
提交
提交
</view>
</view>
</view>
</view>
...
@@ -141,15 +142,26 @@
...
@@ -141,15 +142,26 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
loading
:
true
,
isloading
:
true
,
isloading
:
true
,
pageTitle
:
"我要估价"
,
pageTitle
:
"我要估价"
,
navHeight
:
0
,
navHeight
:
0
,
contentHeight
:
0
,
contentHeight
:
0
,
fileList
:[],
fileList
:[],
action
:
''
,
action
:
''
,
Obj
:{},
msg
:{
msg
:{
Content
:
''
Id
:
0
,
}
CategoryId
:
""
,
BrandId
:
""
,
GoodsImgList
:[],
MoreImgList
:[],
Remark
:
""
},
BrandId
:
''
,
data
:{},
tmplIds
:[],
showOpenSettingDialog
:
false
,
};
};
},
},
components
:
{
components
:
{
...
@@ -164,7 +176,17 @@
...
@@ -164,7 +176,17 @@
:
1
;
:
1
;
this
.
action
=
this
.
action
=
this
.
host2
+
"/api/File/UploadTencent?MallBaseId="
+
MallBaseId
;
this
.
host2
+
"/api/File/UploadTencent?MallBaseId="
+
MallBaseId
;
if
(
option
.
BrandId
){
this
.
msg
.
BrandId
=
option
.
BrandId
}
this
.
getDetails
()
this
.
showOpenSettingDialog
=
uni
.
getStorageSync
(
'showOpenSettingDialog'
)
||
false
;
// this.subscription()
},
},
onShow
()
{
},
mounted
()
{
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
currentPages
=
getCurrentPages
();
// let c = this.$uiConfig.is_bang ? 80 : 52;
// let c = this.$uiConfig.is_bang ? 80 : 52;
...
@@ -184,18 +206,214 @@
...
@@ -184,18 +206,214 @@
});
});
},
},
methods
:
{
methods
:
{
uploadSuccessHandlerA
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
goBack
(
type
){
// this.data.Photo = r.data;
uni
.
navigateBack
({
delta
:
type
});
},
},
uploadSuccessHandlerB
(
data
,
index
,
lists
)
{
// 提交
let
r
=
JSON
.
parse
(
data
);
setMsg
(){
if
(
this
.
msg
.
GoodsImgList
.
length
==
0
||
this
.
msg
.
GoodsImgList
.
length
<
this
.
data
.
BrandImgList
.
length
){
uni
.
showToast
({
title
:
"请上传商品图"
,
icon
:
'none'
});
return
;
}
this
.
loading
=
false
uni
.
showLoading
({
title
:
'提交中'
});
this
.
request2
(
{
url
:
'/api/AppletAssess/SetGoodsInfo'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
true
uni
.
hideLoading
();
uni
.
showToast
({
title
:
"提交成功"
,
icon
:
'none'
});
uni
.
navigateTo
({
url
:
'/pages/Luxury/myValuation'
});
}
uni
.
hideNavigationBarLoading
();
}
);
},
// 获取详情
getDetails
(){
uni
.
showLoading
({
title
:
'加载中'
});
this
.
request2
(
{
url
:
'/api/AppletAssess/GetBrandInfo'
,
data
:
{
BrandId
:
this
.
msg
.
BrandId
}
},
res
=>
{
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
){
uni
.
hideLoading
();
this
.
data
=
res
.
data
this
.
msg
.
CategoryId
=
this
.
data
.
CategoryId
this
.
tmplIds
=
this
.
data
.
TempIdList
}
uni
.
hideNavigationBarLoading
();
}
);
},
onRemove
(
index
)
{
this
.
msg
.
GoodsImgList
.
splice
(
index
,
1
);
},
},
uploadSuccessHandler
C
(
data
,
index
,
lists
)
{
uploadSuccessHandler
(
data
,
index
,
lists
,
obj
)
{
let
r
=
JSON
.
parse
(
data
);
let
r
=
JSON
.
parse
(
data
);
let
datas
=
{
Sort
:
obj
.
Sort
,
Name
:
obj
.
Name
,
Path
:
r
.
data
}
this
.
msg
.
GoodsImgList
.
push
(
datas
)
},
},
uploadSuccessHandlerD
(
data
,
index
,
lists
)
{
onRemoveB
(
index
)
{
this
.
msg
.
MoreImgList
.
splice
(
index
,
1
);
},
uploadSuccessHandlerB
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
let
r
=
JSON
.
parse
(
data
);
let
datas
=
{
Sort
:
''
,
Name
:
''
,
Path
:
r
.
data
}
this
.
msg
.
MoreImgList
.
push
(
datas
)
this
.
msg
.
MoreImgList
.
forEach
((
item
,
index
)
=>
{
item
.
Sort
=
index
+
1
})
},
// 订阅
subscription
(){
let
_this
=
this
// 开启订阅消息设置窗口
// 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
uni
.
getSetting
({
withSubscriptions
:
true
,
//是否获取用户订阅消息的订阅状态,默认false不返回
success
(
res
)
{
if
(
_this
.
showOpenSettingDialog
){
uni
.
requestSubscribeMessage
({
tmplIds
:
_this
.
tmplIds
,
success
(
res
)
{
if
(
res
[
_this
.
tmplIds
[
0
]]
==
"accept"
||
res
[
_this
.
tmplIds
[
1
]]
==
"accept"
||
res
[
_this
.
tmplIds
[
2
]]
==
"accept"
)
{
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
uni
.
redirectTo
({
url
:
'/publicPages/okPage/okPage?type='
+
type
})
},
fail
:
(
res
)
=>
{
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您已拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
})
}
else
{
if
(
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
0
]]
==
"reject"
||
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
1
]]
==
"reject"
||
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
2
]]
==
"reject"
)
{
//用户点击了“总是保持以上,不再询问”
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝了一些订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
else
{
// 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
uni
.
requestSubscribeMessage
({
tmplIds
:
_this
.
tmplIds
,
success
(
res
)
{
if
(
res
[
_this
.
tmplIds
[
0
]]
==
"accept"
&&
res
[
_this
.
tmplIds
[
1
]]
==
"accept"
&&
res
[
_this
.
tmplIds
[
2
]]
==
"accept"
)
{
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
uni
.
redirectTo
({
url
:
'/publicPages/okPage/okPage?type='
+
type
})
},
fail
:
(
res
)
=>
{
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您已拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
})
}
}
}
})
},
},
},
},
};
};
...
@@ -257,7 +475,7 @@
...
@@ -257,7 +475,7 @@
padding
:
50
rpx
20
rpx
;
padding
:
50
rpx
20
rpx
;
}
}
.upload-comm-image
{
.upload-comm-image
{
width
:
200
rpx
;
/* width: 200rpx; */
}
}
.image-name
{
.image-name
{
display
:
block
;
display
:
block
;
...
@@ -269,15 +487,16 @@
...
@@ -269,15 +487,16 @@
}
}
.comm-image
{
.comm-image
{
width
:
100%
;
width
:
100%
;
height
:
200
rpx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
}
.uploadImg
{
.uploadImg
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
rgba
(
48
,
49
,
60
,
.5
)
;
flex-wrap
:
wrap
;
display
:
flex
;
}
align-items
:
center
;
.u-upload
{
justify-content
:
center
;
flex-wrap
:
nowrap
!important
}
}
.class-title
view
.optional
{
.class-title
view
.optional
{
color
:
#666666
;
color
:
#666666
;
...
@@ -324,10 +543,17 @@
...
@@ -324,10 +543,17 @@
height
:
80
rpx
;
height
:
80
rpx
;
line-height
:
70
rpx
;
line-height
:
70
rpx
;
border-radius
:
10
rpx
;
border-radius
:
10
rpx
;
background
:
#3
0313C
;
background
:
#3
3343f
;
color
:
#ffffff
;
color
:
#ffffff
;
margin-bottom
:
10
rpx
;
margin-bottom
:
10
rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
}
}
.footer-buttom
view
.active
{
background
:
rgba
(
48
,
49
,
60
,
.8
);
}
.uploadImg
.slot-btn
.u-list-item
{
margin
:
0
!important
;
margin-right
:
20
rpx
;
}
</
style
>
</
style
>
\ No newline at end of file
pages/Luxury/ValuationDetails.vue
0 → 100644
View file @
0958ff95
<
template
>
<div
v-if=
"!isloading"
>
<div
:style=
"
{ height: contentHeight + 'px' }"
style="ovoerflow: hidden; overflow-y: auto;background: #F7F7F7;">
<view
class=
"ValuationCenter-box"
>
<view
class=
"Valuation_item"
>
<view
class=
"class-title"
>
<view>
*
</view>
<text>
分类
</text>
</view>
<view
class=
"class-name"
@
click=
"goBack(2)"
>
<text>
{{
datas
.
CategoryName
}}
</text>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
</view>
</view>
<view
style=
"width: 100%;height: 1px;background: #E5E5E5;"
/>
<view
class=
"Valuation_item"
>
<view
class=
"class-title"
>
<view>
*
</view>
<text>
品牌
</text>
</view>
<view
class=
"class-name"
@
click=
"goBack(1)"
>
<text>
{{
datas
.
BrandName
}}
</text>
<u-icon
class=
"name-icon"
name=
"arrow"
color=
"#B2B2B2"
size=
"40"
></u-icon>
</view>
</view>
</view>
<view
class=
"cutOff"
/>
<view
class=
"ValuationCenter-box"
>
<view
class=
"Valuation_item"
>
<view
class=
"class-title"
>
<view>
*
</view>
<text>
上传照片
</text>
</view>
</view>
<view
class=
"hint"
>
请按示例上传清晰的照片
</view>
<view
class=
"ValuationCenter-image"
>
<view
class=
"upload-comm-image"
v-for=
"(item,index) in datas.BrandImgList"
>
<view
class=
"comm-image"
style=
"height: 200rpx;"
:style=
"
{'background':'url('+item.Path+')no-repeat rgba(48,49,60,.1)','background-size': '100% 100%'}">
<u-upload
class=
"uploadImg"
style=
"display: flex;align-items: center;justify-content: center; width: 200rpx;background: rgba(48,49,60,.4)"
:action=
"action"
:file-list=
"[item]"
:obj=
"item"
max-count=
"1"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandler"
@
on-remove=
"onRemove"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#ffffff"
></u-icon>
</view>
</u-upload>
</view>
<text
class=
"image-name"
>
{{
item
.
Name
}}
</text>
</view>
</view>
</view>
<view
class=
"cutOff"
/>
<view
class=
"ValuationCenter-box"
>
<view
class=
"Valuation_item"
>
<view
class=
"class-title"
>
<view></view>
<text>
更多照片
</text>
<view
class=
"optional"
>
(选填)
</view>
</view>
</view>
<view
class=
"hint"
>
上传发票、证书、配件、肩带、及磨损部位、瑕疵等 (选填)
<!--
{{
data
.
RemarkDesc
}}
-->
</view>
<view
class=
"ValuationCenter-image"
style=
"padding: 50rpx 10rpx;"
>
<view
class=
"upload-comm-image"
>
<view
class=
"comm-image"
>
<u-upload
style=
"width: 660rpx;flex-wrap: wrap;"
class=
"uploadImg uploadImgb"
:action=
"action"
:file-list=
"datas.MoreImgList"
max-count=
"10"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandlerB"
@
on-remove=
"onRemoveB"
>
<view
slot=
"addBtn"
class=
"slot-btn"
style=
"width: 200rpx;height: 200rpx;background:rgba(48,49,60,.1);"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#888"
style=
"width: 200rpx;height: 200rpx;line-height: 200rpx;justify-content: center;"
></u-icon>
</view>
</u-upload>
</view>
</view>
</view>
</view>
<view
class=
"cutOff"
/>
<view
class=
"ValuationCenter-box"
>
<view
class=
"Valuation_item"
>
<view
class=
"class-title"
>
<view></view>
<text>
备注
</text>
<view
class=
"optional"
>
(选填)
</view>
</view>
</view>
<view
class=
"hint"
>
可简单描述一下物品的购买时间、新旧程度、购买地点等
<!--
{{
data
.
MoreDesc
}}
-->
</view>
<view
class=
"ValuationCenter-textarea"
>
<view
class=
"textarea-box"
>
<textarea
placeholder=
"描述"
v-model=
"msg.Remark"
maxlength=
"-1"
></textarea>
</view>
</view>
</view>
<view
class=
"hintTwo"
>
带
<text>
*
</text>
的内容为必填内容
</view>
<view
class=
"footer-buttom"
>
<view
v-if=
"loading"
@
click=
"setMsg"
>
提交
</view>
<view
v-else
class=
"active"
>
提交
</view>
</view>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loading
:
true
,
isloading
:
true
,
pageTitle
:
"我要估价"
,
navHeight
:
0
,
contentHeight
:
0
,
fileList
:[],
action
:
''
,
Obj
:{},
msg
:{
Id
:
0
,
CategoryId
:
""
,
BrandId
:
""
,
GoodsImgList
:[],
MoreImgList
:[],
Remark
:
""
},
BrandId
:
''
,
datas
:{},
tmplIds
:[],
showOpenSettingDialog
:
false
,
};
},
components
:
{
// search,
// tabbars,
// uniIndexedList
},
onLoad
(
option
)
{
this
.
navHeight
=
this
.
$navHeight
-
2
;
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
:
1
;
this
.
action
=
this
.
host2
+
"/api/File/UploadTencent?MallBaseId="
+
MallBaseId
;
if
(
option
.
Obj
){
this
.
datas
=
JSON
.
parse
(
option
.
Obj
)
this
.
msg
.
Id
=
this
.
datas
.
Id
this
.
msg
.
CategoryId
=
this
.
datas
.
CategoryId
this
.
msg
.
BrandId
=
this
.
datas
.
BrandId
this
.
msg
.
Remark
=
this
.
datas
.
Remark
this
.
msg
.
GoodsImgList
=
this
.
datas
.
GoodsImgList
this
.
msg
.
MoreImgList
=
this
.
datas
.
MoreImgList
this
.
isloading
=
false
this
.
getDetails
()
// this.fileList = this.datas.GoodsImgList
}
this
.
showOpenSettingDialog
=
uni
.
getStorageSync
(
'showOpenSettingDialog'
)
||
false
;
// this.subscription()
},
onShow
()
{
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
// let c = this.$uiConfig.is_bang ? 80 : 52;
let
c
=
this
.
$uiConfig
.
is_bang
?
0
:
0
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
methods
:
{
goBack
(
type
){
if
(
type
==
2
){
uni
.
navigateTo
({
url
:
'/pages/Luxury/ClassList'
});
}
},
// 提交
setMsg
(){
// this.msg.GoodsImgList = this.datas.GoodsImgList
// this.msg.MoreImgList = this.datas.MoreImgList
if
(
this
.
msg
.
GoodsImgList
.
length
==
0
||
this
.
msg
.
GoodsImgList
.
length
<
this
.
datas
.
GoodsImgList
.
length
){
uni
.
showToast
({
title
:
"请上传商品图"
,
icon
:
'none'
});
return
;
}
this
.
loading
=
false
uni
.
showLoading
({
title
:
'提交中'
});
this
.
request2
(
{
url
:
'/api/AppletAssess/SetGoodsInfo'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
true
uni
.
hideLoading
();
uni
.
showToast
({
title
:
"提交成功"
,
icon
:
'none'
});
uni
.
navigateTo
({
url
:
'/pages/Luxury/myValuation'
});
}
uni
.
hideNavigationBarLoading
();
}
);
},
onRemove
(
index
)
{
this
.
msg
.
GoodsImgList
.
splice
(
index
,
1
);
},
uploadSuccessHandler
(
data
,
index
,
lists
,
obj
)
{
let
r
=
JSON
.
parse
(
data
);
let
datas
=
{
Sort
:
obj
.
Sort
,
Name
:
obj
.
Name
,
Path
:
r
.
data
}
this
.
msg
.
GoodsImgList
.
push
(
datas
)
},
onRemoveB
(
index
)
{
this
.
msg
.
MoreImgList
.
splice
(
index
,
1
);
},
uploadSuccessHandlerB
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
let
datas
=
{
Sort
:
''
,
Name
:
''
,
Path
:
r
.
data
}
this
.
msg
.
MoreImgList
.
push
(
datas
)
this
.
msg
.
MoreImgList
.
forEach
((
item
,
index
)
=>
{
item
.
Sort
=
index
+
1
})
},
// 获取详情
getDetails
(){
uni
.
showLoading
({
title
:
'加载中'
});
this
.
request2
(
{
url
:
'/api/AppletAssess/GetBrandInfo'
,
data
:
{
BrandId
:
this
.
msg
.
BrandId
}
},
res
=>
{
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
){
uni
.
hideLoading
();
this
.
datas
.
BrandImgList
=
res
.
data
.
BrandImgList
console
.
log
(
this
.
datas
.
BrandImgList
,
'----'
)
// this.msg.CategoryId = this.data.CategoryId
// this.tmplIds = this.data.TempIdList
}
uni
.
hideNavigationBarLoading
();
}
);
},
// 订阅
subscription
(){
let
_this
=
this
// 开启订阅消息设置窗口
// 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
uni
.
getSetting
({
withSubscriptions
:
true
,
//是否获取用户订阅消息的订阅状态,默认false不返回
success
(
res
)
{
if
(
_this
.
showOpenSettingDialog
){
uni
.
requestSubscribeMessage
({
tmplIds
:
_this
.
tmplIds
,
success
(
res
)
{
if
(
res
[
_this
.
tmplIds
[
0
]]
==
"accept"
||
res
[
_this
.
tmplIds
[
1
]]
==
"accept"
||
res
[
_this
.
tmplIds
[
2
]]
==
"accept"
)
{
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
uni
.
redirectTo
({
url
:
'/publicPages/okPage/okPage?type='
+
type
})
},
fail
:
(
res
)
=>
{
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您已拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
})
}
else
{
if
(
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
0
]]
==
"reject"
||
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
1
]]
==
"reject"
||
res
.
subscriptionsSetting
[
_this
.
tmplIds
[
2
]]
==
"reject"
)
{
//用户点击了“总是保持以上,不再询问”
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝了一些订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
else
{
// 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
uni
.
requestSubscribeMessage
({
tmplIds
:
_this
.
tmplIds
,
success
(
res
)
{
if
(
res
[
_this
.
tmplIds
[
0
]]
==
"accept"
&&
res
[
_this
.
tmplIds
[
1
]]
==
"accept"
&&
res
[
_this
.
tmplIds
[
2
]]
==
"accept"
)
{
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
uni
.
redirectTo
({
url
:
'/publicPages/okPage/okPage?type='
+
type
})
},
fail
:
(
res
)
=>
{
uni
.
showModal
({
title
:
'温馨提示'
,
content
:
"检测到您没有开启订阅消息的权限,是否去设置?"
,
success
:
function
(
modal
)
{
if
(
modal
.
confirm
)
{
// 点击肯定
uni
.
openSetting
({
withSubscriptions
:
true
});
_this
.
showOpenSettingDialog
=
true
;
uni
.
setStorageSync
(
'showOpenSettingDialog'
,
true
);
}
else
{
uni
.
showToast
({
title
:
"您已拒绝订阅消息授权,无法接受通知"
,
icon
:
"none"
});
_this
.
showOpenSettingDialog
=
false
;
}
}
})
}
})
}
}
}
})
},
},
};
</
script
>
<
style
scoped
>
.cutOff
{
width
:
100%
;
height
:
15px
;
background
:
#F7F7F7
;
}
.ValuationCenter-box
{
background
:
#ffffff
;
padding
:
0
20px
;
}
.Valuation_item
{
width
:
100%
;
padding
:
30
rpx
0
;
color
:
#303133
;
font-size
:
28
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.class-title
{
display
:
flex
;
align-items
:
center
;
}
.class-title
view
{
color
:
#E12913
;
font-size
:
30
rpx
;
font-weight
:
600
;
margin-right
:
15
rpx
;
}
.class-title
text
{
color
:
black
;
font-size
:
30
rpx
;
}
.class-name
{
display
:
flex
;
align-items
:
center
;
}
.class-name
text
{
color
:
#D0A86C
;
margin-right
:
20
rpx
;
font-size
:
30
rpx
;
font-weight
:
600
;
}
.name-icon
{
position
:
relative
;
top
:
2
rpx
;
}
.hint
{
font-size
:
28
rpx
;
color
:
#666666
;
padding
:
0
20
rpx
;
}
.ValuationCenter-image
{
display
:
flex
;
/* justify-content: space-between; */
padding
:
50
rpx
20
rpx
;
}
.upload-comm-image
{
/* width: 200rpx; */
}
.image-name
{
display
:
block
;
width
:
100%
;
padding
:
30
rpx
0
0
0
;
font-size
:
30
rpx
;
text-align
:
center
;
color
:
#333333
;
}
.comm-image
{
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.uploadImg
{
width
:
100%
;
height
:
100%
;
flex-wrap
:
wrap
;
}
.u-upload
{
flex-wrap
:
nowrap
!important
}
.class-title
view
.optional
{
color
:
#666666
;
font-size
:
28
rpx
;
font-weight
:
500
;
margin-left
:
10
rpx
;
}
.ValuationCenter-textarea
{
padding
:
15
rpx
20
rpx
;
margin-top
:
30
rpx
;
}
.textarea-box
{
background
:
#F6F6F6
;
padding
:
20
rpx
;
margin-bottom
:
30
rpx
;
}
.ValuationCenter-textarea
textarea
{
width
:
100%
;
height
:
200
rpx
;
}
.hintTwo
{
background
:
#F6F6F6
;
text-align
:
center
;
padding
:
20
rpx
0
;
color
:
#D0A86C
;
font-size
:
28
rpx
;
}
.hintTwo
text
{
display
:
inline-block
;
color
:
#E12913
;
margin-left
:
10
rpx
;
margin-right
:
10
rpx
;
}
.footer-buttom
{
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
padding
:
0
20
rpx
;
}
.footer-buttom
view
{
width
:
100%
;
height
:
80
rpx
;
line-height
:
70
rpx
;
border-radius
:
10
rpx
;
background
:
#33343f
;
color
:
#ffffff
;
margin-bottom
:
10
rpx
;
text-align
:
center
;
font-size
:
32
rpx
;
}
.footer-buttom
view
.active
{
background
:
rgba
(
48
,
49
,
60
,
.8
);
}
.uploadImg
.u-list-item
{
margin
:
0
!important
;
margin-right
:
10
rpx
;
}
.uploadImgb
.u-list-item
{
margin-right
:
20
rpx
;
}
</
style
>
\ No newline at end of file
pages/Luxury/myValuation.vue
View file @
0958ff95
...
@@ -14,104 +14,37 @@
...
@@ -14,104 +14,37 @@
</view>
</view>
<view
style=
"height: calc(100vh - 50px); background: #fff;"
v-if=
"
g.length !
= 0"
>
<view
style=
"height: calc(100vh - 50px); background: #fff;"
v-if=
"
list.length =
= 0"
>
<u-empty
text=
"快去上传估价商品吧"
mode=
"order"
></u-empty>
<u-empty
text=
"快去上传估价商品吧"
mode=
"order"
></u-empty>
</view>
</view>
<view
style=
"height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding-bottom: 20px;"
>
<view
style=
"height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding-bottom: 20px;"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
class=
"orderList"
>
<view
class=
"orderList"
>
<view
class=
"listBox"
>
<view
class=
"listBox"
v-for=
"(item,index) in list"
:key=
"index"
@
click=
"goDetails(item)"
>
<view
class=
"listBox_t"
@
click=
"redirectToDetail()"
>
<view
class=
"listBox_t"
@
click=
"redirectToDetail()"
>
<Text>
订单号:65655
</Text>
<Text>
{{
item
.
BrandName
}}
</Text>
<Text
style=
"color:
gray;"
>
名称
</Text>
<Text
style=
"color:
#a8a8a8;font-weight: 0;"
>
{{
item
.
CreateDate
}}
</Text>
</view>
</view>
<view
class=
"listBox_c"
>
<view
class=
"listBox_c"
>
<template>
<view
v-for=
"(i,indexs) in item.GoodsImgList"
:key=
"indexs"
<view
class=
"box_bottom"
@
click=
"redirectToDetail()"
>
class=
"title-box"
>
<!--
<image
:src=
""
style=
"width: 80px; height: 80px; border-radius: 2px;"
mode=
"aspectFill"
/>
-->
<view
class=
"imgbox"
style=
"margin-bottom: 20rpx;"
>
<view
style=
"margin-left: 15px; flex: 1;"
>
<image
style=
"width: 200rpx;height: 200rpx;border-radius: 20rpx;"
:src=
"i.Path"
mode=
"scaleToFill"
></image>
<Text
class=
"topic_cont_text"
>
付广告费
</Text>
</view>
</view>
<text>
{{
i
.
Name
}}
</text>
<view
style=
"margin-left: 15px;"
>
</view>
<text
style=
"font-size: 10px;"
>
¥
</text>
<text
style=
"font-size: 17px;"
>
555
</text>
<text
style=
"font-size: 11px;"
>
44
</text>
</view>
</view>
</
template
>
<
template
>
<view
class=
"goodboxmore"
@
click=
"redirectToDetail()"
>
<view
class=
"good-list"
>
<view
style=
"white-space: nowrap;"
>
<!--
<image
:src=
""
mode=
"aspectFill"
class=
"item"
/>
-->
</view>
</view>
<view
class=
"infos"
@
click
.
stop=
"showGoodListHandler(index)"
>
<view>
<text
style=
"font-size: 10px;"
>
¥
</text>
<text
style=
"font-size: 17px;"
>
11
</text>
<text
style=
"font-size: 11px;"
>
22
</text>
</view>
<view
class=
"text"
>
共2件
</view>
</view>
</view>
</
template
>
<view
style=
"width: 100%;text-align: right;"
>
<Text>
应付金额:
</Text>
<text
style=
"font-size: 10px;"
>
¥
</text>
<text
style=
"font-size: 17px;"
>
11
</text>
<text
style=
"font-size: 11px;"
>
.22
</text>
</view>
<!-- TODO 样式结构修改-->
<view
class=
"handle"
>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"customStyle"
v-on:click
.
stop=
"cancel()"
>
取消订单
</u-button>
<view
class=
""
v-if=
"item.OrderEduType===0"
>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"customStyle"
v-on:click
.
stop=
"cancel()"
>
取消订单
</u-button>
</view>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"themCustomStyle"
v-on:click
.
stop=
"payment()"
>
立即支付
</u-button>
<!-- <u-button shape="circle" size="medium" :custom-style=" payBtn ?customStyle : themCustomStyle" @click.stop="buy()">再次购买</u-button>
<u-button shape="circle" size="medium" :custom-style="customStyle" @click="shouhuoHandler()">确认收货</u-button> -->
</view>
</view>
</view>
<view
v-if=
"item.ReplyDate"
class=
"listBox_Reply"
>
<text>
回复:
</text>
<tetx>
{{
item
.
ReplyContent
}}
</tetx>
</view>
</view>
</view>
</view>
</view>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
<u-loadmore
v-if=
"pageCount>1"
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
</scroll-view>
</scroll-view>
</view>
</view>
<u-popup
v-model=
"showModal"
mode=
"center"
length=
"80%"
>
<view
style=
'display: flex;flex-direction: column;align-items: center;background: #fff;'
>
<view
style=
"display: flex;align-items: center;justify-content: center;height:70px ;"
>
<Text>
是否取消订单?
</Text>
</view>
<view
style=
"display: flex;flex-direction: column;height:80px ;margin-left: 15px;width: 100%;"
v-if=
'item.OrderStatus==2'
>
<Text
style=
'margin-left: 10px;margin-top: 5px;'
>
备注
</Text>
<input
class=
"uni-input inputM"
style=
'margin-left: 10px;margin-top: 5px;'
v-model=
"Cancelmsg.Remark"
placeholder=
"输入备注"
/>
</view>
<view
style=
"display: flex;flex-direction: row;align-items: center;height: 50px;border-top: 1px solid #F5F5F5;width: 100%;"
>
<view
style=
"width: 50%;display: flex;align-items: center;justify-content: center"
@
click=
"showModal=false"
>
<Text>
取消
</Text>
</view>
<view
style=
"width: 50%;color: #a0cfff;display: flex;align-items: center;justify-content: center"
@
click=
"confirm"
>
<Text>
确定
</Text>
</view>
</view>
</view>
</u-popup>
<u-modal
v-model=
"showReviceModal"
content=
"是否确认收货?"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"submitReviceGoodHandler"
:border-radius=
"20"
></u-modal>
<good-list
:list=
"goodData"
v-if=
"showGoodList"
@
close=
"closeGoodListHandler"
></good-list>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'goback'
></auth>
<payCom
v-if=
"payBtn"
:payInfo=
"payInfo"
@
closePay=
"closePay"
></payCom>
<u-popup
v-model=
"payExit"
mode=
"center"
:mask-close-able=
"false"
>
<view
style=
"background:#fff;width:500rpx"
>
<view
style=
"padding:10px 0 0 10px"
>
提交失败
</view>
<view
style=
"text-align:center;padding-bottom:40rpx"
>
<view
style=
"margin:80rpx 0"
>
支付取消
</view>
<span
@
click=
"exitPay"
style=
"padding:10rpx 50rpx;color:#fff;background:#19be6b;border-radius: 12px;"
>
确定
</span>
</view>
</view>
</u-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -130,9 +63,9 @@
...
@@ -130,9 +63,9 @@
headID
:
1
,
headID
:
1
,
headList
:[
headList
:[
{
name
:
'等待估价'
,
Id
:
1
},
{
name
:
'等待估价'
,
Id
:
1
},
{
name
:
'等待上价'
,
Id
:
2
},
//
{name:'等待上价',Id:2},
{
name
:
'帮卖中'
,
Id
:
3
},
//
{name:'帮卖中',Id:3},
{
name
:
'已完成'
,
Id
:
4
},
//
{name:'已完成',Id:4},
],
],
pageTitle
:
"我的订单"
,
pageTitle
:
"我的订单"
,
current
:
0
,
current
:
0
,
...
@@ -163,13 +96,8 @@
...
@@ -163,13 +96,8 @@
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
OrderId
:
0
,
CategoryId
:
0
,
OrderType
:
0
,
BrandId
:
0
,
DeliveryMethod
:
0
,
StartTime
:
''
,
EndTime
:
''
,
OrderStatus
:
0
,
OrderNo
:
''
,
},
},
Cancelmsg
:
{
Cancelmsg
:
{
OrderId
:
0
,
OrderId
:
0
,
...
@@ -211,8 +139,6 @@
...
@@ -211,8 +139,6 @@
});
});
},
},
onLoad
:
function
(
option
)
{
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
this
.
current
=
option
.
status
||
-
1
;
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
if
(
!
this
.
u
)
{
this
.
u
=
{
this
.
u
=
{
...
@@ -221,91 +147,27 @@
...
@@ -221,91 +147,27 @@
};
};
this
.
showAuth
=
true
;
this
.
showAuth
=
true
;
}
else
{
}
else
{
this
.
getOrderStatus
();
this
.
init
();
}
}
},
},
methods
:
{
methods
:
{
choose
(
item
){
goDetails
(
item
){
this
.
headID
=
item
.
Id
uni
.
navigateTo
({
this
.
getOrderStatus
()
url
:
'/pages/Luxury/ValuationDetails?Obj='
+
JSON
.
stringify
(
item
)
},
});
getOrderStatus
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
g
=
[];
this
.
payInfo
.
OpenId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
;
this
.
request2
({
url
:
'/api/order/GetOrderStatusEnumList'
,
data
:
{}
},
res
=>
{
uni
.
hideNavigationBarLoading
();
if
(
res
.
resultCode
==
1
)
{
this
.
isloading
=
false
;
this
.
list
=
res
.
data
;
let
obj
=
{
Name
:
'全部'
,
Id
:
0
,
}
this
.
list
.
unshift
(
obj
)
this
.
msg
.
OrderStatus
=
this
.
headID
//this.list[this.current].Id;
this
.
init
();
}
}
);
},
redirectToDetail
(
item
)
{
if
(
item
.
VersionSource
!=
1
){
uni
.
navigateTo
({
url
:
"/pages/order/order-detail?id="
+
item
.
OrderId
,
});
}
else
{
uni
.
navigateTo
({
url
:
"/pages/order/educationO-detail?id="
+
item
.
OrderId
,
});
}
},
shouhuoHandler
(
id
)
{
this
.
showReviceModal
=
true
;
this
.
submitId
=
id
;
},
submitReviceGoodHandler
()
{
//确认收货
let
that
=
this
that
.
request2
({
url
:
'/api/AppletOrder/SetAppletOrderGoodsReceiving'
,
data
:
{
OrderId
:
that
.
submitId
}
},
(
res
)
=>
{
uni
.
showToast
({
title
:
res
.
message
})
that
.
change
(
4
);
}
);
},
change
(
index
)
{
this
.
current
=
index
;
this
.
msg
.
OrderStatus
=
this
.
list
[
index
].
Id
;
this
.
msg
.
pageIndex
=
1
;
this
.
g
=
[];
this
.
init
();
},
},
init
()
{
init
()
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
});
});
this
.
request2
({
this
.
request2
({
url
:
'/api/Applet
Order/GetAppletGoodsMyOrder
PageList'
,
url
:
'/api/Applet
Assess/GetMyGoods
PageList'
,
data
:
this
.
msg
data
:
this
.
msg
},
},
res
=>
{
res
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
g
=
this
.
g
.
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"
;
...
@@ -323,117 +185,6 @@
...
@@ -323,117 +185,6 @@
this
.
status
=
"nomore"
;
this
.
status
=
"nomore"
;
}
}
},
},
cancel
(
e
,
index
)
{
this
.
showModal
=
true
;
this
.
Cancelmsg
.
Remark
=
''
,
this
.
index
=
index
;
this
.
item
=
e
;
this
.
Cancelmsg
.
OrderId
=
e
.
OrderId
;
this
.
Cancelmsg
.
Type
=
e
.
OrderStatus
==
1
?
1
:
2
;
},
payment
(
e
)
{
this
.
payInfo
.
OrderId
=
e
.
OrderId
;
this
.
payInfo
.
GoodsName
=
e
.
DetailList
[
0
].
GoodsName
.
slice
(
0
,
10
);
this
.
payInfo
.
PaymentWay
=
e
.
PaymentWay
;
this
.
payInfo
.
total_price
=
e
.
Income
;
this
.
payBtn
=
true
},
exitPay
()
{
this
.
payExit
=
false
;
},
closePay
()
{
this
.
payBtn
=
false
;
this
.
payExit
=
true
;
},
confirm
()
{
//取消订单
let
that
=
this
if
(
that
.
Cancelmsg
.
Type
==
2
&&
that
.
Cancelmsg
.
Remark
==
''
)
{
uni
.
showToast
({
title
:
'备注不能为空'
,
icon
:
'none'
})
return
}
uni
.
requestSubscribeMessage
({
tmplIds
:
that
.
g
[
0
].
template_message_list
,
complete
(
res
)
{
that
.
request2
({
url
:
'/api/AppletOrder/CancelAppletGoodsOrderInfo'
,
data
:
that
.
Cancelmsg
},
(
res
)
=>
{
that
.
showModal
=
false
;
if
(
that
.
Cancelmsg
.
Type
==
1
)
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
that
.
g
.
splice
(
that
.
index
,
1
);
}
else
{
uni
.
showToast
({
title
:
"取消成功,请等待审核"
,
position
:
"bottom"
,
icon
:
"none"
,
duration
:
2000
,
});
that
.
msg
.
pageIndex
=
1
;
that
.
g
=
[];
that
.
init
();
}
}
);
}
})
},
closeGoodListHandler
()
{
this
.
goodData
=
[];
this
.
showGoodList
=
false
;
},
showGoodListHandler
(
i
)
{
this
.
goodData
=
this
.
g
[
i
].
DetailList
;
console
.
log
(
this
.
goodData
);
this
.
showGoodList
=
true
;
},
buy
(
y
)
{
let
ShoppingCartIdList
=
[];
let
forms
=
{};
let
good
=
{
DetailList
:
[],
Use_Integral
:
0
,
User_Coupon_Id
:
0
,
DeliveryMethod
:
0
,
AddressId
:
0
,
};
y
.
DetailList
.
forEach
((
x
)
=>
{
ShoppingCartIdList
.
push
(
x
.
Id
)
let
g
=
{
GoodsId
:
x
.
GoodsId
,
Number
:
x
.
Number
,
SpecificationSort
:
x
.
SpecificationSort
,
};
good
.
DetailList
.
push
(
g
);
});
forms
=
good
;
if
(
y
.
VersionSource
!=
1
){
uni
.
navigateTo
({
url
:
'/pages/order-submit/order-submit?formData='
+
encodeURIComponent
(
JSON
.
stringify
(
forms
))
+
'&IsFormShoppingCart=2&ShoppingCartIdList='
+
JSON
.
stringify
(
ShoppingCartIdList
)
});
}
else
{
uni
.
navigateTo
({
url
:
'/pages/order-submit/neweducation-submit?formData='
+
encodeURIComponent
(
JSON
.
stringify
(
forms
))
+
'&IsFormShoppingCart=2&ShoppingCartIdList='
+
JSON
.
stringify
(
ShoppingCartIdList
)
});
}
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
getOrderStatus
();
},
goback
()
{
uni
.
navigateBack
()
},
},
},
};
};
</
script
>
</
script
>
...
@@ -502,93 +253,26 @@
...
@@ -502,93 +253,26 @@
}
}
.orderList
.listBox
.listBox_c
{
.orderList
.listBox
.listBox_c
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.orderList
.listBox
.box_bottom
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
width
:
100%
;
margin-bottom
:
20px
;
}
.orderList
.handle
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-top
:
10
rpx
;
}
.orderList
.handle_item
{
padding
:
0
24
rpx
;
border
:
1px
solid
#c8c9cc
;
margin-left
:
20
rpx
;
height
:
50
rpx
;
border-radius
:
25
rpx
;
line-height
:
50
rpx
;
}
}
.title-box
{
.listBox_c
.goodboxmore
{
width
:
33.33%
;
margin-bottom
:
20px
;
display
:
flex
;
width
:
100%
;
align-items
:
center
;
}
.listBox_c
.goodboxmore
.good-list
{
display
:
flex
;
flex
:
1
;
overflow-x
:
auto
;
}
.listBox_c
.goodboxmore
.good-list
.item
{
width
:
70px
;
height
:
70px
;
border-radius
:
5px
;
margin-right
:
10px
;
}
.listBox_c
.goodboxmore
.infos
{
margin-left
:
15px
;
}
.listBox_c
.goodboxmore
.infos
.text
{
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
margin-top
:
5px
;
}
}
.title-box
image
{
.listBox_c
.left
{
width
:
100%
;
flex
:
1
;
height
:
100
rpx
;
color
:
#232323
;
font-size
:
16px
;
flex
:
1
;
font-family
:
"oswald"
;
}
}
.listBox_Reply
{
.listBox_c
.small
{
width
:
100%
;
font-size
:
13px
;
margin-top
:
20
rpx
;
text-align
:
right
;
}
}
.listBox_Reply
text
:first-child
{
.listBox_c
.topic_cont_text
{
margin-right
:
10
rpx
;
font-size
:
30
rpx
;
max-height
:
90
rpx
;
overflow
:
hidden
;
word-break
:
break-all
;
/* break-all(允许在单词内换行。) */
text-overflow
:
ellipsis
;
/* 超出部分省略号 */
display
:
-webkit-box
;
/** 对象作为伸缩盒子模型显示 **/
-webkit-box-orient
:
vertical
;
/** 设置或检索伸缩盒对象的子元素的排列方式 **/
-webkit-line-clamp
:
2
;
/** 显示的行数 **/
}
}
</
style
>
</
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