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 USER_INFO = "userInfo"; // 用户信息
|
||||
static USER_INFO = "STAFF_USER_INFO"; // 用户信息
|
||||
|
||||
static AREA_INFO = "areaInfo"; // 地区信息
|
||||
|
||||
|
||||
@ -151,9 +151,13 @@ const _loadArea = function(_level, _parentAreaCode, callBack = _areaList => {})
|
||||
*/
|
||||
const getCurrentCommunity = function() {
|
||||
let currentCommunity = uni.getStorageSync(constant.mapping.CURRENT_COMMUNITY_INFO);
|
||||
console.log('当前小区获取',currentCommunity);
|
||||
if (util.string.isNull(currentCommunity)) {
|
||||
return {};
|
||||
}
|
||||
if(currentCommunity instanceof Object){
|
||||
return currentCommunity;
|
||||
}
|
||||
return JSON.parse(currentCommunity);
|
||||
};
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<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">
|
||||
<text class="company">{{activity.title}}</text>
|
||||
</view>
|
||||
@ -23,6 +23,7 @@
|
||||
return {
|
||||
activitiesId:'',
|
||||
currentCommunityId:'',
|
||||
showHeadImage:true,
|
||||
activity:{
|
||||
src:'',
|
||||
title:'',
|
||||
@ -38,6 +39,10 @@
|
||||
this._loadActivites();
|
||||
},
|
||||
methods: {
|
||||
hideHeadImage:function(){
|
||||
console.log('加载图片失败')
|
||||
this.showHeadImage = false;
|
||||
},
|
||||
|
||||
/**
|
||||
* 加载活动
|
||||
@ -60,7 +65,6 @@
|
||||
success: function (res) {
|
||||
console.log("请求返回信息:", res);
|
||||
if (res.statusCode == 200) {
|
||||
|
||||
let _activites = res.data.activitiess;
|
||||
_activites.forEach(function (_item) {
|
||||
_item.src = _that.java110Constant.url.filePath + "?fileId=" + _item.headerImg + "&communityId=" + _that.currentCommunityId + "&time=" + new Date();
|
||||
@ -104,7 +108,7 @@
|
||||
|
||||
.detailContainer .ad_titile{
|
||||
text-align: center;
|
||||
margin-top: 30rpx;
|
||||
padding-top: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import CryptoJS from '../lib/crypto-js.js'
|
||||
|
||||
const StringUtil = require("./StringUtil")
|
||||
|
||||
var keyvi = 'java110_hc_wuxw';
|
||||
function des_encrypt(message) {
|
||||
var key = CryptoJS.MD5(keyvi).toString();
|
||||
@ -17,6 +19,10 @@ function des_encrypt(message) {
|
||||
//des解密 DES-EDE3-CBC
|
||||
function des_decrypt(message)
|
||||
{
|
||||
console.log("message",message);
|
||||
if(StringUtil.isNull(message)){
|
||||
return message;
|
||||
}
|
||||
var key = CryptoJS.MD5(keyvi).toString();
|
||||
var iv = CryptoJS.MD5(keyvi).toString();
|
||||
var crypto_key = CryptoJS.enc.Utf8.parse(key);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user