index.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <view class="pageContainer">
  2. <!--index.wxml-->
  3. <scroll-view class="scrollarea" bounces="false" scroll-y="{{popupShow ? false : true}}" type="list">
  4. <view class="container">
  5. <view class="goodsSection">
  6. <view class="goodsIntro">
  7. <view class="images">
  8. <block wx:for="{{goodsImgList}}" wx:key="index">
  9. <!-- bind:tap="onPreivewGoodsImg" -->
  10. <image mode="widthFix" data-src="{{item}}" src="{{item}}"></image>
  11. </block>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="bottom-section">
  16. <view class="orders" bind:tap="onOrder">
  17. <image src="./images/icon-order.png" />
  18. <text>我的订单</text>
  19. </view>
  20. <view class="orders" bind:tap="onBuyGoods">
  21. <image src="./images/icon-buy.png" />
  22. <text>申请加入</text>
  23. </view>
  24. </view>
  25. <van-popup show="{{ popupShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onClose" position="bottom" round z-index="101">
  26. <view class="popup-section">
  27. <image bind:tap="onClose" src="./images/icon-close-1.png" class="iconClose"></image>
  28. <!-- wx:if="{{popupShow}}" -->
  29. <!-- <view class="popup-mask" bind:tap="onClose"></view> -->
  30. <!-- <view class="popup-container">
  31. </view> -->
  32. </view>
  33. </van-popup>
  34. </view>
  35. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  36. <van-popup show="{{ showBuyer }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseBuyer" position="bottom" round z-index="101">
  37. <image src="./images/icon-back.png" class="icon-close-pop" bind:tap="onCloseBuyer" />
  38. <view class="container-pop">
  39. <view class="pop-address-title">享用者信息</view>
  40. <view class="section">
  41. <view class="section-content">
  42. <van-field label="姓名" model:value="{{ name }}" maxlength="15" placeholder="请填写享用者姓名" />
  43. <van-field label="电话号码" model:value="{{ phone }}" maxlength="11" type="number" placeholder="请填写电话号码" />
  44. <van-field label="性别" placeholder="请选择性别" value="{{ gender ? (gender === '1' ? '男' : '女') : '' }}" is-link readonly bind:tap="onCheckedGender"></van-field>
  45. <van-field label="学校地区" value="{{ provinceName ? provinceName + '/' + cityName + (regionName ? ('/' + regionName) : '') : '' }}" bind:tap="onShowAreaList" placeholder="请选择学校地区" is-link readonly />
  46. <van-field model:value="{{ schoolAreaName }}" label="所在学校" placeholder="请选择所在学校" is-link readonly bind:tap="onSelectSchool" />
  47. <van-field value="{{ currentGradeTxt }}" label="所在年级" placeholder="请选择所在年级" is-link readonly bind:tap="onSelectGradeClass" />
  48. <van-field value="{{ currentClassTxt }}" label="所在班级" placeholder="请选择所在年级" is-link readonly bind:tap="onSelectClass" />
  49. </view>
  50. </view>
  51. <view class="pop-btn-group">
  52. <button disabled="{{ buyerLoading }}" class="submit-btn" bind:tap="onSubmitBuyer">保存信息</button>
  53. </view>
  54. </view>
  55. </van-popup>
  56. <!-- 性别 -->
  57. <van-action-sheet z-index="103" show="{{ showGender }}" actions="{{ genderList }}" description="选择性别" cancel-text="取消" bind:close="onCloseGender" bind:cancel="onCloseGender" bind:select="onSelectGender" />
  58. <!-- 地区 -->
  59. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList" bind:after-leave="onAreaAfterLeave" bind:before-enter="onAreaBeforeEnter">
  60. <van-area wx:if="{{ !showAreaAfterLeave }}" id='area1' areaList="{{areaList}}" visible-item-count="8" item-height="46" value="{{ regionCode || cityCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  61. </van-popup>
  62. <!-- 学校 -->
  63. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool" bind:after-leave="onSchoolAfterLeave" bind:before-enter="onSchoolBeforeEnter">
  64. <view class="toolbar-top">
  65. <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
  66. <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
  67. </view>
  68. <view class="select-school">
  69. <van-field border="false" value="{{ provinceName ? provinceName + ' ' + cityName + ' ' + regionName : '' }}" bind:tap="onShowAreaList" placeholder="请选择学校地区" is-link readonly />
  70. </view>
  71. <view class="searchList" wx:if="{{ !showSchoolAfterLeave }}">
  72. <van-search value="{{ searchName }}" use-left-icon-slot use-action-slot show-action custom-class="searchInput" placeholder="请输入学校名称关键词" bind:search="onSearch" bind:clear="onSearch" bind:change="onSearchChange">
  73. <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
  74. <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
  75. </van-search>
  76. </view>
  77. <van-picker loading="{{ schoolLoading }}" wx:if="{{ !showSchoolAfterLeave && schoolAreaList.length > 0 }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
  78. </van-picker>
  79. <view class="empty-box" wx:if="{{ schoolAreaList.length <= 0 }}">
  80. <view class="empty_loading" wx:if="{{ schoolLoading }}">
  81. <van-loading color="#1989fa" />
  82. </view>
  83. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1731839238916.png"></image>
  84. <view class="empty-text">暂无数据</view>
  85. </view>
  86. </van-popup>
  87. <!-- 年级 -->
  88. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGradeClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGradeClass" bind:after-leave="onGradeClassAfterLeave" bind:before-enter="onGradeClassBeforeEnter">
  89. <van-picker wx:if="{{ !showGradeClassAfterLeave }}" columns="{{ gradeGradeList }}" visible-item-count="6" show-toolbar default-index="{{ gradeGradeIndex }}" bind:cancel="onCloseGradeClass" bind:confirm="onSubmitGradeClass">
  90. </van-picker>
  91. </van-popup>
  92. <!-- 班级 -->
  93. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseClass" bind:after-leave="onClassAfterLeave" bind:before-enter="onClassBeforeEnter">
  94. <van-picker wx:if="{{ !showClassAfterLeave }}" columns="{{ classList }}" visible-item-count="6" show-toolbar default-index="{{ classIndex }}" bind:cancel="onCloseClass" bind:confirm="onSubmitClass">
  95. </van-picker>
  96. </van-popup>
  97. </scroll-view>
  98. </view>