zs
litian
2024-09-20 fba71ba1ae5030cb1a20f54f29fb06ad97060297
zs
8个文件已修改
116 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/index.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.wxss 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/personalCenter/certificate/index.wxss 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/specialDiscussion/index.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js
@@ -2821,5 +2821,10 @@
    this.setData({
      cloundMenuIsBuy: flag
    })
  }
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareTimeline() {}
})
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -103,7 +103,7 @@
    rzzsImg: '', //认证证书base64
    imageWidth: '', //画在画布上的图片的宽度
    imageHeight: '', //画在画布上的图片的高度
    website: 'https://jsek.bnuic.com',
    website: 'https://jsek.bnuic.com/home/#/digitalCourses',
  },
  formatDate(dateString) {
    if (!dateString) {
@@ -174,10 +174,6 @@
    this.digitalCoursesDetailsGet(options.id)
    this.getPlayerList()
    this.getType()
    this.setData({
      userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).name,
    })
    console.log('1', options.id);
  },
  /**
@@ -447,7 +443,8 @@
  selectChange(event) {
    const value = event.target.dataset.value
    this.setData({
      selectActive: value
      selectActive: value,
      testCount: 0
    })
    this.getResource()
  },
@@ -668,6 +665,7 @@
  //在线测试获取最后一个节点数量
  countLeafNodes(tree) {
    tree.forEach(node => {
      if (!node.children || node.children.length === 0) {
        this.setData({
@@ -834,7 +832,7 @@
        Toast({
          context: this,
          selector: "#t-toast",
          message: "该书已在购物车,请勿重复添加",
          message: "该课程已在购物车,请勿重复添加",
          theme: "warning",
          direction: "column",
        });
@@ -938,7 +936,9 @@
        },
      )
      .exec()
    this.drawImage()
    setTimeout(() => {
      this.drawImage()
    }, 500)
    query
      .select('#textCertificate')
      .fields({
@@ -957,7 +957,9 @@
        },
      )
      .exec()
    this.drawImage1()
    setTimeout(() => {
      this.drawImage1()
    }, 500)
  },
  drawImage() {
    let that = this;
pages/digitalCourses/digitalCoursesDetails/index.wxss
@@ -465,7 +465,10 @@
}
#pubCertificate .bookName {
  padding-top: 260px;
  padding-top: 256px;
  width: 500px;
  height: 66px;
  margin: 0 auto;
  text-align: center;
  font-size: 30px;
  color: #000;
@@ -473,26 +476,29 @@
}
#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 {
@@ -520,8 +526,6 @@
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin: 0 auto;
  overflow: hidden;
}
#textCertificate .img {
@@ -530,52 +534,52 @@
}
#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;
@@ -587,9 +591,9 @@
}
#textCertificate .updateDate {
  margin-top: 30px;
  margin-top: 60rpx;
  text-align: center;
  font-size: 12px;
  font-size: 24rpx;
  color: #000;
}
pages/digitalCourses/index.js
@@ -236,7 +236,6 @@
    app.MG.store.getProductList(obj).then((res) => {
      if (!res.datas.length) {
        return this.setData({
          courseList: [],
          noData: true,
          contentLoading: false
        })
@@ -310,7 +309,7 @@
          )
        ) {
          wx.showToast({
            title: "该书已在购物车,请勿重复添加空",
            title: "该课程已在购物车,请勿重复添加",
            icon: 'none',
            duration: 1000
          })
pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -414,7 +414,7 @@
        Toast({
          context: this,
          selector: "#t-toast",
          message: "该书已在购物车,请勿重复添加",
          message: "该教材已在购物车,请勿重复添加",
          theme: "warning",
          direction: "column",
        });
pages/home/home.js
@@ -45,8 +45,11 @@
    this.setData({
      searchVal: "",
    });
    console.log(this.data.searchVal)
    this.loadHomePage();
    const token = wx.getStorageSync(app.config.tokenKey)
    if (token) {
      this.getShoppingCartList()
    }
  },
  onLoad() {
@@ -72,11 +75,8 @@
          this.init();
        }
      })
    } else {
      this.init();
      this.registe()
    }
    this.init();
  },
  onReachBottom() {},
  onPullDownRefresh() {
@@ -453,7 +453,6 @@
    //   duration: 1000
    // })
    const item = e.currentTarget.dataset.book
    console.log(item);
    // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里
    let urlData = ''
    const flags = item.jsek_link.indexOf("?")
@@ -539,7 +538,7 @@
          )
        ) {
          wx.showToast({
            title: "该书已在购物车,请勿重复添加空",
            title: "该商品已在购物车,请勿重复添加",
            icon: 'none',
            duration: 1000
          })
pages/personalCenter/certificate/index.wxss
@@ -215,14 +215,16 @@
#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;
@@ -237,16 +239,16 @@
}
#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;
@@ -262,7 +264,6 @@
#textCertificate .studyTime {
  font-size: 28rpx;
  margin-top: 23rpx;
  margin-left: 33%;
  color: #000;
  font-family: 'SimHei', sans-serif;
@@ -270,7 +271,7 @@
#textCertificate .website {
  font-size: 28rpx;
  margin-top: 40rpx;
  margin-top: 21px;
  margin-left: 27%;
  color: #000;
  font-family: 'SimHei', sans-serif;
@@ -283,7 +284,7 @@
}
#textCertificate .updateDate {
  margin-top: 80rpx;
  margin-top: 25px;
  text-align: center;
  font-size: 12px;
  color: #000;
pages/specialDiscussion/index.js
@@ -183,10 +183,16 @@
  },
  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 = {