Commit 8e713c53 by 张立顺

海报bug修复

1 parent 73a9da20
...@@ -13,11 +13,13 @@ Component({ ...@@ -13,11 +13,13 @@ Component({
// 如果是喜报和战报就跳过图片生成 // 如果是喜报和战报就跳过图片生成
if (n.type == 'warReport') { if (n.type == 'warReport') {
// n.posterUrl // n.posterUrl
wx.$api.showLoading('图片加载中')
return this.setData({ return this.setData({
poster: n.posterUrl, poster: n.posterUrl,
show: true show: true
}) })
} }
n.posterUrl && n.posterUrl &&
this.checkUrl() this.checkUrl()
.then(result => { .then(result => {
...@@ -46,12 +48,21 @@ Component({ ...@@ -46,12 +48,21 @@ Component({
_item_: null, _item_: null,
findKey: 'posterUrl', findKey: 'posterUrl',
height: '68%' height: '68%'
// poster: 'https://wx.glsx.com.cn/upload/biz/599036445419769856.png'
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
successOnload() {
// debugger
// console.log('a123456')
wx.$api.hideLoading()
// this.setData({
// show: true
// })
},
// 图片缓存 有取小程序缓存图片 // 图片缓存 有取小程序缓存图片
checkUrl() { checkUrl() {
console.log('checkUrl') console.log('checkUrl')
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
// height: 68%; // height: 68%;
// height: 1108rpx; // height: 1108rpx;
overflow: scroll; overflow: scroll;
// smoo
// overflow: scroll;
border-radius: 8rpx 8rpx 0 0; border-radius: 8rpx 8rpx 0 0;
} }
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<!-- style="height:{{height}}" --> <!-- style="height:{{height}}" -->
<view class="poster {{item.type == 'warReport'?'pd':''}}"> <view class="poster {{item.type == 'warReport'?'pd':''}}">
<block wx:if="{{scrollImg}}"> <block wx:if="{{scrollImg}}">
<scroll-view scroll-y scroll-x="false" style="height: 100%"> <scroll-view scroll-y scroll-x="false" style="height: 100%" >
<!-- mode="widthFix" --> <!-- mode="widthFix" -->
<image <image
onload bindload="successOnload"
src="{{poster}}" src="{{poster}}"
mode="widthFix" mode="widthFix"
show-menu-by-longpress show-menu-by-longpress
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<!-- mode="widthFix" --> <!-- mode="widthFix" -->
<scroll-view scroll-y scroll-x="false" style="height: 100%"> <scroll-view scroll-y scroll-x="false" style="height: 100%">
<image <image
bindload="successOnload"
src="{{poster}}" src="{{poster}}"
mode="widthFix" mode="widthFix"
show-menu-by-longpress show-menu-by-longpress
...@@ -42,5 +43,10 @@ ...@@ -42,5 +43,10 @@
</view> </view>
</view> </view>
</block> </block>
<!-- <authorize scopeType="writePhotosAlbum" bindfail="authFail" show="{{showAuth}}" isShowCheck="{{false}}" id="auth" /> --> <authorize
scopeType="writePhotosAlbum"
bindfail="authFail"
show="{{showAuth}}"
isShowCheck="{{false}}"
id="auth" />
...@@ -431,12 +431,12 @@ Page({ ...@@ -431,12 +431,12 @@ Page({
if (posterId == result.valueUrl) return if (posterId == result.valueUrl) return
// 为2是已经展示过了 // 为2是已经展示过了
wx.$storage.set('posterId', result.valueUrl) wx.$storage.set('posterId', result.valueUrl)
let updatedTime = deleteSecond(result.updatedTime) let updatedTime = deleteSecond(result.createdTime)
console.log(updatedTime) console.log(updatedTime)
this.setData({ this.setData({
posterItem: { posterItem: {
activityName: result.activityName, activityName: result.activityName,
// posterUrl: 'https://wx.glsx.com.cn/upload/biz/587076735934271488.png' // posterUrl: 'https://wx.glsx.com.cn/upload/biz/598888808108396544.png',
posterUrl: result.valueUrl, posterUrl: result.valueUrl,
// crowdFundActivityId: item.valueUrl, // crowdFundActivityId: item.valueUrl,
updatedTime, updatedTime,
......
...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false const manual = false
const release = false const release = false
let index = 3 let index = 2
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!