zsk 2 years ago
parent 0bdcb83c8b
commit 99f2cbc74b

@ -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) {

@ -8,6 +8,13 @@
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{
"name": "我的2",
"pathName": "pages/mine/index",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "反馈与建议", "name": "反馈与建议",
"pathName": "pages/mine/opinion/index", "pathName": "pages/mine/opinion/index",

Loading…
Cancel
Save