|
@@ -9,6 +9,7 @@ Page({
|
|
|
actTime: undefined,
|
|
|
answer: [],
|
|
|
data: {
|
|
|
+ imgLi:[],
|
|
|
countDown: "",
|
|
|
list: [],
|
|
|
height: [],
|
|
@@ -43,8 +44,10 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
this.answer = new Array(li.length).fill([]);
|
|
|
+
|
|
|
this.setData({
|
|
|
list: li,
|
|
|
+ imgLi: new Array(li.length).fill({}),
|
|
|
height: [
|
|
|
height * 0.07,
|
|
|
height * 0.86,
|
|
@@ -85,7 +88,17 @@ Page({
|
|
|
})
|
|
|
}, 500)
|
|
|
},
|
|
|
-
|
|
|
+ loadimage(e){
|
|
|
+ const li = this.data.imgLi || [];
|
|
|
+ const sys = wx.getSystemInfoSync();
|
|
|
+ li[e.currentTarget.dataset.index] = {
|
|
|
+ width: sys.windowWidth,
|
|
|
+ height: e.detail.height/e.detail.width * sys.windowWidth
|
|
|
+ }
|
|
|
+ this.setData({
|
|
|
+ imgLi: li
|
|
|
+ })
|
|
|
+ },
|
|
|
prov() {
|
|
|
let data = this.data.data;
|
|
|
data.current--;
|