- ios上传图片厚刷新页面 在上传图片 上传的还是前一张
upDateImg: function () { var that = this wx.chooseImage({ count: 1, // 默认9 success: function (res) { var tempFilePaths = res.tempFilePaths that.setData({ picPath: res.tempFilePaths[0] }) wx.uploadFile({ url: 'https://ewxedu.cn/ykssp/wx/main/v2/assetPictureUpload', //仅为示例,非真实的接口地址 filePath: tempFilePaths[0], header: { "Content-Type": "image/jpeg" }, name: 'file', formData: { wxOpenId: app.data.wxOpenId, }, success: function (res) { console.log(res) var data = res.data that.setData({ picPath: JSON.parse(data).result }) //do something } }) } }) }, formSubmit: function (e) { var that = this if (that.data.repairProject == '' || that.data.repairProject == undefined) { wx.showModal({ title: '提示', content: '请输入维修项', success: function (res) { if (res.confirm) { console.log('用户点击确定') } else if (res.cancel) { console.log('用户点击取消') } } }) } else { var imgUrl = '' if (that.data.picPath != '../../images/add.png') { imgUrl = that.data.picPath } wx.request({ url: 'https://ewxedu.cn/ykssp/wx/main/v2/applicationRepair', //仅为示例,并非真实的接口地址 data: { repairProject: encodeURI(that.data.repairProject), repairContent: encodeURI(that.data.repairContent), repairPlace: encodeURI(that.data.repairPlace), picPath: imgUrl, wxOpenId: app.data.wxOpenId }, header: { "Content-Type": "application/x-www-form-urlencoded" }, success: function (res) { console.log(res) var page = getCurrentPages().pop() page.onLoad(); that.setData({ picPath: '../../images/add.png' }) wx.showToast({ title: '保存成功', icon: 'success', duration: 2000 }) } }) } },
2018-05-03 - 视频解析异常,请重试
342100004634210000https://ewxedu.cn/ykssp/api/dataif/cms/returnVideoStream?videoUrl=/ykssp/userfiles/3421000046/video/cms/video/2017/06/a.mp446
2017-06-07 - apppLaunch
apppLaunch with an already exist webviewId 0
2017-05-26 - onshow延迟
在pc的时候 返回页面 执行onshow事件正常 在手机测试 返回页面 不执行onshow 执行onshow页面会延迟 关闭屏保 再打开 会执行onshow事件 , 在进别的页面之前 会执行onshow
2017-05-23