123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676 |
- <template>
- <view class="rf-category" style="position: relative;">
- <!--搜索导航栏-->
- <view class="icoStyle">
- <view class="leftArrow" @tap="back">
- <u-icon name="arrow-left" color="#fff" size="36"></u-icon>
- </view>
- <view style="width:90%;height:99upx">
- <rf-search-bar @search="navToSearch" icon="iconkuaijiecaidan" />
- </view>
- </view>
- <!-- 可滑动标签 开始-->
- <!-- <view class="wrap">
- <view style="background-color: #fff;margin-top: 140upx;width: 100%;font-size: 24upx;">
- <u-tabs-swiper activeColor="rgb(24, 144, 255)" bar-width="130" ref="tabs" :list="tabList" :current="current" @change="change" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
- </view>
- <swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
- <swiper-item class="swiper-item">
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
- <view style="width: 100%;height: 595upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="float: left;font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- 推荐
- </text>
- <view style="float: right;font-size: 24upx;font-weight: 400;line-height: 83upx;">
- <text style="color: #848485;">
- 更多
- </text>
- <u-icon name="arrow-right" color="#848485" size="20"
- style="font-size: 24upx;font-weight: 400;"></u-icon>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 410upx;padding: 0 30upx;">
- <view v-for="(item,index) in recommendList" style="float: left;"
- :style="{marginLeft:index%3==0?'0upx':'18upx'}">
- <view style="width: 218upx;height: 280upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 218upx;height: 130upx;padding: 20upx 0;">
- <text style="font-size: 28upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 102upx;">
- <view style="width: 205upx;height: 72upx;border-radius: 36upx;background-color: #EBF3FF;margin: 0 auto;text-align: center;">
- <view>
- <text style="font-size: 28upx;font-weight: 400;color: #3D7FFF;line-height: 72upx;">
- <text>换一批</text>
- </text>
- <u-icon name="reload" color="#3D7FFF" size="20"></u-icon>
- </view>
- </view>
- </view>
- </view>
- <view style="width: 100%;height: 353upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- 热度TOP10
- </text>
- </view>
- <view style="width: 100%;height: 410upx;padding: 0 30upx;">
- <view>
- <view v-for="(item,index) in recommendList" style="float: left;"
- :style="{marginLeft:index%3==0?'0upx':'18upx'}">
- <view style="width: 218upx;height: 280upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 218upx;height: 130upx;padding: 20upx 0;">
- <text style="font-size: 28upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- </scroll-view>
- </swiper-item>
- <swiper-item class="swiper-item">
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
- </scroll-view>
- </swiper-item>
- </swiper>
- </view> -->
- <!-- 可滑动标签 结束-->
- <!-- 标签-->
- <view>
- <view style="background-color: #fff;width: 100%;font-size: 24upx;">
- <u-tabs :list="tabList" :is-scroll="false" :current="current" @change="change"
- swiperWidth="750" bar-width="130" activeColor="rgb(24, 144, 255)"></u-tabs>
- </view>
- <view v-show="current==0">
- <!-- 推荐 -->
- <view style="width: 100%;height: 595upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="float: left;font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- {{i18n('Recommend')}}
- </text>
- <view style="float: right;font-size: 24upx;font-weight: 400;line-height: 83upx;" @click="toList('resultRecommend')">
- <text style="color: #848485;">
- {{i18n('MoreInfo')}}
- </text>
- <u-icon name="arrow-right" color="#848485" size="20"
- style="font-size: 24upx;font-weight: 400;"></u-icon>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 410upx;padding: 0 30upx;">
- <view v-for="(item,index) in recommendList" style="float: left;"
- :style="{marginLeft:index%3==0?'0upx':'18upx'}">
- <view style="width: 218upx;height: 280upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 218upx;height: 130upx;padding: 20upx 0;">
- <text style="font-size: 28upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 102upx;">
- <view style="width: 205upx;height: 72upx;border-radius: 36upx;background-color: #EBF3FF;margin: 0 auto;text-align: center;">
- <view>
- <text style="font-size: 28upx;font-weight: 400;color: #3D7FFF;line-height: 72upx;">
- <text>{{i18n('ChangeTheBatch')}}</text>
- </text>
- <u-icon name="reload" color="#3D7FFF" size="28"></u-icon>
- </view>
- </view>
- </view>
- </view>
- <!-- 热度top10 -->
- <view style="width: 100%;height: 353upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- {{i18n('resourceHeat')}}TOP10
- </text>
- </view>
- <view style="width: 100%;height: 270upx;padding: 0 30upx 60upx 30upx;">
- <!--列表横向滚动-->
- <scroll-view scroll-x="true" class="recommendScroll">
- <block>
- <view v-for="(item,index) in recommendList" class="item"
- :style="{marginLeft:index==0?'0upx':'20upx'}">
- <view style="width: 150upx;height: 193upx;float: left;margin: 8upx 13upx 9upx 8upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 224upx;height: 100%;padding-top: 9upx;float: left;">
- <view style="width: 100%; ">
- <text style="font-size: 26upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- <view style="width: 100%;">
- <text style="font-size: 22upx; color: #666666; line-height: 25upx;display: inline-block;width: 100%;" class="oneLine">
- {{item.name}}
- </text>
- </view>
- <view style="width: 100%;">
- <text style="padding: 0 13upx; font-size: 22upx; color: #666666;border-radius: 22upx;display: inline-block;border: 2px solid #1777FE;color: #1777FE;">
- 战略研究
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </block>
- </scroll-view>
- </view>
- </view>
- <!-- 列表 -->
- <view style="width: 100%;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%; height: 86upx;">
- <u-dropdown class="u-dropdown" style="background-color: #fff;width: 100%;">
- <u-dropdown-item v-model="value1" :title="i18n('Comprehensive')" @change="dropdownChange" :options="options1"></u-dropdown-item>
- <u-dropdown-item :title="i18n('resourceType')">
- <view >
- <view class="item-box">
- <view class="item" :class="[item.active ? 'active' : '']" @tap="tagClick(index)" v-for="(item, index) in options2" :key="index">
- {{item.label}}
- </view>
- </view>
- <u-button type="primary" @click="closeDropdown">确定</u-button>
- </view>
- </u-dropdown-item>
- </u-dropdown>
- </view>
- <view style="width: 100%;padding: 0 30upx;">
- <view v-for="(item,index) in recommendList" style="width: 100%;height: 280upx;"
- :style="{marginTop:index==0?'0upx':'60upx'}">
- <view style="width: 218upx;height: 280upx;float: left;border: 1px solid #979797;margin-right: 20upx">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 452upx;height: 100%;float: left;position: relative;">
- <view>
- <text style="font-size: 30upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- <view style="margin-top: 13upx;">
- <text style="font-size: 26upx; padding: 0 13upx; border: 2px solid #1777FE;
- display: inline-block;border-radius: 32upx;color: #1777FE;">
- {{item.name}}
- </text>
- </view>
- <view style="margin-top: 13upx;">
- <text style="font-size: 26upx; padding: 0 13upx; display: inline-block;
- border-radius: 12upx;background-color: rgba(61,127,255,0.1);color: #3D7FFF;">
- 会员
- </text>
- </view>
- <view style="position: absolute;bottom: 0;width: 100%;height: 35upx;color: #666;">
- <view style="float: left;height: 100%">
- <text style="font-size: 28upx;">2020/09/22</text>
- </view>
- <view style="float: right;">
- <view style="float: left;font-size: 28upx;font-weight: 400;">
- <u-icon name="heart" color="#848485" size="28" style="margin-right: 6upx"></u-icon>
- <text style="color: #666;">
- 666
- </text>
- </view>
- <view style="float: left;font-size: 28upx;font-weight: 400;margin-left: 70upx;">
- <u-icon name="arrow-right" color="#848485" size="28" style="margin-right: 6upx"></u-icon>
- <text style="color: #666;">
- 888
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- </view>
- </view>
- <view v-show="current==1">
- <!-- 推荐 -->
- <view style="width: 100%;height: 925upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="float: left;font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- {{i18n('Recommend')}}
- </text>
- <view style="float: right;font-size: 24upx;font-weight: 400;line-height: 83upx;" @click="toList('resourceRecommend')">
- <text style="color: #848485;">
- {{i18n('MoreInfo')}}
- </text>
- <u-icon name="arrow-right" color="#848485" size="20"
- style="font-size: 24upx;font-weight: 400;"></u-icon>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 740upx;padding: 0 30upx;">
- <view v-for="(item,index) in recommendList" style="float: left;width: 335upx; height: 375upx;"
- :style="{marginLeft:index%2==0?'0upx':'20upx'}">
- <view style="width: 335upx;height: 280upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 335upx;height: 95upx;padding: 20upx 0 30upx 0;">
- <text style="font-size: 28upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- <view style="width: 100%;height: 102upx;">
- <view style="width: 205upx;height: 72upx;border-radius: 36upx;background-color: #EBF3FF;margin: 0 auto;text-align: center;">
- <view style="width: 100%;height: 100%;text-align: center;">
- <text style="font-size: 28upx;font-weight: 400;color: #3D7FFF;line-height: 72upx;">
- <text>{{i18n('ChangeTheBatch')}}</text>
- </text>
- <u-icon name="reload" color="#3D7FFF" size="20"></u-icon>
- </view>
- </view>
- </view>
- </view>
- <!-- 热度top10 -->
- <view style="width: 100%;height: 353upx;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%;height: 83upx;padding: 0 30upx;">
- <text style="font-size: 26upx;font-weight: 600;line-height: 83upx;color: #333333;">
- {{i18n('resourceHeat')}}TOP10
- </text>
- </view>
- <view style="width: 100%;height: 273upx;padding: 0 30upx;">
- <!-- <view style="width: 4000upx;"> -->
- <view style="width: 4000upx;">
- <view v-for="(item,index) in recommendList" class="scroll-view-item_H"
- style="float: left;width: 446upx;height: 160upx;border: 1px solid #979797;"
- :style="{marginLeft:index==0?'0upx':'20upx'}">
- <view style="width: 220upx;height: 140upx;float: left;margin: 10upx 20upx 10upx 10upx;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 176upx;height: 100%;padding-top: 9upx;float: left;">
- <view style="width: 100%;height: 40upx;">
- <text style="font-size: 26upx; color: #0B0B11;display: inline-block;width: 100%;" class="oneLine">
- {{item.name}}
- </text>
- </view>
- <view style="width: 100%;height: 40upx;">
- <text style="font-size: 22upx; color: #666666; line-height: 25upx;display: inline-block;width: 100%;" class="oneLine">
- {{item.name}}
- </text>
- </view>
- <view style="width: 100%;">
- <text style="padding: 0 13upx; font-size: 22upx; color: #666666;border-radius: 22upx;display: inline-block;border: 2px solid #1777FE;color: #1777FE;">
- 战略研究
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- <!-- 列表 -->
- <view style="width: 100%;background-color: #fff;margin-top: 20upx;">
- <view style="width: 100%; height: 86upx;">
- <u-dropdown class="u-dropdown" style="background-color: #fff;width: 100%;">
- <u-dropdown-item v-model="value1" :title="i18n('Comprehensive')" @change="dropdownChange" :options="options1"></u-dropdown-item>
- <u-dropdown-item :title="i18n('resourceType')">
- <view >
- <view class="item-box">
- <view class="item" :class="[item.active ? 'active' : '']" @tap="tagClick(index)" v-for="(item, index) in options2" :key="index">
- {{item.label}}
- </view>
- </view>
- <u-button type="primary" @click="closeDropdown">确定</u-button>
- </view>
- </u-dropdown-item>
- </u-dropdown>
- </view>
- <view style="width: 100%;padding: 0 30upx;">
- <view v-for="(item,index) in recommendList" style="width: 100%;height: 280upx;"
- :style="{marginTop:index==0?'0upx':'60upx'}">
- <view style="width: 218upx;height: 280upx;float: left;">
- <image :src="item.src" mode="" style="width: 100%;height: 100%;"></image>
- </view>
- <view style="width: 452upx;height: 100%;float: left;">
- <view>
- <text style="font-size: 30upx; color: #0B0B11;" class="twoLine">
- {{item.name}}
- </text>
- </view>
- <view style="margin-top: 13upx;">
- <text style="font-size: 26upx; padding: 0 13upx; border: 2px solid #1777FE;
- display: inline-block;border-radius: 32upx;color: #1777FE;">
- {{item.name}}
- </text>
- </view>
- <view style="margin-top: 13upx;">
- <text style="font-size: 26upx; padding: 0 13upx; display: inline-block;
- border-radius: 12upx;background-color: rgba(61,127,255,0.1);color: #3D7FFF;">
- 会员
- </text>
- </view>
- </view>
- <view style="clear: both;"></view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import rfSearchBar from '@/components/rf-search-bar';
- import {getDicts,getDictByTypeValue} from '@/api/dict';
- export default {
- data() {
- return {
- classify1:'',
- classify2:'',
- tabList: [
- {
- name: this.i18n('resource')
- },
- {
- name: this.i18n('researchResource')
- },
- ],
- value1:'',
- value2:'',
- dx: 0,
- current: 0,
- swiperCurrent: 0,
- recommendList:[
- {
- name:'全球能源互联网促进全球环',
- src:'',
- },
- {
- name:'非洲能源互联网规划研究报告',
- src:'',
- },
- {
- name:'破解危机',
- src:'',
- },
- ],
- options1:[
- {
- label: '时间降序',
- value: 1,
- },
- {
- label: '时间升序',
- value: 2,
- },
- {
- label: '热度降序',
- value: 3,
- },
- {
- label: '热度升序',
- value: 4,
- }
- ],
- options2:[
- {
- label: '琪花瑶草',
- active: true,
- },
- {
- label: '清词丽句',
- active: false,
- },
- {
- label: '宛转蛾眉',
- active: false,
- },
- {
- label: '煦色韶光',
- active: false,
- },
- {
- label: '鱼沉雁落',
- active: false,
- },
- {
- label: '章台杨柳',
- active: false,
- },
- {
- label: '霞光万道',
- active: false,
- }
- ],
- }
- },
- async onShow() {
- this.getDict();
- // this.getList();
- },
- components: { rfSearchBar },
- methods: {
- navToSearch(){},
- dropdownChange(){},
- closeDropdown(){},
- // tab栏切换
- change(index) {
- this.current = index;
- /* this.swiperCurrent = index;
- this.getOrderList(index); */
- },
- transition({ detail: { dx } }) {
- this.$refs.tabs.setDx(dx);
- },
- animationfinish({ detail: { current } }) {
- this.$refs.tabs.setFinishCurrent(current);
- this.swiperCurrent = current;
- this.current = current;
- },
- //滚动到底部、右边, 会触发 scrolltolower 事件
- /* reachBottom() {
- // 此tab为空数据
- if(this.current != 2) {
- this.loadStatus.splice(this.current,1,"loading")
- setTimeout(() => {
- this.getOrderList(this.current);
- }, 1200);
- }
- }, */
- // 跳转列表
- toList(path){
- uni.navigateTo({
- url:'/pages/resourceSharing/'+path
- })
- },
- // 跳转详情
- async getDict(){
- // const res = await this.$myRequest({
- // url: '/sys/sysDicts/',
- // data: {
- // type:this.$i18n.locale=="zh"?'RESEARCH_RESULT_TYPE_DICT ,RESEARCH_RESOURCE_TYPE_DICT':'RESEARCH_RESULT_TYPE_DICT_EN,RESEARCH_RESOURCE_TYPE_DICT_EN',
- // }
- // });
- let res = await getDicts( "RESEARCH_RESULT_TYPE_DICT,RESEARCH_RESOURCE_TYPE_DICT" );
- if (res.data) {
- this.classify1 = res.data[0];
- this.classify2 = res.data[1];
- }
- let both={
- label:this.$t('common.All'),
- value:null
- };
- this.classify1=res.data[0];
- this.classify2=res.data[1];
- this.classify1.unshift(both);
- this.classify2.unshift(both);
- },
- async getRecommend(){
- // const res = await this.$myRequest({
- // url: '/sys/sysDicts/',
- // data: {
- // type:this.$i18n.locale=="zh"?'RESEARCH_RESULT_TYPE_DICT ,RESEARCH_RESOURCE_TYPE_DICT':'RESEARCH_RESULT_TYPE_DICT_EN,RESEARCH_RESOURCE_TYPE_DICT_EN',
- // }
- // });
- let res = await getDicts( "RESEARCH_RESULT_TYPE_DICT,RESEARCH_RESOURCE_TYPE_DICT" );
- if (res.data) {
- this.classify1 = res.data[0];
- this.classify2 = res.data[1];
- }
- let both={
- label:this.$t('common.All'),
- value:null
- };
- this.classify1=res.data[0];
- this.classify2=res.data[1];
- this.classify1.unshift(both);
- this.classify2.unshift(both);
- },
- async getList(num){
- let page ={
- pageNo:this.page,
- pageSize: 10,
- language:this.$i18n.locale.toUpperCase(),
- descStatus:this.value1,
- messageOpenType:'Y',
- status:1,
- technicalCategories:this.value3,
- continentCountry:this.value2,
- projectName:this.input
- };
- const res = await this.$myRequest({
- url: '/resourceshare/baseResearchResultViews/',
- data: {
- ...page
- }
- });
- this.total2=res.data.page.totalPage;
- if(res.data){
- if(this.page==1){
- this.ProjectList=res.data.baseProjectViews?res.data.baseProjectViews : [];
- }else {
- this.ProjectList=this.ProjectList.concat(res.data.baseProjectViews)
- }
- }
- if(this.ProjectList.length>=this.total2-0){
- this.status = 'nomore';
- }
- },
- back() {
- uni.navigateBack();
- },
- //中英文切换
- i18n (data) {
- return this.$t('common.'+data);
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .rf-category {
- background-color: #F3F4F5;
- /* #ifdef APP-PLUS */
- margin-top: calc(20upx + var(--status-bar-height));
- /* #endif */
- .icoStyle {
- display: flex;
- align-items:center;
- .leftArrow {
- width:36upx;
- height:36upx;
- position: fixed;
- z-index: 99;
- /* #ifdef APP-PLUS */
- padding-top: calc(20upx + var(--status-bar-height));
- /* #endif */
- }
- }
- .oneLine{
- /* 隐藏溢出元素 */
- overflow: hidden;
- /* 单行显示 */
- white-space: nowrap;
- /* 溢出显示省略号 */
- text-overflow: ellipsis;
- }
- .twoLine{
- overflow : hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .threeLine{
- overflow : hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- }
- .wrap {
- display: flex;
- flex-direction: column;
- height: calc(100vh - var(--window-top));
- width: 100%;
- }
- .swiper-box {
- flex: 1;
- }
- .swiper-item {
- height: 100%;
- }
- .item-box {
- margin-bottom: 50rpx;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .item-box .item {
- border: 1px solid $u-type-primary;
- color: $u-type-primary;
- padding: 8rpx 40rpx;
- border-radius: 100rpx;
- margin-top: 30rpx;
- }
- .recommendScroll{
- overflow: hidden;
- white-space: nowrap; // 滚动必须加的属性
- width: 100%;
- height: 210upx;
- margin: 0 auto;
- }
- .recommendScroll .item{
- width: 400upx;
- height: 210upx;
- border: 1px solid #979797;
- display: inline-block;
- vertical-align: top;
- }
- }
- </style>
|