闫增涛
2024-03-26 1cad6ba03f8cb848352c6739c54395128e73485f
资源购买页布局调整
4个文件已修改
36 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/buyResource/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.wxml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.wxss 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -148,6 +148,7 @@
                loading: false,
                openLearnids: result
              })
              console.log('教学资源', list);
            }
          } else {
            // 无数据
packageBookService/pages/bookServices/detail/buyResource/index.json
@@ -2,7 +2,8 @@
  "usingComponents": {
    "t-icon": "tdesign-miniprogram/icon/icon",
    "tree": "/packageBookService/pages/bookServices/detail/components/tree/index",
    "t-loading": "tdesign-miniprogram/loading/loading"
    "t-loading": "tdesign-miniprogram/loading/loading",
    "t-button": "tdesign-miniprogram/button/button"
  },
  "navigationStyle": "custom"
}
packageBookService/pages/bookServices/detail/buyResource/index.wxml
@@ -31,3 +31,7 @@
<view class="noData" wx:if="{{loading}}">
  <t-loading size="60rpx" loading="{{loading}}" />
</view>
<view class="page-bottom">
  <t-button theme="primary" size="large" class="btn-buy">批量购买</t-button>
</view>
packageBookService/pages/bookServices/detail/buyResource/index.wxss
@@ -15,6 +15,11 @@
  font-weight: bold;
}
.buy-resource {
  overflow-y: auto;
  height: calc(100vh - env(safe-area-inset-bottom) - 140px);
}
.flex {
  display: flex;
}
@@ -31,3 +36,26 @@
  align-items: center;
  --td-loading-color: #ff6c00;
}
.page-bottom {
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  width: 100%;
  height: 100rpx;
  display: flex;
  justify-content: center;
}
.page-bottom {
  --td-button-primary-bg-color: #ff6c00;
  --td-button-primary-border-color: #ff6c00;
  --td-button-primary-active-bg-color: #ff984d;
  --td-button-primary-active-border-color: #ff984d;
  --td-button-border-radius: 60rpx;
}
.btn-buy {
  width: 86vw;
}