|
|
|
@ -14,12 +14,15 @@ Page({
|
|
|
|
troubleList:[
|
|
|
|
troubleList:[
|
|
|
|
"投诉", "建议", "故障", "其他"
|
|
|
|
"投诉", "建议", "故障", "其他"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
actived:0
|
|
|
|
actived:0,
|
|
|
|
|
|
|
|
count:4,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
chooseMedia () {
|
|
|
|
chooseMedia () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log( that.data.count)
|
|
|
|
wx.chooseMedia({
|
|
|
|
wx.chooseMedia({
|
|
|
|
count: 4,
|
|
|
|
count: that.data.count,
|
|
|
|
mediaType: ['image'],
|
|
|
|
mediaType: ['image'],
|
|
|
|
sizeType: ['original', 'compressed'],
|
|
|
|
sizeType: ['original', 'compressed'],
|
|
|
|
sourceType: ['album', 'camera'],
|
|
|
|
sourceType: ['album', 'camera'],
|
|
|
|
@ -51,7 +54,8 @@ Page({
|
|
|
|
that.data.newAddImg.push(JSON.parse(res.data).data)
|
|
|
|
that.data.newAddImg.push(JSON.parse(res.data).data)
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
files: that.data.files,
|
|
|
|
files: that.data.files,
|
|
|
|
newAddImg: that.data.newAddImg
|
|
|
|
newAddImg: that.data.newAddImg,
|
|
|
|
|
|
|
|
count: 4 - that.data.files.length
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// currData.data = JSON.parse(res.data);
|
|
|
|
// currData.data = JSON.parse(res.data);
|
|
|
|
|
|
|
|
|
|
|
|
@ -91,7 +95,8 @@ Page({
|
|
|
|
that.pushImg();
|
|
|
|
that.pushImg();
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
files: that.data.files,
|
|
|
|
files: that.data.files,
|
|
|
|
newAddImg: that.data.newAddImg
|
|
|
|
newAddImg: that.data.newAddImg,
|
|
|
|
|
|
|
|
count: 4 - that.data.files.length
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|