| | |
| | | if (token) { |
| | | const item = e.currentTarget.dataset.item; |
| | | const parent = e.currentTarget.dataset.parent; |
| | | console.log('item', item); |
| | | const parentProductLinkPath = parent ? |
| | | parent.productLinkPath : |
| | | wx.getStorageSync("teachResourcesPath"); |
| | |
| | | title: "资源不可用,请联系管理员", |
| | | }); |
| | | } |
| | | } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file || !item.freeFile || !item.protectedFile)) { |
| | | } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file && !item.freeFile && !item.protectedFile)) { |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: '暂无资源', |
| | |
| | | > |
| | | </view> |
| | | <!-- 教学资源类型 --> |
| | | <view class="teachClass fl-cn" wx:if="{{citem.resourceClass}}"> |
| | | <view |
| | | class="teachClass fl-cn" |
| | | wx:if="{{citem.resourceClass && tab == 'jsek_teachingResources'}}" |
| | | > |
| | | {{citem.resourceClass}} |
| | | </view> |
| | | <view wx:if="{{tab == 'jsek_cloudLearning'}}"> |
| | |
| | | .tree { |
| | | --td-collapse-content-padding: 0rpx 12rpx 32rpx 12rpx; |
| | | --td-collapse-content-padding: 0rpx 12rpx 0rpx 12rpx; |
| | | --td-collapse-header-text-color: #ff6c00; |
| | | --td-collapse-icon-color: #ff6c00; |
| | | --td-collapse-header-height: min-content; |
| | |
| | | } |
| | | |
| | | .t-icon-base { |
| | | font-size: 44rpx; |
| | | font-size: 38rpx; |
| | | } |
| | |
| | | position: absolute; |
| | | top: 30rpx; |
| | | left: 118rpx; |
| | | } |
| | | |
| | | .t-icon-base { |
| | | font-size: 38rpx; |
| | | } |
| | |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度 |
| | | |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | | types: options.types |
| | | }) |
| | | |
| | | console.log(this.data.types); |
| | | |
| | | |
| | | // this.getBanner() |
| | | this.getAboutText() |
| | | }, |
| | |
| | | }, |
| | | }).then(res => { |
| | | // console.log(res.datas[0].content); |
| | | let modifiedContent = `<div class="richTextBox">${res.datas[0].content}</div>`; |
| | | // modifiedContent = modifiedContent.replace(/\<table/gi, '<table class="aboutUs-rich-table"').replace(/\<td/gi, '<table class="aboutUs-rich-td"').replace(/\<p/gi, '<p class="aboutUs-rich-p"') |
| | | console.log(modifiedContent); |
| | | // let modifiedContent = `<div class="richTextBox">${res.datas[0].content}</div>`; |
| | | let modifiedContent = res.datas[0].content |
| | | // modifiedContent = modifiedContent.replace(/\<table/gi, '<table class="aboutUs-rich-table"').replace(/\<td/gi, '<table class="aboutUs-rich-td"').replace(/\<tr/gi, '<tr class="aboutUs-rich-tr"').replace(/\<p/gi, '<p class="aboutUs-rich-p"') |
| | | this.setData({ |
| | | aboutText: modifiedContent, |
| | | loading: false, |
| | |
| | | <import src="index.skeleton.wxml" /> |
| | | <template is="skeleton" wx:if="{{loading}}" /> |
| | | |
| | | |
| | | <view class="aboutUsBox" hidden="{{hidden}}"> |
| | | <view class="titleBox"> |
| | | <view style="width: 100%; height: {{barHeight}}px; "></view> |
| | | <view class="nacigationBar" style="width: 90%; height: {{navBarHeight}}px;"> |
| | | <view> |
| | | <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> |
| | | <t-icon |
| | | name="chevron-left" |
| | | size="30" |
| | | data-name="{{item}}" |
| | | bind:click="goBack" |
| | | /> |
| | | </view> |
| | | |
| | | |
| | | <view class="titleTextBox"> |
| | | <view wx:if="{{types == 'jsek_aboutUs'}}" class="navbar-title">关于我们</view> |
| | | <view wx:if="{{types == 'jsek_aboutUs'}}" class="navbar-title" |
| | | >关于我们</view |
| | | > |
| | | <view wx:else class="navbar-title">联系我们</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view wx:if="{{types == 'jsek_aboutUs'}}" class="aboutUs"> |
| | | <view class="aboutText aboutUs"> |
| | | <rich-text nodes="{{aboutText}}" space="emsp"></rich-text> |
| | | </view> |
| | | </view> |
| | | <view wx:else class="aboutText richTextBox" style="margin: 5rpx;"> |
| | | <rich-text style="width: 100%;" space="emsp" nodes="{{aboutText}}" mode="compat"></rich-text> |
| | | <view wx:else class="aboutText richTextBox" style="margin: 5rpx"> |
| | | <rich-text |
| | | style="width: 100%" |
| | | space="emsp" |
| | | nodes="{{aboutText}}" |
| | | mode="compat" |
| | | ></rich-text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | padding-bottom: 100rpx; |
| | | } |
| | | |
| | | |
| | | |
| | | .titleBox { |
| | | position: sticky; |
| | | top: 0px; |
| | |
| | | |
| | | |
| | | /* 富文本初始化样式 */ |
| | | .richTextBox { |
| | | /* .richTextBox { |
| | | line-height: 1.4 !important; |
| | | font-size: 14px !important; |
| | | } |
| | |
| | | |
| | | .richTextBox table { |
| | | border-width: 2px !important; |
| | | } */ |
| | | .aboutUs-rich-p { |
| | | display: block !important; |
| | | -webkit-margin-before: 1em !important; |
| | | margin-block-start: 1em !important; |
| | | -webkit-margin-after: 1em !important; |
| | | margin-block-end: 1em !important; |
| | | -webkit-margin-start: 0 !important; |
| | | margin-inline-start: 0 !important; |
| | | -webkit-margin-end: 0 !important; |
| | | margin-inline-end: 0 !important; |
| | | } |
| | | |
| | | .aboutUs-rich-td { |
| | | border-bottom: 1px dashed !important; |
| | | border-right: 1px dashed !important; |
| | | border-width: 1px !important; |
| | | } |
| | | |
| | | .aboutUs-rich-table { |
| | | border-width: 2px !important; |
| | | } |
| | |
| | | }, 1000) //延迟时间 |
| | | } |
| | | }) |
| | | |
| | | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | }, |
| | | //商品列表 |
| | | getDataList(isReachBottom) { |
| | |
| | | }).then((res) => { |
| | | try { |
| | | if (res.datas.length > 0) { |
| | | console.log(res.datas); |
| | | res.datas.forEach((item, index) => { |
| | | item.createDate = moment(item.createDate).format("YYYY-MM-DD HH:mm:ss"); |
| | | let oldlist = []; |
| | |
| | | } |
| | | |
| | | .t-icon-base { |
| | | font-size: 44rpx; |
| | | font-size: 38rpx; |
| | | } |