导游中台-游客端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
5.3 KiB

11 months ago
<template>
11 months ago
<view class="bg">
<view class="top-box flex-between" @click="gotoPath('/subPackages/user/profile')">
11 months ago
<view>
10 months ago
<image :src="showImg(userInfo.avatar || 'https://static.ticket.sz-trip.com/tourist/user/avatar.png')" mode=""></image>
{{userInfo.nickname}}
11 months ago
</view>
11 months ago
<view>
个人中心
<image src="https://static.ticket.sz-trip.com/tourist/user/rightIcon.png" mode=""></image>
11 months ago
</view>
</view>
11 months ago
<view class="order-bg">
<view class="order-box">
11 months ago
<view class="order-top flex-between" @click="goTrades()">
11 months ago
<view>我的订单</view>
<view>
全部
<image src="https://static.ticket.sz-trip.com/tourist/user/rightIcon-gray.png" mode=""></image>
</view>
</view>
<view class="order-bottom">
11 months ago
<view v-for="(item,index) in orderList" :key="index" @click="goTrades(item)">
11 months ago
<image :src="item.img" mode=""></image>
<view>{{item.text}}</view>
</view>
</view>
</view>
</view>
<view class="box-bg">
<view class="box">
11 months ago
<view v-for="(item,index) in list" :key="index" class="flex-between" @click="gotoPath(item.path)">
11 months ago
<view style="display: flex;align-items: center;">
<image :src="item.img" class="item-icon"></image>
{{item.text}}
</view>
<image src="https://static.ticket.sz-trip.com/tourist/user/rightIcon-gray.png" class="item-right"></image>
</view>
11 months ago
</view>
</view>
</view>
11 months ago
</template>
<script>
11 months ago
export default {
data() {
return {
11 months ago
orderList: [
{
img: 'https://static.ticket.sz-trip.com/tourist/user/qbdd.png',
text: '全部订单',
path: ''
},
{
img: 'https://static.ticket.sz-trip.com/tourist/user/dzf.png',
text: '待支付',
path: ''
},
{
img: 'https://static.ticket.sz-trip.com/tourist/user/dcx.png',
text: '待出行',
path: ''
},
{
img: 'https://static.ticket.sz-trip.com/tourist/user/tksh.png',
text: '退款/售后',
path: ''
}
],
11 months ago
list: [
{
11 months ago
img: 'https://static.ticket.sz-trip.com/tourist/user/cxrxx.png',
text: '出行人信息',
11 months ago
path: '/subPackages/user/travelerList'
11 months ago
},
{
11 months ago
img: 'https://static.ticket.sz-trip.com/tourist/user/yhxy.png',
text: '用户协议',
11 months ago
path: '/subPackages/user/privacyInfo?title=用户协议&id=5'
11 months ago
},
{
11 months ago
img: 'https://static.ticket.sz-trip.com/tourist/user/ysgl.png',
text: '隐私管理',
11 months ago
path: '/subPackages/user/privacyInfo?title=隐私政策&id=4'
11 months ago
}
11 months ago
],
userInfo: {}
11 months ago
}
11 months ago
},
onShow() {
10 months ago
this.userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {}
if(!this.userInfo.teken) {
// this.$store.commit('changeLoginPath')
}
11 months ago
// this.Post({}, '/api/Merchants/get_login_details').then(res => {
// this.userInfo = res.data
// })
11 months ago
},
methods: {
// 去订单
goTrades(item) {
if (item) {
uni.navigateTo({
url: "/subPackages/order/trades?type=" + item.text,
});
} else {
uni.navigateTo({
url: "/subPackages/order/trades",
});
}
},
11 months ago
}
}
11 months ago
</script>
11 months ago
<style lang="scss" scoped>
.bg {
min-height: 100vh;
11 months ago
background: url('https://static.ticket.sz-trip.com/tourist/user/topBg.png') no-repeat;
background-size: 100% auto;
background-color: #F7F7F7;
11 months ago
}
.top-box {
11 months ago
height: 247rpx;
padding: 0 28rpx 0 35rpx;
11 months ago
11 months ago
view {
11 months ago
display: flex;
align-items: center;
11 months ago
}
view:first-child {
font-weight: bold;
font-size: 40rpx;
color: #000000;
11 months ago
11 months ago
image {
width: 106.67rpx;
height: 106.67rpx;
margin-right: 30rpx;
11 months ago
}
11 months ago
}
view:last-child {
font-weight: bold;
font-size: 24rpx;
color: #96684F;
11 months ago
11 months ago
image {
width: 20rpx;
height: 20rpx;
margin-left: 10rpx;
}
}
}
.order-bg {
width: 697rpx;
height: 240rpx;
border: 1rpx solid #96684F;
margin: auto;
position: relative;
}
.order-box {
width: 683rpx;
height: 253rpx;
background: #FFFFFF;
border: 1rpx solid #96684F;
position: absolute;
top: -9rpx;
left: 5rpx;
.order-top {
margin-top: 26rpx;
padding: 0 15rpx 0 19rpx;
font-weight: bold;
font-size: 31rpx;
color: #000000;
view:last-child {
font-weight: 500;
font-size: 25rpx;
color: #999999;
display: flex;
align-items: center;
11 months ago
11 months ago
image {
width: 20rpx;
height: 20rpx;
margin-left: 10rpx;
11 months ago
}
}
}
11 months ago
.order-bottom {
margin-top: 40rpx;
11 months ago
display: flex;
11 months ago
&>view {
width: 25%;
text-align: center;
font-weight: 500;
font-size: 24rpx;
color: #000000;
image {
width: 60rpx;
height: 60rpx;
margin-bottom: 10rpx;
}
11 months ago
}
}
}
11 months ago
.box-bg {
width: 697rpx;
height: 310rpx;
border: 1rpx solid #96684F;
position: relative;
margin: 40rpx auto 0;
}
11 months ago
.box {
11 months ago
width: 683rpx;
height: 326rpx;
11 months ago
background: #FFFFFF;
11 months ago
border: 1rpx solid #96684F;
position: absolute;
top: -9rpx;
left: 5rpx;
11 months ago
11 months ago
&>view {
height: 33.3%;
padding: 0 15rpx 0 24rpx;
font-weight: 500;
font-size: 28rpx;
color: #000000;
11 months ago
11 months ago
.item-icon {
width: 33.33rpx;
height: 33.33rpx;
margin-right: 24rpx;
11 months ago
}
11 months ago
.item-right {
width: 20rpx;
11 months ago
height: 20rpx;
}
}
11 months ago
&>view:nth-child(2) {
11 months ago
border-top: 1rpx solid #D8D8D8;
11 months ago
border-bottom: 1rpx solid #D8D8D8;
11 months ago
}
}
11 months ago
</style>