| | |
| | | |
| | | .t-loading__circular { |
| | | color: #ff6d00 !important; |
| | | } |
| | | |
| | | @font-face { |
| | | font-family: "JDLANGZHENGTI"; |
| | | src: url('https://jsek.bnuic.com/home/font/JDLANGZHENGTI.TTF')format("truetype"); |
| | | } |
| | |
| | | }) |
| | | } |
| | | } |
| | | const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const addNum = query.cmsPath.length > 11 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const num = query.cmsPath.length + addNum |
| | | this.getTreeList(res.datas.cmsDatas[0].datas, num, list, '\\', addNum) |
| | | list = this.ensureTreeConsistency(list) |
| | |
| | | if (data.length > 0) { |
| | | let list = [] |
| | | // 测试 6位// 正式 5位// 测试调用传20,内部7 正式调用传17 内部传6 |
| | | const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const addNum = query.cmsPath.length > 11 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const num = query.cmsPath.length + addNum |
| | | this.getTreeList(data, num, list, '\\', addNum) |
| | | list = this.ensureTreeConsistency(list) |
| | |
| | | .assort-title .title-name { |
| | | font-size: 32rpx; |
| | | margin-left: 32rpx; |
| | | font-weight: 700; |
| | | font-family: "JDLANGZHENGTI"; |
| | | } |
| | | |
| | | .book-list { |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": { |
| | | "cti-video": "plugin://cti-video/cti-video", |
| | | "t-icon": "tdesign-miniprogram/icon/icon", |
| | | "t-tabs": "tdesign-miniprogram/tabs/tabs", |
| | | "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel", |
| | |
| | | Page({ |
| | | data: { |
| | | userInfo: null, |
| | | active: 0, |
| | | active: '0', |
| | | description: "", //申请规则 |
| | | teacherInfo: { |
| | | workInfo: null, |
| | | schoolName: "", |
| | | courseName: "", |
| | | detailedAddress: "" |
| | | address: "" |
| | | }, |
| | | contactInfo: { |
| | | fullName: "", |
| | | user: "", |
| | | phone: "", |
| | | detailedAddress: "" |
| | | address: "" |
| | | }, |
| | | phoneError: false, |
| | | paperBookList: [], //样书单纸质书 |
| | |
| | | that.setData({ |
| | | 'teacherInfo.schoolName': JSON.parse(that.data.userInfo.data).schoolName, |
| | | 'teacherInfo.courseName': JSON.parse(that.data.userInfo.data).courseName, |
| | | 'contactInfo.fullName': JSON.parse(that.data.userInfo.data).fullName, |
| | | 'contactInfo.user': JSON.parse(that.data.userInfo.data).fullName, |
| | | 'contactInfo.phone': JSON.parse(that.data.userInfo.data).phone, |
| | | 'contactInfo.detailedAddress': JSON.parse(that.data.userInfo.data).detailedAddress, |
| | | 'contactInfo.address': JSON.parse(that.data.userInfo.data).detailedAddress, |
| | | }) |
| | | } else { |
| | | wx.showModal({ |
| | |
| | | 'teacherInfo.workInfo': res[0].cmsTypeLinks[0].children, |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | //获取当前已申请次数(电子) |
| | |
| | | //姓名 |
| | | onFullNameInput(e) { |
| | | this.setData({ |
| | | "contactInfo.fullName": e.detail.value, |
| | | "contactInfo.user": e.detail.value, |
| | | }); |
| | | }, |
| | | //输入手机号 |
| | |
| | | }); |
| | | } |
| | | }, |
| | | onAddressInput() { |
| | | onAddressInput(e) { |
| | | this.setData({ |
| | | "contactInfo.detailedAddress": e.detail.value, |
| | | "contactInfo.address": e.detail.value, |
| | | }); |
| | | }, |
| | | |
| | | |
| | | submit() { |
| | | let that = this; |
| | | if (that.data.bookList.length > 0) { |
| | |
| | | refType: 'applyBook' |
| | | } |
| | | } else { |
| | | if (!(that.data.contactInfo.fullName && that.data.contactInfo.phone && that.data.contactInfo.detailedAddress)) { |
| | | if (!(that.data.contactInfo.user && that.data.contactInfo.phone && that.data.contactInfo.address)) { |
| | | wx.showToast({ |
| | | title: "请将收货人信息填写完整!", |
| | | icon: 'none', |
| | |
| | | } |
| | | const mailAddress = JSON.stringify(that.data.contactInfo) |
| | | that.setData({ |
| | | 'teacherInfo.detailedAddress': mailAddress |
| | | 'teacherInfo.address': mailAddress |
| | | }) |
| | | |
| | | data = { |
| | |
| | | </view> |
| | | </view> |
| | | <view class="title" wx:if="{{active =='0'}}"> 收货人情况 </view> |
| | | <view class="receiverInfo" wx:if="{{active =='0'}}"> |
| | | <view class="receiverInfo" wx:if="{{active == '0'}}"> |
| | | <view class="item form-input-1"> |
| | | <text class="label"><text class="icon">*</text>姓名:</text> |
| | | <view class="item-content"> |
| | | <t-input placeholder="请输入真实姓名" borderless value="{{contactInfo.fullName}}" bindchange="onFullNameInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-1" /> |
| | | <t-input placeholder="请输入真实姓名" borderless value="{{contactInfo.user}}" bindchange="onFullNameInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-1" /> |
| | | </view> |
| | | </view> |
| | | <view class="item form-input-2"> |
| | |
| | | <view class="item form-input-3"> |
| | | <text class="label"><text class="icon">*</text>详细地址:</text> |
| | | <view class="item-content"> |
| | | <t-input placeholder="请输入详细地址" borderless value="{{contactInfo.detailedAddress}}" bindchange="onAddressInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-3" /> |
| | | <t-input placeholder="请输入详细地址" borderless value="{{contactInfo.address}}" bindchange="onAddressInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-3" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | }, |
| | | |
| | | //证书查看 |
| | | onClick1() { |
| | | this.setData({ |
| | | images: ['/static/images/certificate/cbzs.jpg'], |
| | | showIndex: true, |
| | | visible: true, |
| | | }) |
| | | }, |
| | | onClick2() { |
| | | this.setData({ |
| | | images: ['/static/images/certificate/rzzs.jpg'], |
| | | showIndex: true, |
| | | visible: true, |
| | | }) |
| | | }, |
| | | onClose(e) { |
| | | const { |
| | | trigger |
| | | } = e.detail; |
| | | this.setData({ |
| | | visible: false, |
| | | }); |
| | | } |
| | | |
| | | }) |
| | |
| | | "t-empty": "tdesign-miniprogram/empty/empty", |
| | | "suggest": "/packageBookService/pages/bookServices/detail/components/suggest/suggest", |
| | | "t-input": "tdesign-miniprogram/input/input", |
| | | "t-image-viewer": "tdesign-miniprogram/image-viewer/image-viewer", |
| | | "empty": "/components/empty/index" |
| | | } |
| | | } |
| | |
| | | </view> |
| | | <view class="basic"> 证书信息</view> |
| | | </view> |
| | | <!-- <view class="certificateChart"> |
| | | <view class="chart"> |
| | | <image src="" mode="" /> |
| | | <view class="certificateChart"> |
| | | <view class="chart" bind:tap="onClick1"> |
| | | <image src="/static/images/certificate/cbzs.jpg" mode="" /> |
| | | </view> |
| | | <view class="chart" bind:tap="onClick2"> |
| | | <image src="/static/images/certificate/rzzs.jpg" mode="" /> |
| | | </view> |
| | | </view> |
| | | <view class="chart"> |
| | | <image src="" mode="" /> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view class="noDataBox"> |
| | | <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> --> |
| | | <empty /> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <t-image-viewer usingCustomNavbar deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:change="onChange" bind:close="onClose"></t-image-viewer> |
| | | |
| | | <t-toast id="t-toast" /> |