调取公共文件

2021年2月18日08:52:15 发表评论
广告也精彩
  1. <!--***引用公共表单*** -->
  2. <import src="/pages/biaodan.swan" />
  3. <template is="biaodan-card" data="{{biaodan}}" />

biaodan.swan页面需使用模板 template

  1. <template name="biaodan-card">
  2. <!--**************************首页表单******************* -->
  3. <view class="info-box">
  4. <view class="sdd">
  5. 申请试用账号或咨询
  6. </view>
  7. <form bindsubmit="formSubmit" bindreset="formReset">
  8. <view class="section1">
  9. <input name="xingming" placeholder="请输入姓名" class="section11"/>
  10. </view>
  11. <view class="section2">
  12. <input name="xingbie" placeholder="您的电话" class="section11" />
  13. </view>
  14. <view class="section3">
  15. <input name="aihao" placeholder="请输入您的需求" class="section11" />
  16. </view>
  17. <view class="section4" >
  18. <input name="laiyuan" placeholder="记录提交来源" class="section11" value="百度小程序" hidden='{{true}}'/>
  19. </view>
  20. <view class="btn-area4">
  21. <button formType="submit" class="btn-area41">提交申请</button>
  22. <!--* <button formType="reset">重置</button>-->
  23. </view>
  24. </form>
  25. </view>
  26. <!--**************************首页表单******************* -->
  27. </template>

调取公共文件

 

 

 

 



微信扫描下方的二维码阅读本文

ts小陈

发表评论(不允许含有网址!)

:?: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :cry: :mrgreen: :neutral: :razz:

已登录用户不需要填写以下内容