Browse Source

调试页面

master
corala 2 years ago
parent
commit
fb788a8a81
12 changed files with 149 additions and 186 deletions
  1. +2
    -2
      src/common/http.interceptor.js
  2. +3
    -38
      src/pages/customer/addLedlook.vue
  3. +138
    -120
      src/pages/my/electContract.vue
  4. +1
    -5
      src/pages/otherPage/historyList.vue
  5. +0
    -4
      src/pages/otherPage/jjrent.vue
  6. +0
    -1
      src/pages/otherPage/jjrentDetail.vue
  7. +0
    -2
      src/pages/otherPage/jjrentFollow.vue
  8. +1
    -2
      src/pages/otherPage/rentDetail.vue
  9. +1
    -1
      src/pages/tabs/gonggao.vue
  10. +0
    -2
      src/pages/tabs/index.vue
  11. +1
    -1
      src/pages/tabs/login.vue
  12. +2
    -8
      src/pages/tabs/me.vue

+ 2
- 2
src/common/http.interceptor.js View File

@@ -39,7 +39,7 @@ const install = (Vue, vm) => {
Vue.prototype.$u.http.interceptor.response = (res) => { Vue.prototype.$u.http.interceptor.response = (res) => {
if (res.data.ErrNo == '0000') { if (res.data.ErrNo == '0000') {
return res.data; return res.data;
} else if (res.data.ErrNo == '0005'|| res.data.ErrNo == '0002') {
} else if (res.data.ErrNo == '0005') {
uni.showToast({ uni.showToast({
title: res.data.ErrMsg || '未登录', title: res.data.ErrMsg || '未登录',
icon: "none", icon: "none",
@@ -55,7 +55,7 @@ const install = (Vue, vm) => {
icon: "none", icon: "none",
duration: 3000 duration: 3000
}) })
return ;
return res.data;
} }
} }
} }


+ 3
- 38
src/pages/customer/addLedlook.vue View File

@@ -29,24 +29,6 @@
date: '',//带看时间 date: '',//带看时间
address:'',//房源地址 address:'',//房源地址
}, },
sourceList: [
{
value: '1',
label: '来电'
},
{
value: '2',
label: '来访'
},
{
value: '3',
label: '到访'
},
{
value: '4',
label: '2来访'
},
],
params: { params: {
year: true, year: true,
month: true, month: true,
@@ -73,7 +55,7 @@
if(houseSource&&houseSource.address){ if(houseSource&&houseSource.address){
this.form.address = houseSource.address this.form.address = houseSource.address
this.roomId = houseSource.roomId this.roomId = houseSource.roomId
wx.setStorageSync('houseSource','')
uni.removeStorageSync('houseSource')
} }
}, },
methods: { methods: {
@@ -103,7 +85,7 @@
}) })
return ; return ;
} }
let body={
let body = {
"viewTime": this.form.date, "viewTime": this.form.date,
"customerId": this.customerId, "customerId": this.customerId,
"roomId": this.roomId, "roomId": this.roomId,
@@ -124,25 +106,8 @@
}, 1000); }, 1000);
} }
}) })
},
sexChange(){
console.log(this.form.sex)
},
needChange(){},
getPhonelist(){
let that = this
// 拉起通讯录
wx.chooseContact(
{
success:function(obj){
that.form.name = obj.displayName
that.form.tel = obj.phoneNumber
}
}
)
},
}
}, },

}; };
</script> </script>




+ 138
- 120
src/pages/my/electContract.vue View File

