Commit 1d600d8e by luyt

fix:图片加载调整

1 parent 004dc86c
...@@ -186,10 +186,10 @@ Page({ ...@@ -186,10 +186,10 @@ Page({
let { index } = e.currentTarget.dataset; let { index } = e.currentTarget.dataset;
switch (index) { switch (index) {
case 0: case 0:
this.wechatFn(); this.download();
break; break;
case 1: case 1:
this.download(); this.wechatFn();
break; break;
} }
}, },
......
...@@ -31,10 +31,12 @@ ...@@ -31,10 +31,12 @@
</view> </view>
</view> </view>
</view> </view>
<image class="img" style="height:{{imgHeight}}px" src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" />
</view> </view>
<button></button> <button></button>
</view> --> </view> -->
<!-- 用于图片加载事件 -->
<image class="img" src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" />
<view class="btns-wrap"> <view class="btns-wrap">
<view class="top"> <view class="top">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}"> <view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
......
...@@ -247,7 +247,7 @@ var senceData = [ ...@@ -247,7 +247,7 @@ var senceData = [
"sceneCode":"SC001", "sceneCode":"SC001",
productList: [ productList: [
{ {
img: 'product-img1', img: 'product-img9',
proName: '新能源0元换购', proName: '新能源0元换购',
price: '100', price: '100',
// profit: '92.4万', // profit: '92.4万',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!