zhaojs
2023-06-05 ce465402f794b96d8ec735be0fe9f4069ee8df7b
no message
已修改2个文件
74 ■■■■■ 文件已修改
uniapp/components/indexPage.vue 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/index/index.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/components/indexPage.vue
@@ -60,16 +60,15 @@
                        </view> -->
                        <!--快捷入口图标-->
                        <view class="c-loading-img rowCenCen">
                            <view class="imgbox defIcon" v-for="(eitem,index) in fastenter" :key="index" @click="goFUrl(eitem)">
                                <image :src="eitem.img"></image>
                            <view class="imgbox defIcon" v-for="(eitem,index) in fastenter" :key="index" @click="goUrl(eitem)">
                                <image :src="eitem.image"></image>
                            </view>
                        </view>
                        <!--左轮播,右两行-->
                        <view class="centerflex f_contant">
                            <view class="f_centerSwiper-container swiper-box swiper-item f_left">
                                <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular>
                                    <swiper-item v-for="(items,index) in singleLineList" :key='index'>
                                    <swiper-item v-for="(items,index) in popBannerSList" :key='index'>
                                        <view class="swiper-item defIcon" @click="goUrl(items)">
                                            <image :src="items.image" mode="aspectFit"></image>
                                        </view>
@@ -77,11 +76,11 @@
                                </swiper>
                            </view>
                            <view class="f_right">
                                <view class="f_imgcon">
                                    <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/%E6%9C%80%E9%AB%9823888%E5%85%83-1054%20330.jpg"></image>
                                <view class="f_imgcon" v-if='enterTop.length>0' >
                                    <image :src="enterTop[0].image"  @click="goUrl(enterTop[0])"></image>
                                </view>
                                <view class="f_imgcon">
                                    <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/%E6%9C%80%E9%AB%9823888%E5%85%83-1054%20330.jpg"></image>
                                <view class="f_imgcon" v-if='enterDown.length>0'>
                                    <image :src="enterDown[0].image"  @click="goUrl(enterDown[0])"></image>
                                </view>
                            </view>
                        </view>
@@ -491,27 +490,14 @@
                triggeredstate: true,
                swpidx: 0,
                canrefresh: true,
                fastenter:[
                    {
                        img:'http://hxshapp.oss-cn-beijing.aliyuncs.com/20211129/cc9b73c5-760c-4f06-adaf-77ce6e8c79ba.png',
                        url:''
                    },
                    {
                        img:'http://hxshapp.oss-cn-beijing.aliyuncs.com/20211129/cc9b73c5-760c-4f06-adaf-77ce6e8c79ba.png',
                        url:''
                    },
                    {
                        img:'http://hxshapp.oss-cn-beijing.aliyuncs.com/20211129/cc9b73c5-760c-4f06-adaf-77ce6e8c79ba.png',
                        url:''
                    },
                    {
                        img:'http://hxshapp.oss-cn-beijing.aliyuncs.com/20211129/cc9b73c5-760c-4f06-adaf-77ce6e8c79ba.png',
                        url:''
                    }
                ],
                fastenter:[],
                popBannerSList:[],
                enterTop:[],
                enterDown:[]
            }
        },
        watch: {
            recomendType(nval, oval){
                if(nval != oval)this.changeRecommend()
            },
@@ -633,12 +619,12 @@
            onAbort() {
                console.log('refushstop');
            },
            getBannerInfo() {
                // banner数据
                var that = this;
                this.$u.api.getBanner({
                    type: '1,3,4,5'
                    type: '1,3,4,5,11,12,13,14'
                }).then(e => {
                    console.log(e)
                    if (e.code == 1) return that.$alert(e.msg);
@@ -648,6 +634,10 @@
                    this.singleLineList = res.singleLineList;
                    this.doubleLineList = res.doubleLineList;
                    this.bottomBannerList = res.bottomBannerList;
                    this.fastenter=res.indexbanner;
                    this.popBannerSList=res.popBannerSList;
                    this.enterTop=res.enterTop;
                    this.enterDown=res.enterDown;
                    setTimeout(() => {
                        this.triggeredstate = false;
                        this._freshing = false;
@@ -663,7 +653,6 @@
                })
            },
            
            godydetails(itm) {
                const info = {}
                info.nowInfo = itm
@@ -897,18 +886,20 @@
                }
            }
    }
    .c-loading-img {
             width: 96%;
            height: 72px;
            height: 132rpx;
            background: #fff;
            margin: auto;
            margin-top: 20rpx;
            border-radius: 12rpx;
            justify-content:space-between;
            padding:5rpx;
            
        .imgbox {
            width: 138rpx;
            height: 106rpx;
            width: 158rpx;
            height: 105rpx;
            // max-height: 72rpx;
        }
    }
uniapp/pages/index/index.vue
@@ -11,6 +11,9 @@
                        <view>输入商品名或粘贴宝贝标题搜索</view>
                    </view>
                </view>
                <view class="rightgoMsg rowCenCen iconfont searchImg" @click="goPath('turnChain')">
                    <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/zhuanlian.png"></image>
                </view>
                <view class="rightgoMsg rowCenCen iconfont" @click="goPath('officialNotice')">
                    <view>&#xe6e9;</view>
                    <u-badge v-show="isNewMessage" :is-dot="true" type="success"></u-badge>
@@ -266,6 +269,12 @@
                        url: './officialNotice'
                    })
                }
                else if(url=='turnChain')
                {
                    uni.navigateTo({
                        url: '../mine/tools/turnChain'
                    })
                }
            },
            gobanurl(info) {
@@ -364,7 +373,7 @@
                z-index: 100;
                .leftgoSearchbox {
                    width: 615rpx;
                    width: 575rpx;
                    height: 70rpx;
                    background-color: #FFFFFF;
                    border: 1rpx solid #EDEDED;
@@ -394,6 +403,14 @@
                    color: #FFFFFF;
                }
            }
            .searchImg{
                image{
                    width: 40rpx;
                    height: 40rpx;
                    font-size: 50rpx;
                    color: #FFFFFF;
                }
            }
            .categoryNavbar-container {
                width: 100%;