fourPayProject/51uni/pages/components/my.vue
2025-03-31 10:23:28 +08:00

319 lines
5.2 KiB
Vue

<template>
<view class="content">
<view class="container">
<view class="headers">
<view class=""></view>
<view class=""></view>
<view class="icon-right" @click="goSetup()">
<image src="../../static/home/shezhi.png" mode=""></image>
</view>
</view>
<view class="top-box">
<image src="../../static/imgs/mybg.png" mode=""></image>
<view class="t-box-t">
<u-avatar size="75" default-url="/static/imgs/ic_user_header_default.png"
:src="merInfo.userIcon"></u-avatar>
<view style="margin-left: 10px;">
<view class="user-name">{{merInfo.nickName}}</view>
<view class="">{{merInfo.userPhone}}</view>
</view>
</view>
<view class="jg-box">
<view class="jg-b-hang" @click="goshare()">
<view class="">我要分享</view>
<u-icon name="arrow-right" color="#dadada" size="16"></u-icon>
</view>
<view class="jg-b-hang" @click="goImg('wx')">
<view class="">微信认证二维码</view>
<u-icon name="arrow-right" color="#dadada" size="16"></u-icon>
</view>
<view class="jg-b-hang" @click="goImg('zfb')">
<view class="">支付宝认证二维码</view>
<u-icon name="arrow-right" color="#dadada" size="16"></u-icon>
</view>
<view class="jg-b-hang" @click="gettel()">
<view class="">联系我们</view>
<view class="d-s">
400-117-0808
<u-icon name="arrow-right" color="#dadada" size="16"></u-icon>
</view>
</view>
</view>
</view>
</view>
<u-modal :show="show" :title="title" :showCancelButton="true" @confirm="confirm" @cancel="cancel"></u-modal>
</view>
</template>
<script>
import config from '@/config'
import request from '../../utils/request.js'
export default {
data() {
return {
merInfo: {},
title: '',
show: false
}
},
components: {
},
methods: {
gettel() {
uni.makePhoneCall({
phoneNumber: '4001170808' //仅为示例
});
},
getInfo() {
request({
url: 'app/uaLogin/info?roleType=mer',
method: 'post',
}).then(res => {
this.merInfo = res.user
})
},
goImg(type) {
uni.navigateTo({
url: '/MyPages/my/Img?type=' + type
})
},
goshare() {
uni.navigateTo({
url: '/MyPages/my/share?info=' + this.merInfo.downloadUrl
})
},
goSetup() {
uni.navigateTo({
url: '/MyPages/my/setup'
})
}
}
}
</script>
<style scoped lang="scss">
.content {
height: 100vh;
background: #f4f2f5;
}
.container {
background: #f4f2f5;
width: 100%;
box-sizing: border-box;
}
.headers {
width: 100%;
height: 88px;
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
z-index: 99999;
// background: #E4612E;
position: fixed;
top: 0px;
.my-icons {
height: 20px;
width: 20px;
}
.my-text {
font-weight: bold;
}
}
.top-box {
width: 100%;
height: 280px;
position: relative;
background: #E4612E;
color: #fff;
image {
width: 100%;
height: 100%;
}
}
.t-box-t {
width: 90%;
position: absolute;
left: 50%;
transform: translate(-50%, -240%);
display: flex;
align-items: center;
}
.t-bs {
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
color: #fff;
}
.t-top {
text-align: center;
}
.t-bs {
text-align: center;
}
.hui-box {
width: 100%;
height: 45px;
background: #f4f2f5;
}
.num-fff {
font-size: 28px;
}
.size-fff {
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
}
.jg-box {
position: relative;
width: 95%;
background: #fff;
border-radius: 4px;
left: 50%;
transform: translate(-50%, -40%);
box-sizing: border-box;
padding: 1px 15px;
font-size: 16px;
// display: flex;
// align-items: center;
// justify-content: space-between;
}
.box-jg {
width: 33%;
text-align: center;
color: #cfcfcf;
font-size: 14px;
image {
width: 45px;
height: 45px;
}
}
.wrap-box {
width: 90%;
display: flex;
box-sizing: border-box;
padding: 15px;
flex-wrap: wrap;
margin: 0 auto;
}
.w-box {
text-align: center;
font-weight: bold;
font-size: 14px;
margin-right: 35px;
image {
width: 55px;
height: 55px;
margin-bottom: 5px;
}
}
.q-box {
width: 100%;
background: #f5f9f8;
box-sizing: border-box;
padding: 15px 20px;
display: flex;
align-items: center;
}
.left-box {
box-sizing: border-box;
padding-right: 20px;
border-right: 1px solid #e0e0e1;
margin-right: 10px;
image {
width: 90px;
height: 22px;
}
}
.right-icon {
box-sizing: border-box;
padding: 5px 10px;
background: #fcd144;
color: #fff;
font-size: 14px;
border-radius: 2px;
margin: 0px 10px;
}
.size-l {
color: #949897;
}
.icon-right {
image {
width: 30px;
height: 30px;
}
}
.touxiang {
width: 75px;
height: 75px;
background: #ffe88b;
border-radius: 50%;
margin-right: 10px;
}
.user-name {
font-size: 18px;
color: #fff;
}
.jg-b-hang {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
color: #000;
margin: 25px auto;
}
.d-s {
display: flex;
align-items: center;
}
</style>