收藏
回答

uni运行到微信开发者遇到这样?

 unexpected character `,`

> 1 | <view class="data-v-5b6328fa"><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont_n data-v-5b6328fa">收货人</view><view class="add_xg_cont_val data-v-5b6328fa"><input type="text" placeholder="姓名" data-event-opts='{{[['input',[['__set_model',['','name','$event',[]]]]]]}}' value="{{name}}" bindinput="__e" class="data-v-5b6328fa"/></view></view><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont_n data-v-5b6328fa">联系方式</view><view class="add_xg_cont_val data-v-5b6328fa"><input type="text" placeholder="手机号码" data-event-opts='{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}' value="{{phone}}" bindinput="__e" class="data-v-5b6328fa"/></view></view><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont_n data-v-5b6328fa">所在地区</view><view data-event-opts='{{[['tap',[['treen',['$event']]]]]}}" class="add_xg_cont_val data-v-5b6328fa" bindtap="__e">{{''+treen_lid+"-"+treen_sh+"-"+treen_q+''}}<u-picker vue-id="1102774c-1" mode="region" value="{{mapshow}}' data-event-opts='{{[['^confirm',[['mpadd_treen']]],['^input',[['__set_model',['','mapshow','$event',[]]]]]]}}' bind:confirm="__e" bind:input="__e" class="data-v-5b6328fa" bind:__l="__l"></u-picker></view></view><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont_n data-v-5b6328fa">详细地址</view><view class="add_xg_cont_val data-v-5b6328fa"><input type="text" placeholder="街道、门牌号、小区、单元楼" data-event-opts='{{[['input',[['__set_model',['','selt','$event',[]]]]]]}}" value="{{selt}}" bindinput="__e" class="data-v-5b6328fa"/></view></view><view class="add_xg_cont data-v-5b6328fa"><view class="add_xg_cont_n data-v-5b6328fa">设置为默认</view><view class="add_xg_cont_val data-v-5b6328fa"><u-switch vue-id="1102774c-2" active-color="#5B3F3B" inactive-color="#eee" value="{{checked}}' data-event-opts='{{[['^change',[['changes',[checked==false?checked_id=0:checked_id=1]]]],['^input',[['__set_model',['','checked','$event',[]]]]]]}}'bind:change="__e" bind:input="__e" class="data-v-5b6328fa" bind:__l="__l"></u-switch></view></view></view><block wx:if="{{selt_show}}"><view data-event-opts='{{[['tap',[['add_site',['$event']]]]]}}' class="add_shop_site data-v-5b6328fa" bindtap="__e">保存地址</view></block><block wx:else><view data-event-opts='{{[['tap',[['add_site_xg',['$event']]]]]}}" class="add_shop_site data-v-5b6328fa' bindtap="__e">保存修改</view></block></view>

回答关注问题邀请回答
收藏

2 个回答

  • 谋谋谋
    谋谋谋
    2020-09-18

    那一定是代码的问题

    2020-09-18
    有用
    回复
  • 不说
    不说
    2020-09-17

    Bad attr `data-event-opts` with message

    > 1 

    2020-09-17
    有用
    回复
登录 后发表内容
问题标签