From d4c2b4aa0cfc9eea70265dd17d539855247e2a5b Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 1 Nov 2022 15:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/common.scss | 322 ++--------------------- src/pages.json | 6 + src/pages/customer/addCustomer.vue | 45 ++-- src/pages/customer/addLedlook.vue | 10 +- src/pages/customer/ledList.vue | 11 + src/pages/customer/selectHousesource.vue | 13 +- src/pages/my/applyHistory.vue | 86 +++--- src/pages/my/apply_baojie.vue | 7 +- src/pages/my/changePrice_apply.vue | 2 +- src/pages/my/changePrice_check.vue | 38 +-- src/pages/my/contactList.vue | 60 ++--- src/pages/my/contact_check.vue | 17 +- src/pages/my/dingjin_check.vue | 17 +- src/pages/my/electContract.vue | 111 +++++--- src/pages/my/goonContract.vue | 21 +- src/pages/my/myapply.vue | 2 +- src/pages/my/mywarReport.vue | 1 - src/pages/my/networkquery.vue | 19 +- src/pages/my/rentReceive.vue | 11 + src/pages/my/repairlist.vue | 56 +++- src/pages/otherPage/companywarReport.vue | 13 +- src/pages/otherPage/gonggaoDetail.vue | 70 +++++ src/pages/otherPage/historyList.vue | 11 + src/pages/otherPage/jjrent.vue | 11 + src/pages/otherPage/jjrentDetail.vue | 18 +- src/pages/otherPage/jjrentVisit.vue | 48 ++-- src/pages/otherPage/ledList.vue | 11 + src/pages/otherPage/rent.vue | 67 ++++- src/pages/otherPage/rentDetail.vue | 2 +- src/pages/otherPage/shouding.vue | 30 ++- src/pages/tabs/customer.vue | 33 ++- src/pages/tabs/gonggao.vue | 28 +- src/pages/tabs/index.vue | 21 +- src/static/myapply/not_pass.png | Bin 0 -> 1314 bytes src/static/myapply/passed.png | Bin 0 -> 1208 bytes 35 files changed, 663 insertions(+), 555 deletions(-) create mode 100644 src/pages/otherPage/gonggaoDetail.vue create mode 100644 src/static/myapply/not_pass.png create mode 100644 src/static/myapply/passed.png diff --git a/src/common/common.scss b/src/common/common.scss index 6f6188f..91842e9 100644 --- a/src/common/common.scss +++ b/src/common/common.scss @@ -44,309 +44,33 @@ body { -webkit-box-orient: vertical; letter-spacing: 1rpx; } - -// 右箭头 -.arrorRight { - display: inline-block; - width: 30rpx; - height: 30rpx; -} - -// tab选项卡样式 -.tabBox { - height: 70rpx; +// 空数据样式 +.empty-box{ + display: flex; + flex-direction: column; align-items: center; - margin-bottom: 20rpx; - &_li { - padding: 0 50rpx; - font-size: 36rpx; - font-weight: 400; - color: #999999; - } - &_li_active { - font-size: 36rpx; - font-weight: 500; - color: #333333; - position: relative; + justify-content: center; + margin-top: 200rpx; + .img{ + width: 570rpx; + height: 362rpx; } - &_li_active::after { - content: ''; - display: block; - position: absolute; - width: 48rpx; - height: 18rpx; - left: 50%; - transform: translateX(-50%); - bottom: -40%; - background: url('https://static.quhouse.com/upload/pic/20210421102103429117.png') no-repeat; - background-size: 40rpx 14rpx; - } -} - -// 提交按钮 -.btnBox { - position: fixed; - bottom: 10rpx; - left: 0; - width: 100%; - // background: #FFFFFF; - padding: 20rpx; - z-index: 9; - .pushTranBtn { - width: 690rpx; - height: 86rpx; - background: #DA2222; - margin: 0 auto; - border-radius: 44rpx; - text-align: center; - line-height: 86rpx; - font-size: 36rpx; + .no-data{ + width: 112rpx; + height: 40rpx; + font-size: 28rpx; + font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; - color: #FFFFFF; - } -} - -// tab 列表内容公共样式 -.relist { - border-bottom: 10rpx solid #E7E7E7; - .reli { - padding: 20rpx 30rpx; - align-items: flex-start; - &_img { - display: inline-block; - width: 178rpx; - height: 178rpx; - margin-right: 20rpx; - border-radius: 10rpx; - } - &_main { - &_name { - margin-bottom: 20rpx; - height: 42rpx; - font-size: 30rpx; - font-weight: 500; - color: #333333; - line-height: 42rpx; - } - &_subname { - margin-bottom: 10rpx; - height: 30rpx; - font-size: 22rpx; - font-weight: 400; - color: #999999; - line-height: 30rpx; - } - } - } - .relicom { - padding: 20rpx 30rpx; - align-items: flex-start; - position: relative; - .rightArr { - display: block; - right: 20rpx; - top: 50%; - transform: translateY(-50%); - width: 30rpx; - height: 30rpx; - position: absolute; - } - &_img { - display: inline-block; - width: 128rpx; - height: 128rpx; - margin-right: 20rpx; - border-radius: 50%; - } - .reli_main { - &_name { - margin-bottom: 20rpx; - height: 42rpx; - font-size: 30rpx; - font-weight: 500; - color: #333333; - line-height: 42rpx; - } - &_subname { - margin-bottom: 10rpx; - height: 30rpx; - font-size: 22rpx; - font-weight: 400; - color: #999999; - line-height: 30rpx; - } - } + color: #666666; + line-height: 40rpx; } } - -.relist:last-of-type { - border-bottom: 0; -} - -.acBoxhead { - padding-left: 10rpx; - position: relative; - height: 50rpx; - font-size: 32rpx; - font-weight: 500; +// 列表数据加载中 +.loading{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; color: #333333; - line-height: 50rpx; -} - -.acBoxhead::after { - content: ''; - display: block; - position: absolute; - width: 6rpx; - height: 32rpx; - background: #FF8C13; - border-radius: 4rpx; - left: -3rpx; - top: 50%; - transform: translateY(-50%); -} - -// 新增弹框 -.addBox { - position: fixed; - // width: 100%; - // height: 100%; - background: rgba(0,0,0,0.4); - left: 0; - top: 0; - bottom: 0; - right: 0; - z-index: 999; -} - -.addmainBoxTi { - padding: 40rpx 0 0 0; -} - -.addmain { - padding: 40rpx 0 0 0; - width: 688rpx; - border-radius: 20rpx; - position: fixed; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - background: #FFFFFF; - z-index: 9999; - .addmainMain { - padding: 0 40rpx 40rpx; - .addtitle { - width: 100%; - text-align: center; - margin-bottom: 30rpx; - font-size: 36rpx; - font-weight: 400; - color: #333333; - } - .stliComCont { - font-size: 30rpx; - font-weight: 400; - color: #333333; - line-height: 42rpx; - } - } - .stliCom { - height: 36rpx; - align-items: center; - margin-bottom: 30rpx; - font-size: 26rpx; - font-weight: 400; - color: #333333; - .stliComImg { - display: inline-block; - width: 30rpx; - height: 30rpx; - margin: 0 14rpx 0 30rpx; - } - } - .stmain { - align-items: center; - height: 42rpx; - font-size: 30rpx; - font-weight: 400; - color: #333333; - padding: 0 30rpx; - margin-bottom: 20rpx; - } - .stlili { - flex-wrap: wrap; - margin-bottom: 10rpx; - .stlimain { - padding: 0 16rpx; - height: 70rpx; - line-height: 70rpx; - font-size: 24rpx; - font-weight: 400; - color: #292929; - border-radius: 6rpx; - border: 1rpx solid #FF8C13; - margin: 0 10rpx 10rpx 0; - } - .stlimain_Active { - background: #FF8C13; - color: #FFFFFF; - border: 1px solid #FF8C13; - } - } - .addBtnBox { - height: 92rpx; - align-items: center; - border-top: 1rpx solid #E0E0E0; - .addBtnBoxLeft { - height: 92rpx; - line-height: 92rpx; - border-right: 1rpx solid #E0E0E0; - font-size: 30rpx; - font-weight: 400; - color: #333333; - text-align: center; - width: 50%; - } - .addBtnBoxright { - font-size: 30rpx; - font-weight: 400; - color: #FF8C13; - text-align: center; - width: 50%; - } - } - .addBtnBoxbrn { - height: 124rpx; - align-items: center; - border-top: 1rpx solid #E0E0E0; - font-size: 36rpx; - font-weight: 400; - color: #FF8C13; - justify-content: center; - width: 100%; - } -} - -// 选择按钮 -.followList { - flex-wrap: wrap; - margin-bottom: 30rpx; - &_li { - padding: 0 10rpx; - height: 70rpx; - text-align: center; - line-height: 70rpx; - background: #FFFFFF; - border-radius: 6rpx; - margin: 0 20rpx 20rpx 0; - border: 1px solid #333333; - font-size: 24rpx; - font-weight: 400; - color: #333; - } - &_li_Active { - background: #FF8C13; - color: #FFFFFF; - border: 1px solid #FF8C13; - } + font-size: 28rpx; } \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 71acf3d..d83f51c 100644 --- a/src/pages.json +++ b/src/pages.json @@ -232,6 +232,12 @@ "navigationBarTitleText": "出租专区详情", "navigationBarTextStyle": "black" } + }, { + "path": "gonggaoDetail", + "style": { + "navigationBarTitleText": "公告详情", + "navigationBarTextStyle": "black" + } }, { "path": "ledList", "style": { diff --git a/src/pages/customer/addCustomer.vue b/src/pages/customer/addCustomer.vue index 25f4f1c..981d190 100644 --- a/src/pages/customer/addCustomer.vue +++ b/src/pages/customer/addCustomer.vue @@ -70,24 +70,7 @@ needType: 0,//需求类型 mark: ''//备注 }, - sourceList: [ - { - value: '1', - label: '来电' - }, - { - value: '2', - label: '来访' - }, - { - value: '3', - label: '到访' - }, - { - value: '4', - label: '2来访' - }, - ], + sourceList: [], customStyle:{ maxHeight:'200rpx', padding: '20rpx', @@ -97,13 +80,29 @@ }; }, onLoad(options) { + this.getChannel() }, onShow() { }, methods: { + getChannel(){ + this.$u.api.getChannel({body:{}}).then((res)=>{ + if(res.ErrNo=='0000'){ + if(res.result&&res.result.length){ + this.sourceList = res.result.map(item=>{ + return{ + value: item.code, + label: item.text + } + }) + }else{ + this.sourceList =[] + } + } + }) + }, confirmSource(e){ - console.log(e) this.form.source = e[0].value this.form.sourceName = e[0].label }, @@ -118,10 +117,10 @@ "gender":this.form.sex } this.$u.api.customerAdd({body:body}).then((res)=>{ - + if(res.ErrNo=='0000'){ + uni.navigateBack() + } }) - - }, sexChange(){ console.log(this.form.sex) @@ -202,7 +201,7 @@ height: 88rpx; line-height: 88rpx; text-align: center; - background: #FFB692; + background: #FF6D25; border-radius: 12rpx; margin-left: 30rpx; font-size: 32rpx; diff --git a/src/pages/customer/addLedlook.vue b/src/pages/customer/addLedlook.vue index 83a0157..8fd9244 100644 --- a/src/pages/customer/addLedlook.vue +++ b/src/pages/customer/addLedlook.vue @@ -4,7 +4,7 @@ 房源地址 - + @@ -54,7 +54,7 @@ let houseSource = wx.getStorageSync('houseSource') if(houseSource&&houseSource.address){ this.form.address = houseSource.address - this.roomId = houseSource.roomId + this.roomId = houseSource.houseId uni.removeStorageSync('houseSource') } }, @@ -95,15 +95,9 @@ // console.log(res) this.flag = false; if(res.ErrNo=='0000'){ - uni.showToast({ - title: res.ErrMsg, - icon: 'none' - }) - setTimeout(function() { wx.switchTab({ url: '/pages/tabs/customer' }) - }, 1000); } }) } diff --git a/src/pages/customer/ledList.vue b/src/pages/customer/ledList.vue index 2c662ed..3ecb050 100644 --- a/src/pages/customer/ledList.vue +++ b/src/pages/customer/ledList.vue @@ -9,6 +9,14 @@ {{item.address}} + + + 暂无数据 + + + + 正在加载中 + diff --git a/src/pages/my/contactList.vue b/src/pages/my/contactList.vue index c73ac1c..093a29b 100644 --- a/src/pages/my/contactList.vue +++ b/src/pages/my/contactList.vue @@ -1,7 +1,7 @@ @@ -29,43 +37,8 @@ pageNo: 1, pageSize: 10, loadDone: false, - listData: [ - { - first: 'a', - cell:[{ - "deptName": "a政部", - "tellPhone": "18811152687", - "namespell": "a", - "personName": "安丽红", - "personImage": "/static/avatar.png" - },{ - "deptName": "ab政部", - "tellPhone": "18811152687", - "namespell": "a", - "personName": "安丽红", - "personImage": "/static/avatar.png" - } - ] - },{ - first: 'b', - cell:[{ - "deptName": "b政部", - "tellPhone": "18811152687", - "namespell": "b", - "personName": "丽红", - "personImage": "" - }] - },{ - first: 'c', - cell:[{ - "deptName": "c政部", - "tellPhone": "18811152687", - "namespell": "c", - "personName": "王丽红", - "personImage": "" - }] - } - ] + loading: false, + listData: [] }; }, onLoad(options) { @@ -80,10 +53,17 @@ this.getList(); }, methods: { + search(){ + this.pageNo=1 + this.listData = [] + this.loadDone = false + this.getList(); + }, getList(){ if (this.loadDone) return; - this.$u.api.addressBook({body:{pageNo:this.pageNo,pageSize:this.pageSize}}).then((res)=>{ - console.log(res) + this.loading = true; + this.$u.api.addressBook({body:{pageNo:this.pageNo,pageSize:this.pageSize,message: this.keyword}}).then((res)=>{ + this.loading = false if(res.result&&res.result.length){ if(this.pageNo==1){ this.listData = res.result diff --git a/src/pages/my/contact_check.vue b/src/pages/my/contact_check.vue index 53c7e65..2854e99 100644 --- a/src/pages/my/contact_check.vue +++ b/src/pages/my/contact_check.vue @@ -41,7 +41,10 @@ - + + + 正在加载中 + + + diff --git a/src/pages/otherPage/historyList.vue b/src/pages/otherPage/historyList.vue index 86ac886..3c74f3c 100644 --- a/src/pages/otherPage/historyList.vue +++ b/src/pages/otherPage/historyList.vue @@ -10,6 +10,14 @@ {{item.createTime}} + + + 暂无数据 + + + + 正在加载中 + @@ -21,6 +29,7 @@ pageNo: 1, pageSize: 10, loadDone: false, + loading: false, }; }, onLoad(options) { @@ -33,6 +42,7 @@ methods: { getList(){ if (this.loadDone) return; + this.loading = true; let params = { pageNo:this.pageNo, pageSize:this.pageSize, @@ -40,6 +50,7 @@ } this.$u.api.findDetailHistory({body:params}).then((res)=>{ // console.log(res) + this.loading = false if(res.result&&res.result.length){ if(this.pageNo==1){ this.listData = res.result diff --git a/src/pages/otherPage/jjrent.vue b/src/pages/otherPage/jjrent.vue index 1353355..6f9d705 100644 --- a/src/pages/otherPage/jjrent.vue +++ b/src/pages/otherPage/jjrent.vue @@ -23,6 +23,14 @@ + + + 暂无数据 + + + + 正在加载中 + @@ -30,6 +38,7 @@ export default { data() { return { + loading: false, showModal: false, keyword: '', searchForm: { @@ -119,6 +128,7 @@ }, getList(){ if (this.loadDone) return; + this.loading = true; let params = { pageNo:this.pageNo, pageSize:this.pageSize, @@ -126,6 +136,7 @@ } this.$u.api.intermediary({body:params}).then((res)=>{ // console.log(res) + this.loading = false if(res.result&&res.result.length){ res.result.forEach(item=>{ if(item.pictrues&&item.pictrues.length){ diff --git a/src/pages/otherPage/jjrentDetail.vue b/src/pages/otherPage/jjrentDetail.vue index 265e38a..6f50197 100644 --- a/src/pages/otherPage/jjrentDetail.vue +++ b/src/pages/otherPage/jjrentDetail.vue @@ -33,8 +33,8 @@ - - + + 关注 @@ -55,14 +55,17 @@ 历史记录 +