细节优化
parent
a56c664463
commit
caa23b301f
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<scroll-view :scroll-y="true" class="scroll-box" lower-threshold="60">
|
||||
<scroll-view :scroll-y="true" :class="'scroll-box-ece-nav '+((data_base || null) != null && (data_base.signin_desc || null) != null && data_base.signin_desc.length > 0 ? 'top-notice' : '')" lower-threshold="60">
|
||||
<view class="data-list" :class="(data_base || null) != null && (data_base.is_team || 0) == 1 ? 'page-bottom-fixed' : ''">
|
||||
<view v-if="data_list.length > 0" class="data-list padding-horizontal-main padding-top-main">
|
||||
<view v-for="(item, index) in data_list" :key="index" class="item padding-main border-radius-main oh bg-white spacing-mb">
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
<block v-for="(fv, fi) in content_list" :key="fi">
|
||||
<view class="single-text margin-top-xs">
|
||||
<text class="cr-grey-9 margin-right-xl">{{ fv.name }}:</text>
|
||||
<text class="fw-b">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="fw-b">{{ fv.unit }}</text>
|
||||
<text class="cr-base">{{ item[fv.field] }}</text>
|
||||
<text v-if="(fv.unit || null) != null" class="cr-grey">{{ fv.unit }}</text>
|
||||
</view>
|
||||
</block>
|
||||
</navigator>
|
||||
|
|
@ -248,8 +248,8 @@
|
|||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.scroll-box {
|
||||
height: calc(100vh - 144rpx);
|
||||
.scroll-box-ece-nav.top-notice {
|
||||
height: calc(100vh - 154rpx);
|
||||
}
|
||||
.user-team-container button {
|
||||
height: 88rpx;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<scroll-view :scroll-y="true" class="scroll-box" lower-threshold="60">
|
||||
<scroll-view :scroll-y="true" :class="'scroll-box-ece-nav '+((data_base || null) != null && (data_base.signin_desc || null) != null && data_base.signin_desc.length > 0 ? 'top-notice' : '')" lower-threshold="60">
|
||||
<view class="data-list">
|
||||
<view v-if="data_list.length > 0" class="data-list padding-horizontal-main padding-top-main">
|
||||
<view v-for="(item, index) in data_list" :key="index" class="item padding-main border-radius-main oh bg-white spacing-mb">
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
propScrollLower: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -48,7 +48,8 @@
|
|||
data_page: 1,
|
||||
data_list_loding_status: 1,
|
||||
data_bottom_line_status: false,
|
||||
data_is_loading: 0,
|
||||
data_is_loading: 0,
|
||||
data_base: null,
|
||||
content_list: [
|
||||
{ name: '奖励积分', field: 'integral' },
|
||||
{ name: '签到时间', field: 'add_time' },
|
||||
|
|
@ -151,7 +152,8 @@
|
|||
temp_data_list.push(temp_data[i]);
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
this.setData({
|
||||
data_base: res.data.data.base || null,
|
||||
data_list: temp_data_list,
|
||||
data_total: res.data.data.total,
|
||||
data_page_total: res.data.data.page_total,
|
||||
|
|
@ -196,8 +198,8 @@
|
|||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.scroll-box {
|
||||
height: calc(100vh - 144rpx);
|
||||
<style scoped>
|
||||
.scroll-box-ece-nav.top-notice {
|
||||
height: calc(100vh - 154rpx);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
<uni-notice-bar class="padding-0 margin-0" show-icon scrollable :text="data_base.invoice_desc.join('')" background-color="transparent" color="#666" />
|
||||
</view>
|
||||
<!-- 导航 -->
|
||||
<view class="nav-base bg-white flex-row jc-sa align-c">
|
||||
<view v-if="nav_status_list.length > 0" class="nav-base bg-white flex-row jc-sa align-c">
|
||||
<block v-for="(item, index) in nav_status_list" :key="index">
|
||||
<view :class="'item tc cr-grey ' + (nav_status_index == index ? 'cr-main nav-active-line' : '')" :data-index="index" @tap="nav_event">{{ item.name }}</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 列表 -->
|
||||
<scroll-view :scroll-y="true" :class="'scroll-box-ece-nav '+((data_base || null) != null && (data_base.invoice_desc || null) != null && data_base.invoice_desc.length > 0 ? 'top-notice' : '') " @scrolltolower="scroll_lower" lower-threshold="60">
|
||||
<scroll-view :scroll-y="true" :class="'scroll-box-ece-nav '+((data_base || null) != null && (data_base.invoice_desc || null) != null && data_base.invoice_desc.length > 0 ? 'top-notice' : '')" @scrolltolower="scroll_lower" lower-threshold="60">
|
||||
<view class="page-bottom-fixed">
|
||||
<view v-if="data_list.length > 0" class="data-list padding-horizontal-main padding-top-main">
|
||||
<view v-for="(item, index) in data_list" :key="index" class="item padding-main border-radius-main oh bg-white spacing-mb">
|
||||
|
|
|
|||
|
|
@ -114,7 +114,8 @@ export default {
|
|||
{ name: "受邀人奖励", value: (data.data.reward_invitee || 0) + " 积分" },
|
||||
{ name: "联系人姓名", value: data.data.name || "" },
|
||||
{ name: "联系人电话", value: data.data.tel || "" },
|
||||
{ name: "联系人地址", value: data.data.address || "" },
|
||||
{ name: "联系人地址", value: data.data.address || "" },
|
||||
{ name: "备注", value: data.data.note || "" },
|
||||
{ name: "创建时间", value: data.data.add_time || "" },
|
||||
{ name: "更新时间", value: data.data.upd_time || "" },
|
||||
],
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
<!-- 明细 -->
|
||||
<view class="nav-detail margin-bottom-lg">
|
||||
<view v-if="current === 0">
|
||||
<component-user-signin :prop-pull-down-refresh="propPullDownRefresh" :prop-scroll-lower="scroll_lower_bool"></component-user-signin>
|
||||
<component-user-signin :propPullDownRefresh="propPullDownRefresh" :propScrollLower="scroll_lower_bool"></component-user-signin>
|
||||
</view>
|
||||
<view v-if="current === 1">
|
||||
<component-user-qrcode :prop-pull-down-refresh="propPullDownRefresh" :prop-scroll-lower="scroll_lower_bool"></component-user-qrcode>
|
||||
<component-user-qrcode :propPullDownRefresh="propPullDownRefresh" :propScrollLower="scroll_lower_bool"></component-user-qrcode>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
Loading…
Reference in New Issue