newIndex.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <view class="new-index" style="height: {{pagHeight-50}}px;">
  2. <!-- <view class="noLogin" wx:if="{{a}}">
  3. <van-image class="logo" width="128" round height="128" src="https://img.yzcdn.cn/vant/cat.jpeg" fit="cover" />
  4. <view class="unLogin">
  5. <text class="student">学院未绑定班级</text>
  6. <text class="index-phone">请你联系学管:13333333333</text>
  7. </view>
  8. </view> -->
  9. <view class="onLogin">
  10. <view class="title">
  11. <swiper>
  12. <swiper-item>
  13. <van-image fit="center" width="114rpx" height="104rpx" src="/images/logo.png" />
  14. </swiper-item>
  15. </swiper>
  16. </view>
  17. <view class="StudentAttr">
  18. <view class="item" data-index="0" catchtap="submitBtn">
  19. <van-icon data-index="0" size="80rpx" name="orders-o" color="#1989fa" />
  20. <text data-index="0">提交作业</text>
  21. </view>
  22. <view class="item" data-index="1" catchtap="submitBtn">
  23. <van-icon data-index="1" size="80rpx" name="edit" color="#1989fa" />
  24. <text data-index="1">已点评</text>
  25. </view>
  26. </view>
  27. <view class="authorize" wx:if="{{showAuthorize}}">
  28. <!-- 取消授权 -->
  29. <!-- <van-icon name="cross" bindtap="clickClose" /> -->
  30. <text>授权头像昵称,可获得更多服务</text>
  31. <!-- 去授权 触发登录弹窗 -->
  32. <van-button plain hairline round color="#333" bindtap="toAuthorize">去授权</van-button>
  33. </view>
  34. <van-toast id="van-toast" />
  35. <!-- 在页面内添加对应的节点 -->
  36. <van-notify id="van-notify" />
  37. <van-overlay show="{{ show }}" bind:click="onClickHide">
  38. <view class="login-form">
  39. <view class="form-body" catchtap>
  40. <view class="header" wx:if="{{showLogin}}">
  41. <text>登</text>
  42. <text>录</text>
  43. <van-icon name="close" size="18" bindtap="onClickHide" />
  44. </view>
  45. <view class="header" wx:else>
  46. <text>注</text>
  47. <text>册</text>
  48. <van-icon name="close" size="18" bindtap="onClickHide" />
  49. </view>
  50. <view class="form">
  51. <!-- <van-field label="用户名:" value="{{ userName }}" bind:blur="userBlur" placeholder="请输入用户名" border="{{ true }}" bind:change="onChangeUser" error-message="{{userErr}}" focus="true" required /> -->
  52. <van-field label="手机号" value="{{ phone }}" bind:blur="phoneBlur" error-message="{{phoneErr}}" placeholder="请输入手机号" border="{{ true }}" bind:change="onChangePhone" maxlength='{{11}}' required />
  53. <!-- <van-field label="登录密码:" error-message="{{pwdErr}}" value="{{ pwd }}" bind:blur="pwdBlur" placeholder="请输入密码" border="{{ true }}" bind:change="onChangePwd" required />
  54. <van-field label="确认密码:" error-message="{{onPwdErr}}" value="{{onPwd}}" bind:blur="onPwdBlur" placeholder="请确认密码" border="{{ true }}" bind:change="onChangeonPwd" required /> -->
  55. <van-button type="warning" wx:if="{{showLogin}}" block bindtap="goSign">登录</van-button>
  56. <van-button type="warning" bindtap="goLogin" wx:else block>注册</van-button>
  57. </view>
  58. <text class="text" type="text" wx:if="{{showLogin}}" bindtap="clickShowLogin">暂无账号,去注册</text>
  59. <text class="text" type="text" wx:else bindtap="clickShowLogin">已有帐号,去登录</text>
  60. </view>
  61. </view>
  62. </van-overlay>
  63. </view>
  64. </view>