123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <template>
- <view class="discovery tn-safe-area-inset-bottom" style="max-height: 100vh">
-
-
- <view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
- <view style="width: 100%;padding-bottom: 0;">
- <view style="display: flex;width: 100%;background: linear-gradient(0deg, #fff, #f8f8f">
- <view style="margin:16px">
- <image style="width: 56px; height: 50px; margin-right: 12px;" :mode="fit"
- src="../../static/logo.png"></image>
- </view>
- <view style="margin:16px 0;margin-left: -8px;">
- <view style="font-weight: bold;font-size: 22px;">速立保</view>
- <text style="margin-top:12px;color:#888;font-size:15px">生物制药产业一站式产品资源供需平台</text>
- </view>
- </view>
-
-
- </view>
-
- <view style="padding: 0px 0 4px 16px;font-weight: bold;">
- 优质入驻企业 ▼
- </view>
-
- <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" >
- <swiper-item v-for="item of companyList" :key="item.id" style="position:relative">
- <!-- <view style="position: absolute;bottom: 28px;right: 16px;color: #ffffff75;" class="swiper-item uni-bg-red">{{item.company}}</view> -->
- <image :src="item.picUrl?item.picUrl:'../../static/bg.png'" style="width: 100%;height: 100%;"></image>
- </swiper-item>
- </swiper>
- <view style="padding: 16px 0 4px 16px;font-weight: bold;">
- 优质供应 ▼
- </view>
- <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" >
- <swiper-item v-for="item of prodList" :key="item.id">
- <!-- <view style="position: absolute;bottom: 28px;right: 16px;color: #ffffff75;" class="swiper-item uni-bg-red">{{item.company}}</view> -->
- <image :src="item.picUrl?item.picUrl:'../../static/bg.png'" style="width: 100%;height: 100%;"></image>
- </swiper-item>
-
- </swiper>
- <!-- <image style="width: 180px;height: 150px" src="../../static/logo.png"></image>
-
-
- <view style="margin-top:24px"><text style="font-size:30px;">生物制药产业</text></view>
- <view><text style="font-size:30px">国际产品展示中心</text></view>
- <view style="margin-top:24px"><text style="font-size:20px;">生物制药产业一站式产品资源供需平台</text></view> -->
-
- <view style="display: flex;margin-top:32px;margin: 24px;">
- <view style="flex: 1;padding: 0 16px;" class="bg01" @click="showAdd">
- <text style="font-size: 32px;margin-right: 10px;vertical-align: sub;" class="tn-icon-email-fill" ></text>
- <text style="line-height: 72px;font-size: 18px;">我要什么</text>
-
- </view>
- <view style="flex: 1;padding: 0 16px;" class="bg02" @click="showAdd2">
- <text style="font-size: 32px;margin-right: 10px;vertical-align: sub;" class="tn-icon-paperbag-fill" ></text>
- <text style="line-height: 72px;font-size: 18px;">我有什么</text>
- </view>
- </view>
-
- <view class='tn-tabbar-height'></view>
-
- </view>
- </view>
- </template>
- <script>
- import request from '../../utils/request'
- export default {
- data() {
- return {
- indicatorDots: true,
- autoplay: false,
- companyList:[],
- prodList:[]
- }
- },
- onLoad(){
- this.loadData();
- },
- onReady() {
- this.$nextTick(() => {
- this.loadData()
- this.loadData2()
- })
- },
- methods: {
- fetchData(){
- this.loadData()
- this.loadData2()
- },
- loadData() {
- let that = this;
- request.post('/slbTopad/premiumCompanies', {
-
- }).then(res => {
- if (res&&res.success) {
- that.companyList = res.list||[]
- }
- })
- },
- loadData2() {
- let that = this;
- request.post('/slbTopad/premiumShareCompanies', {
-
- }).then(res => {
- if (res&&res.success) {
- that.prodList = res.list||[]
- }
- })
- },
- showAdd(){
- if(uni.getStorageSync('userNo')){
- uni.navigateTo({
- url:'/circlePages/circle'
- })
- }else{
- uni.navigateTo({
- url:'/pages/login/login'
- })
- }
-
- },
- showAdd2(){
- if(uni.getStorageSync('userNo')){
- uni.navigateTo({
- url:'/circlePages/addShare'
- })
- }else{
- uni.navigateTo({
- url:'/pages/login/login'
- })
- }
-
- }
- }
- }
- </script>
- <style>
- .swiper-item {
- text-align: center;
- }
- .swiper{
- height: 200px;
- }
- .bg01{
- color: #fff;
- background-image: url(./../../static/bg01.png);
- background-size: cover;
- height: 72px;
- border-radius: 20px;
- margin-right: 16px;
- }
- .bg02{
- color: #fff;
- background-image: url(./../../static/bg02.png);
- background-size: cover;
- height: 72px;
- border-radius: 20px;
- }
- /* 底部安全边距 start*/
- .tn-tabbar-height {
- min-height: 120rpx;
- height: calc(140rpx + env(safe-area-inset-bottom) / 2);
- height: calc(140rpx + constant(safe-area-inset-bottom));
- }
- </style>
|