闫增涛
2024-05-10 813e3b6030ecfc86e4e71db31173e5cb77ee8c40
bug修改
10个文件已修改
87 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/tree/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.wxml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/list/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/sampleBookList/index.wxss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packagePersonal/pages/aboutUs/index.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packagePersonal/pages/aboutUs/index.wxml 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packagePersonal/pages/aboutUs/index.wxss 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packagePersonal/pages/activateProduct/index.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bookExhibitionList/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -139,6 +139,7 @@
      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");
@@ -198,7 +199,7 @@
              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: '暂无资源',
packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -260,7 +260,10 @@
                >
              </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'}}">
packageBookService/pages/bookServices/detail/components/tree/index.wxss
@@ -1,5 +1,5 @@
.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;
packageBookService/pages/bookServices/list/index.wxss
@@ -261,5 +261,5 @@
}
.t-icon-base {
  font-size: 44rpx;
  font-size: 38rpx;
}
packageDomain/pages/sampleBookList/index.wxss
@@ -336,4 +336,8 @@
  position: absolute;
  top: 30rpx;
  left: 118rpx;
}
.t-icon-base {
  font-size: 38rpx;
}
packagePersonal/pages/aboutUs/index.js
@@ -28,21 +28,14 @@
   * 生命周期函数--监听页面加载
   */
  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()
  },
@@ -127,9 +120,9 @@
      },
    }).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,
packagePersonal/pages/aboutUs/index.wxml
@@ -1,31 +1,39 @@
<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>
packagePersonal/pages/aboutUs/index.wxss
@@ -39,8 +39,6 @@
  padding-bottom: 100rpx;
}
.titleBox {
  position: sticky;
  top: 0px;
@@ -55,7 +53,7 @@
/* 富文本初始化样式 */
.richTextBox {
/* .richTextBox {
  line-height: 1.4 !important;
  font-size: 14px !important;
}
@@ -90,4 +88,25 @@
.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;
}
packagePersonal/pages/activateProduct/index.js
@@ -70,13 +70,9 @@
                }, 1000) //延迟时间
              }
            })
          });
      }
    }
  },
  //商品列表
  getDataList(isReachBottom) {
@@ -90,6 +86,7 @@
    }).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 = [];
pages/bookExhibitionList/index.wxss
@@ -287,5 +287,5 @@
}
.t-icon-base {
  font-size: 44rpx;
  font-size: 38rpx;
}