From 262bdd47873367d96482e501d6c76e11dddcd4e2 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Thu, 19 Oct 2023 16:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=9D=E4=BF=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/repair/repair.vue | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/pages/repair/repair.vue b/pages/repair/repair.vue index 0396591..61631e9 100644 --- a/pages/repair/repair.vue +++ b/pages/repair/repair.vue @@ -93,7 +93,11 @@ import context from '../../lib/java110/Java110Context.js' const constant = context.constant; const factory = context.factory; - import {formatDate,formatHourAndMin} from '@/lib/java110/utils/DateUtil.js' + import {formatDate,formatHourAndMin} from '@/lib/java110/utils/DateUtil.js'; + + import {getCommunityId,getCommunityName} from '@/api/community/communityApi.js'; + + import {getOwnerId,getOwnerName,getOwnerTel} from '@/api/owner/ownerApi.js' import uploadImageAsync from "../../components/vc-upload-async/vc-upload-async.vue"; export default { @@ -171,9 +175,13 @@ onLoad: function(options) { let that = this; context.onLoad(options); + this.communityId = getCommunityId(); + this.communityName = getCommunityName(); + this.userName = getOwnerName(); + this.bindTel = getOwnerTel(); + this.bindRepairName = this.userName; context.getRooms().then(res => { let arr = res.data.rooms; - let roomCloums = []; let roomIdArr = []; arr.map(item => { @@ -183,11 +191,6 @@ that.roomCloums = roomCloums; that.roomIdArr = roomIdArr; that.userId = res.data.owner.userId; - that.userName = res.data.owner.appUserName; - that.bindRepairName = that.userName; - that.bindTel = res.data.owner.link; - that.communityId = res.data.owner.communityId; - that.communityName = res.data.owner.communityName; }); //加载报修类型 @@ -234,20 +237,7 @@ }, - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function() {}, - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function() {}, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function() {}, methods: { sendImagesData: function(e){ this.photos = [];