feature: 开门红首页业绩/机构排名

1. 动态改变页面高度增加参数, 增加宽度和表格是否展示更多
This commit is contained in:
mengxiaolong
2020-11-23 17:50:10 +08:00
parent b403b64559
commit cf68e80e51

View File

@@ -88,7 +88,10 @@
<td>{{ org.bzbf | blankFilter }}</td>
</tr>
<tr v-if="performanceData.length === 0">
<td :colspan="theads.length" style="text-align: left; padding-left: 22%;">暂无数据</td>
<td :colspan="theads.length" style="text-align: left; padding-left: 25%;">
<span v-if="isTableDataLoad">暂无数据</span>
<van-loading v-if="!isTableDataLoad" type="spinner" />
</td>
</tr>
</template>
</table>
@@ -122,15 +125,20 @@
</template>
<script>
import { Loading } from 'vant'
import performance from '@/assets/images/goodStart/performanceIcon.png'
import product from '@/assets/images/goodStart/product.png'
import { getAgentInfo } from '@/api/ebiz/my/my'
import { getCongratulationList } from '@/api/ebiz/congratulation/congratulation.js'
import dateUtil from '@/assets/js/utils/date-utils.js'
export default {
components: {
[Loading.name]: Loading
},
data() {
return {
idMoreDataShow: false,
isTableDataLoad: false,
performance,
product,
isGoodStart: true,
@@ -163,6 +171,17 @@ export default {
} else {
this.performanceData = data.content.list
}
this.$nextTick(() => {
const width = this.$refs.product.offsetWidth
const height = this.$refs.product.offsetHeight
console.log('after width: ', width)
console.log('after height: ', height)
window.EWebBridge.webCallAppInJs('updateWebHeight', {
width,
height,
isLoadMore: this.isLoadMore
})
})
},
async getAgentInfo() {
const result = await getAgentInfo({})
@@ -173,10 +192,14 @@ export default {
showMore() {
this.idMoreDataShow = !this.idMoreDataShow
this.$nextTick(() => {
const width = this.$refs.product.offsetWidth
const height = this.$refs.product.offsetHeight
console.log('after: ', height)
console.log('after width: ', width)
console.log('after height: ', height)
window.EWebBridge.webCallAppInJs('updateWebHeight', {
height
width,
height,
isLoadMore: this.isLoadMore
})
})
},