|
@@ -12,13 +12,20 @@ Page({
|
|
|
*/
|
|
|
data: {
|
|
|
list: [],
|
|
|
- heights: []
|
|
|
+ // heights: []
|
|
|
},
|
|
|
title: '',
|
|
|
showBack() {
|
|
|
const _this = this;
|
|
|
+ let url = '/Applets/shengshizhongguo/json/list';
|
|
|
+ if (globalData.miniProgram.envVersion === 'develop') {
|
|
|
+ url += '-dev'
|
|
|
+ } else if (globalData.miniProgram.envVersion === 'trial') {
|
|
|
+ url += '-tri'
|
|
|
+ }
|
|
|
+ url += `.json?${Date.now()}`
|
|
|
httpOrther({
|
|
|
- url: `/Applets/shengshizhongguo/json/list.json?${Date.now()}`,
|
|
|
+ url,
|
|
|
call(res) {
|
|
|
const defaultItem = (res.list || [])[0]
|
|
|
if (!res.showList) {
|
|
@@ -28,7 +35,13 @@ Page({
|
|
|
return
|
|
|
}
|
|
|
_this.setData({
|
|
|
- list: res.list || []
|
|
|
+ // list: res.list || []
|
|
|
+ list: [
|
|
|
+ ...res.list,
|
|
|
+ ...res.list,
|
|
|
+ ...res.list,
|
|
|
+ ...res.list,
|
|
|
+ ]
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -41,12 +54,12 @@ Page({
|
|
|
},
|
|
|
|
|
|
imageload(e) {
|
|
|
- let width = globalData.client.screenWidth * 73 / 75;
|
|
|
- const ori = JSON.parse(JSON.stringify(this.data.heights));
|
|
|
- ori[e.currentTarget.dataset.index || 0] = width * e.detail.height / globalData.client.screenWidth;
|
|
|
- this.setData({
|
|
|
- heights: ori
|
|
|
- })
|
|
|
+ // let width = globalData.client.screenWidth * 73 / 75;
|
|
|
+ // const ori = JSON.parse(JSON.stringify(this.data.heights));
|
|
|
+ // ori[e.currentTarget.dataset.index || 0] = width * e.detail.height / globalData.client.screenWidth;
|
|
|
+ // this.setData({
|
|
|
+ // heights: ori
|
|
|
+ // })
|
|
|
},
|
|
|
|
|
|
/**
|