| | |
| | | this.setData({ |
| | | cloundMenuIsBuy: flag |
| | | }) |
| | | } |
| | | }, |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() {}, |
| | | onShareTimeline() {} |
| | | }) |
| | |
| | | rzzsImg: '', //认证证书base64 |
| | | imageWidth: '', //画在画布上的图片的宽度 |
| | | imageHeight: '', //画在画布上的图片的高度 |
| | | website: 'https://jsek.bnuic.com', |
| | | website: 'https://jsek.bnuic.com/home/#/digitalCourses', |
| | | }, |
| | | formatDate(dateString) { |
| | | if (!dateString) { |
| | |
| | | this.digitalCoursesDetailsGet(options.id) |
| | | this.getPlayerList() |
| | | this.getType() |
| | | this.setData({ |
| | | userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).name, |
| | | }) |
| | | console.log('1', options.id); |
| | | }, |
| | | |
| | | /** |
| | |
| | | selectChange(event) { |
| | | const value = event.target.dataset.value |
| | | this.setData({ |
| | | selectActive: value |
| | | selectActive: value, |
| | | testCount: 0 |
| | | }) |
| | | this.getResource() |
| | | }, |
| | |
| | | |
| | | //在线测试获取最后一个节点数量 |
| | | countLeafNodes(tree) { |
| | | |
| | | tree.forEach(node => { |
| | | if (!node.children || node.children.length === 0) { |
| | | this.setData({ |
| | |
| | | Toast({ |
| | | context: this, |
| | | selector: "#t-toast", |
| | | message: "该书已在购物车,请勿重复添加", |
| | | message: "该课程已在购物车,请勿重复添加", |
| | | theme: "warning", |
| | | direction: "column", |
| | | }); |
| | |
| | | }, |
| | | ) |
| | | .exec() |
| | | setTimeout(() => { |
| | | this.drawImage() |
| | | }, 500) |
| | | query |
| | | .select('#textCertificate') |
| | | .fields({ |
| | |
| | | }, |
| | | ) |
| | | .exec() |
| | | setTimeout(() => { |
| | | this.drawImage1() |
| | | }, 500) |
| | | }, |
| | | drawImage() { |
| | | let that = this; |
| | |
| | | } |
| | | |
| | | #pubCertificate .bookName { |
| | | padding-top: 260px; |
| | | padding-top: 256px; |
| | | width: 500px; |
| | | height: 66px; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | font-size: 30px; |
| | | color: #000; |
| | |
| | | } |
| | | |
| | | #pubCertificate .author { |
| | | margin-top: 30px; |
| | | height: 80px; |
| | | width: 290px; |
| | | font-size: 24px; |
| | | margin-left: 250px; |
| | | color: #000; |
| | | margin-bottom: 50px; |
| | | font-family: 'FZXBSJW'; |
| | | } |
| | | |
| | | #pubCertificate .affiliatedUnit { |
| | | margin-top: 13px; |
| | | height: 29px; |
| | | width: 250px; |
| | | margin-left: 46%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | #pubCertificate .website { |
| | | margin-top: 62px; |
| | | margin-top: 50px; |
| | | margin-left: 27%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | |
| | | } |
| | | |
| | | #pubCertificate .codeBox { |
| | |
| | | clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); |
| | | margin: 0 auto; |
| | | overflow: hidden; |
| | | |
| | | |
| | | } |
| | | |
| | | #textCertificate .img { |
| | |
| | | } |
| | | |
| | | #textCertificate .userName { |
| | | height: 74rpx; |
| | | font-size: 70rpx; |
| | | height: 38px; |
| | | font-size: 38px; |
| | | padding-top: 26px; |
| | | text-align: center; |
| | | font-family: 'FZXBSJW'; |
| | | } |
| | | |
| | | #textCertificate .bookName { |
| | | padding-top: 30px; |
| | | margin-left: 460rpx; |
| | | |
| | | font-size: 20px; |
| | | padding-top: 34px; |
| | | margin-left: 230px; |
| | | width: 300px; |
| | | height: 59px; |
| | | font-size: 18px; |
| | | color: #000; |
| | | font-family: 'FZXBSJW'; |
| | | } |
| | | |
| | | #textCertificate .author { |
| | | margin-top: 84rpx; |
| | | height: 26px; |
| | | margin-left: 52%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | } |
| | | |
| | | #textCertificate .classHours { |
| | | margin-top: 20rpx; |
| | | height: 30px; |
| | | margin-left: 52%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | } |
| | | |
| | | #textCertificate .affiliatedUnit { |
| | | margin-top: 26rpx; |
| | | height: 26px; |
| | | margin-left: 33%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | } |
| | | |
| | | #textCertificate .studyTime { |
| | | margin-top: 22rpx; |
| | | margin-left: 33%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | } |
| | | |
| | | #textCertificate .website { |
| | | margin-top: 40rpx; |
| | | margin-top: 20px; |
| | | margin-left: 27%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | |
| | | } |
| | | |
| | | #textCertificate .updateDate { |
| | | margin-top: 30px; |
| | | margin-top: 60rpx; |
| | | text-align: center; |
| | | font-size: 12px; |
| | | font-size: 24rpx; |
| | | color: #000; |
| | | } |
| | | |
| | |
| | | app.MG.store.getProductList(obj).then((res) => { |
| | | if (!res.datas.length) { |
| | | return this.setData({ |
| | | courseList: [], |
| | | noData: true, |
| | | contentLoading: false |
| | | }) |
| | |
| | | ) |
| | | ) { |
| | | wx.showToast({ |
| | | title: "该书已在购物车,请勿重复添加空", |
| | | title: "该课程已在购物车,请勿重复添加", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | |
| | | Toast({ |
| | | context: this, |
| | | selector: "#t-toast", |
| | | message: "该书已在购物车,请勿重复添加", |
| | | message: "该教材已在购物车,请勿重复添加", |
| | | theme: "warning", |
| | | direction: "column", |
| | | }); |
| | |
| | | this.setData({ |
| | | searchVal: "", |
| | | }); |
| | | console.log(this.data.searchVal) |
| | | this.loadHomePage(); |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (token) { |
| | | this.getShoppingCartList() |
| | | } |
| | | }, |
| | | |
| | | onLoad() { |
| | |
| | | this.init(); |
| | | } |
| | | }) |
| | | } else { |
| | | this.init(); |
| | | this.registe() |
| | | } |
| | | |
| | | this.init(); |
| | | }, |
| | | onReachBottom() {}, |
| | | onPullDownRefresh() { |
| | |
| | | // duration: 1000 |
| | | // }) |
| | | const item = e.currentTarget.dataset.book |
| | | console.log(item); |
| | | // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里 |
| | | let urlData = '' |
| | | const flags = item.jsek_link.indexOf("?") |
| | |
| | | ) |
| | | ) { |
| | | wx.showToast({ |
| | | title: "该书已在购物车,请勿重复添加空", |
| | | title: "该商品已在购物车,请勿重复添加", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | |
| | | #textCertificate .bookName { |
| | | padding-top: 30px; |
| | | margin-left: 460rpx; |
| | | width: 300px; |
| | | height: 60px; |
| | | font-size: 20px; |
| | | color: #000; |
| | | font-family: 'FZXBSJW'; |
| | | } |
| | | |
| | | #textCertificate .author { |
| | | font-size: 28rpx; |
| | | margin-top: 84rpx; |
| | | height: 26px; |
| | | font-size: 14px; |
| | | margin-left: 52%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | |
| | | } |
| | | |
| | | #textCertificate .classHours { |
| | | height: 30px; |
| | | font-size: 28rpx; |
| | | margin-top: 20rpx; |
| | | margin-left: 52%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | | } |
| | | |
| | | #textCertificate .affiliatedUnit { |
| | | height: 24px; |
| | | font-size: 28rpx; |
| | | margin-top: 24rpx; |
| | | margin-left: 33%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | |
| | | |
| | | #textCertificate .studyTime { |
| | | font-size: 28rpx; |
| | | margin-top: 23rpx; |
| | | margin-left: 33%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | |
| | | |
| | | #textCertificate .website { |
| | | font-size: 28rpx; |
| | | margin-top: 40rpx; |
| | | margin-top: 21px; |
| | | margin-left: 27%; |
| | | color: #000; |
| | | font-family: 'SimHei', sans-serif; |
| | |
| | | } |
| | | |
| | | #textCertificate .updateDate { |
| | | margin-top: 80rpx; |
| | | margin-top: 25px; |
| | | text-align: center; |
| | | font-size: 12px; |
| | | color: #000; |
| | |
| | | }, |
| | | onLink(e) { |
| | | const item = e.currentTarget.dataset.item |
| | | console.log(item.jsek_link); |
| | | // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里 |
| | | let urlData = '' |
| | | const flags = item.jsek_link.indexOf("?") |
| | | if (flags > -1) { |
| | | urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length) |
| | | } |
| | | let url = '/packageBookService/pages/bookServices/linkPage/index' |
| | | wx.navigateTo({ |
| | | url: '/pages/specialDiscussion/webView/index?link=' + item.jsek_link |
| | | }); |
| | | url: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}` |
| | | }) |
| | | }, |
| | | async getCourseTypeListList() { |
| | | const quer = { |