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
a975d221
Commit
a975d221
authored
Jul 14, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
603e0bcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
282 additions
and
97 deletions
+282
-97
detail_new.vue
pages/kotra/brand/detail_new.vue
+38
-46
list.vue
pages/kotra/wish/list.vue
+4
-49
myWishPlan.vue
pages/kotra/wish/myWishPlan.vue
+240
-2
No files found.
pages/kotra/brand/detail_new.vue
View file @
a975d221
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</view>
</view>
</view>
</view>
<view
class=
"baseinfo"
>
<view
class=
"baseinfo"
>
<view
class=
"baseinfo-item flex "
>
<
!--
<
view
class=
"baseinfo-item flex "
>
<view
class=
"baseinfo-label"
>
<view
class=
"baseinfo-label"
>
拓店区域:
拓店区域:
</view>
</view>
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<view
class=
"baseinfo-con"
>
<view
class=
"baseinfo-con"
>
商业地产+体育运动的新型“SPORTMALL”的全新商业场景
商业地产+体育运动的新型“SPORTMALL”的全新商业场景
</view>
</view>
</view>
</view>
-->
<view
class=
"baseinfo-item flex "
>
<view
class=
"baseinfo-item flex "
>
<view
class=
"baseinfo-label"
>
<view
class=
"baseinfo-label"
>
客群定位:
客群定位:
...
@@ -113,65 +113,57 @@
...
@@ -113,65 +113,57 @@
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/kotra-wyxq.png"
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/kotra-wyxq.png"
mode=
"widthFix"
></image>
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"Listbox"
>
<view
class=
"Listbox"
>
<!-- 上下水 -->
<view
class=
"Listbox-item"
>
<view
id=
"kiakou"
class=
"Listbox-item"
@
click=
"showTips('kiakou',details.ShopSize,details.IsShopSize)"
>
<image
:src=
"EquityList[8].ImagePath"
v-if=
"details.IsShopSize==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[8].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
:style=
"
{color:details.IsShopSize==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
8
].
Title
}}
</text>
</view>
<view
class=
"Listbox-item"
>
<image
:src=
"EquityList[0].ImagePath"
v-if=
"details.Plumbing==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[0].ImagePath"
v-if=
"details.Plumbing==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[0].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[0].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.Plumbing==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
0
].
Title
}}
</text>
:style=
"
{color:details.Plumbing==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
0
].
Title
}}
</text>
</view>
<view
class=
"Listbox-item"
>
<image
:src=
"EquityList[7].ImagePath"
v-if=
"details.Caliber==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[7].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
:style=
"
{color:details.Caliber==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
7
].
Title
}}
</text>
</view>
</view>
<!-- 排污 -->
<view
class=
"Listbox-item"
>
<view
class=
"Listbox-item"
>
<image
:src=
"EquityList[1].ImagePath"
v-if=
"details.Sewage==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[1].ImagePath"
v-if=
"details.Sewage==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[1].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[1].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.Sewage==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
1
].
Title
}}
</text>
:style=
"
{color:details.Sewage==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
1
].
Title
}}
</text>
</view>
</view>
<!-- 燃气 -->
<!-- 燃气 -->
<view
class=
"Listbox-item"
id=
"ranqi"
@
click=
"showTips('ranqi',details.RanQiBZ,details.RanQi)"
>
<view
class=
"Listbox-item"
id=
"ranqi"
@
click=
"showTips('ranqi',details.RanQiBZ,details.RanQi)"
>
<image
:src=
"EquityList[2].ImagePath"
v-if=
"details.RanQi==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[2].ImagePath"
v-if=
"details.RanQi==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[2].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[2].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.RanQi==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
2
].
Title
}}
</text>
:style=
"
{color:details.RanQi==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
2
].
Title
}}
</text>
</view>
</view>
<!-- 电量负荷 -->
<view
class=
"Listbox-item"
id=
"dianliang"
@
click=
"showTips('dianliang',details.DianLiang,details.IsDianLiang)"
>
<view
class=
"Listbox-item"
id=
"dianliang"
<image
:src=
"EquityList[3].ImagePath"
v-if=
"details.IsDianLiang==1"
mode=
"widthFix"
></image>
@
click=
"showTips('dianliang',details.DianLiang,details.IsDianLiang)"
>
<image
:src=
"EquityList[3].ImagePath"
v-if=
"details.IsDianLiang==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[3].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[3].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.IsDianLiang==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
3
].
Title
}}
</text>
:style=
"
{color:details.IsDianLiang==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
3
].
Title
}}
</text>
</view>
</view>
<!-- 新风 -->
<view
class=
"Listbox-item"
>
<view
class=
"Listbox-item"
id=
"paiyan"
@
click=
"showTips('paiyan',details.PaiYanBZ,details.PaiYan)"
>
<image
:src=
"EquityList[4].ImagePath"
v-if=
"details.XinFeng==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[5].ImagePath"
v-if=
"details.PaiYan==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[4].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
:style=
"
{color:details.XinFeng==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
4
].
Title
}}
</text>
</view>
<!-- 排烟量 -->
<view
class=
"Listbox-item"
id=
"paiyan"
@
click=
"showTips('paiyan',details.PaiYanBZ,details.PaiYan)"
>
<image
:src=
"EquityList[5].ImagePath"
v-if=
"details.PaiYan==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[5].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[5].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.PaiYan==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
5
].
Title
}}
</text>
:style=
"
{color:details.PaiYan==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
5
].
Title
}}
</text>
</view>
</view>
<!-- 空调 -->
<view
class=
"Listbox-item"
>
<view
class=
"Listbox-item"
>
<image
:src=
"EquityList[6].ImagePath"
v-if=
"details.KongTiao==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[6].ImagePath"
v-if=
"details.KongTiao==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[6].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[6].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
<text
class=
"list-item-text"
:style=
"
{color:details.KongTiao==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
6
].
Title
}}
</text>
:style=
"
{color:details.KongTiao==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
6
].
Title
}}
</text>
</view>
</view>
<!-- 管径 -->
<view
class=
"Listbox-item"
>
<view
class=
"Listbox-item"
>
<image
:src=
"EquityList[4].ImagePath"
v-if=
"details.XinFeng==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[7].ImagePath"
v-if=
"details.Caliber==1"
mode=
"widthFix"
></image>
<image
:src=
"EquityList[4].Image_n"
v-else
mode=
"widthFix"
></image>
<image
:src=
"EquityList[7].Image_n"
v-else
mode=
"widthFix"
></image>
<text
class=
"list-item-text"
:style=
"
{color:details.XinFeng==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
4
].
Title
}}
</text>
<text
class=
"list-item-text"
:style=
"
{color:details.Caliber==1?'#424242':'#D6D6D6'}">
{{
EquityList
[
7
].
Title
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/kotra/wish/list.vue
View file @
a975d221
...
@@ -113,53 +113,8 @@
...
@@ -113,53 +113,8 @@
contentHeight
:
0
contentHeight
:
0
};
};
},
},
onShareTimeline
()
{
//朋友圈
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
;
if
(
uid
==
0
)
{
uid
=
uni
.
getStorageSync
(
"pid"
)
?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
;
}
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
)
{
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
let
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
return
{
title
:
'载体列表'
,
query
:
"user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
Up
,
imageUrl
:
""
,
};
},
onShareAppMessage
(
res
)
{
//朋友
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
;
if
(
uid
==
0
)
{
uid
=
uni
.
getStorageSync
(
"pid"
)
?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
;
}
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
)
{
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
let
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
return
{
title
:
'载体列表'
,
path
:
"/pages/kotra/carrier/list?user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
Up
,
imageUrl
:
""
,
};
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
&&
options
.
id
){
if
(
options
&&
options
.
id
){
this
.
msg
.
ProjectType
=
options
.
id
this
.
msg
.
ProjectType
=
options
.
id
...
@@ -252,7 +207,7 @@
...
@@ -252,7 +207,7 @@
},
},
goDetail
(){
goDetail
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/kotra/wish/
richText
'
url
:
'/pages/kotra/wish/
detail
'
})
})
}
}
}
}
...
@@ -270,7 +225,7 @@
...
@@ -270,7 +225,7 @@
.list-box
{
.list-box
{
height
:
100vh
;
height
:
100vh
;
margin
:
0rpx
;
margin
:
0rpx
;
padding-bottom
:
90rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
}
}
...
...
pages/kotra/wish/myWishPlan.vue
View file @
a975d221
<
style
scoped
lang=
"scss"
>
.mywishplan
{
width
:
100%
;
height
:
100vh
;
background
:
#FFFFFF
;
padding
:
15px
;
.box
{
background
:
#FFFFFF
;
box-shadow
:
0px
5px
25px
0px
rgba
(
218
,
220
,
230
,
0
.85
);
border-radius
:
20px
;
margin-bottom
:
20px
;
// height: 100%;
.box_center
{
padding
:
0
15px
20px
;
.box_text
{
width
:
100%
;
height
:
55px
;
margin-top
:
15px
;
border-bottom
:
1px
solid
#DADCE6
;
display
:
flex
;
align-items
:
center
;
.box_text_l
{
font-size
:
14px
;
font-weight
:
500
;
color
:
#111111
;
width
:
120rpx
;
margin-right
:
15px
;
}
.box_text_r
{
width
:
1px
;
flex
:
1
;
}
}
.boxxq
{
width
:
100%
;
min-height
:
170px
;
border-radius
:
10px
;
border
:
1px
solid
#E9E9E9
;
box-shadow
:
0px
1px
0px
0px
rgba
(
116
,
116
,
116
,
0
.16
);
background
:
rgba
(
209
,
210
,
212
,
0
);
}
.box-tj
{
width
:
100%
;
height
:
50px
;
border-radius
:
10px
;
background
:
#1F1F1F
;
font-size
:
15px
;
color
:
#FFF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-top
:
20px
;
}
}
}
}
</
style
>
<
template
>
<
template
>
<view
class=
"mywishplan"
>
<view
class=
"box"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/wishaddtop.png"
mode=
"widthFix"
style=
"width: 100%;height: auto;"
></image>
<view
class=
"box_center"
>
<view
class=
"box_text"
>
<view
class=
"box_text_l"
>
品牌信息
</view>
<view
class=
"box_text_r"
>
<input
type=
"text"
v-model=
"addMsg.pinpai"
:min=
'0'
placeholder=
"输入品牌信息"
style=
"font-size: 12px;text-align: right;"
>
</view>
</view>
<view
class=
"box_text"
>
<view
class=
"box_text_l"
>
对标载体
</view>
<view
class=
"box_text_r"
>
<input
type=
"text"
v-model=
"addMsg.duibiaozhaiti"
:min=
'0'
placeholder=
"输入对标载体名称"
style=
"font-size: 12px;text-align: right;"
>
</view>
</view>
<view
class=
"box_text"
>
<view
class=
"box_text_l"
>
发展区域
</view>
<view
class=
"box_text_r"
>
<input
type=
"text"
v-model=
"addMsg.fazhannquyu"
:min=
'0'
placeholder=
"输入区域"
style=
"font-size: 12px;text-align: right;"
>
</view>
</view>
<view
class=
"box_text"
style=
"border-bottom: none;"
>
<view
class=
"box_text_l"
>
心愿详细
</view>
</view>
<view
@
click=
"gorichText"
>
<view
class=
"boxxq"
v-if=
"addMsg.Content==''"
style=
"display: flex;flex-direction: column;align-items: center;justify-content: center;"
>
<image
mode=
"aspectFill"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/wish-edit.png"
style=
"width: 50px;height: 50px;"
></image>
<view
style=
"font-size: 14px;color: #1F1F1F;margin-top: 10px;"
>
点击进入编辑>>
</view>
</view>
<view
class=
"boxxq"
v-if=
"addMsg.Content!=''"
>
<view
v-html=
'addMsg.Content'
style=
"width: 100%;overflow: hidden;"
></view>
<view
style=
"font-size: 14px;color: #1F1F1F;margin: 10px 0;width: 100%;text-align: center;"
>
继续编辑>>
</view>
</view>
</view>
<view
class=
"box_text"
style=
"border-bottom: none;"
>
<view
class=
"box_text_l"
>
我的名片
</view>
</view>
<view
@
click=
"uploadcard"
>
<view
class=
"boxxq"
v-if=
"addMsg.mymp==''"
style=
"display: flex;flex-direction: column;align-items: center;justify-content: center;"
>
<image
mode=
"aspectFill"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/wish-card.png"
style=
"width: 60px;height: 46px;"
></image>
<view
style=
"font-size: 14px;color: #1F1F1F;margin-top: 10px;"
>
添加名片>>
</view>
</view>
<view
class=
"boxxq"
v-if=
"addMsg.mymp!=''"
style=
"overflow: hidden;"
>
<image
mode=
"aspectFill"
:src=
"addMsg.mymp"
style=
"width: 100%px;height: 170px;border-radius: 10px;"
></image>
</view>
</view>
<view
class=
"box-tj"
@
click=
"submit"
>
提交
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
data
(){
return
{
mainColor
:
''
,
addMsg
:{
pinpai
:
''
,
duibiaozhaiti
:
''
,
fazhannquyu
:
""
,
Content
:
''
,
mymp
:
''
,
},
action
:
this
.
host2
+
"/api/File/UploadTencent"
,
}
},
onLoad
(
options
){
},
created
(){
uni
.
setNavigationBarTitle
({
title
:
'我的心愿计划'
,
});
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
:
1
;
this
.
action
=
this
.
host2
+
'/api/File/UploadTencent?MallBaseId='
+
MallBaseId
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
methods
:{
submit
(){
//提交
if
(
this
.
addMsg
.
pinpai
==
''
){
uni
.
showToast
({
title
:
'请输入品牌信息'
,
icon
:
'none'
})
return
}
if
(
this
.
addMsg
.
duibiaozhaiti
==
''
){
uni
.
showToast
({
title
:
'请输入对标载体'
,
icon
:
'none'
})
return
}
if
(
this
.
addMsg
.
fazhannquyu
==
''
){
uni
.
showToast
({
title
:
'请输入发展区域'
,
icon
:
'none'
})
return
}
if
(
this
.
addMsg
.
Content
==
''
){
uni
.
showToast
({
title
:
'请输入心愿详细'
,
icon
:
'none'
})
return
}
if
(
this
.
addMsg
.
mymp
==
''
){
uni
.
showToast
({
title
:
'请上传我的名片'
,
icon
:
'none'
})
return
}
uni
.
showLoading
({
title
:
'提交中...'
,
icon
:
'none'
})
//接口
setTimeout
(()
=>
{
uni
.
hideLoading
()
},
4000
)
},
gorichText
(){
let
data
=
this
.
addMsg
.
Content
data
=
encodeURIComponent
(
data
)
//加密
uni
.
navigateTo
({
url
:
'/pages/kotra/wish/richText?Content='
+
data
})
},
Children
(
e
){
let
regex
=
new
RegExp
(
'<img'
,
'gi'
);
let
richtext
=
e
richtext
=
richtext
.
replace
(
regex
,
`<img width="100%"`
);
//图片超出的处理
this
.
addMsg
.
Content
=
richtext
},
uploadcard
(){
uni
.
chooseImage
({
count
:
1
,
//默认9
sizeType
:
[
'original'
,
'compressed'
],
//可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'album'
,
'camera'
],
//从相册选择
success
:
async
(
res
)
=>
{
var
tempFilePaths
=
res
.
tempFilePaths
;
uni
.
showLoading
({
title
:
'正在上传中...'
})
for
(
let
temp
of
tempFilePaths
)
{
// 图片上传服务器
await
uni
.
uploadFile
({
url
:
this
.
action
,
filePath
:
temp
,
name
:
'file'
,
formData
:
{
user
:
'test'
},
success
:
res
=>
{
let
data
=
JSON
.
parse
(
res
.
data
)
// 上传完成后处理
this
.
addMsg
.
mymp
=
data
.
data
uni
.
hideLoading
()
},
});
}
}
});
}
}
}
</
script
>
</
script
>
<
style
>
</
style
>
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