提交 ff1b14c3 authored 作者: 何忠建's avatar 何忠建

调整优化

上级 3c59529d
......@@ -6,8 +6,8 @@
<image style="width: 100rpx; height: 100rpx;margin:22rpx;" mode="aspectFill" src="../static/images/logo.png"></image>
</view>
<view class="text">为了更完美的体验,请授权获取电话</view>
<button v-if="checked" class="login-btn" type="primary" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber" hover-class="none">手机号登录/注册</button>
<button v-else class="login-btn" type="primary" @click="verifyPolicy" hover-class="none">手机号登录/注册</button>
<button v-if="checked" class="login-btn" type="primary" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber" hover-class="none">手机号登录</button>
<button v-else class="login-btn" type="primary" @click="verifyPolicy" hover-class="none">手机号登录</button>
<view class="refuse" @click="refuse">取消</view>
<view class="policy-fixed">
......
......@@ -231,27 +231,27 @@
},
methods: {
async getPropertyAdv() {
// let {
// result
// } = await getPropertyAdvApi({
// pageNo: 1,
// pageSize: 10,
// onshelfStatus: 'onShelf'
// })
// let bannerList = result.records.map(item => {
// return {
// ...item,
// imageUrl: serverConfig.baseURL + '/sys/common/static/' + item.advImageUrl
// }
// })
//if (bannerList.length === 0) {
this.bannerList.push({
id: '123423423',
imageUrl: 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/banner_1691045883403.png'
let {
result
} = await getPropertyAdvApi({
pageNo: 1,
pageSize: 10,
onshelfStatus: 'onShelf'
})
// } else {
// this.bannerList = bannerList
// }
let bannerList = result.records.map(item => {
return {
...item,
imageUrl: serverConfig.baseURL + '/sys/common/static/' + item.advImageUrl
}
})
if (bannerList.length === 0) {
this.bannerList.push({
id: '123423423',
imageUrl: 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/banner_1692255303719.png'
})
} else {
this.bannerList = bannerList
}
},
getServerData() {
//模拟从服务器获取数据时的延时
......@@ -348,7 +348,7 @@
background-repeat: no-repeat;
background-color: #F8F8FA;
//background-size: cover;
background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1690786506694.png');
background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1692255376498.png');
}
.page {
......
<template>
<view class="container" style="background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_me1_1691046231385.png');">
<view class="container"
style="background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_me1_1692254734871.png');">
<view class="page">
<view class="user">
<image
:src="userAvatar || 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/lxLTJxnMqmF4536a26893262a4d66527a51bcab612c9_1687861702460.png'"
class="icon"></image>
<view class="name">林二</view>
<!-- <view class="name" v-else @click="quickEntry">请登录</view> -->
<view class="phone">15245214563</view>
<div class="information" @click="employeeEntry(1)">修改个人资料 ></div>
<template v-if="userAvatar">
<image :src="userAvatar" class="icon"></image>
</template>
<view class="icon" v-else>
<uni-icons type="person" size="50px" color="#6A59F2"></uni-icons>
</view>
<template v-if="userPhone">
<view class="name">林二</view>
<view class="phone">15245214563</view>
<div class="information" @click="employeeEntry(1)">修改个人资料 ></div>
</template>
<teleport v-else>
<view class="name" @click="toLogin" style="margin-bottom: 36rpx;">请登录</view>
</teleport>
</view>
<view class="LogOut">退出登录</view>
<view class="LogOut" v-if="userPhone" @click="logout">退出登录</view>
</view>
<authorization-modal ref="authorization" @loginEnd="onLoginEnd" @refuse="onRefuse" />
</view>
......@@ -36,89 +44,32 @@
}
},
methods: {
toLogin() {
uni.hideTabBar()
this.$nextTick(() => {
this.$refs.authorization.onOpenLogin()
});
},
logout(){
let _this = this
uni.showModal({
title: '警告',
content: '确定退出登录!',
showCancel: false,
success: function(res) {
if (res.confirm) {
wx.clearStorage()
}
}
});
},
quickEntry(type) {
let isLogin = uni.getStorageSync('openid')
if (!!isLogin) {
if (type == 7) {
const that = this
uni.showModal({
title: '提示',
content: '确认切换到业主吗?',
success: function(res) {
if (res.confirm) {
that.onChangeEmployee('1')
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} else if (type == 8) {
const that = this
uni.showModal({
title: '提示',
content: '确认切换到维修员吗?',
success: function(res) {
if (res.confirm) {
that.onChangeEmployee('2')
} else if (res.cancel) {
console.log('用户点击取消');
}
}
if (type == 1) {
uni.navigateTo({
url: '/pages/myInformation/index',
});
} else {
let currentHouseVerify = getApp().globalData.currentHouseVerify
if (type == 2) {
let code = uni.getStorageSync('platform_code')
if (code) {
uni.navigateTo({
url: '/pages/myHouse/index',
});
} else {
uni.showToast({
icon: "none",
title: '暂未查到业主信息!'
})
}
return
}
if (!currentHouseVerify) {
uni.showToast({
icon: "none",
title: '暂未查到业主信息!'
})
// if(timer) clearTimeout(timer)
// timer = null
// timer = setTimeout(()=> {
// uni.navigateTo({
// url: '/pages/housing/index',
// });
// }, 1500)
// return
} else {
if (type == 1) {
uni.navigateTo({
url: '/pages/myInformation/index',
});
} else if (type == 3) {
uni.navigateTo({
url: '/pages/maintenance/index',
});
} else if (type == 4) {
uni.navigateTo({
url: '/pages/complaints/index',
});
} else if (type == 5) {
uni.navigateTo({
url: '/pages/myPaycost/index',
});
} else if (type == 6) {
uni.navigateTo({
url: '/pages/myReceipt/index',
});
} else {
return false
}
}
}
} else {
uni.hideTabBar()
......@@ -180,15 +131,17 @@
background-repeat: no-repeat;
background-color: #F8F8FA;
background-size: cover;
display: flex;
align-items: center;
display: flex;
align-items: center;
}
.page {
width: 100%;
box-sizing: border-box;
padding: 0 85rpx;
}
.LogOut{
.LogOut {
background-color: #6A59F2;
width: 100%;
height: 80rpx;
......@@ -216,7 +169,11 @@
width: 160rpx;
height: 160rpx;
border-radius: 160rpx;
border:1px solid #6A59F2;
border: 1px solid #6A59F2;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.name {
......@@ -231,7 +188,8 @@
margin-bottom: 36rpx;
opacity: 0.55;
}
.information{
.information {
width: 300rpx;
height: 60rpx;
line-height: 60rpx;
......
......@@ -22,7 +22,7 @@
<view class="name" @click="toDetail(item.id)">CX312314141241</view>
<view :class="active == 1?'tag purple':'tag gray'">待对账</view>
</view>
<checkbox :value="index" color="#6A59F2" :checked="item.checked" v-if="active == 1" />
<checkbox :value="item.id" color="#6A59F2" :checked="item.checked" v-if="active == 1" />
</view>
<view class="content">
<view class="text">
......@@ -70,7 +70,7 @@
data() {
return {
active: 1,
payList: [{}, {}, {}, {}],
payList: [{id:'1111'}, {id:'2222'}, {id:'3333'}, {id:'44444'}],
checkboxList: []
}
},
......@@ -92,6 +92,7 @@
});
},
checkboxChange: function(e) {
console.log(e)
this.checkboxList = e.detail.value;
},
onSubmit() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论