|
@@ -3,87 +3,41 @@
|
|
|
<scroll-view scroll-y class="bg">
|
|
|
<div class="user">
|
|
|
<van-cell custom-class="head-cell" is-link label-class="" center>
|
|
|
- <view
|
|
|
- @click="
|
|
|
- () => {
|
|
|
- userFormShow = true;
|
|
|
- nickName = userInfo.nickName || '新用户';
|
|
|
- }
|
|
|
- "
|
|
|
- class="userButton"
|
|
|
- slot="title"
|
|
|
- >
|
|
|
- <image
|
|
|
- class="user-headImg"
|
|
|
- v-if="userInfo.headImage"
|
|
|
- :src="userInfo.headImage"
|
|
|
- ></image>
|
|
|
+ <view @click="() => {
|
|
|
+ userFormShow = true;
|
|
|
+ nickName = userInfo.nickName || '新用户';
|
|
|
+ }
|
|
|
+ " class="userButton" slot="title">
|
|
|
+ <image class="user-headImg" v-if="userInfo.headImage" :src="userInfo.headImage"></image>
|
|
|
<image class="user-headImg" v-else :src="unLoginHead"></image>
|
|
|
- <view
|
|
|
- class="flex"
|
|
|
- style="width: 60%; padding-left: 24rpx; text-align: left"
|
|
|
- >
|
|
|
+ <view class="flex" style="width: 60%; padding-left: 24rpx; text-align: left">
|
|
|
<view style="font-size: 38rpx; color: #0a1a33; width: 100%">{{
|
|
|
userInfo.nickName || "新用户"
|
|
|
}}</view>
|
|
|
<view style="font-size: 26rpx; color: #8a9099; width: 100%">
|
|
|
- {{ userInfo.phone || "点击绑定手机号" }}</view
|
|
|
- >
|
|
|
+ {{ userInfo.phone || "点击绑定手机号" }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="三力测试"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/beforeThreeExam/index"
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="三力测试" is-link center
|
|
|
+ url="/otherPages/beforeThreeExam/index">
|
|
|
</van-cell>
|
|
|
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="关注公众号"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/careGzh/index"
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="关注公众号" is-link center url="/otherPages/careGzh/index">
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="电子资料"
|
|
|
- is-link
|
|
|
- @click="
|
|
|
- goPath(
|
|
|
- '/pages/extraWeb/index?src=https://nbjk-h5.zzxcx.net/pdfImages'
|
|
|
- )
|
|
|
- "
|
|
|
- center
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="电子资料" is-link @click="
|
|
|
+ goPath(
|
|
|
+ '/pages/extraWeb/index?src=https://nbjk-h5.zzxcx.net/pdfImages'
|
|
|
+ )
|
|
|
+ " center>
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="每日驾考资讯"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/careEveryDay/index"
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="每日驾考资讯" is-link center
|
|
|
+ url="/otherPages/careEveryDay/index">
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="生成分享二维码"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/createReferCode/index"
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="生成分享二维码" is-link center
|
|
|
+ url="/otherPages/createReferCode/index">
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title-class="uni-app-fontsize-paragraph"
|
|
|
- title="用户反馈"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/userAdvise/index"
|
|
|
- >
|
|
|
+ <van-cell title-class="uni-app-fontsize-paragraph" title="用户反馈" is-link center url="/otherPages/userAdvise/index">
|
|
|
</van-cell>
|
|
|
<!-- <van-cell title="我要提现" value="" is-link center @click="goCashOut">
|
|
|
</van-cell> -->
|
|
@@ -112,29 +66,11 @@
|
|
|
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef MP-TOUTIAO -->
|
|
|
- <van-cell
|
|
|
- v-if="!isVip"
|
|
|
- title="会员有效期"
|
|
|
- :value="'开通会员'"
|
|
|
- is-link
|
|
|
- center
|
|
|
- url="/otherPages/buyVip/index"
|
|
|
- >
|
|
|
+ <van-cell v-if="!isVip" title="会员有效期" :value="'开通会员'" is-link center url="/otherPages/buyVip/index">
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- v-if="isVip"
|
|
|
- title="会员有效期"
|
|
|
- :value="'已开通'"
|
|
|
- is-link
|
|
|
- center
|
|
|
- >
|
|
|
+ <van-cell v-if="isVip" title="会员有效期" :value="'已开通'" is-link center>
|
|
|
</van-cell>
|
|
|
- <van-cell
|
|
|
- title="资料下载"
|
|
|
- is-link
|
|
|
- @click="goVipPath('/otherPages/pdfList/index')"
|
|
|
- left
|
|
|
- >
|
|
|
+ <van-cell title="资料下载" is-link @click="goVipPath('/otherPages/pdfList/index')" left>
|
|
|
<template #icon>
|
|
|
<m-icon type="fkbz" class="cell-icon" />
|
|
|
</template>
|
|
@@ -153,54 +89,25 @@
|
|
|
</div>
|
|
|
<view class="list"> </view>
|
|
|
<view class="wxad">
|
|
|
- <ad
|
|
|
- ad-type="video"
|
|
|
- :ad-intervals="100"
|
|
|
- unit-id="adunit-8eb44bbd7e3147d4"
|
|
|
- ></ad>
|
|
|
+ <ad ad-type="video" :ad-intervals="100" unit-id="adunit-8eb44bbd7e3147d4"></ad>
|
|
|
</view>
|
|
|
- <van-popup :z-index="9999" :close-on-click-overlay="true" position="bottom" :show="userFormShow">
|
|
|
+ <van-popup :z-index="9999" :close-on-click-overlay="true" position="bottom" :show="userFormShow">
|
|
|
<view class="userform">
|
|
|
<view class="userform-close">
|
|
|
- <van-icon
|
|
|
- @click="
|
|
|
- () => {
|
|
|
- userFormShow = false;
|
|
|
- }
|
|
|
- "
|
|
|
- color="#a8a8a8"
|
|
|
- size="18"
|
|
|
- name="cross"
|
|
|
- />
|
|
|
+ <van-icon @click="() => {
|
|
|
+ userFormShow = false;
|
|
|
+ }
|
|
|
+ " color="#a8a8a8" size="18" name="cross" />
|
|
|
</view>
|
|
|
<view>
|
|
|
- <van-field
|
|
|
- :value="userInfo.nickName"
|
|
|
- required
|
|
|
- clearable
|
|
|
- label="用户名"
|
|
|
- @change="changeUserName"
|
|
|
- placeholder="请输入用户名"
|
|
|
- />
|
|
|
- <van-field
|
|
|
-
|
|
|
- :value="userInfo.phone"
|
|
|
- clearable
|
|
|
- label="手机号"
|
|
|
- placeholder="请绑定手机号"
|
|
|
- @change="changeUserPhone"
|
|
|
- >
|
|
|
-
|
|
|
+ <van-field :value="userInfo.nickName" required clearable label="用户名" @change="changeUserName"
|
|
|
+ placeholder="请输入用户名" />
|
|
|
+ <van-field :value="userInfo.phone" clearable label="手机号" placeholder="请绑定手机号" @change="changeUserPhone">
|
|
|
+
|
|
|
</van-field>
|
|
|
</view>
|
|
|
<view class="userform-bind">
|
|
|
- <van-button
|
|
|
- @click="sendUserInfo"
|
|
|
- custom-style="width:690rpx;"
|
|
|
- round
|
|
|
- type="primary"
|
|
|
- >修改用户信息</van-button
|
|
|
- >
|
|
|
+ <van-button @click="sendUserInfo" custom-style="width:690rpx;" round type="primary">修改用户信息</van-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-popup>
|
|
@@ -308,6 +215,12 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ if (typeof this.$mp.page.getTabBar === 'function' &&
|
|
|
+ this.$mp.page.getTabBar()) {
|
|
|
+ this.$mp.page.getTabBar().init()
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|
|
@@ -326,6 +239,7 @@ export default {
|
|
|
padding-right: 15rpx;
|
|
|
padding-top: 15rpx;
|
|
|
}
|
|
|
+
|
|
|
.userform-bind {
|
|
|
width: 100%;
|
|
|
padding: 30rpx 30rpx;
|
|
@@ -333,14 +247,17 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.flex {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
}
|
|
|
+
|
|
|
.userButton::after {
|
|
|
border: 0;
|
|
|
}
|
|
|
+
|
|
|
.userButton {
|
|
|
border: 0;
|
|
|
display: flex;
|