| | |
| | | //获取资源类型 |
| | | getCmsTypeByRefCode(data) { |
| | | return request({ |
| | | url: "resource/api/ApiGetCmsTypeByRefCode", |
| | | url: "/resource/api/ApiGetCmsTypeByRefCode", |
| | | method: "post", |
| | | data, |
| | | }); |
| | |
| | | userId: '', |
| | | fileList: [], |
| | | protocolTxt: '', //教师协议 |
| | | protocolShow: false, |
| | | editState: true, |
| | | reasonTxt: "" |
| | | }, |
| | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options, 111); |
| | | onLoad() { |
| | | this.getpositionalTitle(); |
| | | this.getAgreement(); |
| | | |
| | | if (wx.getStorageSync(app.config.tokenKey)) { |
| | | this.getUserRole() |
| | | } |
| | |
| | | getUserRole() { |
| | | app.MG.identity.getCurrentAppUser().then((res) => { |
| | | if (res) { |
| | | |
| | | this.getType() |
| | | this.setData({ |
| | | userId: res.userId |
| | |
| | | }) |
| | | }, |
| | | getType() { |
| | | const data = { |
| | | app.MG.resource.getCmsTypeByRefCode({ |
| | | refCodes: ['jsek_teacherCertification'] |
| | | } |
| | | app.MG.resource.getCmsTypeByRefCode(data).then((res) => { |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.setData({ |
| | | worksInfo: res[0].cmsTypeLinks[0].children, |
| | | }) |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //选择职称 |
| | | onTeachPicker() { |
| | | this.setData({ teachVisible: true }); |
| | |
| | | fileList, |
| | | }); |
| | | }, |
| | | onChange() { |
| | | |
| | | }, |
| | | //查看教师认证服务 |
| | | viewContent() { |
| | | this.setData({ |
| | | protocolShow: true, |
| | | }); |
| | | }, |
| | | onVisibleChange(e) { |
| | | this.setData({ |
| | | protocolShow: e.detail.visible, |
| | | }); |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | "t-picker": "tdesign-miniprogram/picker/picker", |
| | | "t-picker-item": "tdesign-miniprogram/picker-item/picker-item", |
| | | "t-input": "tdesign-miniprogram/input/input", |
| | | "t-upload": "tdesign-miniprogram/upload/upload" |
| | | "t-upload": "tdesign-miniprogram/upload/upload", |
| | | "t-popup": "tdesign-miniprogram/popup/popup", |
| | | "t-checkbox": "tdesign-miniprogram/checkbox/checkbox" |
| | | } |
| | | } |
| | |
| | | <view class="container"> |
| | | <view class="tips"> 仅限学校本课程任课教师申请;请上传有效在职教师工作证将有助于审核。 </view> |
| | | <view class="page-body"> |
| | | <form catchsubmit="formSubmit" catchreset="formReset" class="formBox"> |
| | | <view class="baseInfoBox"> |
| | | <view class="from-item"> |
| | | <view class="label"> 当前状态: </view> |
| | | <view class="stateBox"> |
| | |
| | | <view class="from-item"> |
| | | <view class="label"> 学校: </view> |
| | | <view class="item-content"> |
| | | <t-input placeholder="请输入学校" borderless value="{{teacherInfo.schoolName}}" /> |
| | | <t-input placeholder="请输入学校" borderless value="{{teacherInfo.schoolName}}" disabled="{{!editState}}" /> |
| | | </view> |
| | | </view> |
| | | <view class="from-item"> |
| | | <view class="label"> 真实姓名: </view> |
| | | <view class="item-content"> |
| | | <t-input placeholder="请输入真实姓名" borderless value="{{teacherInfo.fullName}}" /> |
| | | <t-input placeholder="请输入真实姓名" borderless value="{{teacherInfo.fullName}}" disabled="{{!editState}}" /> |
| | | </view> |
| | | </view> |
| | | <view class="from-item"> |
| | |
| | | <t-input placeholder="请输入详细地址" borderless value="{{teacherInfo.detailedAddress}}" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="fileInfoBox"> |
| | | <view class="from-item"> |
| | | <view class="label"> 在职教师工作证: </view> |
| | | <view class="imageBox"> |
| | | <view class="wrapper"> |
| | | <t-upload mediaType="{{['image']}}" files="{{fileList}}" bind:add="handleAdd" bind:remove="handleRemove"> |
| | | </t-upload> |
| | | </view> |
| | | </view> |
| | | <view class="fileTip"> |
| | | 教务处盖章文件、校工卡皆可 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="protocolBox"> |
| | | <t-checkbox label="" icon="rectangle" default-checked="{{teacherInfo.agree}}" bind:change="onChange" /> |
| | | <text class="wait" bind:tap="viewContent">《教师认证服务条款》</text> |
| | | </view> |
| | | <view class="btn-area"> |
| | | <button class="submit" formType="submit">提交</button> |
| | | </view> |
| | | </form> |
| | | </view> |
| | | <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center" close-btn> |
| | | <view class="block"> |
| | | <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" /> |
| | | </view> |
| | | </t-popup> |
| | | </view> |
| | |
| | | page { |
| | | background: #F2F3F8; |
| | | } |
| | | |
| | | .container { |
| | | width: 100%; |
| | | padding-bottom: env(safe-area-inset-bottom); |
| | | overflow: auto; |
| | | } |
| | | |
| | | .tips { |
| | | line-height: 24px; |
| | | font-size: 28rpx; |
| | |
| | | background: rgba(255, 108, 0, 0.1); |
| | | color: #ff6c00; |
| | | text-align: center; |
| | | margin: 0 auto 20px auto; |
| | | margin: 0 auto 20rpx auto; |
| | | } |
| | | |
| | | .page-body { |
| | | padding: 20rpx; |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .from-item { |
| | | .baseInfoBox { |
| | | background: #fff; |
| | | margin-top: 20rpx; |
| | | border-radius: 10rpx; |
| | | padding: 30rpx; |
| | | } |
| | | |
| | | .fileInfoBox { |
| | | background: #fff; |
| | | margin-top: 20rpx; |
| | | border-radius: 10rpx; |
| | | padding: 30rpx; |
| | | } |
| | | |
| | | .baseInfoBox .from-item { |
| | | margin-bottom: 20rpx; |
| | | display: flex; |
| | | } |
| | | |
| | | .from-item .label { |
| | | width: 240rpx; |
| | | .baseInfoBox .from-item .label { |
| | | width: 200rpx; |
| | | height: 68rpx; |
| | | line-height: 68rpx; |
| | | } |
| | |
| | | padding: 0 !important; |
| | | } |
| | | |
| | | .submit { |
| | | background: #ff6c00; |
| | | color: #fff; |
| | | } |
| | | |
| | | |
| | | .t-cell { |
| | | padding: 0 !important; |
| | |
| | | color: #1FBC1F |
| | | } |
| | | |
| | | .wrapper { |
| | | width: 56%; |
| | | .fileInfoBox .from-item .label { |
| | | width: 240rpx; |
| | | height: 68rpx; |
| | | line-height: 68rpx; |
| | | } |
| | | |
| | | .t-grid-item { |
| | | width: 50% !important; |
| | | .imageBox { |
| | | border: 2rpx solid #D9D9D9; |
| | | padding: 20rpx; |
| | | } |
| | | |
| | | .wrapper { |
| | | width: 100%; |
| | | } |
| | | |
| | | .fileTip { |
| | | font-size: 24rpx; |
| | | color: #949494; |
| | | margin-top: 20rpx; |
| | | } |
| | | |
| | | .protocolBox { |
| | | padding: 20rpx; |
| | | display: flex; |
| | | |
| | | } |
| | | |
| | | .t-checkbox { |
| | | background: none !important |
| | | } |
| | | |
| | | .t-checkbox--block { |
| | | padding: 0 !important; |
| | | } |
| | | |
| | | .t-picker__confirm { |
| | | color: #ff6c00 !important; |
| | | } |
| | | |
| | | .t-popup { |
| | | width: 80% !important; |
| | | } |
| | | |
| | | .t-popup__content { |
| | | padding: 40rpx 10rpx !important; |
| | | padding-top: 80rpx !important; |
| | | } |
| | | |
| | | .block { |
| | | height: 450px !important; |
| | | overflow: auto !important; |
| | | } |
| | | |
| | | .btn-area { |
| | | width: 80%; |
| | | margin: 0 auto; |
| | | |
| | | } |
| | | |
| | | .submit { |
| | | background: #ff6c00; |
| | | color: #fff; |
| | | border-radius: 50rpx; |
| | | } |
| | |
| | | <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" bind:tap="navToSearchPage" /> |
| | | </t-search> |
| | | </view> |
| | | <view class="swiper-wrap"> |
| | | <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" current="{{current}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" bind:click="navToActivityDetail" /> |
| | | </view> |
| | | </view> |
| | | <view class="home-page-menu"> |
| | | <t-grid class="t-grid-block" theme="card" border="{{border}}" column="{{5}}"> |
| | | <t-grid-item wx:for="{{tabList}}" wx:for-index="index" wx:key="index" text="{{item.text}}" image="{{item.icon}}" data-info="{{item}}" bindtap="toPages" /> |
| | |
| | | </view> |
| | | <view class="body-info"> |
| | | <view class="name">{{item.name}}</view> |
| | | <view class="author">{{item.author}}</view> |
| | | <!-- <view class="author">{{item.author}}</view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | <load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry" /> |
| | | <t-toast id="t-toast" /> |
| | | </view> |
| | | <<<<<<< Updated upstream <t-toast id="t-toast" /> |
| | | ======= |
| | | >>>>>>> Stashed changes |
| | | </view> |
| | |
| | | padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx); |
| | | } |
| | | |
| | | .container { |
| | | width: 100vw; |
| | | position: relative; |
| | | max-height: calc(100vh - env(safe-area-inset-bottom)); |
| | | } |
| | | |
| | | .background { |
| | | width: 100%; |
| | | position: fixed; |
| | |
| | | margin-top: 20rpx; |
| | | display: block; |
| | | padding: 0 24rpx; |
| | | padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx); |
| | | } |
| | | |
| | | .tabCardPublic { |
| | |
| | | .listBox2 .author { |
| | | height: 28rpx; |
| | | color: #333333; |
| | | font-weight: bold; |
| | | line-height: 30rpx; |
| | | display: -webkit-box; |
| | | margin-bottom: 10rpx; |
| | |
| | | |
| | | .srcolbox { |
| | | width: 100%; |
| | | height: 480rpx; |
| | | height: 420rpx; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | |
| | | padding: 20rpx 0; |
| | | } |
| | | |
| | | .rankingList .author { |
| | | height: 30rpx; |
| | | .rankingList .name { |
| | | height: 80rpx; |
| | | width: 188rpx; |
| | | color: #333333; |
| | | font-weight: bold; |
| | | line-height: 30rpx; |
| | | display: -webkit-box; |
| | | margin-bottom: 10rpx; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 1; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: 2; |
| | | -webkit-box-orient: vertical; |
| | | } |
| | |
| | | height: 80rpx; |
| | | z-index: 3; |
| | | text-align: center; |
| | | padding-top: 110rpx; |
| | | padding-top: 60rpx; |
| | | font-size: 36rpx; |
| | | } |
| | | |
| | |
| | | .content-wrapper { |
| | | position: relative; |
| | | padding: 30rpx; |
| | | padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx); |
| | | } |
| | | |
| | | .topBox { |
| | |
| | | icon: "error", |
| | | duration: 2000 |
| | | }) |
| | | this.setData({ |
| | | loading: false |
| | | }) |
| | | } |
| | | }); |
| | | }, |