Commit f7d0d104 authored by 刘怀志's avatar 刘怀志

feat(mineNavBar): 我的-1

parent dd69f4e5
...@@ -2,43 +2,43 @@ ...@@ -2,43 +2,43 @@
<view class="mine-container"> <view class="mine-container">
<mine-navbar title="DHEC QMS" /> <mine-navbar title="DHEC QMS" />
<scroll-view class="scroll-y" scroll-y style="margin: 30rpx 0 0 0;"> <scroll-view class="scroll-y" scroll-y style="margin: 542rpx 0 0 0;">
<view style="height: 16rpx;background: #F0F0F0;" /> <view style="height: 40rpx;background: #F9F9F9;" />
<!--顶部个人信息栏--> <view class="header-section" @click="goMyAccount">
<view class="header-section"> <view class="section-detail">
<view class="flex justify-between"> <view class="detail-left">
<view class="flex align-center"> <image :src="userInfo" class="icon-left" />
<!-- <image v-if="!form.ownersCover" :src="baseUrl+'/tmt-pic/pet-pc/925f9b6a6fbe446d88cfd70711622ce3-20230823-131457.jpg'" class="cu-avatar xl round"-->
<!-- mode="widthFix">-->
<!-- </image>-->
<image :src="baseUrl+ownersCover" class="avatarSize" />
<view class="user-info"> <view class="user-info">
<view class="line1"> <text>
<!-- <view style="margin-right: 20rpx"> --> 个人信息
<text class="u_title">
{{ form.nickname }}
</text> </text>
<!-- </view> -->
<view class="head-image" @click="handleToInfo">
<image class="head-image" :src="baseUrl+'/tmt-pic/pet-app/wode_icon_bianji@2x.png'" />
</view> </view>
</view> </view>
<view>
<view class="c_title">{{ form.phonenumber }}</view> <text />
<br> <u-icon name="arrow-right" color="#CCCCCC" size="19"></u-icon>
<view class="c_title" style="margin-top: 10rpx">ID: {{ form.ownersId }}</view>
</view> </view>
</view> </view>
<view v-show="user.ownersId!==null" class="flex align-center" @click="viewCode">
<text />
<image :src="baseUrl+'/tmt-pic/pet-app/wode_icon_erweima@2x.png'" class="twoImage" />
</view> </view>
<view style="height: 24rpx;background: #F9F9F9;" />
<view class="header-section" @click="handleLogout">
<view class="section-detail">
<view class="detail-left">
<image :src="logout" class="icon-left" />
<view class="user-info">
<text>
退出登录
</text>
</view> </view>
</view> </view>
<view> <view>
<text />
</view>
</view>
</view>
<!-- <view>
<view style="height: 16rpx;background: #F0F0F0;" /> <view style="height: 16rpx;background: #F0F0F0;" />
</view> </view>
<view class="second-section"> <view class="second-section">
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</view> </view>
<view class="rect" @touchmove.stop> <view class="rect" @touchmove.stop>
<!-- 会员卡集合模块--> &lt;!&ndash; 会员卡集合模块&ndash;&gt;
<z-swiper v-if="cardListLength>0" v-model="cardList" :custom-style="{height:'300rpx'}" :options="options"> <z-swiper v-if="cardListLength>0" v-model="cardList" :custom-style="{height:'300rpx'}" :options="options">
<z-swiper-item v-for="(item,index) in cardList" :key="index" :custom-style="slideCustomStyle"> <z-swiper-item v-for="(item,index) in cardList" :key="index" :custom-style="slideCustomStyle">
<view class="rectangle" :style="{backgroundImage: `url(${baseUrl}${cardImage})`}"> <view class="rectangle" :style="{backgroundImage: `url(${baseUrl}${cardImage})`}">
...@@ -86,14 +86,14 @@ ...@@ -86,14 +86,14 @@
</view> </view>
</z-swiper-item> </z-swiper-item>
</z-swiper> </z-swiper>
<!-- 没有会员卡添加会员卡--> &lt;!&ndash; 没有会员卡添加会员卡&ndash;&gt;
<view v-else class="rectangleTwo"> <view v-else class="rectangleTwo">
<view style=" text-align: center;" @click="goAddCount"> <view style=" text-align: center;" @click="goAddCount">
<image <image
:src="baseUrl+'/tmt-pic/pet-app/wode_icon_tianjia@2x.png'" :src="baseUrl+'/tmt-pic/pet-app/wode_icon_tianjia@2x.png'"
style="width: 112rpx;height: 112rpx;" style="width: 112rpx;height: 112rpx;"
/> />
<!-- <text class="plus">+</text> --> &lt;!&ndash; <text class="plus">+</text> &ndash;&gt;
<view class="text-container"> <view class="text-container">
<text class="additional-text">添加我的账户</text> <text class="additional-text">添加我的账户</text>
</view> </view>
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
<span>我的宠物</span> <span>我的宠物</span>
</view> </view>
<view style=" text-align: right;width: 100%;"> <view style=" text-align: right;width: 100%;">
<!-- <view class="iconfont icon-right" ></view> --> &lt;!&ndash; <view class="iconfont icon-right" ></view> &ndash;&gt;
<image <image
:src="baseUrl+'/tmt-pic/pet-app/wode_icon_rjiantou2@2x.png'" :src="baseUrl+'/tmt-pic/pet-app/wode_icon_rjiantou2@2x.png'"
style="width:48rpx ;height: 48rpx;" style="width:48rpx ;height: 48rpx;"
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
</view> </view>
</view> </view>
</view> </view>-->
<!-- 二维码弹出层--> <!-- 二维码弹出层-->
<view> <view>
...@@ -274,6 +274,8 @@ export default { ...@@ -274,6 +274,8 @@ export default {
components: { mineNavbar }, components: { mineNavbar },
data() { data() {
return { return {
userInfo: require('../../static/images/userInfo.png'),
logout: require('../../static/images/logout.png'),
show: false, show: false,
hosConfig: { hosConfig: {
phone: '' phone: ''
...@@ -331,6 +333,14 @@ export default { ...@@ -331,6 +333,14 @@ export default {
this.getConfig() this.getConfig()
}, },
methods: { methods: {
handleLogout() {
this.$modal.confirmLogout('是否立即退出登录').then(() => {
this.$store.commit('SET_LOGOUT_BTN', true)
this.$store.dispatch('LogOut').then(() => {
this.$tab.reLaunch('/pages/index')
})
})
},
// 确认呼叫 // 确认呼叫
confirmCall() { confirmCall() {
wx.makePhoneCall({ wx.makePhoneCall({
...@@ -481,13 +491,6 @@ export default { ...@@ -481,13 +491,6 @@ export default {
handleToAvatar() { handleToAvatar() {
this.$tab.navigateTo('/pages/mine/avatar/index') this.$tab.navigateTo('/pages/mine/avatar/index')
}, },
handleLogout() {
this.$modal.confirm('确定注销并退出系统吗?').then(() => {
this.$store.dispatch('LogOut').then(() => {
this.$tab.reLaunch('/pages/index')
})
})
},
handleHelp() { handleHelp() {
this.$tab.navigateTo('/pages/mine/help/index') this.$tab.navigateTo('/pages/mine/help/index')
}, },
...@@ -630,8 +633,8 @@ export default { ...@@ -630,8 +633,8 @@ export default {
} }
.scroll-y { .scroll-y {
height: calc(100vh - 88px); //height: calc(100vh - 220px);
background-color: #FFFFFF; background: #F9F9F9;
} }
page { page {
...@@ -685,9 +688,49 @@ page { ...@@ -685,9 +688,49 @@ page {
} }
.header-section { .header-section {
padding: 32rpx 32rpx;
background-color: #FFFFFF;
color: black; color: black;
display: flex;
align-items: center;
align-content: center;
flex-direction: row;
justify-content: center;
.section-detail{
width: 700rpx;
height: 116rpx;
background: #FFFFFF;
border-radius: 20rpx;
display: flex;
align-items: center;
align-content: center;
flex-direction: row;
justify-content: space-between;
padding: 0 38rpx 0 32rpx;
.detail-left{
display: flex;
align-items: center;
align-content: center;
flex-direction: row;
justify-content: center;
.icon-left{
width: 40rpx;
height: 40rpx;
margin-right: 30rpx;
}
.user-info{
text{
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 28rpx;
color: #333333;
text-align: left;
font-style: normal;
text-transform: none;
}
}
}
}
.login-tip { .login-tip {
font-size: 18px; font-size: 18px;
...@@ -701,20 +744,6 @@ page { ...@@ -701,20 +744,6 @@ page {
font-size: 40px; font-size: 40px;
} }
} }
.user-info {
margin-left: 15px;
max-height: 120rpx;
.u_title {
white-space: nowrap;
font-size: 34rpx;
font-weight: 600;
color: #343744;
line-height: 34rpx;
-webkit-background-clip: text;
margin-right: 32rpx;
}
}
} }
.align-center { .align-center {
......
This diff is collapsed.
...@@ -58,8 +58,8 @@ export default { ...@@ -58,8 +58,8 @@ export default {
content: content, content: content,
cancelText: '取消', cancelText: '取消',
confirmText: '确定', confirmText: '确定',
confirmColor: '#5BB647', confirmColor: '#333399',
cancelColor: '#666666', cancelColor: '#000000',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
resolve(res.confirm) resolve(res.confirm)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment