detection-business/pages/my/my.vue

469 lines
9.9 KiB
Vue
Raw Normal View History

2024-09-11 15:55:28 +08:00
<!-- 我的 -->
<template>
<view class="content">
2025-07-11 10:17:36 +08:00
<view style="width: 100%; height: 44px;"></view>
<view class="top-ail">
<view class="dix">
<view class="touxiang">
<image :src="user.partnerLogo" mode=""></image>
</view>
<view class="">
<view class="t-title">{{user.partnerName}}</view>
2024-09-11 15:55:28 +08:00
<!-- <view class="t-tel">157****1984</view> -->
</view>
2025-07-11 10:17:36 +08:00
</view>
<!-- 三项 -->
2024-09-11 15:55:28 +08:00
<!-- <view class="sanxiang">
<view class="s-box">
<view class="simg">
<image src="../../static/detection/dcl.png" mode=""></image>
</view>
<view class="zc-text">待处理工单</view>
<view class="lan-num">15</view>
</view>
<view class="s-box">
<view class="simg">
<image src="../../static/detection/ycl.png" mode=""></image>
</view>
<view class="zc-text">已处理工单</view>
<view class="lan-num">15</view>
</view>
<view class="s-box" style="border: none;">
<view class="simg">
<image src="../../static/detection/shfw.png" mode=""></image>
</view>
<view class="zc-text">售后服务</view>
<view class="lan-num">15</view>
</view>
</view> -->
2025-07-11 10:17:36 +08:00
<!-- <view class="lan-box">-->
<!-- <view class="hei-title">我的钱包</view>-->
<!-- <view class="cont-box">-->
<!-- <view class="c-left">-->
<!-- <view class="c-bt">总收益</view>-->
<!-- <view class="c-lan">{{(myindex.amount|| 0 )/ 100}}</view>-->
<!-- </view>-->
<!-- <view class="c-right" @click="gowallet()">-->
<!-- <view class="dix">-->
<!-- &lt;!&ndash; <view class="l-icon">-->
<!-- <image src="../../static/detection/qtx.png" mode=""></image>-->
<!-- </view> &ndash;&gt;-->
<!-- <uni-icons type="wallet-filled" size="17" color="#0D2E8D"></uni-icons>-->
<!-- <text class="lan-text">收益明细</text>-->
<!-- <uni-icons type="right" color="#0D2E8D" size="16"></uni-icons>-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<!-- &lt;!&ndash; <view class="cont-box">-->
<!-- <view class="c-left">-->
<!-- <view class="c-bt">总收益</view>-->
<!-- <view class="c-hei">{{myindex.totalRevenue / 100|| 0}}</view>-->
<!-- </view>-->
<!-- <view class="c-left" style="border-left:1px solid #D2DDFD; padding-left: 15px; ">-->
<!-- <view class="c-bt">已提现</view>-->
<!-- <view class="c-hei">{{myindex.withdrawAmount / 100|| 0}}</view>-->
<!-- </view>-->
<!-- </view> &ndash;&gt;-->
<!-- </view>-->
<!-- 店铺商铺 -->
<view class="dian-box">
<view class="l-left" @click="getdianpu()">
<view class="dian-top">
<view class="dix">
2024-09-11 15:55:28 +08:00
<view class="d-icon">
2025-07-11 10:17:36 +08:00
<image src="../../static/detection/dp.png" mode=""></image>
2024-09-11 15:55:28 +08:00
</view>
<view class="aa">店铺管理</view>
</view>
2025-07-11 10:17:36 +08:00
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
</view>
2024-09-11 15:55:28 +08:00
</view>
2025-07-11 10:17:36 +08:00
<view class="c-bt">管理修改店铺信息</view>
</view>
<!-- <view class="c-left" style="padding-left: 10px;">
2024-09-11 15:55:28 +08:00
<view class="dian-top">
<view class="dix">
<view class="d-icon">
<image src="../../static/detection/shsm.png" mode=""></image>
</view>
<view class="aa">商户实名</view>
</view>
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
</view>
</view>
<view class="c-bt">当前账号未实名商户</view>
</view> -->
2025-07-11 10:17:36 +08:00
</view>
<!-- -->
<view class="ian-box">
<view class="on-input" @click="safety()">
<view class="dix">
<view class="d-icon">
<image src="../../static/detection/zhaq.png" mode=""></image>
2024-09-11 15:55:28 +08:00
</view>
2025-07-11 10:17:36 +08:00
<view class="aa">账户与安全</view>
</view>
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
2024-09-11 15:55:28 +08:00
</view>
2025-07-11 10:17:36 +08:00
</view>
<!-- <view class="on-input">
2024-09-11 15:55:28 +08:00
<view class="dix">
<view class="d-icon">
<image src="../../static/detection/yhk.png" mode=""></image>
</view>
<view class="aa">银行卡管理</view>
</view>
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
</view>
</view> -->
2025-07-11 10:17:36 +08:00
<view class="on-input" @click="tui()">
<view class="dix">
<view class="d-icon">
<image src="../../static/detection/tc.png" mode=""></image>
2024-09-11 15:55:28 +08:00
</view>
2025-07-11 10:17:36 +08:00
<view class="aa">退出登录</view>
</view>
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
2024-09-11 15:55:28 +08:00
</view>
</view>
</view>
2025-07-11 10:17:36 +08:00
</view>
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog :type="msgType" cancelText="关闭" confirmText="同意" title="通知" content="您确认要退出登录吗"
@confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
</uni-popup>
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
<!-- 底部 -->
<view style="width: 100%; height: 50px;"></view>
2025-07-11 10:17:36 +08:00
<tabBar :msg="msg"></tabBar>
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
</view>
</template>
<script>
import config from '@/config'
import request from '../../utils/request';
2025-07-11 10:17:36 +08:00
import tabBar from '../../components/tabBar/tabBar.vue'
2024-09-11 15:55:28 +08:00
export default {
data() {
return {
2025-07-11 10:17:36 +08:00
chuan: 0,
2024-09-11 15:55:28 +08:00
msgType: 'success',
2025-07-11 10:17:36 +08:00
msg: '3',
user: {},
baseUrl: this.$baseUrl,
partnerId: '',
myindex: {}
2024-09-11 15:55:28 +08:00
}
},
onLoad() {
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
},
onShow() {
this.partnerId = uni.getStorageSync('partnerId')
2025-07-11 10:17:36 +08:00
// this.getindexmy()
2024-09-11 15:55:28 +08:00
},
2025-07-11 10:17:36 +08:00
components: {
2024-09-11 15:55:28 +08:00
tabBar,
},
methods: {
2025-07-11 10:17:36 +08:00
async getbottom() {
2024-09-11 15:55:28 +08:00
let data = {
2025-07-11 10:17:36 +08:00
partnerId: this.partnerId
2024-09-11 15:55:28 +08:00
}
let res = await request({
2025-07-11 10:17:36 +08:00
url: '/appInspection/news/newMsgNum',
2024-09-11 15:55:28 +08:00
method: 'get',
2025-07-11 10:17:36 +08:00
params: data
2024-11-11 13:18:56 +08:00
})
2025-07-11 10:17:36 +08:00
if (res.code == 200) {
2024-09-11 15:55:28 +08:00
this.chuan = res.data
}
},
2025-07-11 10:17:36 +08:00
async getindexmy() {
2024-09-11 15:55:28 +08:00
let res = await request({
2025-07-11 10:17:36 +08:00
url: '/partnerOwn/partner/accountInfo?partnerId=' + this.partnerId,
2024-09-11 15:55:28 +08:00
method: 'get',
})
this.myindex = res.data
let ress = await request({
2025-07-11 10:17:36 +08:00
url: '/partnerOwn/partner/shopInfo',
2024-09-11 15:55:28 +08:00
method: 'get',
2024-11-11 13:18:56 +08:00
})
2024-09-11 15:55:28 +08:00
this.user = ress.data
},
2025-07-11 10:17:36 +08:00
safety() {
2024-09-11 15:55:28 +08:00
//修改密码页
uni.navigateTo({
2025-07-11 10:17:36 +08:00
url: "/pages/safety/safety"
2024-09-11 15:55:28 +08:00
})
},
2025-07-11 10:17:36 +08:00
tui() {
2024-09-11 15:55:28 +08:00
this.$refs.alertDialog.open()
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
},
dialogConfirm() {
2025-07-11 10:17:36 +08:00
uni.clearStorageSync();
uni.reLaunch({
url: '/pages/Login/login'
})
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
},
2025-07-11 10:17:36 +08:00
dialogClose() {},
gowallet() {
2024-09-11 15:55:28 +08:00
uni.navigateTo({
2025-07-11 10:17:36 +08:00
url: "/pages/my/my-wallet"
2024-09-11 15:55:28 +08:00
})
},
2025-07-11 10:17:36 +08:00
getdianpu() {
2024-09-11 15:55:28 +08:00
uni.navigateTo({
2025-07-11 10:17:36 +08:00
url: "/pages/my/shoporder"
2024-09-11 15:55:28 +08:00
})
}
}
}
</script>
<style scoped lang="scss">
.content {
box-sizing: border-box;
width: 100%;
height: calc(100vh);
2025-07-11 10:17:36 +08:00
background: linear-gradient(225deg, #EFF5FF 0%, rgba(255, 255, 255, 0) 100%);
2024-09-11 15:55:28 +08:00
}
2025-07-11 10:17:36 +08:00
.c-top {
2024-09-11 15:55:28 +08:00
width: 100%;
// height: 283px;
// background-color: cornflowerblue;
// background: url("http://www.nuoyunr.com/lananRsc/shopBg.png") center no-repeat;
// background-size:100% 100%;
}
2025-07-11 10:17:36 +08:00
.top-ail {
2024-09-11 15:55:28 +08:00
width: 100%;
box-sizing: border-box;
padding: 20px;
}
2025-07-11 10:17:36 +08:00
.dix {
2024-09-11 15:55:28 +08:00
display: flex;
align-items: center;
}
2025-07-11 10:17:36 +08:00
.touxiang {
2024-09-11 15:55:28 +08:00
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
background-color: whitesmoke;
margin-left: 10px;
2025-07-11 10:17:36 +08:00
image {
2024-09-11 15:55:28 +08:00
width: 100%;
height: 100%;
}
}
2025-07-11 10:17:36 +08:00
.t-title {
2024-09-11 15:55:28 +08:00
font-size: 18px;
font-weight: bold;
color: #333333;
margin-left: 15px;
}
2025-07-11 10:17:36 +08:00
.t-tel {
2024-09-11 15:55:28 +08:00
font-size: 14px;
font-weight: 400;
color: #999999;
margin-left: 15px;
}
2025-07-11 10:17:36 +08:00
.sanxiang {
2024-09-11 15:55:28 +08:00
width: 100%;
box-sizing: border-box;
padding: 20px;
background-color: white;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 30px;
}
2025-07-11 10:17:36 +08:00
.lan-box {
2024-09-11 15:55:28 +08:00
width: 100%;
box-sizing: border-box;
padding: 15px;
background: linear-gradient(90deg, #EDF4FD 0%, #E1EFFF 100%);
border-radius: 8px;
margin: 10px auto;
}
2025-07-11 10:17:36 +08:00
.s-box {
2024-09-11 15:55:28 +08:00
width: 33%;
border-right: 1px solid #EEEEEE;
text-align: center;
}
2025-07-11 10:17:36 +08:00
.simg {
2024-09-11 15:55:28 +08:00
width: 26px;
height: 26px;
margin: 0 auto;
2025-07-11 10:17:36 +08:00
image {
2024-09-11 15:55:28 +08:00
width: 100%;
height: 100%;
}
}
2025-07-11 10:17:36 +08:00
.zc-text {
2024-09-11 15:55:28 +08:00
font-size: 13px;
font-weight: 400;
color: #333333;
margin: 5px auto;
}
2025-07-11 10:17:36 +08:00
.lan-num {
2024-09-11 15:55:28 +08:00
font-size: 26px;
font-weight: 600;
color: #0D2E8D;
}
2025-07-11 10:17:36 +08:00
.hei-title {
2024-09-11 15:55:28 +08:00
font-size: 16px;
font-weight: 600;
color: #333333;
}
2025-07-11 10:17:36 +08:00
.cont-box {
2024-09-11 15:55:28 +08:00
margin-top: 10px;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
2025-07-11 10:17:36 +08:00
.c-left {
2024-09-11 15:55:28 +08:00
width: 50%;
box-sizing: border-box;
}
2025-07-11 10:17:36 +08:00
.l-left {
2024-09-11 15:55:28 +08:00
width: 100%;
box-sizing: border-box;
// border-right: 1px solid #EEEEEE;
// padding-right: 5px;
}
2025-07-11 10:17:36 +08:00
.c-bt {
2024-09-11 15:55:28 +08:00
font-size: 14px;
font-weight: 400;
color: #666666;
margin-bottom: 2px;
}
2025-07-11 10:17:36 +08:00
.c-lan {
2024-09-11 15:55:28 +08:00
font-size: 25px;
font-weight: 600;
color: #0D2E8D;
}
2025-07-11 10:17:36 +08:00
.c-right {
2024-09-11 15:55:28 +08:00
width: 122px;
height: 35px;
background: #FFFFFF;
border-radius: 50px;
display: flex;
justify-content: center;
align-items: center;
color: #0D2E8D;
}
2025-07-11 10:17:36 +08:00
.l-icon {
2024-09-11 15:55:28 +08:00
width: 15px;
height: 15px;
2025-07-11 10:17:36 +08:00
image {
2024-09-11 15:55:28 +08:00
width: 100%;
height: 100%;
}
}
2025-07-11 10:17:36 +08:00
.lan-text {
2024-09-11 15:55:28 +08:00
font-size: 14px;
font-weight: 400;
color: #0D2E8D;
margin: 0px 2px;
}
2025-07-11 10:17:36 +08:00
.c-hei {
2024-09-11 15:55:28 +08:00
font-size: 20px;
font-weight: 600;
color: #333333;
}
2025-07-11 10:17:36 +08:00
.dian-box {
2024-09-11 15:55:28 +08:00
background-color: white;
border-radius: 8px;
box-sizing: border-box;
width: 100%;
padding: 15px;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
2025-07-11 10:17:36 +08:00
.ian-box {
2024-09-11 15:55:28 +08:00
background-color: white;
border-radius: 8px;
box-sizing: border-box;
width: 100%;
padding: 15px;
2024-11-11 13:18:56 +08:00
2024-09-11 15:55:28 +08:00
margin-bottom: 10px;
}
2025-07-11 10:17:36 +08:00
.dian-top {
2024-09-11 15:55:28 +08:00
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 5px;
}
2025-07-11 10:17:36 +08:00
.d-icon {
2024-09-11 15:55:28 +08:00
width: 16px;
height: 16px;
2025-07-11 10:17:36 +08:00
image {
2024-09-11 15:55:28 +08:00
width: 100%;
height: 100%;
}
}
2025-07-11 10:17:36 +08:00
.aa {
2024-09-11 15:55:28 +08:00
font-size: 16px;
font-weight: 400;
color: #333333;
margin-left: 5px;
}
2025-07-11 10:17:36 +08:00
.on-input {
2024-09-11 15:55:28 +08:00
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
border-bottom: 1px solid #EEEEEE;
padding-bottom: 10px;
margin-bottom: 10px;
}
2025-07-11 10:17:36 +08:00
</style>