mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
广告功能开发完成
This commit is contained in:
parent
a81d3caabe
commit
4df3c49d63
@ -4,8 +4,8 @@
|
||||
* add by wuxw 2019-12-28
|
||||
*/
|
||||
// 服务器域名
|
||||
//const baseUrl = 'https://app.demo.winqi.cn/';
|
||||
const baseUrl = '/';
|
||||
const baseUrl = 'https://app.demo.winqi.cn/';
|
||||
//const baseUrl = '/';
|
||||
const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口
|
||||
|
||||
const loginUrl = baseUrl + 'app/loginProperty';
|
||||
@ -50,13 +50,13 @@ const queryFeeByParkingSpace = baseUrl + "app/fee.queryFeeByParkingSpace"; //查
|
||||
|
||||
const queryFeeByOwner = baseUrl + "app/fee.queryFee"; //预下单
|
||||
|
||||
const preOrder = baseUrl + "/app/payment/toPay"; //查询小区
|
||||
const preOrder = baseUrl + "app/payment/toPay"; //查询小区
|
||||
|
||||
const listCommunitys = baseUrl + "/app/community.listCommunitys"; //查询小区文化
|
||||
const listCommunitys = baseUrl + "app/community.listCommunitys"; //查询小区文化
|
||||
|
||||
const listActivitiess = baseUrl + "/app/activities.listActivitiess"; //查询小区广告
|
||||
const listActivitiess = baseUrl + "app/activities.listActivitiess"; //查询小区广告
|
||||
|
||||
const listAdvertPhoto = baseUrl + "/app/advert.listAdvertPhoto";
|
||||
const listAdvertPhoto = baseUrl + "app/advert.listAdvertPhoto";
|
||||
module.exports = {
|
||||
baseUrl: baseUrl,
|
||||
hcBaseUrl: hcBaseUrl,
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
uni.setStorageSync(_that.java110Constant.mapping.CURRENT_COMMUNITY_INFO, JSON.stringify(_tmpCommunityInfo));
|
||||
_that.currentCommunityId = _tmpCommunityInfo.communityId;
|
||||
_that.currentCommunityName = _tmpCommunityInfo.name;
|
||||
|
||||
_that._loadAd();
|
||||
return;
|
||||
}
|
||||
let communityId = '';
|
||||
@ -141,6 +141,7 @@
|
||||
uni.setStorageSync(_that.java110Constant.mapping.CURRENT_COMMUNITY_INFO, JSON.stringify(_tmpCommunityInfo));
|
||||
_that.currentCommunityId = _tmpCommunityInfo.communityId;
|
||||
_that.currentCommunityName = _tmpCommunityInfo.name;
|
||||
_that._loadAd();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -154,11 +155,11 @@
|
||||
let _objData = {
|
||||
page: 1,
|
||||
row: 5,
|
||||
communityId: this.data.communityId
|
||||
communityId: this.currentCommunityId
|
||||
};
|
||||
context.request({
|
||||
this.java110Context.request({
|
||||
url: _that.java110Constant.url.listAdvertPhoto,
|
||||
header: context.getHeaders(),
|
||||
header: _that.java110Context.getHeaders(),
|
||||
method: "GET",
|
||||
data: _objData, //动态数据
|
||||
success: function (res) {
|
||||
@ -168,13 +169,15 @@
|
||||
let _advertPhotos = res.data;
|
||||
let _aPhotos = [];
|
||||
_advertPhotos.forEach(function (_item) {
|
||||
_item.type= "type";
|
||||
_item.url = constant.url.hcBaseUrl + _item.url + "&time=" + new Date();
|
||||
_item.type= "image";
|
||||
_item.url = _that.java110Constant.url.hcBaseUrl + _item.url + "&time=" + new Date();
|
||||
_aPhotos.push(_item);
|
||||
});
|
||||
|
||||
_that.swiperList = _aPhotos;
|
||||
|
||||
console.log(_that.swiperList);
|
||||
|
||||
return;
|
||||
}
|
||||
wx.showToast({
|
||||
|
||||
4
unpackage/dist/dev/app-plus/app-service.js
vendored
4
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user