|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="content-wrap bg-color">
|
|
<view class="content-wrap bg-color">
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<view class="head-wrap ">
|
|
<view class="head-wrap ">
|
|
|
<view class="content-info ">
|
|
<view class="content-info ">
|
|
|
|
|
|
|
@@ -26,8 +25,7 @@
|
|
|
<!-- 欢迎语 -->
|
|
<!-- 欢迎语 -->
|
|
|
<view class="welcome-wrap">
|
|
<view class="welcome-wrap">
|
|
|
<view class="logo">
|
|
<view class="logo">
|
|
|
- <image v-if="userInfo.selfPhotoUrl" :src="userInfo.selfPhotoUrl" mode=""></image>
|
|
|
|
|
- <image v-else src="../../static/logo.png" mode=""></image>
|
|
|
|
|
|
|
+ <image :src="userInfo.selfPhotoUrl || '/../static/logo.png'" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="text">
|
|
<view class="text">
|
|
|
<view class="phone">{{ userInfo.cellPhone }}</view>
|
|
<view class="phone">{{ userInfo.cellPhone }}</view>
|
|
@@ -45,29 +43,29 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 余额信息 -->
|
|
<!-- 余额信息 -->
|
|
|
- <view class="balance-info">
|
|
|
|
|
- <view @click="gotoRechargeService()" class="balance-amount">
|
|
|
|
|
- <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>
|
|
|
|
|
- <text class="number" v-else>¥0.00</text>
|
|
|
|
|
- <view class="">余额</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="gotoIntgral()" class="score-info">
|
|
|
|
|
- <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>
|
|
|
|
|
- <text class="number" v-else>0</text>
|
|
|
|
|
- <view class="">积分</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="gotoCoupon()" class="coupon-info">
|
|
|
|
|
- <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>
|
|
|
|
|
- <text class="number" v-else>0</text>
|
|
|
|
|
- <view class="">优惠券</view>
|
|
|
|
|
-
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="e-currency-info">
|
|
|
|
|
- <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>
|
|
|
|
|
- <text class="number" v-else>0</text>
|
|
|
|
|
- <view class="">电子币</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+<!-- <view class="balance-info">-->
|
|
|
|
|
+<!-- <view @click="gotoRechargeService()" class="balance-amount">-->
|
|
|
|
|
+<!-- <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>-->
|
|
|
|
|
+<!-- <text class="number" v-else>¥0.00</text>-->
|
|
|
|
|
+<!-- <view class="">余额</view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- <view class="score-info">-->
|
|
|
|
|
+<!-- <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>-->
|
|
|
|
|
+<!-- <text class="number" v-else>0</text>-->
|
|
|
|
|
+<!-- <view class="">积分</view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- <view @click="gotoCoupon()" class="coupon-info">-->
|
|
|
|
|
+<!-- <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>-->
|
|
|
|
|
+<!-- <text class="number" v-else>0</text>-->
|
|
|
|
|
+<!-- <view class="">优惠券</view>-->
|
|
|
|
|
+
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- <view class="e-currency-info">-->
|
|
|
|
|
+<!-- <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>-->
|
|
|
|
|
+<!-- <text class="number" v-else>0</text>-->
|
|
|
|
|
+<!-- <view class="">电子币</view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
|
|
|
<view class="custom-line"></view>
|
|
<view class="custom-line"></view>
|
|
|
|
|
|
|
@@ -162,12 +160,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="button-wrap">
|
|
<view class="button-wrap">
|
|
|
- <view @click="gotoReceiveCoupons()" class="btn">
|
|
|
|
|
|
|
+ <view @click="goRights()" class="btn">
|
|
|
<view class="icon">
|
|
<view class="icon">
|
|
|
<u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
|
|
<u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="name">
|
|
<view class="name">
|
|
|
- 领优惠券
|
|
|
|
|
|
|
+ 权益卡
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -308,6 +306,13 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ goRights(){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/storePages/rights/index'
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 去服务点单页面
|
|
// 去服务点单页面
|
|
|
gotoServiceOrder() {
|
|
gotoServiceOrder() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -380,15 +385,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // 积分详细页面
|
|
|
|
|
- gotoIntgral() {
|
|
|
|
|
- uni.$u.route({
|
|
|
|
|
- url: '/pages/integral/integral',
|
|
|
|
|
- params: {
|
|
|
|
|
- name: 'lisa'
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
+
|
|
|
getNoticeListData() {
|
|
getNoticeListData() {
|
|
|
let req = {
|
|
let req = {
|
|
|
auth: true,
|
|
auth: true,
|
|
@@ -411,10 +408,9 @@ export default {
|
|
|
getImgUrlByOssId(ossId) {
|
|
getImgUrlByOssId(ossId) {
|
|
|
if (ossId) {
|
|
if (ossId) {
|
|
|
this.$api.getImage(ossId).then(res => {
|
|
this.$api.getImage(ossId).then(res => {
|
|
|
- console.log('++++++++用户头像+++++++++++++++', res)
|
|
|
|
|
|
|
+ this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
|
|
+ this.$set(this.userInfo)
|
|
|
})
|
|
})
|
|
|
- this.userInfo.selfPhotoUrl = url;
|
|
|
|
|
- return url;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -490,7 +486,7 @@ export default {
|
|
|
|
|
|
|
|
/* 头部内容 */
|
|
/* 头部内容 */
|
|
|
.head-wrap {
|
|
.head-wrap {
|
|
|
- height: 2200rpx;
|
|
|
|
|
|
|
+ height: 1850rpx;
|
|
|
background: #FFE05C;
|
|
background: #FFE05C;
|
|
|
|
|
|
|
|
.content-info {
|
|
.content-info {
|
|
@@ -535,9 +531,8 @@ export default {
|
|
|
|
|
|
|
|
.logo {
|
|
.logo {
|
|
|
width: 13%;
|
|
width: 13%;
|
|
|
-
|
|
|
|
|
image {
|
|
image {
|
|
|
- border-radius: 15px;
|
|
|
|
|
|
|
+ border-radius: 18px;
|
|
|
width: 36px;
|
|
width: 36px;
|
|
|
height: 36px;
|
|
height: 36px;
|
|
|
}
|
|
}
|