Commit a7b0d453 authored by 786817560's avatar 786817560

Merge branch 'ren' into develop

parents e6ef6cb4 08d28f93
### dom操作,一次性插入100个节点,和我分100次插入1个节点,哪个性能更高?
**答案**: 一次性插入100个节点性能更好。
**理解**:一次性插入100个,只对dom节点进行了一次操作,而分100次插入则操作了100次dom节点。插入节点时dom树每次会重新计算,生成新的dom树,渲染树也会跟着改变。浏览器会使渲染树中受影响的部分失效,重新绘制,因此也会进行100次重绘。影响性能。(也不知是影响cpu? Gpu? 还是浏览器--)。
### 问题
- ssr从服务器返回字符串,进行HTML渲染,是怎么返回的?以何种方式返回的?
- js解析主线程跟GUI渲染线程存在优先级吗?
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip 融资试算 * @Descrip 融资试算
* @Author: your name * @Author: your name
* @Date: 2019-09-29 17:09:49 * @Date: 2019-09-29 17:09:49
* @LastEditTime: 2019-12-06 11:33:14 * @LastEditTime: 2019-12-06 15:14:53
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -95,6 +95,7 @@ export default { ...@@ -95,6 +95,7 @@ export default {
vm.$refs.scroll.scrollToTop() vm.$refs.scroll.scrollToTop()
vm.$refs.scroll.update(false) vm.$refs.scroll.update(false)
if (from.name === 'ProDetailed') { if (from.name === 'ProDetailed') {
vm.lists = []
vm.price_date_to = vm.$route.params.price_date_to // 有效日期 vm.price_date_to = vm.$route.params.price_date_to // 有效日期
vm.plan_price = vm.$route.params.plan_price // 参考价 vm.plan_price = vm.$route.params.plan_price // 参考价
vm.division = vm.$route.params.division vm.division = vm.$route.params.division
...@@ -137,6 +138,7 @@ export default { ...@@ -137,6 +138,7 @@ export default {
searchInput: vm.searchInput, searchInput: vm.searchInput,
pagenum: vm.pagenum, pagenum: vm.pagenum,
division: vm.division, // 收藏到试算通过产品线查询 division: vm.division, // 收藏到试算通过产品线查询
bp_id: vm.$route.params.bp_id,
} }
vm.hlsPopup.showLoading('数据加载中') vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
......
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
<div slot="center" class="top-word">消息通知</div> <div slot="center" class="top-word">消息通知</div>
</h-header> </h-header>
<!-- <h-content class="content"> --> <!-- <h-content class="content"> -->
<div v-if="list.length===0" class="null">
<div class="display">
<img src="@/assets/contractRepayment/null.png" alt="">
<p>暂时没有还款记录</p>
<div @click="$routeGo()">返回</div>
</div>
</div>
<scroll <scroll
ref="scroll" :updateData="[list]" :pullUp="true" class="has-header" ref="scroll" :updateData="[list]" :pullUp="true" class="has-header"
@pullingUp="getInfo"> @pullingUp="getInfo">
...@@ -52,7 +59,8 @@ ...@@ -52,7 +59,8 @@
</item-option> </item-option>
</section> </section>
<!-- </h-content> --> <!-- </h-content> -->
</scroll></h-view> </scroll>
</h-view>
</template> </template>
<script> <script>
export default { export default {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-11-07 17:48:53 * @Date: 2019-11-07 17:48:53
* @LastEditTime: 2019-11-28 15:32:52 * @LastEditTime: 2019-12-07 18:21:48
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<img slot="left-icon" src="@/assets/myInfo/myRefund.png" class="left-icon" > <img slot="left-icon" src="@/assets/myInfo/myRefund.png" class="left-icon" >
<div slot="name">我的还款</div> <div slot="name">我的还款</div>
</item> </item>
<!-- <item @click.native="changeDrawbackList"> <!-- <item @click.native="changeDrawbackList">
<img slot="left-icon" src="@/assets/myInfo/repay.png" class="left-icon" > <img slot="left-icon" src="@/assets/myInfo/repay.png" class="left-icon" >
<div slot="name">业务退款</div> <div slot="name">业务退款</div>
</item>--> </item>-->
...@@ -252,8 +252,8 @@ export default { ...@@ -252,8 +252,8 @@ export default {
}, },
activated () {}, activated () {},
methods: { methods: {
openTest(){ openTest () {
cordova.InAppBrowser.open('http://www.baidu.com', '_blank', 'location=yes'); cordova.InAppBrowser.open('http://www.baidu.com', '_blank', 'location=yes')
}, },
// 查询头像 // 查询头像
getHead () { getHead () {
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
<p v-if="item.interview_status ==='待面签'" class="to-unSign" @click="toSign"> <p v-if="item.interview_status ==='待面签'" class="to-unSign" @click="toSign">
<img src="@/assets/videoSign/unSign.png" >&nbsp;视频面签 <img src="@/assets/videoSign/unSign.png" >&nbsp;视频面签
</p> </p>
<p v-if="item.interview_status ==='RESERVED'" class="to-unSign" @click="toSign">
<img src="@/assets/videoSign/unSign.png" >&nbsp;视频回放
</p>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -150,7 +153,7 @@ export default { ...@@ -150,7 +153,7 @@ export default {
}, },
}) })
}, },
/*toSign2 () { /* toSign2 () {
let vm = this let vm = this
var sendStr = 'xcmg' var sendStr = 'xcmg'
hls.cordova.cloudroom.CloudRoomService.loginCloudRoom(sendStr, function (data) { hls.cordova.cloudroom.CloudRoomService.loginCloudRoom(sendStr, function (data) {
...@@ -159,7 +162,7 @@ export default { ...@@ -159,7 +162,7 @@ export default {
function (fail) { function (fail) {
hlsPopup.showLongCenter('登录失败') hlsPopup.showLongCenter('登录失败')
}) })
},*/ }, */
entrySign () { entrySign () {
var sendStr = 'xcmg' var sendStr = 'xcmg'
hlsPopup.showConfirm({ hlsPopup.showConfirm({
...@@ -179,7 +182,7 @@ export default { ...@@ -179,7 +182,7 @@ export default {
}, },
}) })
}, },
/* entrySign2 () { /* entrySign2 () {
var sendStr = 'xcmg' var sendStr = 'xcmg'
hls.cordova.cloudroom.CloudRoomService.helpYourSelf(sendStr, function (data) { hls.cordova.cloudroom.CloudRoomService.helpYourSelf(sendStr, function (data) {
...@@ -187,7 +190,7 @@ export default { ...@@ -187,7 +190,7 @@ export default {
function (fail) { function (fail) {
hlsPopup.showLongCenter('进入会话失败') hlsPopup.showLongCenter('进入会话失败')
}) })
},*/ }, */
toWatch () { toWatch () {
hlsPopup.showLongCenter('敬请期待') hlsPopup.showLongCenter('敬请期待')
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment