sadjv3_user/pages/my/index.vue

366 lines
8.8 KiB
Vue
Raw Normal View History

2024-06-05 19:16:02 +08:00
<template>
2024-06-12 15:52:21 +08:00
<view class="content">
<view class="my-head">
<view class="my-head-top back-width">
<image src="../../static/jinggao.png" mode="widthFix"></image>
<view class="my-head-top-view">
<view class="my-head-top-text">
<span>盛安小仙女</span>
<span>13833882588</span>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-top-id">ID:2536436</view>
2024-06-05 19:16:02 +08:00
</view>
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-mian back-width">
<view class="my-head-mian-top">
<view class="my-head-mian-top-view">
<view class="my-head-mian-top-view-qian">我的钱包</view>
<view class="my-head-mian-top-view-chong" @click="chonghi('充值')">充值</view>
<view class="my-head-mian-top-view-ming" @click="chonghi('明细')">明细</view>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-mian-top-yuE">520 000 00</view>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-mian-bottom">
<view class="my-head-mian-bottom-list" @click="youhui('/my/hongbao/youhuijuan')">
<image src="../../static/my-yuehui.png" mode="widthFix"></image>
<span class="my-head-mian-bottom-list-text">优惠券</span>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-mian-bottom-list">
<image src="../../static/my-juanma.png" mode="widthFix"></image>
<span class="my-head-mian-bottom-list-text">券码兑换</span>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-mian-bottom-list">
<image src="../../static/my-jifen.png" mode="widthFix"></image>
<span class="my-head-mian-bottom-list-text">积分兑换</span>
2024-06-05 19:16:02 +08:00
</view>
</view>
</view>
2024-06-12 15:52:21 +08:00
<view class="my-head-bottom back-width" @click="kaitong">
<image src="../../static/my-kaitonghuiyuan.png" mode="widthFix"></image>
2024-06-05 19:16:02 +08:00
</view>
</view>
2024-06-12 15:52:21 +08:00
<view class="my-serve width">
<view class="my-serve-title">我的服务</view>
<view class="my-serve-view">
<view class="my-serve-list" @click="meServe('服务套餐')">
<image src="../../static/my-fuwu.png" mode="widthFix"></image>
<span class="my-serve-list-text">服务套餐</span>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-serve-list" @click="meServe('项目次卡')">
<image src="../../static/my-cika.png" mode="widthFix"></image>
<span class="my-serve-list-text">项目次卡</span>
2024-06-05 19:16:02 +08:00
</view>
2024-06-12 15:52:21 +08:00
<view class="my-serve-list" @click="meServe('服务疗程')">
<image src="../../static/my-liaocheng.png" mode="widthFix"></image>
<span class="my-serve-list-text">服务疗程</span>
2024-06-05 19:16:02 +08:00
</view>
</view>
</view>
2024-06-12 15:52:21 +08:00
<view class="my-use width">
<view class="my-use-title">常用功能</view>
<view class="my-use-view">
<view class="my-use-list" v-for="(item,index) in useList" :key="index" @click="useToUrl(item)">
<image :src="item.urlImg" mode=""></image>
<span class="my-use-list-text">{{item.text}}</span>
</view>
2024-06-05 19:16:02 +08:00
</view>
</view>
</view>
</template>
<script>
2024-06-12 15:52:21 +08:00
export default{
data(){
2024-06-05 19:16:02 +08:00
return {
2024-06-12 15:52:21 +08:00
useList:[
{urlImg:'../../static/my-gong-1.png',text:'我的收藏',link:''},
{urlImg:'../../static/my-gong-2.png',text:'成为理疗师',link:''},
{urlImg:'../../static/my-gong-3.png',text:'分享好友',link:'/pages/my/invitationUser'},
{urlImg:'../../static/my-gong-4.png',text:'成为代理商',link:''},
{urlImg:'../../static/my-gong-5.png',text:'地址管理',link:'/my/address/address'},
{urlImg:'../../static/my-gong-6.png',text:'帮助中心',link:'/my/help/feedbackIndex'},
{urlImg:'../../static/my-gong-7.png',text:'设置中心',link:'/my/setting/index'},
{urlImg:'../../static/my-gong-8.png',text:'浏览历史',link:''},
{urlImg:'../../static/my-gong-9.png',text:'我的团队',link:''},
]
2024-06-05 19:16:02 +08:00
}
},
2024-06-12 15:52:21 +08:00
methods:{
kaitong(){//开通会员
uni.navigateTo({
url:'/my/vip/index'
})
2024-06-05 19:16:02 +08:00
},
2024-06-12 15:52:21 +08:00
chonghi(link){//我的钱包
if(link=='充值'){
uni.navigateTo({
url:'/my/wallet/index'
2024-06-05 19:16:02 +08:00
})
2024-06-12 15:52:21 +08:00
}else{
uni.navigateTo({
url:'/my/wallet/mymoneydetail'
2024-06-05 19:16:02 +08:00
})
}
2024-06-12 15:52:21 +08:00
2024-06-05 19:16:02 +08:00
},
2024-06-12 15:52:21 +08:00
youhui(link){//优惠劵,券码兑换,积分兑换 跳页
2024-06-05 19:16:02 +08:00
uni.navigateTo({
2024-06-12 15:52:21 +08:00
url:link
2024-06-05 19:16:02 +08:00
})
},
2024-06-12 15:52:21 +08:00
useToUrl(item){//常用功能跳转页面
var link=item.link
uni.navigateTo({
url:link
2024-06-05 19:16:02 +08:00
})
},
2024-06-12 15:52:21 +08:00
meServe(item){
if(item=="服务套餐"){
2024-06-05 19:16:02 +08:00
uni.navigateTo({
2024-06-12 15:52:21 +08:00
url:'/pages/my/servicePackage'
2024-06-05 19:16:02 +08:00
})
2024-06-12 15:52:21 +08:00
}else if(item=="项目次卡"){
uni.navigateTo({
url:'/pages/my/onceCardPackage'
})
}else if(item=="服务疗程"){
uni.navigateTo({
url:'/pages/my/curePackage'
2024-06-05 19:16:02 +08:00
})
}
},
}
}
</script>
2024-06-12 15:52:21 +08:00
<style scoped>
.my-use-list-text{
font-weight: bold;
font-size: 30rpx;
color: #6C6C6C;
margin-top: 6px;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-use-list image{
width: 64.58rpx;
height: 72.22rpx;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-use{
height: 597rpx;
background: #FFFFFF;
border-radius: 21rpx;
padding: 10px;
display: flex;
flex-direction: column;
margin: 0px auto 20px auto;
}
.my-use-view{
width: 90%;
margin: 5px auto;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.my-serve-view{
width: 90%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.my-use-list{
width: 25%;
margin-top: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.my-serve-list{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.my-serve-list image{
width: 119.44rpx;
height: 130.56rpx;
}
.my-serve-list-text{
font-weight: bold;
font-size: 32rpx;
color: #6C6C6C;
margin-top: 5px;
}
.my-serve-title,.my-use-title{
2024-06-05 19:16:02 +08:00
width: 100%;
2024-06-12 15:52:21 +08:00
font-weight: bold;
font-size: 35rpx;
color: #333333;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.width{
width: 95%;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-serve{
height: 597rpx;
background: #FFFFFF;
border-radius: 21rpx;
padding: 10px;
display: flex;
flex-direction: column;
margin: 0px auto 20px auto;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-serve,.my-serve{
height: 297rpx;
background: #FFFFFF;
border-radius: 21rpx;
padding: 10px;
display: flex;
flex-direction: column;
margin: 20px auto;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-head-bottom{
width: 95%;
height: 121.53rpx;
}
.my-head-bottom image{
width: 100%;
height: 100%;
}
.my-head-mian-bottom-list image{
width: 88.13rpx;
height: 65.28rpx;
}
.my-head-mian-bottom-list-text{
font-weight: bold;
font-size: 33rpx;
color: #6C6C6C;
margin-top: 10px;
}
.my-head-mian-bottom-list{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.my-head-mian-bottom{
width: 95%;
margin: 0 auto;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.my-head-mian-top-yuE{
font-weight: bold;
font-size: 43rpx;
color: #333333;
}
.my-head-mian-top-view-chong,.my-head-mian-top-view-ming{
width: 92rpx;
height: 42rpx;
line-height: 42rpx;
2024-06-05 19:16:02 +08:00
text-align: center;
2024-06-12 15:52:21 +08:00
border-radius: 21rpx;
font-weight: bold;
font-size: 26rpx;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-head-mian-top-view-chong{
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
color: #fff;
margin: 0px 5px;
}
.my-head-mian-top-view-ming{
background: #F5F7FB;
color: #333;
}
.my-head-mian-top-view-qian{
font-weight: bold;
font-size: 35rpx;
2024-06-05 19:16:02 +08:00
color: #333333;
}
2024-06-12 15:52:21 +08:00
.my-head-mian-top-view{
display: flex;
flex-direction: row;
align-items: center;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-head-mian-top{
width: 95%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.my-head-mian{
width: 100%;
height: 298rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
background: #FFFFFF;
border-radius: 21rpx;
padding: 10px;
}
.my-head-top-id{
margin-top: 10px;
font-weight: bold;
font-size: 19rpx;
color: #0E050A;
}
.my-head-top-text{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-weight: bold;
font-size: 33rpx;
2024-06-05 19:16:02 +08:00
color: #000000;
}
2024-06-12 15:52:21 +08:00
.my-head-top-view{
display: flex;
flex-direction: column;
width: 80%;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
.my-head-top image{
width: 106rpx;
height: 106rpx;
}
.my-head-top{
width: 100%;
margin: 20px 0px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.my-head{
width: 100%;
/* background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f7f7f7), url('../../static/background-img.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover; */
}
.content {
width: 100%;
height: 100vh;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f7f7f7), url('../../static/background-img.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
/* background: #f7f7f7; */
overflow: auto;
}
.div-with-background {
width: 300px; /* 你的容器宽度 */
height: 200px; /* 你的容器高度 */
}
.back-width{
width: 95%;
display: flex;
margin: 0px auto;
padding: 10px 0px;
2024-06-05 19:16:02 +08:00
}
2024-06-12 15:52:21 +08:00
2024-06-05 19:16:02 +08:00
</style>