Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
89f7ed66
Commit
89f7ed66
authored
Mar 17, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心
parent
26718e28
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
357 additions
and
187 deletions
+357
-187
vip.vue
components/vip/vip.vue
+1
-1
vipUser.vue
components/vip/vipUser.vue
+117
-0
orders.vue
pages/AggregateOrders/components/orders.vue
+1
-1
airTicketOrderDetail.vue
pages/airTicket/airTicketOrderDetail.vue
+1
-1
jz_SureOrder.vue
pages/jiuzhai/jz_SureOrder.vue
+1
-1
userHeader.vue
pages/user-center/components/userHeader.vue
+46
-73
vipUserHeader.vue
pages/user-center/components/vipUserHeader.vue
+22
-42
userVip-center.vue
pages/user-center/userVip-center.vue
+167
-66
visa_SureOrder.vue
pages/visa/visa_SureOrder.vue
+1
-2
No files found.
components/vip/vip.vue
View file @
89f7ed66
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
text-align
:
center
;
text-align
:
center
;
font-family
:
dinAli
;
font-family
:
dinAli
;
text-align
:
center
;
text-align
:
center
;
line-height
:
3
0
rpx
;
line-height
:
3
4
rpx
;
font-weight
:
bolder
;
font-weight
:
bolder
;
}
}
.vip-box-unactive
.step-item.active
{
.vip-box-unactive
.step-item.active
{
...
...
components/vip/vipUser.vue
0 → 100644
View file @
89f7ed66
<
template
>
<view
class=
"vip-box"
>
<template
v-if=
"vipInfo && vipInfo.vipOrderCount
<vipInfo
.
vipCondition
"
>
<view
class=
"vip-box-unactive row"
>
<view
class=
"col"
>
<view
class=
"step-box row items-center"
>
<view
class=
"line"
:style=
"
{width:`${(vipInfo.vipOrderCount/vipInfo.vipCondition)*100}%`}">
</view>
<view
class=
"step-item"
:class=
"
{'active':x
<vipInfo
.
vipOrderCount
}"
v-for=
"x in vipInfo.vipCondition"
>
{{
x
+
1
}}
</view>
</view>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png"
class=
"vip-logo"
></image>
</view>
</
template
>
</view>
</template>
<
script
>
export
default
{
name
:
"vip"
,
props
:[
'statistics'
],
data
()
{
return
{
vipInfo
:
null
,
};
},
watch
:{
statistics
:{
handler
(
newVal
,
oldVal
){
this
.
vipInfo
=
newVal
},
deep
:
true
,
}
},
mounted
()
{
},
methods
:{
}
}
</
script
>
<
style
scoped
>
@import
url('../../asset/css/flex.css')
;
@font-face
{
font-family
:
"dinAli"
;
src
:
url("//at.alicdn.com/wf/webfont/MQHUV6e56ce5/BFOHNMvFqM80.woff2")
format
(
"woff2"
);
font-display
:
swap
;
}
.vip-box
{
padding-top
:
28
rpx
;
}
.vip-box-unactive
{
padding
:
0
rpx
;
background
:
linear-gradient
(
90deg
,
#3F423F
,
#313131
);
position
:
relative
;
border-radius
:
18
rpx
;
}
.vip-box-unactive
.vip-logo
{
right
:
34
rpx
;
width
:
87
rpx
;
height
:
99
rpx
;
top
:
-37
rpx
;
position
:
absolute
;
z-index
:
4
;
}
.vip-box-unactive
.remark
{
font-size
:
24
rpx
;
color
:
#E2C27A
;
line-height
:
1
;
margin-bottom
:
16
rpx
;
}
.vip-box-unactive
.step-box
{
position
:
relative
;
justify-content
:
space-between
;
}
.vip-box-unactive
.step-box
::after
,
.vip-box-unactive
.step-box
.line
{
height
:
10
rpx
;
background
:
#C99E59
;
border-radius
:
5
rpx
;
left
:
0
;
top
:
10
rpx
;
position
:
absolute
;
z-index
:
2
;
}
.vip-box-unactive
.step-box
::after
{
z-index
:
1
;
background
:
#2E2E2E
;
border-radius
:
0
;
right
:
0
;
content
:
' '
;
display
:
block
;
}
.vip-box-unactive
.step-item
{
/* font-weight: 400; */
font-size
:
24
rpx
;
color
:
#494949
;
width
:
30
rpx
;
height
:
30
rpx
;
background
:
#2E2E2E
;
border-radius
:
50%
;
position
:
relative
;
z-index
:
3
;
text-align
:
center
;
font-family
:
dinAli
;
text-align
:
center
;
line-height
:
34
rpx
;
font-weight
:
bolder
;
}
.vip-box-unactive
.step-item.active
{
background
:
linear-gradient
(
270deg
,
#C99E59
,
#FFFFB3
);
color
:
#583F2C
;
}
</
style
>
\ No newline at end of file
pages/AggregateOrders/components/orders.vue
View file @
89f7ed66
...
@@ -479,6 +479,6 @@ export default {
...
@@ -479,6 +479,6 @@ export default {
background
:
#CBCBCB
;
background
:
#CBCBCB
;
}
}
.visaList.active
.visaListL
image
{
.visaList.active
.visaListL
image
{
filter
:
grayscale
(
100%
);
//
filter: grayscale(100%);
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/airTicket/airTicketOrderDetail.vue
View file @
89f7ed66
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
</view>
</view>
</template>
</template>
<cancelProgress
v-if=
"order.OrderStatus==
2||order.OrderStatus==
5"
:datas=
"order"
type=
"1"
></cancelProgress>
<cancelProgress
v-if=
"order.OrderStatus==5"
:datas=
"order"
type=
"1"
></cancelProgress>
<view
style=
"padding-bottom: 20rpx;"
></view>
<view
style=
"padding-bottom: 20rpx;"
></view>
</scroll-view>
</scroll-view>
<view
class=
"botton-box"
:style=
"{paddingBottom:`${bottomSafeHeight}rpx`}"
>
<view
class=
"botton-box"
:style=
"{paddingBottom:`${bottomSafeHeight}rpx`}"
>
...
...
pages/jiuzhai/jz_SureOrder.vue
View file @
89f7ed66
...
@@ -445,7 +445,7 @@
...
@@ -445,7 +445,7 @@
</view>
</view>
</view>
</view>
<view
class=
"empty-block"
></view>
<view
class=
"empty-block"
></view>
<cancelProgress
:datas=
"orderData"
v-if=
"orderData.OrderStatus==2||orderData.OrderStatus==5
"
></cancelProgress>
<cancelProgress
v-if=
"orderData.OrderStatus==5"
:datas=
"orderData
"
></cancelProgress>
<view
class=
"empty-block"
></view>
<view
class=
"empty-block"
></view>
<view
style=
"padding: 50rpx 40rpx"
>
<view
style=
"padding: 50rpx 40rpx"
>
<view
class=
"big-title"
>
<view
class=
"big-title"
>
...
...
pages/user-center/components/userHeader.vue
View file @
89f7ed66
<
template
>
<
template
>
<view
class=
"userHeaderBox"
>
<view
class=
"userHeaderBox"
v-if=
"statistics"
>
<view
class=
"titlenav"
:style=
"
{ paddingTop: nav }">
{{
pageTitle
}}
</view>
<view
class=
"titlenav"
:style=
"
{ paddingTop: nav }">
{{
pageTitle
}}
</view>
<view
class=
"userHeadPic row"
>
<view
class=
"userHeadPic row"
>
<view
class=
"userHeadPicL"
>
<view
class=
"userHeadPicL"
>
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</view>
</view>
<view
class=
"col column"
>
<view
class=
"col column"
>
<text
v-if=
"b2b_user_info&&b2b_user_info.name"
<text
v-if=
"b2b_user_info&&b2b_user_info.name"
class=
"userHeadPicR_title"
@
click=
"
navigatorToProfile
"
>
class=
"userHeadPicR_title"
@
click=
"
goUrl('/pages/user-center/user-profile')
"
>
{{
b2b_user_info
.
name
}}
{{
b2b_user_info
.
name
}}
</text>
</text>
<text
v-else-if=
"mall_UserInfo&&mall_UserInfo.Name"
<text
v-else-if=
"mall_UserInfo&&mall_UserInfo.Name"
...
@@ -18,35 +18,38 @@
...
@@ -18,35 +18,38 @@
<text
v-else
class=
"userHeadPicR_title"
@
click=
"login(user_info)"
>
<text
v-else
class=
"userHeadPicR_title"
@
click=
"login(user_info)"
>
立即登录
立即登录
</text>
</text>
<text
class=
"userHeadPicR_text"
>
销售:
{{
b2b_user_info
.
salesBaseInfo
.
emName
}}
等3人
</text>
<text
class=
"userHeadPicR_text"
v-if=
"statistics.saleList&&statistics.saleList.length>0"
>
<!-- #ifdef MP-DI -->
销售:
{{
b2b_user_info
.
salesBaseInfo
.
emName
}}
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:
{{
statistics
.
saleList
[
0
].
saleName
}}
<template
v-if=
"statistics.saleList.length>0"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
</text>
</view>
</view>
</view>
</view>
<view
class=
"userHeadPasBox"
>
<view
class=
"userHeadPasBox"
>
<view
class=
"userHeadPas column"
>
<view
class=
"userHeadPas column"
>
<view
class=
"userHeadPasTop"
>
<view
class=
"userHeadPasTop"
>
<view
class=
"userHeadPasT_Num row-sb-n"
>
<view
class=
"userHeadPasT_Num row-sb-n"
v-if=
"statistics.balance>=0"
>
<!-- #ifdef M
G
-AG-->
<!-- #ifdef M
P
-AG-->
<view
class=
"column"
>
<view
class=
"column"
>
<text>
{{
formatNumberWithUnit
(
user_info
.
balance
)
}}
</text>
<text>
{{formatNumberWithUnit(
statistics
.balance)}}
</text>
<text
class=
"userHeadPasTTeT"
>
<text
class=
"userHeadPasTTeT"
>
幸福存折
幸福存折
</text>
</text>
</view>
</view>
<!-- #endif -->
<!-- #endif -->
<view
class=
"column"
>
<view
class=
"column"
>
<text>
{{
user_info
.
integral
}}
</text>
<text>
{{
statistics
.integral }}
</text>
<text
class=
"userHeadPasTTeT"
>
<text
class=
"userHeadPasTTeT"
>
我的积分
我的积分
</text>
</text>
</view>
</view>
<view
class=
"column"
>
<view
class=
"column"
>
<text>
<text>
{{
formatNumberWithUnit
(
user_info
.
totalSavings
)
}}
{{formatNumberWithUnit(
statistics
.totalSavings)}}
</text>
</text>
<text
class=
"userHeadPasTTeT"
>
累计已省
</text>
<text
class=
"userHeadPasTTeT"
>
累计已省
</text>
</view>
</view>
<view
class=
"column"
>
<view
class=
"column"
@
click=
"goUrl('/pages/coupon/index/index')"
>
<text>
{{
user_info
.
couponNum
}}
</text>
<text>
{{
statistics
.couponNum }}
</text>
<text
class=
"userHeadPasTTeT"
>
优惠券
</text>
<text
class=
"userHeadPasTTeT"
>
优惠券
</text>
</view>
</view>
</view>
</view>
...
@@ -54,33 +57,11 @@
...
@@ -54,33 +57,11 @@
<view
class=
"userHeadPasButtom column"
>
<view
class=
"userHeadPasButtom column"
>
<view
class=
"userHeadPasButText"
>
<view
class=
"userHeadPasButText"
>
再完成
再完成
<text
class=
"userHeadPasButTNum"
>
4
单
</text>
即可成为
<text
class=
"userHeadPasButTNum"
>
{{statistics
&&
statistics.vipCondition?(statistics.vipCondition-statistics.vipOrderCount):''}}
单
</text>
即可成为
<text
class=
"userHeadPasButTVip"
>
VIP
</text>
享永久折扣!
<text
class=
"userHeadPasButTVip"
>
VIP
</text>
享永久折扣!
<img
class=
"userHeadPasButImg"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528690203686.png"
/>
<img
class=
"userHeadPasButImg"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528690203686.png"
/>
</view>
</view>
<view
class=
"jz_LineDetaVipPr"
>
<vipUser
:statistics=
"statistics"
></vipUser>
<view
class=
"jz_LineDetaVPB"
>
<view
class=
"jz_LineDetaVPBBox"
v-for=
"(item,index) in progress"
:key=
"index"
>
<view
class=
"jz_LineDetaVPBLine"
:style=
"
{'opacity':index==0?'0':1}">
</view>
<view
class=
"jz_LineDetaVPBN"
>
{{
item
.
text
}}
</view>
<view
class=
"jz_LineDetaVPBBoxI"
v-if=
"item.img"
><img
:src=
"item.img"
/></view>
<view
class=
"jz_LineDetaVPBLine"
v-else
></view>
</view>
</view>
<view
class=
"jz_LineDetaVPB jz_LineDetaVPBY"
>
<view
class=
"jz_LineDetaVPBBox"
v-for=
"(item,index) in progress"
:key=
"index"
:class=
"[item.colorStyle]"
>
<view
class=
"jz_LineDetaVPBLine"
:style=
"
{'opacity':index==0?'0':1}">
</view>
<view
class=
"jz_LineDetaVPBN"
>
{{
item
.
text
}}
</view>
<view
class=
"jz_LineDetaVPBBoxI"
v-if=
"item.img"
></view>
<view
class=
"jz_LineDetaVPBLine"
:class=
"[item.radiusR]"
v-else
></view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -88,50 +69,29 @@
...
@@ -88,50 +69,29 @@
</template>
</template>
<
script
>
<
script
>
import
vipUser
from
"@/components/vip/vipUser.vue"
;
export
default
{
export
default
{
props
:[
'user_info'
,
'b2b_user_info'
],
props
:[
'user_info'
,
'statistics'
,
'b2b_user_info'
],
components
:
{
vipUser
},
data
()
{
data
()
{
return
{
return
{
pageTitle
:
"个人中心"
,
pageTitle
:
"个人中心"
,
nav
:
0
,
nav
:
0
,
progress
:[
progress
:[],
{
text
:
'1'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'2'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'3'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'4'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
''
,
colorStyle
:
''
,
radiusL
:
''
,
radiusR
:
''
,
img
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png'
},
],
};
};
},
},
components
:
{},
computed
:
{
computed
:
{
},
watch
:{
statistics
:{
handler
(
newVal
,
oldVal
){
},
deep
:
true
,
}
},
},
created
()
{
created
()
{
...
@@ -177,6 +137,19 @@
...
@@ -177,6 +137,19 @@
})
})
// #endif
// #endif
},
},
goUrl
(
url
){
if
(
url
==
'/pages/user-center/user-profile'
){
// #ifdef MP-DI
uni
.
navigateTo
({
url
:
url
})
return
// #endif
}
uni
.
navigateTo
({
url
:
url
})
}
},
},
};
};
</
script
>
</
script
>
...
@@ -231,8 +204,8 @@
...
@@ -231,8 +204,8 @@
}
}
.jz_LineDetaVipPr
{
.jz_LineDetaVipPr
{
margin-top
:
28rpx
;
margin-top
:
28rpx
;
position
:
relative
;
//
position: relative;
left
:
-20rpx
;
//
left: -20rpx;
}
}
.jz_LineDetaVip
{
.jz_LineDetaVip
{
width
:
100%
;
width
:
100%
;
...
@@ -315,7 +288,7 @@
...
@@ -315,7 +288,7 @@
}
}
.jz_LineDetaVPBY
{
.jz_LineDetaVPBY
{
position
:
absolute
;
position
:
absolute
;
left
:
-
29rpx
;
left
:
-
0
;
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
}
}
...
@@ -344,7 +317,7 @@
...
@@ -344,7 +317,7 @@
padding-top
:
7rpx
;
padding-top
:
7rpx
;
}
}
.userHeadPasButtom
{
.userHeadPasButtom
{
padding
:
21rpx
0
4
0rpx
39rpx
;
padding
:
30rpx
0
5
0rpx
39rpx
;
}
}
.userHeadPasButText
{
.userHeadPasButText
{
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
...
...
pages/user-center/components/vipUserHeader.vue
View file @
89f7ed66
...
@@ -25,31 +25,39 @@
...
@@ -25,31 +25,39 @@
</view>
</view>
<view
class=
"userHeadInfoBox"
>
<view
class=
"userHeadInfoBox"
>
<view
class=
"userHeadInfo"
>
<view
class=
"userHeadInfo"
>
<view
class=
"userHeadInfo_Name"
>
{{
b2b_user_info
.
name
}}
</view>
<view
class=
"userHeadInfo_Name"
>
<view
class=
"userHeadInfo_text"
>
销售:
{{
b2b_user_info
.
salesBaseInfo
.
emName
}}
等3位
</view>
<template
v-if=
"b2b_user_info&&b2b_user_info.name"
>
{{
b2b_user_info
.
name
}}
</
template
>
<
template
v-if=
"mall_UserInfo&&mall_UserInfo.Name"
>
{{
mall_UserInfo
.
Name
}}
</
template
>
</view>
<view
class=
"userHeadInfo_text"
v-if=
"statistics.saleList&&statistics.saleList.length>0"
>
<!-- #ifdef MP-DI -->
销售:{{ b2b_user_info.salesBaseInfo.emName }}
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:{{ statistics.saleList[0].saleName }}
<
template
v-if=
"statistics.saleList.length>0"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
</view>
<image
class=
"userHeadInfo_vip"
mode=
"aspectFit"
<image
class=
"userHeadInfo_vip"
mode=
"aspectFit"
style=
"width: 385rpx;height: 49rpx;"
style=
"width: 385rpx;height: 49rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/202502111735zk.png"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/202502111735zk.png"
/>
<view
class=
"userHeadPasTop"
>
<view
class=
"userHeadPasTop"
>
<view
class=
"userHeadPasT_Num row-sbs-n"
>
<view
class=
"userHeadPasT_Num row-sbs-n"
v-if=
"statistics"
>
<!-- #ifdef MP-AG-->
<view
class=
"column"
>
<view
class=
"column"
>
<text>
60k
</text>
<text>
{{formatNumberWithUnit(statistics.balance)}}
</text>
<text
class=
"userHeadPasTTeT"
>
<text
class=
"userHeadPasTTeT"
>
幸福存折
幸福存折
</text>
</text>
</view>
</view>
<!-- #endif -->
<view
class=
"column"
>
<view
class=
"column"
>
<text>
1852
</text>
<text>
{{ statistics.integral }}
</text>
<text
class=
"userHeadPasTTeT"
>
<text
class=
"userHeadPasTTeT"
>
我的积分
我的积分
</text>
</text>
</view>
</view>
<view
class=
"column"
>
<view
class=
"column"
>
<text>
248.2w
</text>
<text>
{{formatNumberWithUnit(statistics.totalSavings)}}
</text>
<text
class=
"userHeadPasTTeT"
>
累计已省
</text>
<text
class=
"userHeadPasTTeT"
>
累计已省
</text>
</view>
</view>
<view
class=
"column"
>
<view
class=
"column"
@
click=
"goUrl('/pages/coupon/index/index')"
>
<text
class=
"userHeadPasTextb"
>
3
</text>
<text
class=
"userHeadPasTextb"
>
{{ statistics.couponNum }}
</text>
<text
class=
"userHeadPasTTeT"
>
优惠券
</text>
<text
class=
"userHeadPasTTeT"
>
优惠券
</text>
</view>
</view>
</view>
</view>
...
@@ -62,44 +70,11 @@
...
@@ -62,44 +70,11 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:[
'user_info'
,
'b2b_user_info'
],
props
:[
'user_info'
,
'b2b_user_info'
,
'statistics'
],
data
()
{
data
()
{
return
{
return
{
pageTitle
:
"个人中心"
,
pageTitle
:
"个人中心"
,
nav
:
0
,
nav
:
0
,
progress
:[
{
text
:
'1'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'2'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'3'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
'4'
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
},
{
text
:
''
,
colorStyle
:
'active'
,
radiusL
:
''
,
radiusR
:
''
,
img
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png'
},
],
};
};
},
},
components
:
{},
components
:
{},
...
@@ -149,6 +124,11 @@
...
@@ -149,6 +124,11 @@
// #endif
// #endif
},
},
goUrl
(
url
){
uni
.
navigateTo
({
url
:
url
})
}
},
},
};
};
</
script
>
</
script
>
...
...
pages/user-center/userVip-center.vue
View file @
89f7ed66
<
template
>
<
template
>
<view
style=
"width:100vw;height:100vh;"
class=
"column"
>
<view
style=
"width:100vw;height:100vh;"
class=
"column"
>
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
class=
"col"
style=
"height: 1px;width: 100%;"
>
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
<view
class=
"userStyle"
style=
"min-height:100vh"
>
@
scrolltoupper=
"scrollTopHandler"
class=
"col"
style=
"height: 1px;width: 100%;"
>
<view
class=
"userStyle"
>
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"
{
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
...
@@ -9,8 +11,8 @@
...
@@ -9,8 +11,8 @@
<view
class=
"title"
>
{{
pageTitle
}}
</view>
<view
class=
"title"
>
{{
pageTitle
}}
</view>
</view>
</view>
<view
class=
"userBox"
>
<view
class=
"userBox"
>
<vipUserHeader
v-if=
"
user_info.isVip==1"
:user_info=
"user_info
"
:b2b_user_info=
"b2b_user_info"
@
login=
"openAuth"
></vipUserHeader>
<vipUserHeader
v-if=
"
statistics&&statistics.isVip==1"
:user_info=
"user_info"
:statistics=
"statistics
"
:b2b_user_info=
"b2b_user_info"
@
login=
"openAuth"
></vipUserHeader>
<userHeader
v-
else
:user_info=
"user_info
"
:b2b_user_info=
"b2b_user_info"
@
login=
"openAuth"
></userHeader>
<userHeader
v-
if=
"statistics&&statistics.isVip!=1"
:user_info=
"user_info"
:statistics=
"statistics
"
:b2b_user_info=
"b2b_user_info"
@
login=
"openAuth"
></userHeader>
<view
class=
"userMyOrderBox"
>
<view
class=
"userMyOrderBox"
>
<view
style=
"position: relative;top:-13rpx"
>
<view
style=
"position: relative;top:-13rpx"
>
<view
class=
"userMyOrder"
>
<view
class=
"userMyOrder"
>
...
@@ -27,36 +29,59 @@
...
@@ -27,36 +29,59 @@
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=1')"
>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=1')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963970628311.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963970628311.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
待付款
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
待付款
</Text>
<view
class=
"badge"
v-if=
"
user_info.waitPayOrderNum>0"
>
{{
user_info
.
waitPayOrderNum
}}
</view>
<view
class=
"badge"
v-if=
"
statistics.waitPayOrderNum>0"
>
{{
statistics
.
waitPayOrderNum
}}
</view>
</view>
</view>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=2')"
>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=2')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971941398.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971941398.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
待出行
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
待出行
</Text>
<view
class=
"badge"
>
{{
user_info
.
waitPay
OrderNum
}}
</view>
<view
class=
"badge"
v-if=
"statistics.waitTravelOrderNum>0"
>
{{
statistics
.
waitTravel
OrderNum
}}
</view>
</view>
</view>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=3')"
>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=3')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971902348.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971902348.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
已完成
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
已完成
</Text>
<
view
class=
"badge"
></view
>
<
!--
<view
class=
"badge"
></view>
--
>
</view>
</view>
<!-- #ifdef MP-DI -->
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=5')"
>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=5')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748964440207840.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748964440207840.png"
style=
"width: 66rpx; height: auto"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
售后
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
售后
</Text>
<view
class=
"badge"
v-if=
"
user_info.afterSalesOrderNum>0"
>
{{
user_info
.
afterSalesOrderNum
}}
</view>
<view
class=
"badge"
v-if=
"
statistics.afterSalesOrderNum>0"
>
{{
statistics
.
afterSalesOrderNum
}}
</view>
</view>
</view>
<!-- #endif -->
</view>
</view>
<view
class=
"orderProductBox"
>
<view
class=
"orderProductBox"
v-if=
"g.length>0"
>
<view
class=
"orderProduct row items-center"
<swiper
class=
"swiper"
circular
@
click=
"goDetails"
>
:indicator-dots=
"indicatorDots"
<view
class=
"orderProductL"
>
:autoplay=
"autoplay"
<image
style=
"width: 91rpx; height: 88rpx;"
mode=
"aspectFill"
src=
"http://imgfile.oytour.com/Upload/WebSite/202501090355546390000000073.jpg"
></image>
:interval=
"interval"
</view>
:duration=
"duration"
>
<view
class=
"orderProductR col column"
style=
"width: 1px;"
>
<swiper-item
v-for=
"(item,index) in g"
:key=
"index"
>
<view
class=
"orderProductR_state"
>
售后
</view>
<view
<view
class=
"orderProductR_text"
>
(东东一地) 河津樱早樱东京富士山纯 河津樱早樱东京富士山纯
</view>
class=
"orderProduct row items-center"
</view>
@
click=
"goDetails(item)"
>
</view>
<view
class=
"orderProductL"
>
<image
style=
"width: 91rpx; height: 88rpx;"
mode=
"aspectFill"
:src=
"item.goodsPic"
></image>
</view>
<view
class=
"orderProductR col column"
style=
"width: 1px;"
>
<view
class=
"orderProductR_state"
>
<!-- #ifdef MP-DI -->
<template
v-if=
"item.orderStatus!=5"
>
{{
item
.
orderStatusInfo
.
desc
}}
</
template
>
<
template
v-else
>
{{
item
.
afterSalesOrderStatusStr
}}
</
template
>
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ item.orderStatusInfo.desc }}
<!-- {{ item.orderStatusStr=='取消'?'已取消':item.orderStatusStr }}-->
<!-- #endif -->
</view>
<view
class=
"orderProductR_text"
>
{{ item.goodsName }}
</view>
</view>
</view>
</swiper-item>
</swiper>
</view>
</view>
</view>
</view>
<view
style=
"height: 20rpx;"
></view>
<view
style=
"height: 20rpx;"
></view>
<view
class=
"userMyOrder"
style=
"padding: 12rpx 0 20rpx 0;"
>
<view
class=
"userMyOrder"
style=
"padding: 12rpx 0 20rpx 0;"
>
...
@@ -66,11 +91,11 @@
...
@@ -66,11 +91,11 @@
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
在线客服
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
在线客服
</Text>
<button
open-type=
"contact"
style=
"position: absolute;left: 0;top: 0;bottom: 0;right: 0;z-index: 1;opacity: 0;"
></button>
<button
open-type=
"contact"
style=
"position: absolute;left: 0;top: 0;bottom: 0;right: 0;z-index: 1;opacity: 0;"
></button>
</view>
</view>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
@
click=
"goUrl()"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520007722617.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520007722617.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
年底大红包
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
年底大红包
</Text>
</view>
</view>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
@
click=
"goUrl(
'/pages/index/index'
)"
>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
@
click=
"goUrl()"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520286130928.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520286130928.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
我的旅行社
</Text>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
我的旅行社
</Text>
</view>
</view>
...
@@ -82,7 +107,9 @@
...
@@ -82,7 +107,9 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"height: 140rpx;"
></view>
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
...
@@ -91,6 +118,9 @@
...
@@ -91,6 +118,9 @@
</template>
</template>
<
script
>
<
script
>
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
tabbars
from
"@/components/tabbar/index"
;
import
tabbars
from
"@/components/tabbar/index"
;
import
auth
from
"@/components/auth/index.vue"
;
import
auth
from
"@/components/auth/index.vue"
;
import
userHeader
from
"./components/userHeader.vue"
;
import
userHeader
from
"./components/userHeader.vue"
;
...
@@ -111,8 +141,19 @@
...
@@ -111,8 +141,19 @@
mall_UserInfo
:
{},
mall_UserInfo
:
{},
u
:
{},
u
:
{},
user_info
:
{},
user_info
:
{},
shopBasics
:
{},
statistics
:
{},
PointNum
:
0
,
msg
:{
pageSize
:
100
,
pageIndex
:
1
,
OrderStatus
:
0
,
GoodsName
:
''
,
OrderTypeStr
:
''
},
g
:
[],
indicatorDots
:
true
,
autoplay
:
true
,
interval
:
4000
,
duration
:
1000
};
};
},
},
onLoad
()
{
onLoad
()
{
...
@@ -121,12 +162,13 @@
...
@@ -121,12 +162,13 @@
this
.
showAuth
=
!
this
.
mall_UserInfo
||
!
this
.
b2b_user_info
;
this
.
showAuth
=
!
this
.
mall_UserInfo
||
!
this
.
b2b_user_info
;
},
},
onShow
()
{
onShow
()
{
// this.userCenterinfo(2);
this
.
userCenterinfo
(
2
);
// this.GetAppletUserPointDetail()
this
.
GetCustomerCenter
()
this
.
g
=
[]
this
.
init
()
},
},
methods
:
{
methods
:
{
goDetails
(
item
)
{
goDetails
(
item
)
{
return
let
url
=
null
let
url
=
null
let
msg
=
null
let
msg
=
null
// #ifdef MP-DI
// #ifdef MP-DI
...
@@ -171,6 +213,12 @@
...
@@ -171,6 +213,12 @@
this
.
scrollTop
=
0
;
this
.
scrollTop
=
0
;
},
},
goUrl
(
url
)
{
goUrl
(
url
)
{
if
(
!
url
){
return
uni
.
showToast
({
title
:
'灰度开放中,尽情期待!'
,
icon
:
"none"
,
})
}
uni
.
navigateTo
({
url
});
uni
.
navigateTo
({
url
});
},
},
//获取菜单配置
//获取菜单配置
...
@@ -188,20 +236,7 @@
...
@@ -188,20 +236,7 @@
}
}
}
}
);
);
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
u
&&
type
==
1
)
{
this
.
getMicroShopBasics
();
}
},
getMicroShopBasics
()
{
this
.
request2
({
url
:
"/api/AppletUser/GetMicroShopBasics"
,
data
:
{},
},
(
res
)
=>
{
this
.
shopBasics
=
res
.
data
;
}
)
},
},
reloadUserinfo
()
{
reloadUserinfo
()
{
this
.
b2b_user_info
=
uni
.
getStorageSync
(
'b2b_user'
);
this
.
b2b_user_info
=
uni
.
getStorageSync
(
'b2b_user'
);
...
@@ -209,33 +244,14 @@
...
@@ -209,33 +244,14 @@
this
.
u
=
this
.
user_info
;
this
.
u
=
this
.
user_info
;
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
:
{};
uni
.
getStorageSync
(
"mall_UserInfo"
)
:
{};
this
.
getUserPoint
();
},
},
getUserPoint
()
{
GetCustomerCenter
(){
this
.
request2
({
this
.
apipost
(
'b2b_get_GetCustomerCenter_New'
,
url
:
"/api/AppletPoint/GetAppletUserPointDetailPageList"
,
data
:
{
pageIndex
:
1
,
pageSize
:
10
,
Type
:
0
},
},
(
res
)
=>
{
this
.
PointNum
=
res
.
data
.
pageData
.
PointNum
;
}
);
},
GetAppletUserPointDetail
(){
uni
.
showLoading
({
title
:
'加载中...'
})
this
.
apipost
(
'/api/AppletPoint/GetAppletUserPointDetailPageList'
,
{},
{},
(
res
)
=>
{
(
res
)
=>
{
uni
.
hideLoa
g
ing
()
uni
.
hideLoa
d
ing
()
this
.
user_info
=
res
.
data
this
.
statistics
=
res
.
data
},
err
=>
{
},
err
=>
{
uni
.
hideLoaging
()
uni
.
showToast
({
uni
.
showToast
({
title
:
err
.
message
,
title
:
err
.
message
,
icon
:
"none"
,
icon
:
"none"
,
...
@@ -243,11 +259,65 @@
...
@@ -243,11 +259,65 @@
}
}
);
);
},
},
init
(){
uni
.
showLoading
({
title
:
'加载中...'
})
// #ifdef MP-DI
this
.
OrderPageZK
(
1
);
this
.
OrderPageZK
();
// #endif
// #ifdef MP-AG
this
.
OrderPageTY
();
// #endif
},
OrderPageTY
(){
this
.
msg
.
OrderStatus
=
1
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
// #ifdef MP-DI
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
// #endif
// #ifdef MP-AG
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
// #endif
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
this
.
g
=
res
.
data
.
pageData
}
},
err
=>
{
uni
.
hideLoading
()
}
);
},
OrderPageZK
(
type
){
if
(
type
==
1
)
this
.
msg
.
OrderStatus
=
1
else
this
.
msg
.
OrderStatus
=
5
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
}
},
err
=>
{
uni
.
hideLoading
()
}
);
},
}
}
};
};
</
script
>
</
script
>
<
style
>
<
style
scoped
>
@import
url('../../asset/css/flex.css')
;
@import
url('../../asset/css/flex.css')
;
.row-sbas-n
{
.row-sbas-n
{
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -306,12 +376,13 @@
...
@@ -306,12 +376,13 @@
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
display
:
flex
;
display
:
flex
;
background-image
:
linear-gradient
(
to
right
,
#e6b865
,
#ebb45e
);
background
:
url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748787642081151.png")
no-repeat
;
background-size
:
100%
auto
;
}
}
.headStatus
.title
{
.headStatus
.title
{
font-size
:
18px
;
font-size
:
18px
;
color
:
#
fff
;
color
:
#
000
;
flex
:
1
;
flex
:
1
;
width
:
1px
;
width
:
1px
;
line-height
:
34px
;
line-height
:
34px
;
...
@@ -319,6 +390,7 @@
...
@@ -319,6 +390,7 @@
}
}
.userMyOrderBox
{
.userMyOrderBox
{
width
:
100%
;
padding
:
0
31
rpx
;
padding
:
0
31
rpx
;
}
}
.userMyOrder
{
.userMyOrder
{
...
@@ -356,6 +428,7 @@
...
@@ -356,6 +428,7 @@
background
:
#F7F7F7
;
background
:
#F7F7F7
;
border-radius
:
18
rpx
;
border-radius
:
18
rpx
;
padding
:
21
rpx
20
rpx
;
padding
:
21
rpx
20
rpx
;
overflow
:
hidden
;
}
}
.orderProductL
{
.orderProductL
{
width
:
91
rpx
;
width
:
91
rpx
;
...
@@ -382,4 +455,32 @@
...
@@ -382,4 +455,32 @@
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.uni-margin-wrap
{
width
:
690
rpx
;
width
:
100%
;
}
.swiper
{
height
:
132
rpx
;
}
.swiper-item
{
display
:
block
;
height
:
132
rpx
;
text-align
:
center
;
}
.swiper-list
{
margin-top
:
40
rpx
;
margin-bottom
:
0
;
}
.uni-common-mt
{
margin-top
:
60
rpx
;
position
:
relative
;
}
.info
{
position
:
absolute
;
right
:
20
rpx
;
}
.uni-padding-wrap
{
width
:
550
rpx
;
padding
:
0
100
rpx
;
}
</
style
>
</
style
>
\ No newline at end of file
pages/visa/visa_SureOrder.vue
View file @
89f7ed66
...
@@ -456,7 +456,7 @@
...
@@ -456,7 +456,7 @@
</view>
</view>
</view>
</view>
<view
class=
"empty-block"
></view>
<view
class=
"empty-block"
></view>
<cancelProgress
v-if=
"orderData.OrderStatus==
2||orderData.OrderStatus==
5"
:datas=
"orderData"
></cancelProgress>
<cancelProgress
v-if=
"orderData.OrderStatus==5"
:datas=
"orderData"
></cancelProgress>
<view
class=
"empty-block"
></view>
<view
class=
"empty-block"
></view>
<view
style=
"padding: 50rpx 40rpx"
v-if=
"orderData.OrderModel"
>
<view
style=
"padding: 50rpx 40rpx"
v-if=
"orderData.OrderModel"
>
<view
class=
"big-title"
>
<view
class=
"big-title"
>
...
@@ -788,7 +788,6 @@
...
@@ -788,7 +788,6 @@
icon
:
"success"
,
icon
:
"success"
,
});
});
this
.
getOrderInfoHandler
()
this
.
getOrderInfoHandler
()
this
.
initOrderInfo
(
this
.
orderId
)
// uni.navigateTo({
// uni.navigateTo({
// url: "/pages/AggregateOrders/AggregateOrdersList",
// url: "/pages/AggregateOrders/AggregateOrdersList",
// });
// });
...
...
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