From 1cad6ba03f8cb848352c6739c54395128e73485f Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 26 三月 2024 16:00:53 +0800 Subject: [PATCH] 资源购买页布局调整 --- packageBookService/pages/bookServices/detail/buyResource/index.js | 1 + packageBookService/pages/bookServices/detail/buyResource/index.wxml | 4 ++++ packageBookService/pages/bookServices/detail/buyResource/index.wxss | 28 ++++++++++++++++++++++++++++ packageBookService/pages/bookServices/detail/buyResource/index.json | 3 ++- 4 files changed, 35 insertions(+), 1 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.js b/packageBookService/pages/bookServices/detail/buyResource/index.js index bace5c3..bc7e7eb 100644 --- a/packageBookService/pages/bookServices/detail/buyResource/index.js +++ b/packageBookService/pages/bookServices/detail/buyResource/index.js @@ -148,6 +148,7 @@ loading: false, openLearnids: result }) + console.log('鏁欏璧勬簮', list); } } else { // 鏃犳暟鎹� diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.json b/packageBookService/pages/bookServices/detail/buyResource/index.json index dcaf1f1..17a46f1 100644 --- a/packageBookService/pages/bookServices/detail/buyResource/index.json +++ b/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" } \ No newline at end of file diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.wxml b/packageBookService/pages/bookServices/detail/buyResource/index.wxml index 2b2ecbd..f446002 100644 --- a/packageBookService/pages/bookServices/detail/buyResource/index.wxml +++ b/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> diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.wxss b/packageBookService/pages/bookServices/detail/buyResource/index.wxss index af2f4f2..322bde1 100644 --- a/packageBookService/pages/bookServices/detail/buyResource/index.wxss +++ b/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; } @@ -30,4 +35,27 @@ justify-content: center; 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; } \ No newline at end of file -- Gitblit v1.9.1