mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化保修功能
This commit is contained in:
parent
7db25b8d2b
commit
262bdd4787
@ -93,7 +93,11 @@
|
|||||||
import context from '../../lib/java110/Java110Context.js'
|
import context from '../../lib/java110/Java110Context.js'
|
||||||
const constant = context.constant;
|
const constant = context.constant;
|
||||||
const factory = context.factory;
|
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";
|
import uploadImageAsync from "../../components/vc-upload-async/vc-upload-async.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -171,9 +175,13 @@
|
|||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
let that = this;
|
let that = this;
|
||||||
context.onLoad(options);
|
context.onLoad(options);
|
||||||
|
this.communityId = getCommunityId();
|
||||||
|
this.communityName = getCommunityName();
|
||||||
|
this.userName = getOwnerName();
|
||||||
|
this.bindTel = getOwnerTel();
|
||||||
|
this.bindRepairName = this.userName;
|
||||||
context.getRooms().then(res => {
|
context.getRooms().then(res => {
|
||||||
let arr = res.data.rooms;
|
let arr = res.data.rooms;
|
||||||
|
|
||||||
let roomCloums = [];
|
let roomCloums = [];
|
||||||
let roomIdArr = [];
|
let roomIdArr = [];
|
||||||
arr.map(item => {
|
arr.map(item => {
|
||||||
@ -183,11 +191,6 @@
|
|||||||
that.roomCloums = roomCloums;
|
that.roomCloums = roomCloums;
|
||||||
that.roomIdArr = roomIdArr;
|
that.roomIdArr = roomIdArr;
|
||||||
that.userId = res.data.owner.userId;
|
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: {
|
methods: {
|
||||||
sendImagesData: function(e){
|
sendImagesData: function(e){
|
||||||
this.photos = [];
|
this.photos = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user