mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
736ce4b436
commit
fa3eee1a81
@ -10,7 +10,7 @@ export default {
|
|||||||
loginOwnerUrl: baseUrl + 'app/loginOwner',
|
loginOwnerUrl: baseUrl + 'app/loginOwner',
|
||||||
phoneWechatLogin: baseUrl + "app/login.phoneWechatLogin",
|
phoneWechatLogin: baseUrl + "app/login.phoneWechatLogin",
|
||||||
areaUrl: baseUrl + "app/area.listAreas",
|
areaUrl: baseUrl + "app/area.listAreas",
|
||||||
GetNoticeListUrl: baseUrl + 'app/notice.listNotices', //公告接口
|
GetNoticeListUrl: baseUrl + 'app/notice.queryPhoneNotice', //公告接口
|
||||||
saveOwnerRepair: baseUrl + 'app/ownerRepair.saveOwnerRepair', //报修
|
saveOwnerRepair: baseUrl + 'app/ownerRepair.saveOwnerRepair', //报修
|
||||||
listOwnerRepairs: baseUrl + 'app/ownerRepair.listOwnerRepairs', //查询报修
|
listOwnerRepairs: baseUrl + 'app/ownerRepair.listOwnerRepairs', //查询报修
|
||||||
saveOwner: baseUrl + 'app/owner.saveOwnerMember', //家庭成员列表
|
saveOwner: baseUrl + 'app/owner.saveOwnerMember', //家庭成员列表
|
||||||
|
|||||||
@ -80,12 +80,12 @@
|
|||||||
"disableHostCheck" : true,
|
"disableHostCheck" : true,
|
||||||
"proxy" : {
|
"proxy" : {
|
||||||
"/app" : {
|
"/app" : {
|
||||||
"target" : "http://mall.jyzctech.com/", //目标接口域名
|
"target" : "http://127.0.0.1:8008/", //目标接口域名
|
||||||
"changeOrigin" : true, //是否跨域
|
"changeOrigin" : true, //是否跨域
|
||||||
"secure" : true // 设置支持https协议的代理
|
"secure" : true // 设置支持https协议的代理
|
||||||
},
|
},
|
||||||
"/callComponent" : {
|
"/callComponent" : {
|
||||||
"target" : "http://mall.jyzctech.com/", //目标接口域名
|
"target" : "http://127.0.0.1:8008/", //目标接口域名
|
||||||
"changeOrigin" : true, //是否跨域
|
"changeOrigin" : true, //是否跨域
|
||||||
"secure" : true // 设置支持https协议的代理
|
"secure" : true // 设置支持https协议的代理
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,9 @@
|
|||||||
import {replaceImgSrc} from '../../../lib/java110/utils/ImageUtil.js'
|
import {replaceImgSrc} from '../../../lib/java110/utils/ImageUtil.js'
|
||||||
//获取app实例
|
//获取app实例
|
||||||
const app = getApp().globalData;
|
const app = getApp().globalData;
|
||||||
|
import {
|
||||||
|
queryNotices
|
||||||
|
} from '@/api/index/indexApi.js';
|
||||||
|
|
||||||
import jyfParser from "@/components/jyf-parser/jyf-parser";
|
import jyfParser from "@/components/jyf-parser/jyf-parser";
|
||||||
|
|
||||||
@ -54,25 +57,16 @@
|
|||||||
methods: {
|
methods: {
|
||||||
_loadNoticeDetail: function() {
|
_loadNoticeDetail: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
queryNotices({
|
||||||
context.request({
|
communityId: that.communityId,
|
||||||
header: context.getHeaders(),
|
page: 1,
|
||||||
url: constant.url.GetNoticeListUrl,
|
row: 10,
|
||||||
method: "GET",
|
noticeId: that.noticeId
|
||||||
data: {
|
}).then((_notices) => {
|
||||||
communityId: that.communityId,
|
let notice = _notices[0]
|
||||||
page: 1,
|
notice.timeStr = notice.startTime.replace(/:\d{1,2}$/, ' ');
|
||||||
row: 10,
|
notice.context = replaceImgSrc(notice.context,conf.baseUrl);
|
||||||
noticeId: that.noticeId
|
that.notice = notice;
|
||||||
},
|
|
||||||
success: function(res) {
|
|
||||||
// TODO 判断
|
|
||||||
console.log(res);
|
|
||||||
let notice = res.data.notices[0]
|
|
||||||
notice.timeStr = notice.startTime.replace(/:\d{1,2}$/, ' ');
|
|
||||||
notice.context = replaceImgSrc(notice.context,conf.baseUrl);
|
|
||||||
that.notice = notice;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user