| | |
| | | onLaunch: function () {}, |
| | | onShow: function () { |
| | | updateManager(); |
| | | MG.identity.refreshToken({ |
| | | appRefCode: config.appRefCode, |
| | | token: wx.getStorageSync(config.tokenKey) |
| | | }).then(res => { |
| | | console.log('已刷新') |
| | | }) |
| | | }, |
| | | }); |
| | |
| | | data, |
| | | }); |
| | | }, |
| | | //更新用户token |
| | | refreshToken(data) { |
| | | return request({ |
| | | url: "/identity/api/ApiRefreshToken", |
| | | method: "post", |
| | | data, |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | export default identityApi; |
| | |
| | | disabled: false |
| | | }); |
| | | } |
| | | console.log(options.consumer, 77) |
| | | this.getResourceData() |
| | | this.getLearnTime() |
| | | } |
| | |
| | | }) |
| | | }, |
| | | getTask(e) { |
| | | console.log(e) |
| | | let item = e.currentTarget.dataset.item |
| | | this.taskSelect(item) |
| | | }, |
| | |
| | | this.setData({ |
| | | tasksListData: res.datas, |
| | | }); |
| | | |
| | | if (this.data.taskInfo.name) { |
| | | this.taskSelect(this.data.taskInfo) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | if (this.data.dataList.length == 0) { |
| | | this.goDetail(item) |
| | | } |
| | | } |
| | | |
| | | }, |
| | | goDetail(item) { |
| | | this.setData({ |
| | |
| | | }) |
| | | } |
| | | this.setData({ |
| | | |
| | | }); |
| | | if (this.data.name && this.data.school && this.data.class) { |
| | | this.setData({ |
| | | dataList: res.datas.cmsDatas[0].datas, |
| | | taskShow: true, |
| | | }); |
| | | }) |
| | | } else { |
| | | wx.showToast({ |
| | | title: "请先填写个人信息", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | getChildTasksList() { |
| | |
| | | if (content.teacherComment.length > 0) { |
| | | content.teacherComment.forEach((item2) => { |
| | | if (item.id == item2.childTaskId) { |
| | | item.mateEvaluation = [item2] |
| | | item.teacherEvaluation = [item2] |
| | | if (this.data.consumer == 'teacher') { |
| | | this.setData({ |
| | | evaluated: true |
| | |
| | | content.mateComment.forEach((item3) => { |
| | | if (item.id == item3.childTaskId) { |
| | | item.mateEvaluation = [...item.mateEvaluation, item3] |
| | | console.log(item.mateEvaluation, 123) |
| | | if (this.data.consumer == 'classmate') { |
| | | if (item.mateEvaluation && item.mateEvaluation.length > 0) { |
| | | let data = item.mateEvaluation.find( |
| | |
| | | dataList: list |
| | | }); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 个人信息填写 |
| | | bindTnputBlur(e) { |
| | | this.setData({ |
| | | name: e.detail.value |
| | | }) |
| | | }, |
| | | onSchoolInput(e) { |
| | | this.setData({ |
| | | school: e.detail.value |
| | | }) |
| | | }, |
| | | bindClassBlur(e) { |
| | | this.setData({ |
| | | class: e.detail.value |
| | | }) |
| | | }, |
| | | |
| | |
| | | //提交自己填写 |
| | | inviteBtn() { |
| | | let empty = false |
| | | console.log(this.data.dataList, 123) |
| | | this.data.dataList.forEach((item) => { |
| | | if (item.introspection == '' || item.completion == '' || item.selfEvaluation == '') { |
| | | empty = true |
| | |
| | | }, |
| | | updateSubmit() { |
| | | let evaluate = [] |
| | | console.log(this.data.dataList, 211) |
| | | this.data.dataList.forEach((item) => { |
| | | evaluate.push({ |
| | | id: item.id, |
| | |
| | | duration: 1000 |
| | | }) |
| | | return false |
| | | } |
| | | } else { |
| | | wx.showShareMenu({ |
| | | withShareTicket: true |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | submitComment() { |
| | | let mateEvaluationList = [] |
| | |
| | | .t-radio { |
| | | margin-right: 40rpx; |
| | | } |
| | | |
| | | .empyt { |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | |
| | | |
| | | // 节点展开 |
| | | handleChange(e) { |
| | | console.log(e, 123) |
| | | this.setData({ |
| | | openIds: e.detail.value, |
| | | }); |
| | |
| | | var myEventDetail = { |
| | | value, |
| | | }; |
| | | this.triggerEvent("goTest", myEventDetail); |
| | | |
| | | var myEventOption = { |
| | | bubbles: true, |
| | | composed: true, |
| | | }; |
| | | this.triggerEvent("goTest", myEventDetail, myEventOption); |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | class="my_canvas" |
| | | wx:if="{{pubCertificateHide}}" |
| | | > |
| | | <view class="pubCon"> |
| | | <image |
| | | data-type="image" |
| | | data-url="https://jsek.bnuic.com/home/certificate/szkc.jpg" |
| | |
| | | <view class="codeBox"></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <canvas |
| | | canvas-id="myCanvas1" |
| | | style="height: 845px; width: 595px" |
| | |
| | | class="my_canvas1" |
| | | wx:if="{{pubCertificateHide}}" |
| | | > |
| | | <view class="pubCon"> |
| | | <image |
| | | data-type="image" |
| | | data-url="https://jsek.bnuic.com/home/certificate/kczs.jpg" |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </t-tab-panel> |
| | | <t-tab-panel |
| | | icon="{{ tabValue == '2' ? courseLearningClick : courseLearning}}" |
| | |
| | | #pubCertificate { |
| | | width: 595px; |
| | | height: 845px; |
| | | position: relative; |
| | | position: fixed; |
| | | background-image: url('https://jsek.bnuic.com/home/certificate/szkc.jpg'); |
| | | } |
| | | |
| | | .pubCon { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | } |
| | | |
| | | #pubCertificate .bgImg { |
| | |
| | | #textCertificate { |
| | | width: 595px; |
| | | height: 845px; |
| | | position: relative; |
| | | position: fixed; |
| | | /* background-image: url('https://jsek.bnuic.com/home/certificate/kczs.jpg'); */ |
| | | } |
| | | |