<noframes id="bhrfl"><address id="bhrfl"></address>

    <address id="bhrfl"></address>

    <noframes id="bhrfl"><address id="bhrfl"><th id="bhrfl"></th></address>

    <form id="bhrfl"><th id="bhrfl"><progress id="bhrfl"></progress></th></form>

    <em id="bhrfl"><span id="bhrfl"></span></em>

    全部
    常見問題
    產品動態
    精選推薦

    3.0專題頁搜索組件適配以及相關問題修改

    管理 管理 編輯 刪除

    路徑:/pages/annex/special/index.vue

    復制:

    <!-- 輪播搜索 -->

    <homeComb v-if="showHomeComb" :dataConfig="homeCombData" @bindSortId="bindSortId" :isScrolled="isScrolled" :special='1'></homeComb>

    <!-- 頂部搜索框 -->

    <headerSerch v-if="isHeaderSerch" :dataConfig="headerSerchCombData" :special='1'></headerSerch>

    <tabNav v-if="showCateNav" :dataConfig="cateNavData" @bindHeight="bindHeighta"

    @bindSortId="bindSortId" :special='1' :isFixed="isFixed && !cateNavData.stickyConfig.tabVal"></tabNav>

    9b0bc202406201203521088.png

    復制:

    <promotionList v-if="item.name == 'promotionList'" :dataConfig="item"

    :productVideoStatus='product_video_status' :positionTop="positionTop">

    </promotionList>

    0f270202406201209308058.png

    復制:

    isFixed: false,

    isHeaderSerch: false,

    showHomeComb: false,

    showCateNav: false,

    homeCombData:{},

    headerSerchCombData:{},

    cateNavData:{},

    domOffsetTop: 50,

    positionTop: 0,

    74cce202406201211115014.png

    復制:

    getMicroPage(id, type) {

    let that = this;

    that.styleConfig = []

    uni.showLoading({

    title: '加載中...'

    });

    getDiy(id).then(res => {

    uni.hideLoading();

    let data = res.data;

    let diyArr = that.objToArr(res.data.value);

    diyArr = diyArr.filter(item => !item.isHide);

    diyArr.forEach((item,index) => {

     if(['headerSerch','homeComb'].includes(item.name)){

       diyArr.splice(index, 1);

     }

    });

    this.styleConfig = diyArr;

    }).catch(err => {

    return that.$util.Tips({

    title: err

    });

    uni.hideLoading();

    });

    },

    ccbb8202406201216422782.png

    復制:

    setDiyData(data) {

    if (data.length == 0) {

    return this.$util.Tips({

    title: '暫無數據'

    }, {

    tab: 3

    })

    }


    if (data.is_bg_color) {

    this.bgColor = data.color_picker

    }

    if (data.is_bg_pic) {

    this.bgPic = data.bg_pic

    this.bgTabVal = data.bg_tab_val

    }

    this.pageShow = data.is_show

    uni.setNavigationBarTitle({

    title: data.title

    })

    let temp = []

    let lastArr = this.objToArr(data.value)

    lastArr.forEach((item, index, arr) => {

    if (item.name === 'homeComb' && !item.isHide) {

    this.showHomeComb = true;

    this.homeCombData = item;

    if (item.searchConfig.tabVal) {

    this.positionTop = 43

    }

    }

    if (item.name == 'headerSerch' && !item.isHide) {

    this.isHeaderSerch = true;

    this.headerSerchCombData = item;

    }

    if (item.name == 'tabNav' && !item.isHide) {

    this.showCateNav = true;

    this.cateNavData = item;

    }

    if (!item.isHide) {

    temp.push(item);

    }

    });

    this.styleConfig = temp;

    },

    d03f5202406201219552707.png

    復制:

    onPageScroll(e) {

    if (this.isHeaderSerch) {

    if (e.scrollTop > this.domOffsetTop) {

    this.isFixed = true;

    }

    if (e.scrollTop < this.domOffsetTop) {

    this.$nextTick(() => {

    this.isFixed = false;

    });

    }

    } else {

    this.isFixed = false

    }

    if (e.scrollTop > 10) {

    this.isScrolled = true;

    } else {

    this.isScrolled = false;

    }

    uni.$emit('scroll');

    uni.$emit('onPageScroll', e.scrollTop);

    },

    2e273202406201437552661.png

    鏈接:/pages/index/components/headerSerch.vue

    復制:

    <view class="mp-header" :class="special?'on':''" :style="[headerStyle, { paddingRight: (!special?serchRight:0) + 'px' }]">

    <view class="sys-head" :style="{ height: statusBarHeight + 'px'}" v-if="!special"></view>

    <view :style="'height:'+(statusBarHeight+serchHeight)+'px;'" v-if="!special"></view>

    special: {

    type: Number,

    default: 0

    }

    ce898202406201443026777.png

    復制:

    &.on{

    position: unset;

    }

    5bba9202406201444321593.png

    鏈接:/pages/index/components/homeComb.vue

    復制:

    v-if="!special"

    :class="special?'on':''"

    v-if="searchBox == 2 && dataConfig.logoConfig.url"

    :style="[index===tabClick?classColor:'']"

    6f883202406201451142235.png

    復制:

    &.on{

    padding: 0 30rpx;

    }

    bc2d9202406201452367543.png

    復制:

    on: isFixed && special

    special: {

    type: Number,

    default: 0

    }

    cf147202406201455328066.png

    復制:

    &.on{

    top:0

    }

    9355e202406201456217879.png


    請登錄后查看

    小小 最后編輯于2024-06-20 14:58:25

    快捷回復
    回復
    回復
    回復({{post_count}}) {{!is_user ? '我的回復' :'全部回復'}}
    排序 默認正序 回復倒序 點贊倒序

    {{item.user_info.nickname ? item.user_info.nickname : item.user_name}} LV.{{ item.user_info.bbs_level }}

    作者 管理員 企業

    {{item.floor}}# 同步到gitee 已同步到gitee {{item.is_suggest == 1? '取消推薦': '推薦'}}
    {{item.is_suggest == 1? '取消推薦': '推薦'}}
    沙發 板凳 地板 {{item.floor}}#
    {{item.user_info.title || '暫無簡介'}}
    附件

    {{itemf.name}}

    {{item.created_at}}  {{item.ip_address}}
    {{item.like_count}}
    {{item.showReply ? '取消回復' : '回復'}}
    刪除
    回復
    回復

    {{itemc.user_info.nickname}}

    {{itemc.user_name}}

    回復 {{itemc.comment_user_info.nickname}}

    附件

    {{itemf.name}}

    {{itemc.created_at}}
    {{itemc.like_count}}
    {{itemc.showReply ? '取消回復' : '回復'}}
    刪除
    回復
    回復
    查看更多
    1822
    {{like_count}}
    {{collect_count}}
    添加回復 ({{post_count}})

    相關推薦

    快速安全登錄

    使用微信掃碼登錄
    {{item.label}} 加精
    {{item.label}} {{item.label}} 板塊推薦 常見問題 產品動態 精選推薦 首頁頭條 首頁動態 首頁推薦
    取 消 確 定
    回復
    回復
    問題:
    問題自動獲取的帖子內容,不準確時需要手動修改. [獲取答案]
    答案:
    提交
    bug 需求 取 消 確 定

    微信登錄/注冊

    切換手機號登錄

    {{ bind_phone ? '綁定手機' : '手機登錄'}}

    {{codeText}}
    切換微信登錄/注冊
    暫不綁定
    亚洲欧美字幕
    CRMEB客服

    CRMEB咨詢熱線 咨詢熱線

    400-8888-794

    微信掃碼咨詢

    CRMEB開源商城下載 源碼下載 CRMEB幫助文檔 幫助文檔
    返回頂部 返回頂部
    CRMEB客服