mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化图片显示及登录 不调转问题
This commit is contained in:
parent
693ec1b72b
commit
3c8eedfbf4
@ -8,7 +8,7 @@ class MappingConstant {
|
|||||||
|
|
||||||
static TOKEN = "token"; // token 标识
|
static TOKEN = "token"; // token 标识
|
||||||
|
|
||||||
static USER_INFO = "userInfo"; // 用户信息
|
static USER_INFO = "STAFF_USER_INFO"; // 用户信息
|
||||||
|
|
||||||
static AREA_INFO = "areaInfo"; // 地区信息
|
static AREA_INFO = "areaInfo"; // 地区信息
|
||||||
|
|
||||||
|
|||||||
@ -151,9 +151,13 @@ const _loadArea = function(_level, _parentAreaCode, callBack = _areaList => {})
|
|||||||
*/
|
*/
|
||||||
const getCurrentCommunity = function() {
|
const getCurrentCommunity = function() {
|
||||||
let currentCommunity = uni.getStorageSync(constant.mapping.CURRENT_COMMUNITY_INFO);
|
let currentCommunity = uni.getStorageSync(constant.mapping.CURRENT_COMMUNITY_INFO);
|
||||||
|
console.log('当前小区获取',currentCommunity);
|
||||||
if (util.string.isNull(currentCommunity)) {
|
if (util.string.isNull(currentCommunity)) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
if(currentCommunity instanceof Object){
|
||||||
|
return currentCommunity;
|
||||||
|
}
|
||||||
return JSON.parse(currentCommunity);
|
return JSON.parse(currentCommunity);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="detailContainer">
|
<view class="detailContainer">
|
||||||
<image class="headImg" :src="activity.src"></image>
|
<image class="headImg" v-if="showHeadImage" :src="activity.src" @error="hideHeadImage()"></image>
|
||||||
<view class="ad_titile">
|
<view class="ad_titile">
|
||||||
<text class="company">{{activity.title}}</text>
|
<text class="company">{{activity.title}}</text>
|
||||||
</view>
|
</view>
|
||||||
@ -23,6 +23,7 @@
|
|||||||
return {
|
return {
|
||||||
activitiesId:'',
|
activitiesId:'',
|
||||||
currentCommunityId:'',
|
currentCommunityId:'',
|
||||||
|
showHeadImage:true,
|
||||||
activity:{
|
activity:{
|
||||||
src:'',
|
src:'',
|
||||||
title:'',
|
title:'',
|
||||||
@ -38,6 +39,10 @@
|
|||||||
this._loadActivites();
|
this._loadActivites();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
hideHeadImage:function(){
|
||||||
|
console.log('加载图片失败')
|
||||||
|
this.showHeadImage = false;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载活动
|
* 加载活动
|
||||||
@ -60,7 +65,6 @@
|
|||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log("请求返回信息:", res);
|
console.log("请求返回信息:", res);
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
|
|
||||||
let _activites = res.data.activitiess;
|
let _activites = res.data.activitiess;
|
||||||
_activites.forEach(function (_item) {
|
_activites.forEach(function (_item) {
|
||||||
_item.src = _that.java110Constant.url.filePath + "?fileId=" + _item.headerImg + "&communityId=" + _that.currentCommunityId + "&time=" + new Date();
|
_item.src = _that.java110Constant.url.filePath + "?fileId=" + _item.headerImg + "&communityId=" + _that.currentCommunityId + "&time=" + new Date();
|
||||||
@ -104,7 +108,7 @@
|
|||||||
|
|
||||||
.detailContainer .ad_titile{
|
.detailContainer .ad_titile{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 30rpx;
|
padding-top: 30rpx;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
font-size: 44rpx;
|
font-size: 44rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
import CryptoJS from '../lib/crypto-js.js'
|
import CryptoJS from '../lib/crypto-js.js'
|
||||||
|
|
||||||
|
const StringUtil = require("./StringUtil")
|
||||||
|
|
||||||
var keyvi = 'java110_hc_wuxw';
|
var keyvi = 'java110_hc_wuxw';
|
||||||
function des_encrypt(message) {
|
function des_encrypt(message) {
|
||||||
var key = CryptoJS.MD5(keyvi).toString();
|
var key = CryptoJS.MD5(keyvi).toString();
|
||||||
@ -17,6 +19,10 @@ function des_encrypt(message) {
|
|||||||
//des解密 DES-EDE3-CBC
|
//des解密 DES-EDE3-CBC
|
||||||
function des_decrypt(message)
|
function des_decrypt(message)
|
||||||
{
|
{
|
||||||
|
console.log("message",message);
|
||||||
|
if(StringUtil.isNull(message)){
|
||||||
|
return message;
|
||||||
|
}
|
||||||
var key = CryptoJS.MD5(keyvi).toString();
|
var key = CryptoJS.MD5(keyvi).toString();
|
||||||
var iv = CryptoJS.MD5(keyvi).toString();
|
var iv = CryptoJS.MD5(keyvi).toString();
|
||||||
var crypto_key = CryptoJS.enc.Utf8.parse(key);
|
var crypto_key = CryptoJS.enc.Utf8.parse(key);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user