hookehuyr

爱心助力模块显示文字调整

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-21 09:35:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-07-12 14:35:22
* @LastEditTime: 2022-07-26 13:09:53
* @FilePath: /tswj/src/views/client/bookDetail.vue
* @Description:
-->
......@@ -102,7 +102,7 @@
<my-button type="plain" @on-click="uploadVideo">上传作品</my-button>
</div>
<div class="button">
<my-button type="primary" @on-click="showDonate=true">爱心助力</my-button>
<my-button type="primary" @on-click="showDonate=true">为活动助力</my-button>
</div>
</div>
<shortcut-fixed :type="USER_ROLE.CLIENT" :item="['home', 'me']" :custom-style="customStyle" />
......@@ -153,7 +153,7 @@ const onClickLocalism = () => {
customBarStyle.value.zIndex = 0
}
const customStyle = ref({
bottom: '8rem'
bottom: '10rem'
})
const donateInfo = ref({})
......@@ -196,7 +196,7 @@ window.onscroll = function () {
const height2 = scrollTop + windowHeight - 1; // 手机上微信高度少了1px
if (parseInt(height1) === scrollHeight || parseInt(height2) === scrollHeight){
// console.warn("距顶部"+scrollTop+"可视区高度"+windowHeight+"滚动条总高度"+scrollHeight);
customStyle.value.bottom = '35%'
customStyle.value.bottom = '40%'
} else {
customStyle.value.bottom = '8rem'
}
......@@ -226,7 +226,7 @@ const onSubscribe = async () => {
const showDonate = ref(false);
/*******************************************/
// 校验用户状态判断条件
// 校验用户状态判断条件
const userStatusPass = status => status === USER_STATUS.PASS
const userStatusNoPass = status => status !== USER_STATUS.PASS
const userStatusNonVerified = status => status === USER_STATUS.NON_VERIFIED
......
......@@ -48,7 +48,7 @@
<van-empty v-if="emptyStatus" class="custom-image" :image="no_image" description="暂无书籍信息" />
</div>
<div style="height: 5rem" />
<donate-bar :kg-id="kg_id">爱心助力</donate-bar>
<donate-bar :kg-id="kg_id">为幼儿园助力</donate-bar>
<shortcut-fixed :type="USER_ROLE.CLIENT" :item="shortcutItem" :custom-style="customStyle" />
</div>
</template>
......