zsk 2 years ago
parent 0bdcb83c8b
commit 99f2cbc74b

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

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

Loading…
Cancel
Save