优化bug

This commit is contained in:
java110 2020-09-30 23:22:38 +08:00
parent afc3ba3da0
commit 4a0f5cb1ea
6 changed files with 21 additions and 5 deletions

View File

@ -4,6 +4,11 @@
* QQ 92825595
*
*/
import mapping from '../../constant/MappingConstant.js';
import app from '../../constant/AppConstant.js'
import {_doLoginOwnerByKey} from '../../auth/AppLogin.js'
/**
* 页面加载方法
@ -14,15 +19,15 @@ export function onLoad(_option){
let _key = _option.key;
if (_key != null && _key != undefined && _key != '') {
//根据key 去做登录
factory.login._doLoginOwnerByKey(_key);
_doLoginOwnerByKey(_key);
}
let wAppId = _option.wAppId;
if (wAppId != null && wAppId != undefined && wAppId != '') {
uni.setStorageSync(constant.mapping.W_APP_ID, _option.wAppId);
uni.setStorageSync(mapping.W_APP_ID, _option.wAppId);
}else{
wAppId = uni.getStorageInfoSync(constant.mapping.W_APP_ID)
wAppId = uni.getStorageInfoSync(mapping.W_APP_ID)
if(wAppId != null && wAppId != undefined && wAppId != ''){
uni.setStorageSync(constant.mapping.W_APP_ID, constant.app.wAppId);
uni.setStorageSync(mapping.W_APP_ID, app.wAppId);
}
}
// #endif

View File

@ -89,7 +89,7 @@ export default {
listOweFees: baseUrl + 'app/feeApi/listOweFees', //查询房屋欠费
toOweFeePay: baseUrl + "app/payment/toOweFeePay", //欠费缴费
queryRentingPool: baseUrl + 'app/renting/queryRentingPool',
saveRentingAppointment: baseUrl + '/app/rentingAppointment/saveRentingAppointment', //房屋预约
saveRentingAppointment: baseUrl + 'app/rentingAppointment/saveRentingAppointment', //房屋预约
NEED_NOT_LOGIN_PAGE: [
'/pages/login/login',
'/pages/register/register',

View File

@ -127,7 +127,12 @@
let _url = default_img;
let _item = data[i];
if (_item.hasOwnProperty('photos') && _item.photos.length > 0) {
//#ifndef H5
_url = url.baseUrl + _item.photos[0];
//#endif
// #ifdef H5
_url = _item.photos[0];
//#endif
}
_item.src = _url;
}

View File

@ -139,7 +139,13 @@
_that.renting = rentingPool[0];
let _url = default_img;
if (_that.renting.hasOwnProperty('photos') && _that.renting.photos.length > 0) {
//_url = url.baseUrl + _that.renting.photos[0];
//#ifndef H5
_url = url.baseUrl + _that.renting.photos[0];
//#endif
// #ifdef H5
_url = _that.renting.photos[0];
//#endif
}
_that.rentingPhotos.push(_url);
_that._loadAdmin();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB