|
|
@ -1,13 +1,12 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class="new-users copy-data" ><!-- 去掉了 :style="{height:pageHeight}" -->
|
|
|
|
<view class="new-users copy-data"><!-- 去掉了 :style="{height:pageHeight}" -->
|
|
|
|
<view class="mid" style="flex:1;overflow: hidden;">
|
|
|
|
<view class="mid" style="flex:1;overflow: hidden;">
|
|
|
|
<scroll-view scroll-y="true" style="height: 100%;">
|
|
|
|
<scroll-view scroll-y="true" style="height: 100%;">
|
|
|
|
<view class="bg"></view>
|
|
|
|
<view class="bg"></view>
|
|
|
|
<view class="head pad30">
|
|
|
|
<view class="head pad30">
|
|
|
|
<view class="user-card">
|
|
|
|
<view class="user-card">
|
|
|
|
<view class="user-info">
|
|
|
|
<view class="user-info">
|
|
|
|
<image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar && uid"
|
|
|
|
<image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar && uid" @click="goEdit()"></image>
|
|
|
|
@click="goEdit()"></image>
|
|
|
|
|
|
|
|
<image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()"></image>
|
|
|
|
<image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()"></image>
|
|
|
|
<view class="info">
|
|
|
|
<view class="info">
|
|
|
|
<view class="name" v-if="!uid" @tap="openAuto">
|
|
|
|
<view class="name" v-if="!uid" @tap="openAuto">
|
|
|
@ -32,8 +31,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="num-wrapper">
|
|
|
|
<view class="num-wrapper">
|
|
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_money/index')">
|
|
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_money/index')">
|
|
|
|
<text
|
|
|
|
<text class="num">{{userInfo.nowMoney && uid ?Number(userInfo.nowMoney).toFixed(2):0}}</text>
|
|
|
|
class="num">{{userInfo.nowMoney && uid ?Number(userInfo.nowMoney).toFixed(2):0}}</text>
|
|
|
|
|
|
|
|
<view class="txt">余额</view>
|
|
|
|
<view class="txt">余额</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
|
|
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
|
|
|
@ -54,8 +52,7 @@
|
|
|
|
<view class="order-wrapper">
|
|
|
|
<view class="order-wrapper">
|
|
|
|
<view class="order-hd flex">
|
|
|
|
<view class="order-hd flex">
|
|
|
|
<view class="left">订单中心</view>
|
|
|
|
<view class="left">订单中心</view>
|
|
|
|
<navigator class="right flex" hover-class="none" url="/pages/users/order_list/index"
|
|
|
|
<navigator class="right flex" hover-class="none" url="/pages/users/order_list/index" open-type="navigate">
|
|
|
|
open-type="navigate">
|
|
|
|
|
|
|
|
查看全部
|
|
|
|
查看全部
|
|
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
|
|
<text class="iconfont icon-xiangyou"></text>
|
|
|
|
</navigator>
|
|
|
|
</navigator>
|
|
|
@ -111,7 +108,7 @@
|
|
|
|
<!-- #endif -->
|
|
|
|
<!-- #endif -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<image src="/static/images/support.png" alt="" class='support'>
|
|
|
|
<!-- <image src="/static/images/support.png" alt="" class='support'> -->
|
|
|
|
<view class="uni-p-b-98"></view>
|
|
|
|
<view class="uni-p-b-98"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
@ -125,12 +122,24 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
|
|
|
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
|
|
|
import Cache from '@/utils/cache';
|
|
|
|
import Cache from '@/utils/cache';
|
|
|
|
import {BACK_URL} from '@/config/cache';
|
|
|
|
import {
|
|
|
|
import {getMenuList} from '@/api/user.js';
|
|
|
|
BACK_URL
|
|
|
|
import {orderData} from '@/api/order.js';
|
|
|
|
} from '@/config/cache';
|
|
|
|
import {toLogin} from '@/libs/login.js';
|
|
|
|
import {
|
|
|
|
import {getCity} from '@/api/api.js';
|
|
|
|
getMenuList
|
|
|
|
import {mapGetters} from "vuex";
|
|
|
|
} from '@/api/user.js';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
orderData
|
|
|
|
|
|
|
|
} from '@/api/order.js';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
toLogin
|
|
|
|
|
|
|
|
} from '@/libs/login.js';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
getCity
|
|
|
|
|
|
|
|
} from '@/api/api.js';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
mapGetters
|
|
|
|
|
|
|
|
} from "vuex";
|
|
|
|
// #ifdef H5
|
|
|
|
// #ifdef H5
|
|
|
|
import Auth from '@/libs/wechat';
|
|
|
|
import Auth from '@/libs/wechat';
|
|
|
|
// #endif
|
|
|
|
// #endif
|
|
|
@ -314,7 +323,7 @@
|
|
|
|
res.data.routine_my_menus.map((item) => {
|
|
|
|
res.data.routine_my_menus.map((item) => {
|
|
|
|
if (item.url.indexOf('service') !== -1) that.servicePic = item.pic
|
|
|
|
if (item.url.indexOf('service') !== -1) that.servicePic = item.pic
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(res.data.routine_my_banner){
|
|
|
|
if (res.data.routine_my_banner) {
|
|
|
|
that.imgUrls = res.data.routine_my_banner
|
|
|
|
that.imgUrls = res.data.routine_my_banner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -373,12 +382,13 @@
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
top: 0;
|
|
|
|
width:100%;
|
|
|
|
width: 100%;
|
|
|
|
height: 420rpx;
|
|
|
|
height: 420rpx;
|
|
|
|
background-image: url('~@/static/images/user_bg.png');
|
|
|
|
background-image: url('~@/static/images/user_bg.png');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.contenBox {
|
|
|
|
.contenBox {
|
|
|
|
padding: 0 30rpx;
|
|
|
|
padding: 0 30rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -421,6 +431,7 @@
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 35rpx 0 30rpx 0;
|
|
|
|
padding: 35rpx 0 30rpx 0;
|
|
|
|
|
|
|
|
|
|
|
|
.user-info {
|
|
|
|
.user-info {
|
|
|
|
z-index: 20;
|
|
|
|
z-index: 20;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|