修改app图标和启动页,修改首页轮播不自动轮播的问题,修改首页新闻无法点击的问题,修改跳转商品详情丢失分销信息的问题

This commit is contained in:
gaoxs
2020-05-13 18:52:36 +08:00
parent 4e057e8233
commit 8d036b9012
5 changed files with 57 additions and 4 deletions

View File

@ -1,6 +1,7 @@
<template>
<view class="container">
<view v-if="!token">
<!-- 小程序 -->
<view v-if="$deviceType == 'routine'">
<view class="getUserInfo">
<text>您还未允许微信登录授权请点击下方按钮允许微信授权登录</text>
@ -9,6 +10,7 @@
<button @click="back">取消微信登录授权</button>
</view>
</view>
<!-- app -->
<view v-if="$deviceType == 'app'">
<view class="getUserInfo">
<text>请先登录</text>

View File

@ -10,7 +10,7 @@
</view>
</view>
<view class="slider-banner banner">
<swiper indicatorDots="true" v-if="banner.length > 0">
<swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular >
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
<swiper-item>
<view @click="item.url ? $yrouter.push('/' + item.url) : ''" class="swiper-item">
@ -28,7 +28,7 @@
<swiper class="swiper-wrapper" v-if="roll.length > 0" :indicator-dots="false" autoplay circular vertical>
<block v-for="(item, rollIndex) in roll" :key="rollIndex">
<swiper-item class="swiper-slide">
<view @click="item.uniapp_url ? $yrouter.push(item.uniapp_url) : ''" class="swiper-item acea-row row-between-wrapper">
<view @click="goRoll(item)" class="swiper-item acea-row row-between-wrapper">
<view class="text acea-row row-between-wrapper">
<view class="label" v-if="item.show === '是'">最新</view>
<view class="newsTitle line1">{{ item.info }}</view>
@ -257,6 +257,11 @@
});
},
methods: {
goRoll(item){
if(item.uniapp_url){
this.$yrouter.push(item.uniapp_url)
}
},
goGoodSearch() {
this.$yrouter.push('/pages/shop/GoodSearch/index');
},