- 自定义组件报错Cannot read property '__slotName' of null?
自定义弹窗组件,设置了占位组件,slot="content"设置了wx:if后偶尔会报错(TypeError: Cannot read property '__slotName' of null); 这个自定义弹窗组件里面有textarea组件,textarea设置了自动聚焦,如果slot="content"不设置设置wx:if,那首词加载的时候,键盘会自动调用再隐藏。 <m-popup show="{{showPopup}}" type="empty"> <view wx:if="{{showPopup}}" slot="content" class="input_case" style="bottom: {{offsetBottom}}rpx;" > <view class="flex-space btn_group" bindtap="togglePopup"> <button class="flex-center btn_w35 radius_r100 back_ffffff"> <iconfont name="close" size="27"></iconfont> </button> <button class="flex-center btn_w35 radius_r100 back_ffffff"> <iconfont name="fix" size="27"></iconfont> </button> </view> <view class="flex-center textarea_case"> <m-input type="textarea" height="400" spacing="190" hold="true" focus="true" content="{{desc}}" placeholder="Podcast Description" data-field="desc" bind:input="inputValue" /> </view> </view> </m-popup>
2023-06-02 - 微信支付成功的回调函数重复执行?
我在调试的时候发起的微信支付,在开发工具出现扫码弹窗后,取消了微信支付。然后我重云开发集合中删除了相关订单,也没有调用CloudPay.closeOrder()关闭订单。这种情况下,支付成功的回调函数会不断执行吗?如果是不断执行,如何解决这个问题。基本几分钟就调用一次。[图片]// 云函数入口文件 const cloud = require("wx-server-sdk"); const TcbRouter = require("tcb-router"); cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV, }); // 云函数入口函数 exports.main = async (event, context) => { const { type = "Default" } = JSON.parse(event.attach) || {}; event.$url = type; const wxContext = cloud.getWXContext(); const app = new TcbRouter({ event }); const db = cloud.database(); const _ = db.command; const $ = db.command.aggregate; const createAt = db.serverDate(); const { outTradeNo: order_id, subMchId, resultCode } = event; app.use(async (ctx, next) => { ctx.data = {}; await next(); }); if (resultCode === "SUCCESS" && type !== "Default") { const database = type === "Paying" ? "Order" : "StoredValue"; app.router(["Paying", "StoredValue"], async (ctx, next) => { try { const userCollection = db.collection(database); const result = await userCollection .where({ _id: order_id, }) .update({ data: { status: "Success", }, }); ctx.body = { data: { errcode: 0, status: result.stats } }; } catch (error) { ctx.body = { data: { errcode: 0, error: error.message } }; } }); } app.router("Default", async (ctx, next) => { ctx.body = { data: { errcode: 0 } }; }); return app.serve(); };
2023-04-17 - 开发工具同时打开2个项目,工具的设置错乱?
开发工具同时打开2个项目,工具的设置错乱,导致工具死机
2023-03-30 - 小程序后台无“微信支付”菜单?
[图片]
2023-03-30 - 开通云环境报错"ret":-601055?
公众号已认证,同时复用资质注册了两个小程序,一个可以开通云环境,一个报错。 [图片]
2023-03-11 - TDesign不兼容Skyline 渲染引擎吗?
无效还报错 [图片]
2023-03-06 - TDesign 如何按需引入?
TDesign 如何按需引入?我只想引入 Navbar 导航栏 SideBar 侧边栏
2023-03-06 - 新创建的项目为什么报403 (Forbidden)?
新创建的项目为什么报403 (Forbidden)? [图片]
2023-03-05 - 新建项目报错(the server responded with a status of 403)?
新建项目什么都没写就一堆报错,而且这个错误不断增加。 [图片]
2023-03-05 - the server responded with a status of 403?
为什么突然会报一大堆错误 [图片]
2023-03-05