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
6381d644
Commit
6381d644
authored
Mar 06, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善vip特权
parent
acafe8f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1205 additions
and
173 deletions
+1205
-173
vip.vue
components/vip/vip.vue
+1
-1
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+1
-0
jz_SureOrder.vue
pages/jiuzhai/jz_SureOrder.vue
+33
-4
user-center copy 1.vue
pages/user-center/user-center copy 1.vue
+265
-0
user-center.vue
pages/user-center/user-center.vue
+905
-168
No files found.
components/vip/vip.vue
View file @
6381d644
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
this
.
apipost
(
"vip_post_CheckCustomerIsVip"
,
parameter
,(
r
)
=>
{
this
.
apipost
(
"vip_post_CheckCustomerIsVip"
,
parameter
,(
r
)
=>
{
this
.
vipInfo
=
r
.
data
this
.
vipInfo
=
r
.
data
const
v
=
r
.
data
const
v
=
r
.
data
this
.
$emit
(
'setUserOrder'
,
v
.
FinishOrderCount
)
//
this.$emit('setUserOrder',v.FinishOrderCount)
if
(
v
.
FinishOrderCount
>=
v
.
OrderCount
){
if
(
v
.
FinishOrderCount
>=
v
.
OrderCount
){
let
rule
=
v
.
RuleList
.
find
(
x
=>
x
.
LineId
==
this
.
lineId
)
let
rule
=
v
.
RuleList
.
find
(
x
=>
x
.
LineId
==
this
.
lineId
)
if
(
!
rule
)
rule
=
v
.
RuleList
.
find
(
x
=>
x
.
LineId
==
0
)
if
(
!
rule
)
rule
=
v
.
RuleList
.
find
(
x
=>
x
.
LineId
==
0
)
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
6381d644
...
@@ -1646,6 +1646,7 @@
...
@@ -1646,6 +1646,7 @@
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
try
{
try
{
this
.
getStartCitiesHandler
()
this
.
getStartCitiesHandler
()
this
.
stepNumber
=
res
.
data
.
orderNum
res
.
data
.
tempImgCover
=
JSON
.
parse
(
res
.
data
.
imgCover
);
res
.
data
.
tempImgCover
=
JSON
.
parse
(
res
.
data
.
imgCover
);
this
.
dataList
=
res
.
data
;
this
.
dataList
=
res
.
data
;
// #ifdef MP-AG
// #ifdef MP-AG
...
...
pages/jiuzhai/jz_SureOrder.vue
View file @
6381d644
...
@@ -518,12 +518,19 @@
...
@@ -518,12 +518,19 @@
}}
</view>
}}
</view>
</view>
</view>
<view
class=
"flex f12
grey"
style=
"margin-bottom: 40rpx"
:key=
"index"
v-if=
"orderData.model.DiscountMoney&&orderData.model.DiscountMoney
>0"
>
<view
class=
"flex f12
"
:style=
"{'color':mainColor+' !important'}"
style=
"margin-bottom: 40rpx"
v-if=
"orderData.model.DiscountMoney&&(orderData.model.DiscountMoney-orderData.model.DisValue)
>0"
>
<view
style=
"flex: 1"
>
<view
style=
"flex: 1"
>
<text
style=
"margin-right: 30rpx"
>
优惠金额
</text>
<text
style=
"margin-right: 30rpx"
>
优惠金额
</text>
</view>
</view>
<view
style=
"text-align: right"
>
<view
style=
"text-align: right"
>
{{ orderData.model.DiscountMoney}}
</view>
-{{ orderData.model.DiscountMoney-orderData.model.DisValue}}
</view>
</view>
<view
class=
"flex f12"
:style=
"{'color':mainColor+' !important'}"
style=
"margin-bottom: 40rpx"
v-if=
"orderData.model.DisValue>0"
>
<view
style=
"flex: 1"
>
<text
style=
"margin-right: 30rpx"
>
VIP专享优惠
</text>
</view>
<view
style=
"text-align: right"
>
-{{ orderData.model.DisValue}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -595,18 +602,20 @@
...
@@ -595,18 +602,20 @@
showPayBtn
:
true
,
showPayBtn
:
true
,
orderInfo
:
null
,
orderInfo
:
null
,
OrderNo
:
''
,
OrderNo
:
''
,
mainColor
:
''
};
};
},
},
created
()
{},
created
()
{},
onLoad
(
option
)
{
onLoad
(
option
)
{
if
(
option
.
orderData
)
{
if
(
option
.
orderData
)
{
this
.
orderData
=
JSON
.
parse
(
decodeURIComponent
(
option
.
orderData
));
this
.
orderData
=
JSON
.
parse
(
decodeURIComponent
(
option
.
orderData
));
}
else
if
(
option
.
orderId
)
{
this
.
initOrderInfo
(
option
.
orderId
);
}
else
if
(
option
.
OrderNo
){
}
else
if
(
option
.
OrderNo
){
this
.
OrderNo
=
option
.
OrderNo
this
.
OrderNo
=
option
.
OrderNo
this
.
getOrderInfoHandler
(
this
.
OrderNo
)
this
.
getOrderInfoHandler
(
this
.
OrderNo
)
}
else
if
(
option
.
orderId
)
{
this
.
initOrderInfo
(
option
.
orderId
);
}
}
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
},
},
methods
:
{
methods
:
{
submitGetCodeByOrderNo
()
{
submitGetCodeByOrderNo
()
{
...
@@ -683,6 +692,21 @@
...
@@ -683,6 +692,21 @@
}
}
})
})
},
},
getOrderInfoByIdAndType
(){
const
parameter
=
{
ErpOrderId
:
this
.
orderData
.
model
.
OrderId
,
OrderTypeStr
:
'DMC'
}
this
.
apipost
(
"GetDetailsByErpOrderId_post"
,
parameter
,
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
OrderNo
=
res
.
data
.
OrderNo
this
.
formatStatus
(
res
.
data
.
OrderStatus
,
null
,
null
);
}
else
{
}
})
},
//跳转至详情
//跳转至详情
goJzDetail
()
{
goJzDetail
()
{
let
model
=
this
.
orderData
.
model
;
let
model
=
this
.
orderData
.
model
;
...
@@ -803,6 +827,11 @@
...
@@ -803,6 +827,11 @@
this
.
orderData
.
model
.
IsApplyForCancel
this
.
orderData
.
model
.
IsApplyForCancel
);
);
// #endif
// #endif
// #ifdef MP-DI
if
(
!
this
.
OrderNo
){
this
.
getOrderInfoByIdAndType
()
}
// #endif
}
else
{
}
else
{
this
.
orderData
=
{
this
.
orderData
=
{
result
:
-
1
,
result
:
-
1
,
...
...
pages/user-center/user-center copy 1.vue
0 → 100644
View file @
6381d644
<
template
>
<view
style=
"width:100vw;height:100vh;"
class=
"column"
>
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
class=
"col"
style=
"height: 1px;width: 100%;"
>
<view
class=
"userStyle"
style=
"min-height:100vh"
>
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
}"
>
<view
class=
"title"
>
{{
pageTitle
}}
</view>
</view>
<view
class=
"userBox"
>
<vipUserHeader></vipUserHeader>
<view
class=
"userMyOrderBox"
>
<view
style=
"position: relative;top:-13rpx"
>
<view
class=
"userMyOrder"
>
<view
class=
"userMyOrderTitle row-sbas-n col"
>
<view
class=
"userMyOrderTitL"
>
我的订单
</view>
<view
class=
"userMyOrderTitR row"
@
click=
"goUrl('/pages/order/index/index')"
>
<text>
全部
</text>
<view>
<u-icon
class=
"userMyOrderTitRIght"
name=
"arrow-up"
size=
"30"
color=
"#B2B3B3"
></u-icon>
</view>
</view>
</view>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/order/index/index?status=1')"
>
<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>
<view
class=
"badge"
></view>
</view>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/order/index/index?status=2')"
>
<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>
<view
class=
"badge"
></view>
</view>
<view
class=
"order_bar_item"
@
click=
"goUrl('/pages/order/index/index?status=3')"
>
<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>
<view
class=
"badge"
></view>
</view>
<view
class=
"order_bar_item"
>
<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>
<view
class=
"badge"
></view>
</view>
</view>
<view
class=
"orderProductBox"
>
<view
class=
"orderProduct row items-center"
>
<view
class=
"orderProductL"
>
<image
style=
"width: 91rpx; height: 88rpx;"
mode=
"aspectFill"
src=
"http://imgfile.oytour.com/Upload/WebSite/202501090355546390000000073.jpg"
></image>
</view>
<view
class=
"orderProductR col column"
style=
"width: 1px;"
>
<view
class=
"orderProductR_state"
>
待处理
</view>
<view
class=
"orderProductR_text"
>
(东东一地) 河津樱早樱东京富士山纯 河津樱早樱东京富士山纯
</view>
</view>
</view>
</view>
</view>
<view
style=
"height: 20rpx;"
></view>
<view
class=
"userMyOrder"
style=
"padding: 12rpx 0 20rpx 0;"
>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item relative"
style=
"margin-top: 0;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749519965857485.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<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>
</view>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
>
<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>
</view>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
@
click=
"goUrl('/pages/index/index')"
>
<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>
</view>
<view
class=
"order_bar_item"
style=
"margin-top: 0;"
@
click=
"goUrl('/pages/coupon/list/list')"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520367368328.png"
style=
"width: 70rpx; height: 70rpx"
mode=
"widthFix"
></image>
<Text
style=
"margin-top: 10rpx;font-size: 24rpx;"
>
领券中心
</Text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
<auth
v-if=
"showAuth"
></auth>
<tabbars></tabbars>
</view>
</
template
>
<
script
>
import
tabbars
from
"@/components/tabbar/index"
;
import
auth
from
"@/components/auth/index.vue"
;
import
vipUserHeader
from
"./components/vipUserHeader.vue"
;
export
default
{
components
:
{
tabbars
,
auth
,
vipUserHeader
},
data
()
{
return
{
pageTitle
:
"个人中心"
,
scrollTop
:
0
,
showAuth
:
false
,
b2b_user_info
:
{},
mall_UserInfo
:
{}
};
},
onLoad
()
{
this
.
b2b_user_info
=
uni
.
getStorageSync
(
'b2b_user'
);
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
showAuth
=
!
this
.
mall_UserInfo
||
!
this
.
b2b_user_info
;
},
methods
:
{
scrollHandler
(
e
)
{
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
},
scrollTopHandler
()
{
this
.
scrollTop
=
0
;
},
goUrl
(
url
)
{
uni
.
navigateTo
({
url
});
}
}
};
</
script
>
<
style
>
@import
url('../../asset/css/flex.css')
;
.row-sbas-n
{
justify-content
:
space-between
;
}
.relative
{
position
:
relative
;
}
.userStyle
.userBox
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
background
:
#f3f4f6
;
min-height
:
100vh
;
padding-bottom
:
env
(
safe-area-inset-bottom
);
}
.order_bar_list
{
padding
:
22
rpx
55
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.order_bar_item
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
margin-top
:
20
rpx
;
position
:
relative
;
}
.badge
{
position
:
absolute
;
right
:
-10
rpx
;
top
:
-10
rpx
;
padding
:
0
8
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
20
rpx
;
background
:
#FF3166
;
color
:
#fff
;
min-width
:
28
rpx
;
height
:
28
rpx
;
border-radius
:
14
rpx
;
}
.headStatus
{
position
:
fixed
;
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
left
:
0
;
right
:
0
;
top
:
0
;
display
:
flex
;
background-image
:
linear-gradient
(
to
right
,
#e6b865
,
#ebb45e
);
}
.headStatus
.title
{
font-size
:
18px
;
color
:
#fff
;
flex
:
1
;
width
:
1px
;
line-height
:
34px
;
text-align
:
center
;
}
.userMyOrderBox
{
padding
:
0
31
rpx
;
}
.userMyOrder
{
background
:
#FFF
;
border-radius
:
20
rpx
;
padding
:
33
rpx
0
22
rpx
0
;
}
.userMyOrderTitle
{
padding
:
23
rpx
31
rpx
0
31
rpx
;
}
.userMyOrderTitL
{
font-family
:
PingFang
SC
;
font-weight
:
800
;
font-size
:
32
rpx
;
color
:
#080A09
;
}
.userMyOrderTitR
{
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
24
rpx
;
color
:
#B2B3B3
;
align-items
:
center
;
}
.userMyOrderTitRIght
{
margin-left
:
11
rpx
;
transform
:
rotate
(
90deg
);
}
.orderProductBox
{
padding
:
0
20
rpx
;
}
.orderProduct
{
width
:
648
rpx
;
height
:
132
rpx
;
background
:
#F7F7F7
;
border-radius
:
18
rpx
;
padding
:
21
rpx
20
rpx
;
}
.orderProductL
{
width
:
91
rpx
;
height
:
88
rpx
;
border-radius
:
14
rpx
;
overflow
:
hidden
;
margin-right
:
18
rpx
;
}
.orderProductR_state
{
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#080A09
;
padding-top
:
5
rpx
;
}
.orderProductR_text
{
width
:
100%
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
24
rpx
;
color
:
#8C8C8C
;
padding-top
:
4
rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
</
style
>
\ No newline at end of file
pages/user-center/user-center.vue
View file @
6381d644
This diff is collapsed.
Click to expand it.
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