my.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="my">
  2. <view class="my-header">
  3. <van-cell-group>
  4. <van-cell title="{{userInfo.phoneNumber}}" center value="{{userInfo.reserve!=='student'?'查看个人信息':'查看个人信息'}}" is-link link-type="navigateTo" url="{{userInfo.reserve==='teacher'?'/teacher/pages/teacherUserDetail/teacherUserDetail?':'/student/pages/userDetail/userDetail'}}">
  5. <van-icon slot="icon" name="user-o" size="20" />
  6. <van-icon slot="right-icon" name="arrow" />
  7. </van-cell>
  8. </van-cell-group>
  9. </view>
  10. <view class="my-body" wx:if="{{userInfo.reserve!=='student'}}">
  11. <text>名师简介</text>
  12. <view class="teacher-detail">
  13. <!-- <van-image width="55" height="55" fit="contain" src="https://img.yzcdn.cn/vant/cat.jpeg" /> -->
  14. <van-icon color="#999" slot="icon" name="user-o" size="30" />
  15. <text>教师名称:{{userInfo.name}}</text>
  16. <text>授课科目:{{userInfo.subject}}</text>
  17. <text>任职学校:{{userInfo.jobSchool}}</text>
  18. </view>
  19. </view>
  20. <view class="attr-cell">
  21. <van-cell-group>
  22. <van-cell title="练习学管" is-link catchtap="showCustomer" />
  23. <van-cell title="协议与政策" is-link bindtap="showCustomer" />
  24. </van-cell-group>
  25. </view>
  26. <view class="my-closeLogin" bindtap="closeSign">
  27. 退出登录
  28. </view>
  29. <!-- <van-button bindtap="upload">上传图片</van-button> -->
  30. </view>
  31. <!-- <van-dialog use-slot show="{{ activeCustomer }}" bind:close="onClose" showConfirmButton="{{false}}">
  32. <view class="dialog-content">
  33. <van-icon name="user-o" size="30" />
  34. <text>客服电话:123456789</text>
  35. <van-button bindtap="onPhone" custom-class="btn-phone" plain type="info">联系我们</van-button>
  36. <van-icon name="close" size="20" class="close" catchtap="showCustomer" />
  37. </view>
  38. </van-dialog> -->
  39. <van-dialog id="van-dialog" />