You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
high-mini/pages/tabBar/user/user.vue

572 lines
27 KiB

<template>
<view>
<view class="user">
<!-- 头像 -->
<view class="left">
<image src="/static/img/head.png" v-if="!user.headerImg"></image>
<image :src="user.headerImg" v-else></image>
</view>
<!-- 昵称,个性签名 -->
<view class="right">
<view class="username" v-if="!user.name">请授权登录</view>
<view class="username" v-else>{{user.name}}</view>
<view class="font14 fcorfff" v-if="!user.gold">金币: 0</view>
<view class="font14 fcorfff" v-else>金币: {{user.gold}} </view>
<!-- <view class="signature" @tap="toSetting">{{user.signature}}</view> -->
</view>
<!-- 二维码按钮 -->
<button class="erweima" v-if="user.phone == null" open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber">
<image style="width: 50px;height: 50px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0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vAN4BeIevGl6xvJ1OJMAFIuyEX/P7/xEpmQWkIBcotjr+6HkmzVEXamL7MasAslTlZxUBhIR2wt9RQu7lvwYgUAC0ZAYQX8RR5xCrsbzYnKGvF3DgjFW3DTLEh/w18A+2tt3pBFAbuRNmxyjdydtyIeYlhZcAFBQD9YQ4GU5lAPRpgAp36oaCgN3WPp/3aZ3MWA2pgc9sf49sIMAIk/AQf953VG0wUvwl3EQUcc1AgUjC3g5buxqZBFQvHlkOt0AxPsq7+CM67XjFIO/vf+Eq/960ETmbCDBKGzCuDbQe7fEDyeGkEMeoyxKARAEo4+1lqh9BxGEWGIxvZkm8587YkdTUhzhsQd1vP8JteXAovvEys3HjaxTbtqZv1Gc1AUZGChTofRyilSSOXPZFCjy04zprPwP2oB0e/qQmwHkZ3AGL/T74EQL5Mu/RQFYgTyBIAN8KheH7+Rvhk4ySMNsJMCpieBEeoJSuR8BFTtMKYrQTIMcYY8/7b4StjmnXZCLAhZf6BZRHCuA+gnQtf4MqSHaRa+ojPQaMtCBhL3sH4EGyCToc11eTkQBjJfIKbAAF1nEH70r+yrP4Rz6bAA8BkgZK2DsSwmskQ3bdJYDeS++AipgX1vNXW8Pd7+X8k0vGhZYGQjb+9qd4bHiId8HbcgSeJwY3X3QJ4FDp4MQo80FZmEEZoVBKEUrF54xANzLo9lHo7AxDZ3kWAm0bAVyZ3ELdLnAJ4IpLAFdcArjiEsAVlwCuuARwZSrJ/wswAKMFQtcRgYh/AAAAAElFTkSuQmCC">
</image>
</button>
<button class="erweima" v-else @click="toDeposit">
<image style="width: 50px;height: 50px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4On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8HbcgSeJwY3X3QJ4FDp4MQo80FZmEEZoVBKEUrF54xANzLo9lHo7AxDZ3kWAm0bAVyZ3ELdLnAJ4IpLAFdcArjiEsAVlwCuuARwZSrJ/wswAKMFQtcRgYh/AAAAAElFTkSuQmCC">
</image>
</button>
</view>
<!-- 订单-余额 -->
<view class="order">
<!-- 订单类型 -->
<view class="title">我的订单</view>
<view class="list">
<view class="box" v-for="(row,index) in orderList" :key="index" @tap="toOrderList(index)">
<view class="img">
<view class="icon" :class="row.icon"></view>
</view>
<view class="text">{{row.text}}</view>
</view>
</view>
</view>
<!-- 工具栏 -->
<view class="toolbar">
<view class="title">我的工具栏</view>
<view class="list">
<view class="box" v-for="(row,index) in mytoolbarList" :key="index" @tap="toPage(row.url)">
<!-- <view style="width: 10px;height: 10px;">
<uni-badge text="1" type="error" />
</view> -->
<uni-badge style="width: 20px;" v-if="row.text == '我的卡券' " :text="textnum" type="error" size="normal"></uni-badge>
<view class="img">
<image :src="row.img"></image>
</view>
<view class="text">{{row.text}}</view>
</view>
</view>
</view>
<!-- 占位 -->
<view class="place-bottom"></view>
<authorize></authorize>
</view>
</template>
<script>
import {
GetPhoneNumber,
findUser
} from "../../../Utils/Api.js";
import uniBadge from "../../../components/uni-badge/components/uni-badge/uni-badge.vue";
let app = getApp()
import authorize from '../../../components/Authorize';
export default {
components: {
authorize,
uniBadge
},
data() {
return {
isfirst: true,
headerPosition: "fixed",
textnum : 10,
headerTop: null,
statusTop: null,
showHeader: true,
//个人信息,
user: "",
// 订单类型
orderList: [{
text: '待支付',
icon: "fukuan"
},
{
text: '已支付',
icon: "fahuo"
},
{
text: '已完成',
icon: "shouhuo"
},
// {
// text: '已退款',
// icon: "pingjia"
// },
{
text: '已取消',
icon: "pingjia"
},
],
// 工具栏列表
mytoolbarList: [{
url: '/pages/goods/recording/recording?id=1',
text: '充值记录',
img: '/static/img/user/mingxi.png'
},
{
url: '/pages/goods/recording/recording?id=2',
text: '消费记录',
img: '/static/img/user/quan.png'
},
{
url: '/pages/user/mineCoupons/mineCoupons',
text: '我的卡券',
img: '/static/img/user/choujiang.png'
},
{
url: '../../login/login',
text: '商户入口',
img: '/static/img/user/point.png'
}
]
}
},
//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
onPullDownRefresh() {
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
onPageScroll(e) {
//兼容iOS端下拉时顶部漂移
this.headerPosition = e.scrollTop >= 0 ? "fixed" : "absolute";
this.headerTop = e.scrollTop >= 0 ? null : 0;
this.statusTop = e.scrollTop >= 0 ? null : -this.statusHeight + 'px';
},
onLoad() {
this.statusHeight = 0;
},
onReady() {
//此处,演示,每次页面初次渲染都把登录状态重置
uni.setStorage({
key: 'UserInfo',
data: false,
success: function() {},
fail: function(e) {}
});
},
onShow() {
if (app.globalData.userInfo) {
this.findUser();
}
},
methods: {
findUser() {
let params;
findUser(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data;
this.user = res.return_data;
uni.setStorage({
key: "user",
data: res.return_data
})
}
});
},
getPhoneNumber(PhoneNumber) {
let params = {
openId: app.globalData.openId,
iv: PhoneNumber.detail.iv,
encryptedData: PhoneNumber.detail.encryptedData
}
GetPhoneNumber(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data
.object
.highUser;
uni.setStorage({
key: "user",
data: res.return_data
.object
.highUser
})
this.toDeposit();
}
});
},
//消息列表
toMsg() {
// uni.navigateTo({
// url:'../../msg/msg'
// })
uni.showToast({
title: '暂未开通',
icon: 'none'
});
},
toOrderList(index) {
uni.navigateTo({
url: '../../user/order_list/order_list?tbIndex=' + index
})
},
// toSetting() {
// uni.navigateTo({
// url: '../../user/setting/setting'
// })
// },
toMyQR() {
uni.navigateTo({
url: '../../user/myQR/myQR'
})
},
toLogin() {
uni.showToast({
title: '请登录',
icon: "none"
});
uni.navigateTo({
url: '../../login/login'
})
this.isfirst = false;
},
isLogin() {
//实际应用中,用户登录状态应该用token等方法去维持登录状态.
const value = uni.getStorageSync('UserInfo');
if (value) {
return true;
}
return false
},
toDeposit() {
uni.navigateTo({
url: '../../user/deposit/deposit'
})
},
toPage(url) {
if (!url) {
uni.showToast({
title: '模板未包含此页面',
icon: "none"
});
return;
}
uni.navigateTo({
url: url
})
}
}
}
</script>
<style lang="scss">
page {
position: relative;
background-color: #fff;
}
.status {
width: 100%;
height: 0;
position: fixed;
z-index: 10;
background-color: #f06c7a;
top: 0;
/* #ifdef APP-PLUS */
height: var(--status-bar-height); //覆盖样式
/* #endif */
}
.header {
width: 92%;
padding: 0 4%;
height: 100upx;
display: flex;
justify-content: flex-end;
align-items: center;
position: fixed;
top: 0;
z-index: 10;
background-color: #f06c7a;
/* #ifdef APP-PLUS */
top: var(--status-bar-height);
/* #endif */
.icon-btn {
width: 120upx;
height: 60upx;
flex-shrink: 0;
display: flex;
.icon {
color: #fff;
width: 60upx;
height: 60upx;
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 42upx;
}
}
}
.place {
background-color: #f06c7a;
height: 100upx;
/* #ifdef APP-PLUS */
margin-top: var(--status-bar-height);
/* #endif */
}
.place-bottom {
height: 300upx;
}
.user {
width: 92%;
padding: 0 4%;
display: flex;
align-items: center;
// position: relative;
background-color: #f06c7a;
padding-bottom: 40rpx;
.left {
width: 20vw;
height: 20vw;
flex-shrink: 0;
margin-right: 20upx;
border: solid 1upx #fff;
border-radius: 100%;
image {
width: 20vw;
height: 20vw;
border-radius: 100%;
}
}
.right {
width: 100%;
.username {
font-size: 36upx;
color: #fff;
}
.signature {
color: #eee;
font-size: 28upx;
}
}
.erweima {
flex-shrink: 0;
width: 50px;
height: 50px;
padding: 0;
margin-left: 5vw;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to left, #fbbb37 0%, #fcf0d0 105%);
.icon {
color: #7b6335;
font-size: 42upx;
}
}
}
.order {
.title {
padding-top: 10upx;
margin: 0 0 10upx 3%;
font-size: 30upx;
height: 80upx;
display: flex;
align-items: center;
}
width: 92%;
margin: 30rpx 4% 30rpx 4%;
padding: 0rpx 0% 20rpx 0%;
background-color: #fff;
box-shadow: 0rpx 0rpx 25rpx rgba(0, 0, 0, 0.1);
border-radius: 15rpx;
.list {
display: flex;
padding-bottom: 10upx;
.box {
width: 25%;
.img {
width: 100%;
display: flex;
justify-content: center;
.icon {
font-size: 50upx;
color: #464646;
}
}
.text {
width: 100%;
display: flex;
justify-content: center;
font-size: 28upx;
color: #3d3d3d;
}
}
}
.balance-info {
display: flex;
padding: 10upx 0;
.left {
width: 75%;
display: flex;
.box {
width: 50%;
font-size: 28upx;
.num {
width: 100%;
height: 50upx;
display: flex;
justify-content: center;
align-items: flex-end;
color: #f9a453;
}
.text {
width: 100%;
display: flex;
justify-content: center;
color: #3d3d3d;
font-size: 28upx;
}
}
}
.right {
border-left: solid 1upx #17e6a1;
width: 25%;
.box {
.img {
width: 100%;
height: 50upx;
display: flex;
justify-content: center;
align-items: flex-end;
.icon {
font-size: 45upx;
color: #e78901;
}
}
.text {
width: 100%;
display: flex;
justify-content: center;
font-size: 28upx;
color: #3d3d3d;
}
}
}
}
}
.VIP {
width: 84%;
margin: -65upx auto 20upx auto;
padding: 30upx 4%;
background: linear-gradient(to left, #dea96d 0%, #f6d59b 100%);
box-shadow: 0upx 0upx 25upx rgba(0, 0, 0, 0.2);
border-radius: 15upx;
display: flex;
align-items: center;
.img {
flex-shrink: 0;
width: 60upx;
height: 60upx;
image {
width: 60upx;
height: 60upx;
}
}
.title {
width: 100%;
color: #796335;
font-size: 30upx;
}
.tis {
width: 100%;
display: flex;
justify-content: flex-end;
color: #fcf0d0;
font-size: 26upx;
}
}
.toolbar {
width: 92%;
margin: 0 4% 0 4%;
padding: 0 0 20upx 0;
background-color: #fff;
box-shadow: 0upx 0upx 25upx rgba(0, 0, 0, 0.1);
border-radius: 15upx;
.title {
padding-top: 10upx;
margin: 0 0 10upx 3%;
font-size: 30upx;
height: 80upx;
display: flex;
align-items: center;
}
.list {
display: flex;
flex-wrap: wrap;
.box {
width: 25%;
margin-bottom: 30upx;
.img {
width: 23vw;
height: 10.5vw;
display: flex;
justify-content: center;
image {
width: 9vw;
height: 9vw;
}
}
.text {
width: 100%;
display: flex;
justify-content: center;
font-size: 26upx;
color: #3d3d3d;
}
}
}
}
</style>