收藏
回答

official-account

扫码进入公众号关注组件,不显示报错,提示  status= 6 errormsg = "创建多次"


求解

最后一次编辑于  03-11
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-灵芝
    社区技术运营专员-灵芝
    03-11

    你好,这个错误码的意思是重复创建,代码是怎么写的呢?

    参考文档:https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html


    03-11
    赞同
    回复 4
    • Cody
      Cody
      03-11
      <view class="page">
          <view class="weui-msg" wx:if="{{isSuccess}}">
            <view class="weui-msg__icon-area">
              <icon type="success" size="93"></icon>
            </view>
            <view class="weui-msg__text-area">
              <view class="weui-msg__title">签到成功</view>
          
              <view class="weui-msg__desc" style="color:red;font-size:16px;">点击关注最下方公众号领取红包! </view>
         
            </view>
        
            <view class="weui-msg__extra-area" style="margin-bottom:0;">
              <view class="weui-footer">
                <official-account binderror="binderror"></official-account>
              </view>
            </view>
          </view>
          <view class="weui-msg" wx:else>
            <view class="weui-msg__icon-area">
              <icon type="warn" size="93"></icon>
            </view>
            <view class="weui-msg__text-area">
              <view class="weui-msg__title">{{promit}}</view>
          
            </view>
            <view class="weui-msg__opr-area">
              <view class="weui-btn-area">
                <button class="weui-btn" type="default" @tap="goBack">重新签到</button>
                <!-- <button class="weui-btn" type="default">辅助操作</button> -->
              </view>
            </view>
            <view class="weui-msg__extra-area">
              <view class="weui-footer">
                <official-account binderror="binderror"></official-account>
              </view>
            </view>
          </view>
        </view>


      03-11
      回复
    • Cody
      Cody
      03-11回复Cody

      没有重复创建啊

      03-11
      回复
    • 拾忆
      拾忆
      03-11回复Cody

      代码里明显就有2个了

      03-11
      回复
    • 拾忆
      拾忆
      03-11回复Cody

      看看是不是判断条件没起作用导致都加载了

      03-11
      回复