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