|
@@ -4,21 +4,21 @@
|
|
|
<view class="userHead-img">
|
|
|
<u-avatar :src="userId ? headImg : '../../assets/img/head.png'" size="96"></u-avatar>
|
|
|
</view>
|
|
|
- <view class="userHead-text oldTextjp2" oldstyle="font-size: 28px;">
|
|
|
- <h3 class="oldTextjp2" oldstyle="font-size: 28px;">{{userId ? userPhone : '点击登录/注册'}}</h3>
|
|
|
+ <view class="userHead-text">
|
|
|
+ <h3 :style="elderStatus ? 'font-size: 28px;' : ''">{{userId ? userPhone : '点击登录/注册'}}</h3>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="userData">
|
|
|
<view class="userData-num" @click="toBalance">
|
|
|
- <view class="userData-data oldTextjp2" oldstyle="font-size: 28px;">{{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}元</view>
|
|
|
- <view class="userData-foot oldTextjp2" oldstyle="font-size: 16px;">可用余额</view>
|
|
|
+ <view class="userData-data oldTextjp" oldstyle="font-size: 28px;">{{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}元</view>
|
|
|
+ <view class="userData-foot" :style="elderStatus ? 'font-size: 16px;' : ''">可用余额</view>
|
|
|
</view>
|
|
|
<view class="line">
|
|
|
|
|
|
</view>
|
|
|
<view class="userData-num" @click="toMyCoupon">
|
|
|
- <view class="userData-data oldTextjp2" oldstyle="font-size: 28px;">{{recordsTotal}}张</view>
|
|
|
- <view class="userData-foot oldTextjp2" oldstyle="font-size: 16px;">优惠券</view>
|
|
|
+ <view class="userData-data oldTextjp" oldstyle="font-size: 28px;">{{recordsTotal}}张</view>
|
|
|
+ <view class="userData-foot" :style="elderStatus ? 'font-size: 16px;' : ''">优惠券</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="userBanner">
|
|
@@ -30,78 +30,81 @@
|
|
|
|
|
|
</view>
|
|
|
<view class="userIcon">
|
|
|
- <view class="userIcon-tit oldTextjp2" oldstyle="font-size: 20px;">
|
|
|
+ <view class="userIcon-tit" :style="elderStatus ? 'font-size: 20px;' : ''">
|
|
|
<h3>常用功能</h3>
|
|
|
</view>
|
|
|
- <view class="userIcon-main oldTextjp2" oldstyle="font-size: 18px;">
|
|
|
+ <view class="userIcon-main">
|
|
|
<view class="userIcon-item" @click="getScanCode">
|
|
|
<view class="userIcon-icon userIcon-icon1">
|
|
|
<u-icon name="qr-scan-2-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
|
|
|
</view>
|
|
|
- <p>扫码充电</p>
|
|
|
+ <p :style="elderStatus ? 'font-size: 18px;' : ''">扫码充电</p>
|
|
|
</view>
|
|
|
<view class="userIcon-item" @click="fastRecharge">
|
|
|
<view class="userIcon-icon userIcon-icon2">
|
|
|
<u-icon name="wallet-3-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
|
|
|
</view>
|
|
|
- <p>快速充值</p>
|
|
|
+ <p :style="elderStatus ? 'font-size: 18px;' : ''">快速充值</p>
|
|
|
</view>
|
|
|
<view class="userIcon-item" @click="chargingRecord">
|
|
|
<view class="userIcon-icon userIcon-icon3">
|
|
|
<u-icon name="todo-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
|
|
|
</view>
|
|
|
- <p>充电记录</p>
|
|
|
+ <p :style="elderStatus ? 'font-size: 18px;' : ''">充电记录</p>
|
|
|
</view>
|
|
|
<view class="userIcon-item" @click="toSearchPile">
|
|
|
<view class="userIcon-icon userIcon-icon4">
|
|
|
<u-icon name="road-map-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
|
|
|
</view>
|
|
|
- <p>附近站点</p>
|
|
|
+ <p :style="elderStatus ? 'font-size: 18px;' : ''">附近站点</p>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="userCell">
|
|
|
<view class="userCell-item" @click="carManage">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="menu_cwcl" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>车辆管理</p>
|
|
|
</view>
|
|
|
- <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
|
|
|
+ <view>
|
|
|
+ <text class="add" :style="elderStatus ? 'font-size: 16px;' : ''">添加车牌号</text>
|
|
|
+ <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="userCell-item" @click="gotoUrl('pages/user/help')">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="compass-3-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>操作指南</p>
|
|
|
</view>
|
|
|
<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
|
|
|
</view>
|
|
|
<view class="userCell-item" @click="feedback">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="feedback-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>意见反馈</p>
|
|
|
</view>
|
|
|
<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
|
|
|
</view>
|
|
|
<view class="userCell-item" @click="gotoUrl('pages/user/about')">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="information-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>关于我们</p>
|
|
|
</view>
|
|
|
<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
|
|
|
</view>
|
|
|
<view class="userCell-item" @click="openModal">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="customer-service-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>联系客服</p>
|
|
|
</view>
|
|
|
- <span>{{content}}</span>
|
|
|
+ <span :style="elderStatus ? 'font-size: 16px;' : ''">{{content}}</span>
|
|
|
</view>
|
|
|
<view>
|
|
|
<u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266" :show-cancel-button="true" ref="uModal"
|
|
|
:asyncClose="true" :title="title" :content="content"></u-modal>
|
|
|
</view>
|
|
|
<view class="userCell-item" @click="setUp">
|
|
|
- <view class="userCell-title">
|
|
|
+ <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
<u-icon name="settings-4-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
|
|
|
<p>设置</p>
|
|
|
</view>
|
|
@@ -151,12 +154,16 @@
|
|
|
this.getCarPersonAccount();
|
|
|
this.getUserInfo();
|
|
|
this.getCouponList();
|
|
|
+
|
|
|
+ if(this.carhelp.get("getElderModeClass") == "长辈模式") {
|
|
|
+ this.elderStatus = true;
|
|
|
+ } else {
|
|
|
+ this.elderStatus = false;
|
|
|
+ }
|
|
|
}
|
|
|
if(this.$refs.tabbarMain){
|
|
|
this.$refs.tabbarMain.setcount(2);
|
|
|
}
|
|
|
-
|
|
|
- this.elderStatus=this.carhelp.get("getElderModeClass");
|
|
|
},
|
|
|
onReady() {
|
|
|
WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
|
|
@@ -183,7 +190,12 @@
|
|
|
if(mod.linkUrl.indexOf("?")==-1){
|
|
|
mod.linkUrl+='?';
|
|
|
}
|
|
|
- window.location=mod.linkUrl;
|
|
|
+ //window.location=mod.linkUrl;
|
|
|
+ var url=mod.linkUrl.split("#")[1]
|
|
|
+ //window.location = mod.clickUrl;
|
|
|
+ uni.navigateTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
}
|
|
|
else if(mod.linkUrl=='#'||mod.linkUrl==''){
|
|
|
|
|
@@ -201,6 +213,7 @@
|
|
|
mask: true,
|
|
|
})
|
|
|
newsApi.getBannerInfo(code).then((res) => {
|
|
|
+ uni.hideLoading();
|
|
|
this.bannerList =res.data;
|
|
|
|
|
|
// document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
|
|
@@ -427,7 +440,9 @@
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
.userIcon-main{
|
|
|
margin-top: 16px;
|
|
|
display: flex;
|
|
@@ -468,6 +483,9 @@
|
|
|
span{
|
|
|
color:#999;
|
|
|
}
|
|
|
+ .add{
|
|
|
+ color:#999;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|