@@ -1,138 +1,141 @@
<template> <template>
<view class="container"> <view class="container">
<view class="form-box">
<view v-if="step==1">
<view class="item">
<view class="label">客户姓名</view>
<view class="input">
<u-input :clearable="false" input-align="right" v-model="form.name" placeholder="请输入客户姓名"></u-input>
<view v-if="canEdit">
<view class="form-box">
<view v-if="step==1">
<view class="item">
<view class="label">客户姓名</view>
<view class="input">
<u-input :clearable="false" input-align="right" v-model="form.name" placeholder="请输入客户姓名"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">客户电话</view>
<view class="input">
<u-input :clearable="false" maxlength="11" type="number" input-align="right" v-model="form.tel" placeholder="请输入客户手机号码"></u-input>
<view class="item">
<view class="label">客户电话</view>
<view class="input">
<u-input :clearable="false" maxlength="11" type="number" input-align="right" v-model="form.tel" placeholder="请输入客户手机号码"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">身份证号</view>
<view class="input">
<u-input :clearable="false" type="text" input-align="right" v-model="form.idno" placeholder="请输入客户身份证号"></u-input>
<view class="item">
<view class="label">身份证号</view>
<view class="input">
<u-input :clearable="false" type="text" input-align="right" v-model="form.idno" placeholder="请输入客户身份证号"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">客户性别</view>
<view class="input">
<u-radio-group v-model="form.sex" @change="sexChange">
<u-radio active-color="#FF6D25" name="男">先生</u-radio>
<u-radio active-color="#FF6D25" name="女">女士</u-radio>
</u-radio-group>
<view class="item">
<view class="label">客户性别</view>
<view class="input">
<u-radio-group v-model="form.sex" @change="sexChange">
<u-radio active-color="#FF6D25" name="男">先生</u-radio>
<u-radio active-color="#FF6D25" name="女">女士</u-radio>
</u-radio-group>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">星座</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.starName" @click="starShow = true" placeholder="请选择星座"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="starShow" :list="starList" @confirm="confirmXingzuo"></u-select>
<view class="item">
<view class="label">星座</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.starName" @click="starShow = true" placeholder="请选择星座"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="starShow" :list="starList" @confirm="confirmXingzuo"></u-select>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">职业</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.job" @click="jobShow = true" placeholder="请选择职业"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="jobShow" :list="jobList" @confirm="confirmOccupation"></u-select>
<view class="item">
<view class="label">职业</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.job" @click="jobShow = true" placeholder="请选择职业"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="jobShow" :list="jobList" @confirm="confirmOccupation"></u-select>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">爱好</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.hobby" @click="hobbyShow = true" placeholder="请选择爱好"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="hobbyShow" :list="hobbyList" @confirm="confirmHobby"></u-select>
<view class="item">
<view class="label">爱好</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.hobby" @click="hobbyShow = true" placeholder="请选择爱好"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="hobbyShow" :list="hobbyList" @confirm="confirmHobby"></u-select>
</view>
</view> </view>
</view> </view>
</view>
<view v-if="step==2">
<view class="item">
<view class="label">租金</view>
<view class="input">
<u-input :clearable="false" input-align="right" type="number" v-model="form.rentPrice" placeholder="请输入租金"></u-input>
<view v-if="step==2">
<view class="item">
<view class="label">租金</view>
<view class="input">
<u-input :clearable="false" input-align="right" type="number" v-model="form.rentPrice" placeholder="请输入租金"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">押金</view>
<view class="input">
<u-input :clearable="false" maxlength="11" type="number" input-align="right" v-model="form.deposit" placeholder="请输入押金"></u-input>
<view class="item">
<view class="label">押金</view>
<view class="input">
<u-input :clearable="false" maxlength="11" type="number" input-align="right" v-model="form.deposit" placeholder="请输入押金"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">服务费</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.fee" placeholder="请输入服务费"></u-input>
<view class="item">
<view class="label">服务费</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.fee" placeholder="请输入服务费"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">卫生费</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.ws_fee" placeholder="请输入卫生费"></u-input>
<view class="item">
<view class="label">卫生费</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.ws_fee" placeholder="请输入卫生费"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">居住人数</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.peoples" placeholder="请输入居住人数"></u-input>
<view class="item">
<view class="label">居住人数</view>
<view class="input">
<u-input :clearable="false" type="number" input-align="right" v-model="form.peoples" placeholder="请输入居住人数"></u-input>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">支付类型</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.paytypeName" @click="paytypeShow = true" placeholder="请选择支付类型"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="paytypeShow" :list="paytypeList" @confirm="confirmPaytype"></u-select>
<view class="item">
<view class="label">支付类型</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.paytypeName" @click="paytypeShow = true" placeholder="请选择支付类型"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="paytypeShow" :list="paytypeList" @confirm="confirmPaytype"></u-select>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">收款方式</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.paymentMethodName" @click="paymentMethodShow = true" placeholder="请选择收款方式"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="paymentMethodShow" :list="paymentMethodList" @confirm="confirmPaymentMethod"></u-select>
<view class="item">
<view class="label">收款方式</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.paymentMethodName" @click="paymentMethodShow = true" placeholder="请选择收款方式"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="paymentMethodShow" :list="paymentMethodList" @confirm="confirmPaymentMethod"></u-select>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">租约期限</view>
<view class="input">
<u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rentDate" @click="calendarShow = true" placeholder="请选择租约期限"></u-input>
<image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow = true" />
<u-calendar v-model="calendarShow" mode="range" @change="changeDate"></u-calendar>
<view class="item">
<view class="label">租约期限</view>
<view class="input">
<u-input height="102" style="width:380rpx" disabled input-align="right" v-model="form.rentDate" @click="calendarShow = true" placeholder="请选择租约期限"></u-input>
<image class="calendar" src="/static/kehu/calendar.png" mode="" @click="calendarShow = true" />
<u-calendar v-model="calendarShow" mode="range" @change="changeDate"></u-calendar>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">成交部门</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.deptIdName" @click="deptIdShow = true" placeholder="请选择成交部门"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="deptIdShow" :list="deptIdList" @confirm="confirmDepartment"></u-select>
<view class="item">
<view class="label">成交部门</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.deptIdName" @click="deptIdShow = true" placeholder="请选择成交部门"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="deptIdShow" :list="deptIdList" @confirm="confirmDepartment"></u-select>
</view>
</view> </view>
</view>
<view class="item">
<view class="label">成交人</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.dealPeopleName" @click="dealPeopleShow = true" placeholder="请选择成交人"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="dealPeopleShow" :list="dealPeopleList" @confirm="confirmDealPeople"></u-select>
<view class="item">
<view class="label">成交人</view>
<view class="input">
<u-input height="102" disabled input-align="right" v-model="form.dealPeopleName" @click="dealPeopleShow = true" placeholder="请选择成交人"></u-input>
<image class="path" src="/static/path.png" mode="" />
<u-select confirm-color="#FF6D25" v-model="dealPeopleShow" :list="dealPeopleList" @confirm="confirmDealPeople"></u-select>
</view>
</view> </view>
<!-- <view class="red-item">拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!</view> -->
</view> </view>
<!-- <view class="red-item">拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!</view> -->
</view>
<view class="step" v-if="step==1" @click="nextStep">下一步</view>
<view class="step2" v-if="step==2">
<view class="next-btn btn" v-if="step==2" @click="step=1">上一步</view>
<view class="submit-btn btn" @click="submit">提交并预览</view>
</view> </view>
</view> </view>
<view class="step" v-if="step==1" @click="nextStep">下一步</view>
<view class="step2" v-if="step==2">
<view class="next-btn btn" v-if="step==2" @click="step=1">上一步</view>
<view class="submit-btn btn" @click="submit">提交并预览</view>
</view>
<view v-if="!canEdit" class="errText">{{errText}}</view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
</template> </template>
@@ -140,6 +143,8 @@
export default { export default {
data() { data() {
return { return {
canEdit: true,
errText: '',
step:1, step:1,
calendarShow: false, calendarShow: false,
starShow: false, starShow: false,
@@ -335,11 +340,18 @@
}; };
}, },
onLoad(options) { onLoad(options) {
this.electContractInfo = uni.getStorageSync('electContractInfo')
if (options.id){
this.roomId = options.id;
}else{
this.electContractInfo = uni.getStorageSync('electContractInfo');
uni.removeStorageSync('electContractInfo');
this.roomId = this.electContractInfo.roomId;
this.form.rentDate = this.electContractInfo.rent_date_start + '~' +this.electContractInfo.rent_date_end
this.form.rent_date_start = this.electContractInfo.rent_date_start
this.form.rent_date_end = this.electContractInfo.rent_date_end
}
if(!this.roomId) return;
this.oneVerificationContractInfo() this.oneVerificationContractInfo()
this.form.rentDate = this.electContractInfo.rent_date_start + '~'+this.electContractInfo.rent_date_end
this.form.rent_date_start =this.electContractInfo.rent_date_start
this.form.rent_date_end = this.electContractInfo.rent_date_end
}, },
created() { created() {
this.getDeptList() this.getDeptList()
@@ -375,7 +387,7 @@
}, },
// 获取用户信息 // 获取用户信息
oneVerificationContractInfo(){ oneVerificationContractInfo(){
this.$u.api.oneVerificationContractInfo({body:{"roomId": this.electContractInfo.roomId}}).then((res)=>{
this.$u.api.oneVerificationContractInfo({body:{"roomId": this.roomId}}).then((res)=>{
if(res.ErrNo=='0000'){ if(res.ErrNo=='0000'){
let data = res.result let data = res.result
this.contractId = data.contractId this.contractId = data.contractId
@@ -387,6 +399,10 @@
this.form.star = data.star this.form.star = data.star
this.form.hobby = data.hobby this.form.hobby = data.hobby
this.form.job = data.job this.form.job = data.job
}else{
// console.log(res)
this.canEdit = false
this.errText = res.ErrMsg
} }
}) })
}, },
@@ -397,7 +413,7 @@
// title: '拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!', // title: '拆单金额(3010.0)与第一笔合计不等(6001.0),押金、服务费(6009.0)默认第一笔不在计算在内!',
// }) // })
let body = { let body = {
roomId: this.electContractInfo.roomId,
roomId: this.roomId,
"customerName": this.form.name, "customerName": this.form.name,
"customerTel": this.form.tel, "customerTel": this.form.tel,
"idno": this.form.idno, "idno": this.form.idno,
@@ -510,10 +526,12 @@
.container { .container {
width: 750rpx; width: 750rpx;
min-height: 100vh; min-height: 100vh;
// background: #F8F8F8;
padding: 20rpx 0 250rpx; padding: 20rpx 0 250rpx;
.errText{
color: #E7483C;
padding: 0 30rpx;
}
.form-box{ .form-box{
// background: #fff;
padding: 0 30rpx; padding: 0 30rpx;
.item{ .item{
height: 102rpx; height: 102rpx;


+ 1
- 5
src/pages/otherPage/historyList.vue View File

@@ -27,10 +27,6 @@
this.mediacyId = options.mediacyId this.mediacyId = options.mediacyId
this.getList() this.getList()
}, },
onShow() {
},
created(){
},
onReachBottom() { onReachBottom() {
this.getList(); this.getList();
}, },
@@ -43,7 +39,7 @@
mediacyId: this.mediacyId mediacyId: this.mediacyId
} }
this.$u.api.findDetailHistory({body:params}).then((res)=>{ this.$u.api.findDetailHistory({body:params}).then((res)=>{
console.log(res)
// console.log(res)
if(res.result&&res.result.length){ if(res.result&&res.result.length){
if(this.pageNo==1){ if(this.pageNo==1){
this.listData = res.result this.listData = res.result


+ 0
- 4
src/pages/otherPage/jjrent.vue View File

@@ -5,7 +5,6 @@
<u-search v-model="keyword" @change="searchFun" placeholder="请输入电话号码" :show-action="false" :clearabled="true" bg-color="#F8F8F8" shape="round" height="78"></u-search> <u-search v-model="keyword" @change="searchFun" placeholder="请输入电话号码" :show-action="false" :clearabled="true" bg-color="#F8F8F8" shape="round" height="78"></u-search>
</view> </view>
</view> </view>
<view class="list-box"> <view class="list-box">
<view class="list-item" v-for="(item,index) in listData" :key="index"> <view class="list-item" v-for="(item,index) in listData" :key="index">
<image @click="topage(item)" class="house-img" :src="item.pic" mode="" /> <image @click="topage(item)" class="house-img" :src="item.pic" mode="" />
@@ -66,7 +65,6 @@
this.currentId = item.mediacyId this.currentId = item.mediacyId
this.isTop = item.isTop this.isTop = item.isTop
this.showModal = true this.showModal = true
console.log(item.isTop)
}, },
// 置顶接口 // 置顶接口
confirmFun(){ confirmFun(){
@@ -108,7 +106,6 @@
url: '/pages/otherPage/jjrentVisit?masterHouseId='+ item.masterHouseId+'&mediacyId='+ item.mediacyId+'&address='+item.address+'&personName='+item.personName url: '/pages/otherPage/jjrentVisit?masterHouseId='+ item.masterHouseId+'&mediacyId='+ item.mediacyId+'&address='+item.address+'&personName='+item.personName
}) })
}, },
topage(item){ topage(item){
uni.setStorageSync('roomInfo',item) uni.setStorageSync('roomInfo',item)
uni.navigateTo({ uni.navigateTo({
@@ -151,7 +148,6 @@
this.loadDone = true; this.loadDone = true;
if(this.pageNo==1){ if(this.pageNo==1){
this.listData = [] this.listData = []
} }
} }
}) })


+ 0
- 1
src/pages/otherPage/jjrentDetail.vue View File

@@ -87,7 +87,6 @@
url: '/pages/otherPage/jjrentVisit?masterHouseId='+ this.roomInfo.masterHouseId+'&mediacyId='+ this.roomInfo.mediacyId+'&address='+this.roomInfo.address+'&personName='+this.roomInfo.personName url: '/pages/otherPage/jjrentVisit?masterHouseId='+ this.roomInfo.masterHouseId+'&mediacyId='+ this.roomInfo.mediacyId+'&address='+this.roomInfo.address+'&personName='+this.roomInfo.personName
}) })
}, },
historyList(){ historyList(){
uni.navigateTo({ uni.navigateTo({
url: '/pages/otherPage/historyList?mediacyId='+ this.roomInfo.mediacyId url: '/pages/otherPage/historyList?mediacyId='+ this.roomInfo.mediacyId


+ 0
- 2
src/pages/otherPage/jjrentFollow.vue View File

@@ -43,14 +43,12 @@
}, },
methods: { methods: {
confirmType(e){ confirmType(e){
console.log(e)
this.form.type = e[0].value this.form.type = e[0].value
this.form.typeName = e[0].label this.form.typeName = e[0].label
}, },
// 居间跟进类别 // 居间跟进类别
getFollowType(){ getFollowType(){
this.$u.api.getFollowType({body:{}}).then((res)=>{ this.$u.api.getFollowType({body:{}}).then((res)=>{
// console.log(res)
this.followTypeList = res.result||[] this.followTypeList = res.result||[]
}) })
}, },


+ 1
- 2
src/pages/otherPage/rentDetail.vue View File

@@ -28,7 +28,7 @@
<view class="bot-cont"> <view class="bot-cont">
<view class="item-btn color1" @click="topage()">改价历史</view> <view class="item-btn color1" @click="topage()">改价历史</view>
<view class="item-btn color2" @click="topage('my/changePrice_check')">改价审核</view> <view class="item-btn color2" @click="topage('my/changePrice_check')">改价审核</view>
<view class="item-btn color3" @click="topage()">成交合同</view>
<view class="item-btn color3" @click="topage('my/electContract')">成交合同</view>
</view> </view>
</view> </view>
<view class="detail-info"> <view class="detail-info">
@@ -90,7 +90,6 @@
this.roomId = options.id; this.roomId = options.id;
this.roomInfo = {} this.roomInfo = {}
this.roomInfo = uni.getStorageSync('roomInfo') this.roomInfo = uni.getStorageSync('roomInfo')
console.log(this.roomInfo)
this.roomPictureList() this.roomPictureList()
}, },
onShow() { onShow() {


+ 1
- 1
src/pages/tabs/gonggao.vue View File

@@ -39,7 +39,7 @@
getGonggao(){ getGonggao(){
if (this.loadDone) return; if (this.loadDone) return;
this.$u.api.applist({body:{pageNo:this.pageNo,pageSize:this.pageSize}}).then((res)=>{ this.$u.api.applist({body:{pageNo:this.pageNo,pageSize:this.pageSize}}).then((res)=>{
console.log(res)
// console.log(res)
if(res.result&&res.result.length){ if(res.result&&res.result.length){
if(this.pageNo==1){ if(this.pageNo==1){
this.gonggaoList = res.result this.gonggaoList = res.result


+ 0
- 2
src/pages/tabs/index.vue View File

@@ -122,14 +122,12 @@
// 经纪人排名与组排名 // 经纪人排名与组排名
getRanking(api){ getRanking(api){
this.$u.api[api]({body:{}}).then((res)=>{ this.$u.api[api]({body:{}}).then((res)=>{
// console.log(res)
this.rankList = res.result this.rankList = res.result
}) })
}, },
// 获取公告 // 获取公告
getGonggao(){ getGonggao(){
this.$u.api.applist({body:{pageNo:1,pageSize:20}}).then((res)=>{ this.$u.api.applist({body:{pageNo:1,pageSize:20}}).then((res)=>{
console.log(res)
this.gonggaoList = res.result&&res.result.map(item=>item.title) this.gonggaoList = res.result&&res.result.map(item=>item.title)
}) })
}, },


+ 1
- 1
src/pages/tabs/login.vue View File

@@ -119,7 +119,7 @@ export default {
// 当前登录人信息查询 // 当前登录人信息查询
getfindPerson(){ getfindPerson(){
this.$u.api.findPerson({body:{}}).then((res)=>{ this.$u.api.findPerson({body:{}}).then((res)=>{
console.log(res)
// console.log(res)
let userInfo = res.result let userInfo = res.result
this.$u.vuex("vuex_user",userInfo); this.$u.vuex("vuex_user",userInfo);
uni.setStorageSync('user',userInfo) uni.setStorageSync('user',userInfo)


+ 2
- 8
src/pages/tabs/me.vue View File

@@ -3,7 +3,7 @@
<u-navbar :is-back="false" :border-bottom="false" title="我的" background="none"></u-navbar> <u-navbar :is-back="false" :border-bottom="false" title="我的" background="none"></u-navbar>
<view class="info"> <view class="info">
<image class="avatar" src="/static/avatar.png" mode="" /> <image class="avatar" src="/static/avatar.png" mode="" />
<view class="name u-line-1">{{userinfo.userName}}</view>
<view class="name u-line-1">{{vuex_user.userName||userinfo.userName}}</view>
</view> </view>
<view class="menu"> <view class="menu">
<view class="menu-item"> <view class="menu-item">
@@ -81,13 +81,7 @@
}; };
}, },
onLoad(options) { onLoad(options) {
if(this.vuex_user.userName){
this.userinfo = this.vuex_user
}else{
this.userinfo = wx.getStorageSync('user')
}
},
onShow() {
this.userinfo = wx.getStorageSync('user')
}, },
methods: { methods: {
topage(type){ topage(type){


Loading…
Cancel
Save