微信开放社区
服务商入驻
文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 1提问 收藏 关注问题
  • wx.createSelectorQuery()用这个API

    求助,for循环中获取循环里面的input的值

    我做了个优惠卷领取的页面,输入手机号的,点击领取的时候,把用户的手机号和优惠卷id传到后台,现在我获取不到用户输入的手机号了,求大神指教 <view class="container">     <block wx:for="{{images}}"   >         <view class="item" >             <view class="viewimage">             <image class="slide-image" src="{{item.imgUrl}}"/>         </view>         <view class="inputArea">                 <text class="textw">联系方式</text>                         <input id="userPhone{{item.id}}" class="inputw"  bindinput="bindChange" placeholder=""  type="number" value="{{userPhone}}"/>                        <button type="" data-conponid="{{item.id}}"  bindtap="saveCoupon" class="lingqu">领取</button>             </view>         </view> </block> </view> js var mobile=""; bindChange:function(e,mobile){ mobile = e.detail.value; console.log(mobile) }, saveCoupon: function (e,mobile) { console.log(e) console.log(mobile); var that = this; console.log(that.data.userPhone) },

    2018-07-06
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.