From 99f2cbc74bd139c7302bd76d878bf013bd5841e1 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Fri, 29 Mar 2024 11:34:43 +0800 Subject: [PATCH] 2 --- pages/mine/opinion/index.js | 13 +++++++++---- project.private.config.json | 7 +++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/pages/mine/opinion/index.js b/pages/mine/opinion/index.js index 0f307cf..2ff97c2 100644 --- a/pages/mine/opinion/index.js +++ b/pages/mine/opinion/index.js @@ -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) { diff --git a/project.private.config.json b/project.private.config.json index 09b37c9..699b89e 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -8,6 +8,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "我的2", + "pathName": "pages/mine/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "反馈与建议", "pathName": "pages/mine/opinion/index",