10/13 导航栏上显示小区名称,用户名称
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
@toggle-click="toggleSideBar"
|
||||
>
|
||||
</hamburger>
|
||||
<div style="color: grey; margin-right: 20px">{{ currentVillageInfo.villageName }}</div>
|
||||
<div class="flex-1 h-full"></div>
|
||||
<div class="right-menu flex align-center">
|
||||
<template v-if="appStore.device !== 'mobile'">
|
||||
@@ -30,6 +31,7 @@
|
||||
<el-dropdown class="right-menu-item hover-effect" trigger="click" @command="handleCommand">
|
||||
<div class="avatar-wrapper">
|
||||
<img :src="userStore.avatar" alt="头像" class="user-avatar" />
|
||||
<div class="username">{{ userStore.nickname }}</div>
|
||||
<el-icon><caret-bottom /></el-icon>
|
||||
</div>
|
||||
<template #dropdown>
|
||||
@@ -69,7 +71,7 @@ const props = defineProps({
|
||||
default: true
|
||||
}
|
||||
});
|
||||
|
||||
const currentVillageInfo = JSON.parse(localStorage.getItem('villageInfo') || '{}');
|
||||
const appStore = useAppStore();
|
||||
const userStore = useUserStore();
|
||||
const settingsStore = useSettingsStore();
|
||||
@@ -170,7 +172,6 @@ watch(
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background: #dfedff;
|
||||
background: transparent;
|
||||
//border-bottom: 1px solid #dfedff;
|
||||
|
||||
@@ -229,8 +230,7 @@ watch(
|
||||
padding: 0 8px;
|
||||
height: 100%;
|
||||
font-size: 18px;
|
||||
color: #fff;
|
||||
color: #c0c4cc;
|
||||
color: grey;
|
||||
|
||||
vertical-align: text-bottom;
|
||||
|
||||
@@ -245,9 +245,14 @@ watch(
|
||||
|
||||
.avatar-wrapper {
|
||||
margin-top: 5px;
|
||||
// margin-left: 20px;
|
||||
position: relative;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.username {
|
||||
font-size: 12px;
|
||||
margin-top: 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.user-avatar {
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
<span v-else-if="scope.row.payStatus === PayStatus.PARTIAL">部分缴纳</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="应缴金额" prop="needPayAmount" width="100" />
|
||||
<el-table-column align="center" label="剩余应缴金额" prop="needPayAmount" width="140" />
|
||||
<el-table-column align="center" label="优惠金额" prop="singleDiscountAmount" width="100" />
|
||||
<el-table-column align="center" label="实缴金额" prop="actualAccount" width="100" />
|
||||
<el-table-column align="center" label="缴费人" prop="residentName" width="120" />
|
||||
|
||||
@@ -59,7 +59,12 @@
|
||||
<el-tag v-else type="primary">android</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="更新渠道" prop="channel" sortable />
|
||||
<el-table-column align="center" label="更新渠道" prop="channel" sortable>
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.channel === 'phone'">ios</span>
|
||||
<span v-else>{{ scope.row.channel }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="版本号" prop="versionCode" sortable />
|
||||
<el-table-column align="center" label="版本名称" prop="versionName" sortable />
|
||||
<el-table-column align="center" label="最低支持版本" prop="minVersionName" sortable />
|
||||
@@ -76,6 +81,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="上传时间" prop="createTime" />
|
||||
<!-- <el-table-column align="center" label="操作">-->
|
||||
<!-- <template #default="scope">-->
|
||||
<!-- <el-button type="danger">删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" v-model:limit="queryParams.pageSize" v-model:page="queryParams.pageNum" :total="total" @pagination="getList" />
|
||||
</el-card>
|
||||
@@ -83,7 +93,7 @@
|
||||
<el-dialog v-model="dialog.visible" :title="dialog.title" append-to-body width="650px">
|
||||
<el-form ref="versionFormRef" :model="form" :rules="rules" label-width="130px">
|
||||
<el-form-item label="App端" prop="appChannel">
|
||||
<el-select v-model="form.appChannel" placeholder="请选择" @change="handleGetVersionlast">
|
||||
<el-select v-model="form.appChannel" placeholder="请选择" @change="handleGetVersionList">
|
||||
<el-option v-for="(item, index) in com_app_list" :key="index" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -112,7 +122,7 @@
|
||||
<el-radio v-if="form.platform !== appType.ios" value="vivo">vivo</el-radio>
|
||||
<el-radio v-if="form.platform !== appType.ios" value="yyb">应用宝</el-radio>
|
||||
<el-radio v-if="form.platform !== appType.ios" value="honor">荣耀</el-radio>
|
||||
<el-radio v-else value="ios">ios</el-radio>
|
||||
<el-radio v-else value="phone">ios</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
@@ -316,13 +326,13 @@ function handleChangePlatform() {
|
||||
form.value.downloadUrl = '';
|
||||
form.value.channel = '';
|
||||
if (form.value.platform === 'ios') {
|
||||
form.value.channel = 'ios';
|
||||
form.value.channel = 'phone';
|
||||
handleChangeChannel(form.value.channel);
|
||||
}
|
||||
handleGetVersionlast();
|
||||
handleGetVersionList();
|
||||
}
|
||||
|
||||
function handleGetVersionlast() {
|
||||
function handleGetVersionList() {
|
||||
getPastVersion(form.value.platform, form.value.appChannel).then((res) => {
|
||||
getlastVersionlist.value = res.data;
|
||||
form.value.minVersionCode = getlastVersionlist.value[getlastVersionlist.value.length - 1]
|
||||
@@ -338,7 +348,7 @@ const channelUrl = {
|
||||
'vivo': 'vivomarket://details?id=',
|
||||
'honor': 'market://details?id=',
|
||||
'yyb': 'tmast://appdetails?pname=',
|
||||
'ios': 'itms-apps://apps.apple.com/cn/app/id'
|
||||
'phone': 'itms-apps://apps.apple.com/cn/app/id6785337718'
|
||||
};
|
||||
function handleChangeChannel(val: string) {
|
||||
form.value.downloadUrl = channelUrl[val];
|
||||
|
||||
Reference in New Issue
Block a user