Commit c4e1c6e7 by 赵雅纹

plus会员购买页

parent a913267e
...@@ -94,6 +94,7 @@ Component({ ...@@ -94,6 +94,7 @@ Component({
imagewidth: imageSize.imageWidth, imagewidth: imageSize.imageWidth,
imageheight: imageSize.imageHeight imageheight: imageSize.imageHeight
}) })
console.log('-----', imageSize)
}, },
preview(event) { preview(event) {
utilLink.currentLinkRouter(event) utilLink.currentLinkRouter(event)
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
> >
<image <image
class="pic-img hhh" class="pic-img hhh"
style="width: {{100}}%;height: {{100}}px;" style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}" src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}" data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}" data-path="{{item.link.url}}"
...@@ -28,13 +28,15 @@ ...@@ -28,13 +28,15 @@
data-item="{{item}}" data-item="{{item}}"
bindload="imageLoad" bindload="imageLoad"
bindtap='preview' bindtap='preview'
mode="widthFix"
/> />
</button> </button>
<image <image
wx:if="{{currentHasUserInfo}}" wx:if="{{currentHasUserInfo}}"
class="pic-img yyyy" class="pic-img yyyy"
style="width: {{100}}%;height: {{100}}px;" style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}" src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}" data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}" data-path="{{item.link.url}}"
...@@ -42,12 +44,14 @@ ...@@ -42,12 +44,14 @@
data-item="{{item}}" data-item="{{item}}"
bindload="imageLoad" bindload="imageLoad"
bindtap='preview' bindtap='preview'
mode="widthFix"
/> />
</view> </view>
<view wx:else> <view wx:else>
<image <image
class="pic-img ttt" class="pic-img ttt"
style="width: {{100}}%;height: {{100}}px;" style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}" src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}" data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}" data-path="{{item.link.url}}"
...@@ -55,6 +59,7 @@ ...@@ -55,6 +59,7 @@
data-item="{{item}}" data-item="{{item}}"
bindload="imageLoad" bindload="imageLoad"
bindtap='preview' bindtap='preview'
mode="widthFix"
/> />
</view> </view>
</view> </view>
......
...@@ -268,23 +268,13 @@ wxService.page({ ...@@ -268,23 +268,13 @@ wxService.page({
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
data.content.forEach((item) =>{ data.content.forEach((item) =>{
//内容类型 1.文章 2.商品 3.页面 wxService.getContentByContentType(item.tentacleContent)
// if (item.content){
// if (item.contentType == 3){
// item.content = item.content
// }else{
// let content = JSON.parse(item.content)
// item.contentArr = content
// }
// }
wxService.getContentByContentType(item)
}) })
this.setData({ this.setData({
myExtendList: this.data.pageNum == 1 ? [...data.content] : [...this.data.myExtendList, ...data.content], myExtendList: this.data.pageNum == 1 ? [...data.content] : [...this.data.myExtendList, ...data.content],
myTotalPages: data.totalPages myTotalPages: data.totalPages
}, () => { }, () => {
}) })
console.log('00000',this.data.myExtendList)
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment