...
|
...
|
@@ -14,11 +14,11 @@ Page({ |
|
|
style_array: ['时尚', '学院', '欧美风'],
|
|
|
style_index: -1,
|
|
|
height_array: [
|
|
|
'150cm-155cm', '155cm-160cm', '160cm-165cm', '165cm-170cm', '170cm-175cm', '175cm-180cm', '180cm-185cm', '185cm-190cm',
|
|
|
'150cm-153cm', '153cm-156cm', '156cm-159cm', '159cm-162cm', '162cm-165cm', '165cm-168cm', '168cm-171cm', '171cm-174cm', '174cm-177cm', '174cm-177cm', '177cm-180cm', '180cm-183cm', '183cm-186cm', '186cm-189cm', '192cm-195cm', '195cm-198cm',
|
|
|
],
|
|
|
height_index: -1,
|
|
|
weight_array: [
|
|
|
'40kg-45kg', '45kg-50kg', '55kg-60kg', '60kg-65kg', '65kg-70kg', '70kg-75kg', '75kg-80kg', '85kg-90kg', '90kg-95kg',
|
|
|
'45kg-50kg', '50kg-55kg', '55kg-60kg', '60kg-65kg', '65kg-70kg', '70kg-75kg', '75kg-80kg', '80kg-85kg', '85kg-90kg', '90kg-95kg', '95kg-100kg'
|
|
|
],
|
|
|
weight_index: -1,
|
|
|
sex: '',
|
...
|
...
|
@@ -27,13 +27,16 @@ Page({ |
|
|
stature: '',
|
|
|
weight: '',
|
|
|
status: 0,
|
|
|
list: [],
|
|
|
|
|
|
order: 1,
|
|
|
poster_list: [],
|
|
|
img_state: false,
|
|
|
imgUrl: '',
|
|
|
img_text: '',
|
|
|
poster: '',
|
|
|
list: [],
|
|
|
list2: [],
|
|
|
last_page: '',
|
|
|
|
|
|
// https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534766809331&di=012cc4ad15d457ffa55c6537503eb84a&imgtype=0&src=http%3A%2F%2Fpicture.5068.com%2Fallimg%2F121120%2F4-1211201G920.jpg
|
|
|
cardPath: '',
|
...
|
...
|
@@ -83,7 +86,7 @@ Page({ |
|
|
var list = this.data.list
|
|
|
var imgs = list[mindex].img
|
|
|
var current = e.currentTarget.dataset.src
|
|
|
console.log(imgs)
|
|
|
// console.log(imgs)
|
|
|
this.setData({
|
|
|
imgUrl: current,
|
|
|
img_text: e.currentTarget.dataset.text,
|
...
|
...
|
@@ -248,16 +251,16 @@ Page({ |
|
|
|
|
|
showPoster(e) {
|
|
|
var id = e.currentTarget.dataset.id
|
|
|
var that=this
|
|
|
var that = this
|
|
|
wx.hideTabBar({})
|
|
|
wx.showToast({
|
|
|
title: '加载中',
|
|
|
icon: 'loading'
|
|
|
})
|
|
|
// setTimeout(function() {
|
|
|
that.setData({
|
|
|
poster_state: true
|
|
|
})
|
|
|
that.setData({
|
|
|
poster_state: true
|
|
|
})
|
|
|
// }, 2000)
|
|
|
this.getPoster(id)
|
|
|
},
|
...
|
...
|
@@ -436,15 +439,29 @@ Page({ |
|
|
'XX-Device-Type': 'wxapp'
|
|
|
}
|
|
|
app.post(url, param, header).then((res) => {
|
|
|
console.log('data', res)
|
|
|
if (res.data.code == 20000) {
|
|
|
var list = res.data.data.list
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
list[i].more_state = false
|
|
|
}
|
|
|
if (list != '') {
|
|
|
var list = this.data.list
|
|
|
console.log(list, '33')
|
|
|
console.log(list.concat(res.data.data.list))
|
|
|
// list2.concat(res.data.data.list)
|
|
|
// var list = list2
|
|
|
// for (var i = 0; i < list.length; i++) {
|
|
|
// list[i].more_state = false
|
|
|
// }
|
|
|
|
|
|
|
|
|
if (res.data.data.list != '') {
|
|
|
console.log(that.data.list2)
|
|
|
that.setData({
|
|
|
list: list,
|
|
|
page: res.data.data.page,
|
|
|
list: list.concat(res.data.data.list),
|
|
|
last_page: res.data.data.last_page,
|
|
|
})
|
|
|
console.log('list', that.data.list)
|
|
|
} else if (this.data.page > res.data.data.last_page) {
|
|
|
wx.showToast({
|
|
|
title: '没有更多数据了',
|
|
|
icon: 'none'
|
|
|
})
|
|
|
} else {
|
|
|
wx.showToast({
|
...
|
...
|
@@ -460,8 +477,6 @@ Page({ |
|
|
}).catch((errMsg) => {})
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//画图
|
|
|
drawCanvas: function() {
|
|
|
console.log(this.data.cardPath, 'aa')
|
...
|
...
|
@@ -545,13 +560,9 @@ Page({ |
|
|
}
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onLoad: function() {
|
|
|
this.getData()
|
|
|
this.getStyle()
|
|
|
|
|
|
var that = this;
|
|
|
wx: wx.getSystemInfo({
|
|
|
success: function(res) {
|
...
|
...
|
@@ -564,7 +575,20 @@ Page({ |
|
|
})
|
|
|
that.drawCanvas();
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
this.getData()
|
|
|
// this.getData()
|
|
|
},
|
|
|
|
|
|
onReachBottom: function() {
|
|
|
const that = this;
|
|
|
var len = that.data.list.length
|
|
|
var last_page = this.data.last_page
|
|
|
var page = that.data.page
|
|
|
page++
|
|
|
that.setData({
|
|
|
page: page
|
|
|
})
|
|
|
that.getData();
|
|
|
},
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|