2023-11-25 16:30:38 +00:00
|
|
|
<template>
|
2024-05-08 14:40:16 +00:00
|
|
|
<tpx-page>
|
|
|
|
|
<view style="position: relative;">
|
|
|
|
|
<view class="customer_nav_bar">
|
|
|
|
|
<!-- 这里是状态栏 -->
|
|
|
|
|
</view>
|
|
|
|
|
<image class="hdbg" :src="getCdnUrl(`home/hdbg.png`)"/>
|
2023-11-25 16:30:38 +00:00
|
|
|
|
2024-05-08 14:40:16 +00:00
|
|
|
<view class="pg-container">
|
2023-12-19 17:58:00 +00:00
|
|
|
|
2024-05-08 14:40:16 +00:00
|
|
|
<view class="com-jianju" style="margin-top: 10rpx;">
|
|
|
|
|
<u-row align="center" justify="between">
|
2023-12-19 17:58:00 +00:00
|
|
|
<view>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-row>
|
|
|
|
|
<u-avatar size="120" :src="userInfo.avatar"></u-avatar>
|
|
|
|
|
<view class="pl-30">
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-text :text="userInfo.empName" color="#fff" size="32" bold="true"></u-text>
|
2024-05-10 08:16:17 +00:00
|
|
|
<view class="ml-20 clr-wht font-24 pos-rlt" style="padding: 8rpx 12rpx;">{{userInfo.ownerSiteName}}
|
2024-05-08 14:40:16 +00:00
|
|
|
<view class="pos-abt-all" style="z-index: 0;background: #FFFFFF;opacity: 0.2;border-radius: 20rpx;"></view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-row>
|
|
|
|
|
<view class="mt-20 clr-wht font-24">{{userInfo.phonenumber}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-row>
|
2023-12-19 17:58:00 +00:00
|
|
|
</view>
|
2024-05-08 14:40:16 +00:00
|
|
|
<view>
|
2024-05-23 08:37:07 +00:00
|
|
|
<u-image @click="goto('user/exclusiveQrcode')" height="140" width="140" :src="userInfo.qrCodeImgUrl" radius="10"></u-image>
|
2023-12-19 17:58:00 +00:00
|
|
|
</view>
|
|
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
|
2024-06-13 07:01:03 +00:00
|
|
|
<view v-if="staticDataList.length > 0" class="mt-40">
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-row justify="between">
|
2024-06-13 07:01:03 +00:00
|
|
|
<template v-for="(mbItem, mIndex) in staticDataList">
|
|
|
|
|
<view style="flex: 1;text-align: center;">
|
|
|
|
|
<view class="clr-wht font-32 font-weight">
|
|
|
|
|
<text class="font-26">¥</text>
|
|
|
|
|
<tex>{{mbItem.subTitle}}</tex>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="pt-20 clr-wht font-26" style="opacity: 0.8;">{{mbItem.title}}</view>
|
2024-05-08 14:40:16 +00:00
|
|
|
</view>
|
2024-06-13 07:01:03 +00:00
|
|
|
<view v-if="mIndex+1 != staticDataList.length">
|
|
|
|
|
<u-line direction="col" color="#fff" length="60"></u-line>
|
2024-05-08 14:40:16 +00:00
|
|
|
</view>
|
2024-06-13 07:01:03 +00:00
|
|
|
</template>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
</view>
|
|
|
|
|
|
2024-06-13 07:01:03 +00:00
|
|
|
<view v-if="mainBtnlist.length > 0" class="blk-mdl">
|
2023-12-19 17:58:00 +00:00
|
|
|
<u-row>
|
2024-06-13 07:01:03 +00:00
|
|
|
<u-col v-for="(item, index) in mainBtnlist" span="3" align="center" custom-style="padding: 30rpx 0;"
|
|
|
|
|
@click="goto(item.url)"
|
|
|
|
|
>
|
|
|
|
|
<u-image height="60" width="60" :src="item.icon" custom-style="margin-left: auto;margin-right: auto;"></u-image>
|
|
|
|
|
<u-text :text="item.title" margin="20rpx 0 0 0" align="center" color="#666" size="26"></u-text>
|
|
|
|
|
</u-col>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="blk-mdl">
|
2024-06-16 04:03:00 +00:00
|
|
|
<view v-if="isAppChannel">
|
|
|
|
|
<u-row @click="handleCheckAppVersion" custom-style="padding: 30rpx;" justify="between">
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-image :src="getCdnUrl(`mine/banbenup.png`)" height="34" width="34"></u-image>
|
|
|
|
|
<u-text margin="0 0 0 30rpx" text="版本更新" size="28" color="#333"></u-text>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-text margin="0 10rpx 0 0" :text="curAppVersion" size="28" color="#666"></u-text>
|
|
|
|
|
<u-icon name="arrow-right" size="32" color="#333"></u-icon>
|
|
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
</u-row>
|
2024-06-16 04:03:00 +00:00
|
|
|
<u-line></u-line>
|
|
|
|
|
</view>
|
|
|
|
|
|
2024-06-15 17:56:52 +00:00
|
|
|
<u-row @click="setClipboardData(curDeviceId)" custom-style="padding: 30rpx;" justify="between">
|
|
|
|
|
<u-row custom-style="margin-right: 30rpx;">
|
2024-06-16 05:48:11 +00:00
|
|
|
<!-- <u-image :src="getCdnUrl(`mine/banbenup.png`)" height="34" width="34"></u-image> -->
|
|
|
|
|
<u-icon name="tags" size="46" color="#333" custom-style="margin-left:-12rpx;"></u-icon>
|
2024-06-15 17:56:52 +00:00
|
|
|
<u-text margin="0 0 0 30rpx" text="设备Id" size="28" color="#333"></u-text>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row custom-style="flex: 1;">
|
2024-06-16 03:54:33 +00:00
|
|
|
<view style="text-align: right;flex: 1;">
|
|
|
|
|
<tpx-text-dic :value="curDeviceId"></tpx-text-dic>
|
|
|
|
|
</view>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-icon name="arrow-right" size="32" color="#333"></u-icon>
|
|
|
|
|
</u-row>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-line></u-line>
|
2024-05-27 06:14:23 +00:00
|
|
|
<u-row @click="handleClearCache()" custom-style="padding: 30rpx;" justify="between">
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-row>
|
|
|
|
|
<u-image :src="getCdnUrl(`mine/qingchu.png`)" height="34" width="34"></u-image>
|
|
|
|
|
<u-text margin="0 0 0 30rpx" text="清空本地缓存" size="28" color="#333"></u-text>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-icon name="arrow-right" size="32" color="#333"></u-icon>
|
|
|
|
|
</u-row>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-line></u-line>
|
|
|
|
|
<u-row custom-style="padding: 30rpx;" justify="between">
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-image :src="getCdnUrl(`mine/sao.png`)" height="34" width="34"></u-image>
|
|
|
|
|
<u-text margin="0 0 0 30rpx" text="红线扫描模式" size="28" color="#333"></u-text>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-switch v-model="saomiao" active-color="#B12D29" size="34"></u-switch>
|
|
|
|
|
</u-row>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-line></u-line>
|
2024-05-27 06:14:23 +00:00
|
|
|
<u-row @click="goto(`user/updatePassword`)" custom-style="padding: 30rpx;" justify="between">
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-row>
|
|
|
|
|
<u-image :src="getCdnUrl(`mine/xiumima.png`)" height="34" width="34"></u-image>
|
|
|
|
|
<u-text margin="0 0 0 30rpx" text="修改密码" size="28" color="#333"></u-text>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-icon name="arrow-right" size="32" color="#333"></u-icon>
|
|
|
|
|
</u-row>
|
2023-12-19 17:58:00 +00:00
|
|
|
</u-row>
|
2024-05-08 14:40:16 +00:00
|
|
|
<u-line></u-line>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="pt-40 pb-40">
|
|
|
|
|
<u-button @click="handleUnlogin" type="primary" size="large" shape="circle"
|
|
|
|
|
custom-style="height:86rpx;font-size: 32rpx;border-radius: 20rpx;"
|
|
|
|
|
>退出登录</u-button>
|
|
|
|
|
</view>
|
2023-12-19 17:58:00 +00:00
|
|
|
</view>
|
|
|
|
|
|
2023-11-25 16:30:38 +00:00
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-05-08 14:40:16 +00:00
|
|
|
</tpx-page>
|
2023-11-25 16:30:38 +00:00
|
|
|
</template>
|
|
|
|
|
<script>
|
2024-02-28 09:40:22 +00:00
|
|
|
import { USERKEY } from "@/store/actionKey"
|
2024-05-08 14:40:16 +00:00
|
|
|
import { dealBtnMap } from "@/common/enum"
|
2024-05-08 16:05:09 +00:00
|
|
|
import * as apiService from "@/common/api"
|
2024-06-13 07:01:03 +00:00
|
|
|
import { getAuthList, authCodeEnum } from "@/common/authCode"
|
2024-06-16 03:54:33 +00:00
|
|
|
import { getCurrentAppInfo, getSystemInfo, checkUpdate } from "@/common/appUpdate"
|
2024-05-08 16:05:09 +00:00
|
|
|
|
2023-11-25 16:30:38 +00:00
|
|
|
export default {
|
2024-02-28 09:40:22 +00:00
|
|
|
computed: {
|
|
|
|
|
userInfo() {
|
|
|
|
|
return this.$store.getters.userInfo
|
2024-06-13 07:01:03 +00:00
|
|
|
},
|
|
|
|
|
staticDataList(){
|
|
|
|
|
let { commStat } = this.staticInfo
|
|
|
|
|
let list = [
|
|
|
|
|
{ title: '计提预估', subTitle: commStat.estMoney, url: '', code: authCodeEnum.jiTiYuGu },
|
|
|
|
|
{ title: '待回款', subTitle: commStat.waitPay, url: '', code: authCodeEnum.daiHuiKuan }
|
|
|
|
|
]
|
|
|
|
|
list = getAuthList({ list, _thisPage: this })
|
|
|
|
|
return list
|
|
|
|
|
},
|
|
|
|
|
mainBtnlist(){
|
|
|
|
|
let list = [
|
|
|
|
|
{...dealBtnMap.woDeRenWu},
|
|
|
|
|
{...dealBtnMap.jiTiMingXi},
|
|
|
|
|
{...dealBtnMap.woDeErWeiMa},
|
|
|
|
|
{...dealBtnMap.yeWuTongJi},
|
|
|
|
|
]
|
|
|
|
|
list = getAuthList({ list, _thisPage: this })
|
|
|
|
|
return list
|
|
|
|
|
},
|
2024-02-28 09:40:22 +00:00
|
|
|
},
|
2023-11-25 16:30:38 +00:00
|
|
|
props: {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2024-05-08 16:05:09 +00:00
|
|
|
staticInfo: {
|
|
|
|
|
commStat: {},
|
|
|
|
|
orderStat: {},
|
|
|
|
|
},
|
2023-12-19 17:58:00 +00:00
|
|
|
saomiao: true,
|
2024-06-15 17:56:52 +00:00
|
|
|
curAppVersion: '',
|
|
|
|
|
curDeviceId: ''
|
2023-12-19 17:58:00 +00:00
|
|
|
|
|
|
|
|
}
|
2023-11-25 16:30:38 +00:00
|
|
|
},
|
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
return {
|
2024-05-08 16:05:09 +00:00
|
|
|
|
2023-11-25 16:30:38 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-05-08 16:05:09 +00:00
|
|
|
onLoad() {
|
|
|
|
|
this.initData()
|
|
|
|
|
},
|
2024-06-12 16:34:22 +00:00
|
|
|
onShow(){
|
|
|
|
|
this.initData()
|
|
|
|
|
},
|
2023-11-25 16:30:38 +00:00
|
|
|
methods: {
|
2024-05-08 16:05:09 +00:00
|
|
|
async initData(){
|
|
|
|
|
this.getAppHomeStatData()
|
2024-06-16 03:54:33 +00:00
|
|
|
this.curDeviceId = getSystemInfo()?.deviceId
|
2024-06-15 17:56:52 +00:00
|
|
|
let appRes = await getCurrentAppInfo()
|
|
|
|
|
this.curAppVersion = appRes._appVersion
|
2024-05-08 16:05:09 +00:00
|
|
|
},
|
|
|
|
|
async getAppHomeStatData(){
|
|
|
|
|
let res = await apiService.getAppHomeStatData()
|
|
|
|
|
this.staticInfo = res.data
|
|
|
|
|
},
|
2024-02-28 09:40:22 +00:00
|
|
|
async handleUnlogin() {
|
|
|
|
|
await this.$store.dispatch(USERKEY.LOGOUT)
|
2024-02-29 06:05:33 +00:00
|
|
|
this.goto(`login/login`, 2)
|
2024-05-27 06:14:23 +00:00
|
|
|
},
|
2024-06-16 03:54:33 +00:00
|
|
|
async handleCheckAppVersion() {
|
|
|
|
|
let res = await checkUpdate()
|
|
|
|
|
this.showToast('已经是最新版本,无需更新')
|
2024-05-27 06:14:23 +00:00
|
|
|
},
|
|
|
|
|
handleClearCache() {
|
|
|
|
|
// TODO
|
|
|
|
|
this.showToast('清除成功')
|
2024-02-28 09:40:22 +00:00
|
|
|
}
|
2023-11-25 16:30:38 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-12-01 04:47:59 +00:00
|
|
|
<style lang="scss">
|
2023-12-18 17:39:22 +00:00
|
|
|
@import '@/common/uni-nvue.scss';
|
2023-11-25 16:30:38 +00:00
|
|
|
</style>
|
2023-12-19 17:58:00 +00:00
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.com-jianju {
|
|
|
|
|
margin-left: 28rpx;
|
|
|
|
|
margin-right: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
.hdbg{
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 600rpx;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.pg-container{
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blk-mdl{
|
|
|
|
|
margin-top: 40rpx;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
</style>
|