| | |
| | | padding-bottom: env(safe-area-inset-bottom); |
| | | background-color: #fff; |
| | | /* opacity: 1; */ |
| | | z-index: 1100; |
| | | } |
| | | |
| | | .tabItem { |
| | |
| | | "t-cascader": "tdesign-miniprogram/cascader/cascader", |
| | | "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", |
| | | "t-empty": "tdesign-miniprogram/empty/empty" |
| | | } |
| | | }, |
| | | "disableScroll": true |
| | | } |
| | |
| | | <view class="container"> |
| | | <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabClick"> |
| | | <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabClick" show-bottom-line="false"> |
| | | <t-tab-panel label="纸质样书" value="0" /> |
| | | <t-tab-panel label="电子样书" value="1" /> |
| | | </t-tabs> |
| | | <view class="page-content"> |
| | | <view class="con-bg"></view> |
| | | <view class="content"> |
| | | <view class="bookListBox"> |
| | | <view class="tips"> |
| | |
| | | margin-top: -30rpx; |
| | | } |
| | | |
| | | .con-bg { |
| | | height: 30rpx; |
| | | background: #fff; |
| | | width: 100%; |
| | | } |
| | | |
| | | .content { |
| | | box-sizing: border-box; |
| | | height: calc(100vh - env(safe-area-inset-bottom) - 86rpx); |
| | | height: calc(100vh - env(safe-area-inset-bottom) - 96rpx); |
| | | overflow-y: auto; |
| | | } |
| | | |
| | |
| | | 'stairList.options': options, |
| | | 'stairList.value': this.data.stairCode, |
| | | }); |
| | | console.log(this.data.stairList.options) |
| | | }); |
| | | }, |
| | | // 获取一级分类下二级分类 |
| | |
| | | this.setData({ |
| | | 'secondList.value': second |
| | | }) |
| | | console.log(this.data.secondList.options) |
| | | }); |
| | | }, |
| | | // 获取重点项目 |
| | |
| | | <view class="srcolbox"> |
| | | <t-dropdown-menu> |
| | | <t-dropdown-item label="总分类" options="{{iconList.options}}" value="{{iconList.value}}" optionsColumns="2" bindchange="onChangeIcon" /> |
| | | <t-dropdown-item label="一级" options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == ''}}" /> |
| | | <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple value="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:change="onChangeSecond" disabled="{{stairCode == '' || assortCheck.code == ''}}" /> |
| | | <t-dropdown-item label="一级" options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == '' || stairList.options.length == 0}}" /> |
| | | <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple value="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:change="onChangeSecond" disabled="{{stairCode == '' || assortCheck.code == '' || secondList.options.length == 0}}" /> |
| | | </t-dropdown-menu> |
| | | </view> |
| | | <!-- </scroll-view> --> |
| | |
| | | <view class="baseInfoBox"> |
| | | <view class="from-item"> |
| | | <view class="label"> 当前状态: </view> |
| | | <view class="stateBox"> |
| | | <view class="stateBox" wx:if="{{teacherInfo.schoolName}}"> |
| | | <text class="wait" wx:if="{{teacherInfo.state == 'WaitAudit'}}">等待审核</text> |
| | | <text class="yes" wx:if="{{teacherInfo.state == 'Normal'}}">已认证</text> |
| | | <text class="no" wx:if="{{teacherInfo.state == 'Reject'}}">已驳回</text> |
| | |
| | | page { |
| | | background-color: #f0f2f5; |
| | | background-color: #f0f2f5 !important; |
| | | } |
| | | |
| | | .container { |
| | |
| | | }, |
| | | //修改用户类型 |
| | | editUserInfo(e) { |
| | | let { info } = e.currentTarget.dataset |
| | | let { |
| | | info |
| | | } = e.currentTarget.dataset |
| | | if (!this.data.userInfoBox) { |
| | | this.setData({ |
| | | userInfoBox: true, |
| | |
| | | 'userInfoForm.icon': app.config.requestCtx + `/file/GetPreViewImage?md5=` + e, |
| | | }); |
| | | let userTypeInfo = { |
| | | requests: [ |
| | | { |
| | | data: JSON.stringify({ nickName: that.data.userInfo.nickName, icon: that.data.userInfoForm.icon }), |
| | | "requests": [{ |
| | | data: JSON.stringify({ |
| | | nickName: that.data.userInfo.nickName, |
| | | icon: that.data.userInfoForm.icon |
| | | }), |
| | | name: '用户昵称头像', |
| | | type: 'nickName' |
| | | } |
| | | ] |
| | | }] |
| | | } |
| | | app.MG.identity.setAppUserInfo(userTypeInfo).then((res) => { |
| | | if (res) { |
| | |
| | | }, |
| | | //输入手机号 |
| | | onPhoneInput(e) { |
| | | const { phoneError } = this.data; |
| | | const { |
| | | phoneError |
| | | } = this.data; |
| | | const isPhoneNumber = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(e.detail.value); |
| | | if (phoneError === isPhoneNumber) { |
| | | this.setData({ |
| | |
| | | }, |
| | | |
| | | onEmailInput(e) { |
| | | const { emailError } = this.data; |
| | | const { |
| | | emailError |
| | | } = this.data; |
| | | const isPhoneNumber = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(e.detail.value); |
| | | if (emailError === isPhoneNumber) { |
| | | this.setData({ |
| | |
| | | confirmInfo() { |
| | | if (this.data.editType == 'nickName') { |
| | | let userTypeInfo = { |
| | | requests: [ |
| | | { |
| | | data: JSON.stringify({ nickName: this.data.userInfoForm.nickName, icon: this.data.userInfo.icon }), |
| | | "requests": [{ |
| | | data: JSON.stringify({ |
| | | nickName: this.data.userInfoForm.nickName, |
| | | icon: this.data.userInfo.icon |
| | | }), |
| | | name: '用户昵称头像', |
| | | type: 'nickName' |
| | | } |
| | | ] |
| | | }] |
| | | } |
| | | app.MG.identity.setAppUserInfo(userTypeInfo).then((res) => { |
| | | if (res) { |
| | |
| | | |
| | | // 监听滚动条 |
| | | onScroll(e) { |
| | | console.log(e) |
| | | this.setData({ |
| | | isWhite: e.detail.scrollTop > 20 ? true : false |
| | | isWhite: true |
| | | }) |
| | | if (e.detail.scrollTop == 0) { |
| | | this.setData({ |
| | | isWhite: false |
| | | }) |
| | | } |
| | | // this.setData({ |
| | | // isWhite: e.detail.scrollTop > 20 ? true : false |
| | | // }) |
| | | }, |
| | | |
| | | onScrollToTop(e) { |
| | | |
| | | this.setData({ |
| | | isWhite: e.detail.scrollTop > 50 ? true : false |
| | | }) |
| | | }, |
| | | onRetrievalPage() { |