Commit 464c477f62ccd65d88ef59d417c5394616c29932

Authored by 王强
1 parent 0637731f

购好物,2021.06.17 Bug清理~

src/components/dresserList/dresserList.less
... ... @@ -26,15 +26,17 @@
26 26 /*! autoprefixer: on */
27 27 text-overflow: ellipsis;
28 28 overflow: hidden;
  29 + & + .desc {
  30 + margin-top: 10px;
  31 + }
29 32 }
30 33 .desc{
31 34 max-height:63px;
32 35 color: #333333;
33 36 font-size: 28px;
34 37 font-weight: bold;
35   - margin-top: 10px;
36 38 display: -webkit-box;
37   - -webkit-line-clamp: 2;
  39 + -webkit-line-clamp: 1;
38 40 /*! autoprefixer: off */
39 41 -webkit-box-orient: vertical;
40 42 /*! autoprefixer: on */
... ...
src/components/searchCom/searchCom.vue
... ... @@ -58,6 +58,16 @@
58 58 this.$set(this.defaultSearchs, "keyword", keyword);
59 59 },
60 60  
  61 + searchInputBlur() {
  62 +
  63 + this.$nextTick(() => {
  64 +
  65 + if (typeof this.$refs === 'object' && typeof this.$refs.searchInput === 'object') {
  66 + this.$refs.searchInput.blur();
  67 + }
  68 + });
  69 + },
  70 +
61 71 /**
62 72 * 搜索
63 73 * @param {string} keyword [搜索关键字]
... ...
src/pages/mall2/mall2.vue
... ... @@ -411,7 +411,7 @@
411 411  
412 412 // 判断分享
413 413 if (typeof this.$parent.toShare === 'function') {
414   - this.$parent.toShare(38, this.$route.query.id || 1);
  414 + this.$parent.toShare(59, this.$route.query.id || 1);
415 415 }
416 416 },
417 417  
... ... @@ -461,16 +461,16 @@
461 461 // 唤起详情页
462 462 if (typeof this.$parent.getOpenApp === "function") {
463 463 this.$parent.getOpenApp({
464   - type: 38,
  464 + type: 59,
465 465 id: this.$route.query.id || 0,
466 466 url: ""
467 467 });
468 468 }
469   -
  469 +
470 470 // 分享详情页
471 471 if (typeof this.$parent.getShareData === "function") {
472 472 this.$parent.getShareData({
473   - type: 38,
  473 + type: 59,
474 474 id: this.$route.query.id || 0,
475 475 url: ""
476 476 });
... ...
src/pages/newDaren/newDaren.vue
... ... @@ -180,18 +180,6 @@ export default {
180 180 // 达人最新动态
181 181 this.getNewDynamicList();
182 182 },
183   - mounted () {
184   - // 页面显示监听
185   - document.addEventListener('visibilitychange', () => {
186   -
187   - // 页面显示出来了
188   - if (document.hidden === false) {
189   -
190   - // 刷新达人详情页信息接口
191   - this.newDarenIndex();
192   - }
193   - });
194   - },
195 183 methods: {
196 184 /**
197 185 * 达人最新动态
... ... @@ -636,6 +624,19 @@ export default {
636 624 this.$emit("updateHead");
637 625 }
638 626 }
  627 + },
  628 + mounted () {
  629 +
  630 + // 页面切换可见状态监听
  631 + document.addEventListener('visibilitychange', () => {
  632 +
  633 + // 页面显示出来了
  634 + if (document.hidden === false && this.$route.name == 'newDaren') {
  635 +
  636 + // 刷新页面
  637 + window.location.reload();
  638 + }
  639 + });
639 640 }
640 641 }
641 642 </script>
... ...
src/pages/optimization2/optimization2.vue
... ... @@ -7,7 +7,7 @@
7 7 </call-app-box>
8 8  
9 9 <!-- 后退导航 -->
10   - <back-search-box class="back-search-box" ref="backBox" v-if="!isWeChat.value && showSearch" @back="back" @toSearch="toSearch"
  10 + <back-search-box class="back-search-box" :style="{'paddingTop': (isAndroid.value ? '0px' : ($parent.top.value) + 'px')}" ref="backBox" v-if="!isWeChat.value && showSearch" @back="back" @toSearch="toSearch"
11 11 :backs="backs">
12 12 </back-search-box>
13 13  
... ... @@ -17,7 +17,7 @@
17 17 </back-box> -->
18 18  
19 19 <!-- pl -->
20   - <div class="pl" :class="{'is-cnlive': !isWeChat.value, 'is-open-app': $parent.isOpenApp.value}" v-if="showSearch"></div>
  20 + <div class="pl" :class="{'is-cnlive': !isWeChat.value, 'is-open-app': $parent.isOpenApp.value}" :style="{'paddingTop': (isAndroid.value ? '0px' : ($parent.top.value) + 'px')}" v-if="showSearch"></div>
21 21  
22 22 <!-- 主区域 -->
23 23 <div class="main-box">
... ...
src/pages/recommendMore/recommendMore.vue
... ... @@ -11,15 +11,13 @@
11 11  
12 12 <!-- 已关注达人列表 -->
13 13 <div class="item_box">
14   - <div
15   - infinite-scroll-immediate-check="true"
16   - v-infinite-scroll="recommendMore"
17   - infinite-scroll-disabled="loading"
  14 + <div infinite-scroll-immediate-check="true" v-infinite-scroll="recommendMore" infinite-scroll-disabled="loading"
18 15 :infinite-scroll-distance="50">
19   - <!-- 达人列表组件 -->
20   - <dresserList @fansShop="fansShop" @toDetail="toDetail"
21   - :dresserList="list">
22   - </dresserList>
  16 +
  17 + <!-- 达人列表组件 -->
  18 + <dresserList @fansShop="fansShop" @toDetail="toDetail"
  19 + :dresserList="list">
  20 + </dresserList>
23 21 </div>
24 22 </div>
25 23 <!-- </van-pull-refresh> -->
... ...
src/pages/search/search.vue
... ... @@ -386,6 +386,16 @@
386 386  
387 387 /* 获取全局搜索数据 结束 */
388 388  
  389 + // 使输入框失去焦点,收起软键盘
  390 + this.$nextTick(() => {
  391 +
  392 + // 判断搜索input失去焦点函数是否存在,如果存在,调用使其失去焦点
  393 + if (typeof this.$refs.searchCom === 'object' && typeof this.$refs.searchCom.searchInputBlur === 'function') {
  394 +
  395 + // 搜索输入框失去焦点
  396 + this.$refs.searchCom.searchInputBlur();
  397 + }
  398 + });
389 399 } else if (res.code == 400) {
390 400  
391 401 // 搜索失败
... ...