- 安卓手机h5 wx.uploadImage上传失败报missing arguments?
打印localIdList[0]也是字符串,也有,网上说的tostring()也试了,就是报missing arguments function uploadImage() { _this.$wechat.uploadImage({ localId: localIdList[0], isShowProgressTips: 1, success: function(res) { serverIdList.push(res.serverId); localIdList.shift(); if (localIdList.length) { uploadImage(); } else { _this.getUploadImage(serverIdList).then(() => { _this.isDisabled = false; }); } }, fail: function(res) { _this.$vux.loading.hide(); alert(JSON.stringify(res)); } }); }
2021-08-18 - 华为P30,微信公众号中location.href点击不跳转
<x-dialog v-model="showDialog" class="self-info"> <div class="self-info-box"> <p class="web-auth-tip">网络不给力,人家出不来啦~</p> <div class="buttonContent"> <a href="https://www.baidu.com" class="web-auth-a">点击重试</a> </div> </div> </x-dialog> location.href = 'https://www.baidu.com';这两个都点击没有反应
2021-06-03 - requestSubscribeMessage成功时执行的方法提前执行了怎么解决?
export const messageTemplate = (params, fun?: any) => { request.get('c/uc/subscribe', params).then(res => { if (res.data.data && res.data.data.length > 0) { const tmpId = res.data.data const ids: string[] = [] wx.requestSubscribeMessage({ tmplIds: tmpId, success (suc) { tmpId.map(item => { if (suc[`${item}`] === 'accept') { ids.push(`${item}`) request.postForm('c/uc/subscribe', { 'tpl_ids': ids }).then(res => { console.log(res) fun() }) } else { return } }) } }) } else if (params.subscribe_tp === 6) { fun() } else { return } }) } 在前面是这么调用的 messageTemplate(params, Taro.redirectTo({ url: `/pages/group_buy/detail/detail?bgrId=${bgrId}` }))现在的问题是在success中的方法还没有点击允许,就执行了,我还没有选择要订阅信息 就跳转到另一个页面了,就选择不了订阅信息了,而且订阅信息也不弹出了。
2019-12-04