Commit 8e713c53 by 张立顺

海报bug修复

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