| | |
| | | "pages/bookServices/detail/components/learnTask/index", |
| | | "pages/bookServices/linkPage/index" |
| | | ] |
| | | } |
| | | } |
| | | ], |
| | | "tabBar": { |
| | | "custom": true, |
| | |
| | | "list": [ |
| | | { |
| | | "pagePath": "pages/home/home", |
| | | "text": "首页", |
| | | "iconPath": "/static/images/home/Home@2x.png", |
| | | "selectedIconPatn": "/static/images/home/Home-click@2x.png" |
| | | "text": "首页" |
| | | }, |
| | | { |
| | | "pagePath": "pages/bookServices/assort/index", |
| | | "text": "图书服务", |
| | | "iconPath": "/static/images/home/service@2x.png", |
| | | "selectedIconPatn": "/static/images/home/service-click@2x.png" |
| | | "text": "图书服务" |
| | | }, |
| | | { |
| | | "pagePath": "pages/study/index", |
| | | "text": "学习", |
| | | "iconPath": "/static/images/home/learn@2x.png", |
| | | "selectedIconPatn": "/static/images/home/learn-click@2x.png" |
| | | "text": "学习" |
| | | }, |
| | | { |
| | | "pagePath": "pages/cart/index", |
| | | "text": "购物车", |
| | | "iconPath": "/static/images/home/cart@2x.png", |
| | | "selectedIconPatn": "/static/images/home/cart-click@2x.png" |
| | | "text": "购物车" |
| | | }, |
| | | { |
| | | "pagePath": "pages/personalCenter/index", |
| | | "text": "我的", |
| | | "iconPath": "/static/images/home/my@2x.png", |
| | | "selectedIconPatn": "/static/images/home/my-click@2x.png" |
| | | "text": "我的" |
| | | } |
| | | ] |
| | | }, |
| | |
| | | "scope.userLocation": { |
| | | "desc": "你的位置信息将用于小程序位置接口的效果展示" |
| | | } |
| | | }, |
| | | "shareAppMessage": true |
| | | } |
| | | } |
| | |
| | | padding: 80rpx; |
| | | } |
| | | |
| | | .noData-box image { |
| | | .noData-box .note-icon { |
| | | width: 205rpx !important; |
| | | height: 133rpx !important; |
| | | } |
| | |
| | | this.setData({ |
| | | bookId: options.bookId, |
| | | cmsPath: options.cmsPath, |
| | | taskId: options.bookId, |
| | | taskId: options.taskId, |
| | | consumer: options.consumer, |
| | | userId: options.userId, |
| | | userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).nickName |
| | |
| | | this.setData({ |
| | | cmsPath: options.cmsPath, |
| | | bookId: options.bookId, |
| | | taskId: options.bookId, |
| | | taskId: options.taskId, |
| | | consumer: options.consumer, |
| | | userId: options.userId, |
| | | disabled: true |
| | |
| | | menuList: dataList, |
| | | loading: false, |
| | | }); |
| | | }, 500) |
| | | }, 200) |
| | | if (this.data.taskId) { |
| | | setTimeout(() => { |
| | | this.data.menuList.forEach((item) => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, 500) |
| | | }, 200) |
| | | } else { |
| | | setTimeout(() => { |
| | | if (this.data.menuList[0].children) { |
| | |
| | | taskInfo: this.data.menuList[0], |
| | | }); |
| | | } |
| | | }, 500) |
| | | }, 200) |
| | | } |
| | | } |
| | | this.getTasksList() |
| | | setTimeout(() => { |
| | | this.getTasksList() |
| | | }, 200) |
| | | }) |
| | | }, |
| | | getTask(e) { |
| | |
| | | this.setData({ |
| | | tasksListData: res.datas, |
| | | }); |
| | | |
| | | if (this.data.taskInfo.name) { |
| | | this.taskSelect(this.data.taskInfo) |
| | | } |
| | |
| | | <view class="box-image fl-cn"> |
| | | <!-- 云测试图标 --> |
| | | <view class="teach-icon fl-cn"> |
| | | <image src="/static/images/bookService/detail/test-icon.png" mode="" /> |
| | | <image src="/static/images/bookService/detail/test-icon.png" mode="" class="test-icon" /> |
| | | </view> |
| | | <!-- 名称 --> |
| | | <text class="name">{{citem.name || '-'}}</text> |
| | |
| | | display: flex; |
| | | } |
| | | |
| | | .box-image image { |
| | | .box-image .test-icon { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | margin-right: 8rpx; |
| | |
| | | }, |
| | | |
| | | onCertificate() { |
| | | // if (!this.data.isBuy) { |
| | | // wx.showToast({ |
| | | // title: "请先购买,体验完整服务", |
| | | // icon: "none", |
| | | // duration: 1000, |
| | | // }); |
| | | // return false |
| | | // } |
| | | // if (!this.data.isLearn) { |
| | | // wx.showToast({ |
| | | // title: "您的学习任务还未完成,暂不能申请证书,加油哦!", |
| | | // icon: "none", |
| | | // duration: 1000, |
| | | // }); |
| | | // return false |
| | | // } |
| | | if (!this.data.isBuy) { |
| | | wx.showToast({ |
| | | title: "请先购买,体验完整服务", |
| | | icon: "none", |
| | | duration: 1000, |
| | | }); |
| | | return false |
| | | } |
| | | if (!this.data.isLearn) { |
| | | wx.showToast({ |
| | | title: "您的学习任务还未完成,暂不能申请证书,加油哦!", |
| | | icon: "none", |
| | | duration: 1000, |
| | | }); |
| | | return false |
| | | } |
| | | if (this.data.isCertificate && this.data.isCertificate.state == 'WaitAudit') { |
| | | wx.showToast({ |
| | | title: "您申请的证书正在审核中", |
| | |
| | | if (token) { |
| | | this.getShoppingCartList() |
| | | } |
| | | this.init(); |
| | | }, |
| | | |
| | | onLoad() { |
| | |
| | | } |
| | | }) |
| | | } |
| | | this.init(); |
| | | }, |
| | | onReachBottom() {}, |
| | | onPullDownRefresh() { |
| | |
| | | } |
| | | app.MG.store.getProductList(obj).then((res) => { |
| | | res.datas.forEach((item) => { |
| | | item.liveTime = item.liveTime ? moment(item.liveTime).format("MM-DD HH:mm:ss") : ''; |
| | | item.startTime = item.startTime ? moment(item.startTime).format("MM-DD HH:mm:ss") : ''; |
| | | item.liveTime = item.liveTime ? item.liveTime.substring(5) : ''; |
| | | item.startTime = item.startTime ? item.startTime.substring(5) : ''; |
| | | item.price = item.price ? item.price.toFixed(2) : item.price; |
| | | }); |
| | | this.setData({ |
| | |
| | | wx.navigateTo({ |
| | | url: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}` |
| | | }) |
| | | // wx.navigateTo({ |
| | | // url: '/pages/specialDiscussion/webView/index?link=' + item.jsek_link |
| | | // }); |
| | | |
| | | |
| | | |
| | | }, |
| | | goCourseDetail(e) { |
| | |
| | | name="search" |
| | | size="40rpx" |
| | | color="#bbb" |
| | | bind:tap="navToSearchPage" |
| | | bind:tap="onRetrievalPage" |
| | | /> |
| | | </t-search> |
| | | </view> |
| | |
| | | wx:key="index" |
| | | data-info="{{item}}" |
| | | bindtap="navToActivityDetail" |
| | | class="swiper-item" |
| | | > |
| | | <view class="swiperItem"> |
| | | <image src="{{item.value}}" mode="widthFix" class="img" /> |
| | |
| | | width: 100%; |
| | | } |
| | | |
| | | .swiper-item { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .swiperItem { |
| | | position: relative; |
| | | height: 380rpx; |
| | |
| | | } |
| | | }, |
| | | |
| | | underConstruction() { |
| | | wx.showToast({ |
| | | title: "建设中", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | underConstruction(e) { |
| | | const { |
| | | book |
| | | } = e.currentTarget.dataset; |
| | | console.log(book); |
| | | wx.navigateTo({ |
| | | url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id + '&path=' + book.idPath, |
| | | }); |
| | | }, |
| | | goTextBookDetail(e) { |
| | | const { |
| | | item |
| | | } = e.currentTarget.dataset; |
| | | wx.navigateTo({ |
| | | url: '/pages/digitalTextbooks/digitalTextbooksDetails/index?id=' + item.id, |
| | | }); |
| | | }, |
| | | goSubjectDetail(e) { |
| | | // return wx.showToast({ |
| | | // title: "建设中", |
| | | // icon: 'none', |
| | | // duration: 1000 |
| | | // }) |
| | | const item = e.currentTarget.dataset.item |
| | | // 网页类型跳转到网址复制页,因为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: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}` |
| | | }) |
| | | |
| | | }, |
| | | // 邮箱点击 |
| | | mailbox(e) { |
| | |
| | | <!-- Tab布局 --> |
| | | <scroll-view scroll-x="{{true}}" class="scroll-x"> |
| | | <view class="navBox"> |
| | | <view |
| | | class="titleBox" |
| | | wx:for="{{tabList}}" |
| | | bindtap="tabsOn" |
| | | data-idx="{{item.index}}" |
| | | > |
| | | <view class="titleBox" wx:for="{{tabList}}" bindtap="tabsOn" wx:key="index" wx:for-item="item" wx:for-index="index" data-idx="{{item.index}}"> |
| | | <view class="tabIndexBox"> |
| | | <text class="{{item.index == tabsId ? 'fontColorBox' : ''}}" |
| | | >{{item.title}} ({{item.bookTotal}}) |
| | |
| | | > |
| | | <view |
| | | class="listItem flex" |
| | | data-item="{{item}}" |
| | | data-book="{{item}}" |
| | | bind:tap="underConstruction" |
| | | > |
| | | <view class="specialSubject-img-box"> |
| | | <image src="{{item.icon}}" mode="aspectFill" /> |
| | | <image src="{{item.icon}}" mode="aspectFit" class="img"/> |
| | | </view> |
| | | <view class="body-info"> |
| | | <view class="name">{{item.name}}</view> |
| | |
| | | wx:for-item="item" |
| | | wx:for-index="index" |
| | | data-item="{{item}}" |
| | | bind:tap="underConstruction" |
| | | bind:tap="goTextBookDetail" |
| | | > |
| | | <view class="imageBox"> |
| | | <image src="{{item.icon}}" mode="" /> |
| | | <image src="{{item.icon}}" mode="aspectFit" mode="" /> |
| | | </view> |
| | | <view class="bookDataNmae"> {{item.name}} </view> |
| | | <view class="bookDataAuthor">{{item.author}}</view> |
| | |
| | | wx:key="index" |
| | | class="listItemBox" |
| | | data-item="{{item}}" |
| | | bind:tap="underConstruction" |
| | | bind:tap="goSubjectDetail" |
| | | > |
| | | <view |
| | | class="listItem" |
| | |
| | | bindtap="onBookExhibitionDetails" |
| | | data-item="{{item}}" |
| | | > |
| | | <image |
| | | class="bookFairImage" |
| | | wx:if="{{item.icon}}" |
| | | src="{{item.icon}}" |
| | | mode="" |
| | | /> |
| | | <image |
| | | class="bookFairImage" |
| | | wx:else="" |
| | | src="/static/images/bookExhibitionList/banner.png" |
| | | mode="" |
| | | /> |
| | | <image class="bookFairImage" wx:if="{{item.icon}}" src="{{item.icon}}" mode=""/> |
| | | <image class="bookFairImage" wx:else src="/static/images/bookExhibitionList/banner.png" mode="" /> |
| | | <view class="textBox" title="{{item.name}}"> |
| | | <text>{{item.subtitleName}}</text> |
| | | </view> |
| | |
| | | .specialSubject-img-box { |
| | | width: 400rpx; |
| | | height: 218rpx; |
| | | flex: 1; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .specialSubject-img-box image { |
| | | width: 380rpx; |
| | | height: 218rpx; |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: contain; |
| | | } |
| | | |
| | | .listBox1 .addCartImg, |
| | |
| | | padding: 16rpx; |
| | | font-size: 28rpx; |
| | | width: 310rpx; |
| | | height: 218rpx; |
| | | /* height: 218rpx; */ |
| | | } |
| | | |
| | | .body-info .name { |
| | |
| | | @font-face { |
| | | font-family: 'wr'; |
| | | src: url('https://cdn3.codesign.qq.com/icons/gqxWyZ1yMJZmVXk/Yyg5Zp2LG8292lK/iconfont.woff?t=cfc62dd36011e60805f5c3ad1a20b642') |
| | | format('woff2'); |
| | | src: url('https://cdn3.codesign.qq.com/icons/gqxWyZ1yMJZmVXk/Yyg5Zp2LG8292lK/iconfont.woff?t=cfc62dd36011e60805f5c3ad1a20b642') format('woff2'); |
| | | } |
| | | |
| | | .wr { |
| | |
| | | -webkit-font-smoothing: antialiased; |
| | | -moz-osx-font-smoothing: grayscale; |
| | | } |
| | | |
| | | .wr-deliver:before { |
| | | content: '\e033'; |
| | | } |
| | | |
| | | .wr-indent_close:before { |
| | | content: '\e041'; |
| | | } |
| | | |
| | | .wr-edit:before { |
| | | content: '\e002'; |
| | | } |
| | | |
| | | .wr-succeed:before { |
| | | content: '\e00d'; |
| | | } |
| | | |
| | | .wr-goods_return:before { |
| | | content: '\e03c'; |
| | | } |
| | | |
| | | .wr-wallet:before { |
| | | content: '\e051'; |
| | | } |
| | | |
| | | .wr-package:before { |
| | | content: '\e047'; |
| | | } |
| | | |
| | | .wr-comment:before { |
| | | content: '\e037'; |
| | | } |
| | | |
| | | .wr-exchang:before { |
| | | content: '\e03e'; |
| | | } |
| | | |
| | | .wr-credit_card:before { |
| | | content: '\e035'; |
| | | } |
| | | |
| | | .wr-service:before { |
| | | content: '\e04a'; |
| | | } |
| | | |
| | | .wr-shop_bag:before { |
| | | content: '\e02a'; |
| | | } |
| | | |
| | | .wr-goods_refund:before { |
| | | content: '\e03d'; |
| | | } |
| | | |
| | | .wr-check:before { |
| | | content: '\e053'; |
| | | } |
| | | |
| | | .wr-wechat:before { |
| | | content: '\e065'; |
| | | } |
| | | |
| | | .wr-cartAdd:before { |
| | | content: '\e05d'; |
| | | } |
| | | |
| | | .wr-home:before { |
| | | content: '\e020'; |
| | | } |
| | | |
| | | .wr-person:before { |
| | | content: '\e02c'; |
| | | } |
| | | |
| | | .wr-cart:before { |
| | | content: '\e023'; |
| | | } |
| | | |
| | | .wr-location:before { |
| | | content: '\e016'; |
| | | } |
| | | |
| | | .wr-arrow_forward:before { |
| | | content: '\e012'; |
| | | } |
| | | |
| | | .wr-close:before { |
| | | content: '\e021'; |
| | | } |
| | | |
| | | .wr-search:before { |
| | | content: '\e011'; |
| | | } |
| | | |
| | | .wr-clear_filled:before { |
| | | content: '\e027'; |
| | | } |
| | | |
| | | .wr-arrow_drop_up:before { |
| | | content: '\e071'; |
| | | } |
| | | |
| | | .wr-arrow_drop_down:before { |
| | | content: '\e070'; |
| | | } |
| | | |
| | | .wr-filter:before { |
| | | content: '\e038'; |
| | | } |
| | | |
| | | .wr-copy:before { |
| | | content: '\e001'; |
| | | } |
| | | |
| | | .wr-arrow_back:before { |
| | | content: '\e003'; |
| | | } |
| | | |
| | | .wr-add_circle:before { |
| | | content: '\e004'; |
| | | } |
| | | |
| | | .wr-Download:before { |
| | | content: '\e006'; |
| | | } |
| | | |
| | | .wr-map:before { |
| | | content: '\e007'; |
| | | } |
| | | |
| | | .wr-store:before { |
| | | content: '\e008'; |
| | | } |
| | | |
| | | .wr-movie:before { |
| | | content: '\e00a'; |
| | | } |
| | | |
| | | .wr-done:before { |
| | | content: '\e00b'; |
| | | } |
| | | |
| | | .wr-minus:before { |
| | | content: '\e00c'; |
| | | } |
| | | |
| | | .wr-list:before { |
| | | content: '\e00e'; |
| | | } |
| | | |
| | | .wr-expand_less:before { |
| | | content: '\e00f'; |
| | | } |
| | | |
| | | .wr-person_add:before { |
| | | content: '\e010'; |
| | | } |
| | | |
| | | .wr-Photo:before { |
| | | content: '\e013'; |
| | | } |
| | | |
| | | .wr-preview:before { |
| | | content: '\e014'; |
| | | } |
| | | |
| | | .wr-remind:before { |
| | | content: '\e015'; |
| | | } |
| | |
| | | .wr-info:before { |
| | | content: '\e017'; |
| | | } |
| | | |
| | | .wr-expand_less_s:before { |
| | | content: '\e018'; |
| | | } |
| | | |
| | | .wr-arrow_forward_s:before { |
| | | content: '\e019'; |
| | | } |
| | | |
| | | .wr-expand_more_s:before { |
| | | content: '\e01a'; |
| | | } |
| | | |
| | | .wr-share:before { |
| | | content: '\e01d'; |
| | | } |
| | | |
| | | .wr-notify:before { |
| | | content: '\e01e'; |
| | | } |
| | | |
| | | .wr-add:before { |
| | | content: '\e01f'; |
| | | } |
| | | |
| | | .wr-Home:before { |
| | | content: '\e020'; |
| | | } |
| | | |
| | | .wr-delete:before { |
| | | content: '\e022'; |
| | | } |
| | | |
| | | .wr-error:before { |
| | | content: '\e025'; |
| | | } |
| | | |
| | | .wr-sort:before { |
| | | content: '\e028'; |
| | | } |
| | | |
| | | .wr-sort_filled:before { |
| | | content: '\e029'; |
| | | } |
| | | |
| | | .wr-shop_bag_filled:before { |
| | | content: '\e02b'; |
| | | } |
| | |
| | | .wr-person_filled:before { |
| | | content: '\e02d'; |
| | | } |
| | | |
| | | .wr-cart_filled:before { |
| | | content: '\e02e'; |
| | | } |
| | | |
| | | .wr-home_filled:before { |
| | | content: '\e02f'; |
| | | } |
| | | |
| | | .wr-add_outline:before { |
| | | content: '\e030'; |
| | | } |
| | |
| | | .wr-compass:before { |
| | | content: '\e034'; |
| | | } |
| | | |
| | | .wr-goods_exchange:before { |
| | | content: '\e03a'; |
| | | } |
| | | |
| | | .wr-group_buy:before { |
| | | content: '\e03b'; |
| | | } |
| | | |
| | | .wr-group:before { |
| | | content: '\e03f'; |
| | | } |
| | | |
| | | .wr-indent_goods:before { |
| | | content: '\e040'; |
| | | } |
| | | |
| | | .wr-help:before { |
| | | content: '\e042'; |
| | | } |
| | | |
| | | .wr-group_takeout:before { |
| | | content: '\e043'; |
| | | } |
| | | |
| | | .wr-label:before { |
| | | content: '\e044'; |
| | | } |
| | | |
| | | .wr-indent_wating:before { |
| | | content: '\e045'; |
| | | } |
| | | |
| | | .wr-member:before { |
| | | content: '\e046'; |
| | | } |
| | |
| | | .wr-scanning:before { |
| | | content: '\e04b'; |
| | | } |
| | | |
| | | .wr-tv:before { |
| | | content: '\e04d'; |
| | | } |
| | | |
| | | .wr-to_top:before { |
| | | content: '\e04f'; |
| | | } |
| | | |
| | | .wr-visibility_off:before { |
| | | content: '\e050'; |
| | | } |
| | | |
| | | .wr-error-1:before { |
| | | content: '\e052'; |
| | | } |
| | |
| | | .wr-arrow_right:before { |
| | | content: '\e054'; |
| | | } |
| | | |
| | | .wr-arrow_left:before { |
| | | content: '\e056'; |
| | | } |
| | | |
| | | .wr-picture_filled:before { |
| | | content: '\e057'; |
| | | } |
| | | |
| | | .wr-navigation:before { |
| | | content: '\e058'; |
| | | } |
| | | |
| | | .wr-telephone:before { |
| | | content: '\e059'; |
| | | } |
| | | |
| | | .wr-indent_time:before { |
| | | content: '\e05c'; |
| | | } |
| | | |
| | | .wr-cart_add:before { |
| | | content: '\e05d'; |
| | | } |
| | | |
| | | .wr-classify:before { |
| | | content: '\e060'; |
| | | } |
| | | |
| | | .wr-place:before { |
| | | content: '\e063'; |
| | | } |
| | | |
| | | .wr-wechat_pay:before { |
| | | content: '\e064'; |
| | | } |
| | | |
| | | .wr-security:before { |
| | | content: '\e066'; |
| | | } |
| | | |
| | | .wr-alarm:before { |
| | | content: '\e067'; |
| | | } |
| | | |
| | | .wr-person-1:before { |
| | | content: '\e068'; |
| | | } |
| | | |
| | | .wr-open_in_new:before { |
| | | content: '\e069'; |
| | | } |
| | | |
| | | .wr-uncheck:before { |
| | | content: '\e06b'; |
| | | } |
| | | |
| | | .wr-thumb_up:before { |
| | | content: '\e06c'; |
| | | } |
| | | |
| | | .wr-thumb_up_filled:before { |
| | | content: '\e06d'; |
| | | } |
| | | |
| | | .wr-star:before { |
| | | content: '\e06e'; |
| | | } |
| | | |
| | | .wr-star_filled:before { |
| | | content: '\e06f'; |
| | | } |
| | | |
| | | .wr-cards:before { |
| | | content: '\e072'; |
| | | } |
| | | |
| | | .wr-picture_error_filled:before { |
| | | content: '\e076'; |
| | | } |
| | | |
| | | .wr-discount:before { |
| | | content: '\e077'; |
| | | } |
| | | } |