bug
litian
2024-07-12 1951e6ccf8dff46e6f8c671308f6e4db694fc800
bug
9个文件已修改
86 ■■■■■ 已修改文件
app.wxss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/list/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/sampleBookList/applicationForm/index.js 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/sampleBookList/applicationForm/index.wxml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.js 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.wxml 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app.wxss
@@ -12,4 +12,9 @@
.t-loading__circular {
  color: #ff6d00 !important;
}
@font-face {
  font-family: "JDLANGZHENGTI";
  src: url('https://jsek.bnuic.com/home/font/JDLANGZHENGTI.TTF')format("truetype");
}
packageBookService/pages/bookServices/detail/index.js
@@ -944,7 +944,7 @@
            })
          }
        }
        const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6
        const addNum = query.cmsPath.length > 11 ? 7 : query.cmsPath.length > 13 ? 8 : 6
        const num = query.cmsPath.length + addNum
        this.getTreeList(res.datas.cmsDatas[0].datas, num, list, '\\', addNum)
        list = this.ensureTreeConsistency(list)
@@ -1035,7 +1035,7 @@
            if (data.length > 0) {
              let list = []
              // 测试 6位// 正式 5位//  测试调用传20,内部7  正式调用传17 内部传6
              const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6
              const addNum = query.cmsPath.length > 11 ? 7 : query.cmsPath.length > 13 ? 8 : 6
              const num = query.cmsPath.length + addNum
              this.getTreeList(data, num, list, '\\', addNum)
              list = this.ensureTreeConsistency(list)
packageBookService/pages/bookServices/list/index.wxss
@@ -147,7 +147,7 @@
.assort-title .title-name {
  font-size: 32rpx;
  margin-left: 32rpx;
  font-weight: 700;
  font-family: "JDLANGZHENGTI";
}
.book-list {
packageDomain/pages/resourceDetails/myVideo/index.json
@@ -1,6 +1,7 @@
{
  "component": true,
  "usingComponents": {
    "cti-video": "plugin://cti-video/cti-video",
    "t-icon": "tdesign-miniprogram/icon/icon",
    "t-tabs": "tdesign-miniprogram/tabs/tabs",
    "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
packageDomain/pages/sampleBookList/applicationForm/index.js
@@ -5,18 +5,18 @@
Page({
  data: {
    userInfo: null,
    active: 0,
    active: '0',
    description: "", //申请规则
    teacherInfo: {
      workInfo: null,
      schoolName: "",
      courseName: "",
      detailedAddress: ""
      address: ""
    },
    contactInfo: {
      fullName: "",
      user: "",
      phone: "",
      detailedAddress: ""
      address: ""
    },
    phoneError: false,
    paperBookList: [], //样书单纸质书
@@ -48,9 +48,9 @@
        that.setData({
          'teacherInfo.schoolName': JSON.parse(that.data.userInfo.data).schoolName,
          'teacherInfo.courseName': JSON.parse(that.data.userInfo.data).courseName,
          'contactInfo.fullName': JSON.parse(that.data.userInfo.data).fullName,
          'contactInfo.user': JSON.parse(that.data.userInfo.data).fullName,
          'contactInfo.phone': JSON.parse(that.data.userInfo.data).phone,
          'contactInfo.detailedAddress': JSON.parse(that.data.userInfo.data).detailedAddress,
          'contactInfo.address': JSON.parse(that.data.userInfo.data).detailedAddress,
        })
      } else {
        wx.showModal({
@@ -154,6 +154,7 @@
          'teacherInfo.workInfo': res[0].cmsTypeLinks[0].children,
        })
      }
    })
  },
  //获取当前已申请次数(电子)
@@ -187,7 +188,7 @@
  //姓名
  onFullNameInput(e) {
    this.setData({
      "contactInfo.fullName": e.detail.value,
      "contactInfo.user": e.detail.value,
    });
  },
  //输入手机号
@@ -209,13 +210,11 @@
      });
    }
  },
  onAddressInput() {
  onAddressInput(e) {
    this.setData({
      "contactInfo.detailedAddress": e.detail.value,
      "contactInfo.address": e.detail.value,
    });
  },
  submit() {
    let that = this;
    if (that.data.bookList.length > 0) {
@@ -253,7 +252,7 @@
          refType: 'applyBook'
        }
      } else {
        if (!(that.data.contactInfo.fullName && that.data.contactInfo.phone && that.data.contactInfo.detailedAddress)) {
        if (!(that.data.contactInfo.user && that.data.contactInfo.phone && that.data.contactInfo.address)) {
          wx.showToast({
            title: "请将收货人信息填写完整!",
            icon: 'none',
@@ -263,7 +262,7 @@
        }
        const mailAddress = JSON.stringify(that.data.contactInfo)
        that.setData({
          'teacherInfo.detailedAddress': mailAddress
          'teacherInfo.address': mailAddress
        })
        data = {
packageDomain/pages/sampleBookList/applicationForm/index.wxml
@@ -51,11 +51,11 @@
          </view>
        </view>
        <view class="title" wx:if="{{active =='0'}}"> 收货人情况 </view>
        <view class="receiverInfo" wx:if="{{active =='0'}}">
        <view class="receiverInfo" wx:if="{{active == '0'}}">
          <view class="item form-input-1">
            <text class="label"><text class="icon">*</text>姓名:</text>
            <view class="item-content">
              <t-input placeholder="请输入真实姓名" borderless value="{{contactInfo.fullName}}" bindchange="onFullNameInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-1" />
              <t-input placeholder="请输入真实姓名" borderless value="{{contactInfo.user}}" bindchange="onFullNameInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-1" />
            </view>
          </view>
          <view class="item form-input-2">
@@ -67,7 +67,7 @@
          <view class="item form-input-3">
            <text class="label"><text class="icon">*</text>详细地址:</text>
            <view class="item-content">
              <t-input placeholder="请输入详细地址" borderless value="{{contactInfo.detailedAddress}}" bindchange="onAddressInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-3" />
              <t-input placeholder="请输入详细地址" borderless value="{{contactInfo.address}}" bindchange="onAddressInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-3" />
            </view>
          </view>
        </view>
pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -773,4 +773,28 @@
    }
  },
  //证书查看
  onClick1() {
    this.setData({
      images: ['/static/images/certificate/cbzs.jpg'],
      showIndex: true,
      visible: true,
    })
  },
  onClick2() {
    this.setData({
      images: ['/static/images/certificate/rzzs.jpg'],
      showIndex: true,
      visible: true,
    })
  },
  onClose(e) {
    const {
      trigger
    } = e.detail;
    this.setData({
      visible: false,
    });
  }
})
pages/digitalTextbooks/digitalTextbooksDetails/index.json
@@ -8,6 +8,7 @@
    "t-empty": "tdesign-miniprogram/empty/empty",
    "suggest": "/packageBookService/pages/bookServices/detail/components/suggest/suggest",
    "t-input": "tdesign-miniprogram/input/input",
    "t-image-viewer": "tdesign-miniprogram/image-viewer/image-viewer",
    "empty": "/components/empty/index"
  }
}
pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
@@ -87,16 +87,14 @@
              </view>
              <view class="basic"> 证书信息</view>
            </view>
            <!-- <view class="certificateChart">
            <view class="chart">
              <image src="" mode="" />
            <view class="certificateChart">
              <view class="chart" bind:tap="onClick1">
                <image src="/static/images/certificate/cbzs.jpg" mode="" />
              </view>
              <view class="chart" bind:tap="onClick2">
                <image src="/static/images/certificate/rzzs.jpg" mode="" />
              </view>
            </view>
            <view class="chart">
              <image src="" mode="" />
            </view>
          </view> -->
            <view class="noDataBox">
              <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> -->
              <empty />
@@ -211,6 +209,6 @@
    </view>
  </view>
</view>
<t-image-viewer usingCustomNavbar deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:change="onChange" bind:close="onClose"></t-image-viewer>
<t-toast id="t-toast" />