新需求
This commit is contained in:
		@@ -28,7 +28,7 @@
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000" v-if="bannerList.length">
 | 
			
		||||
				<swiper-item v-for="(item, index) in bannerList" :key="index">
 | 
			
		||||
				<swiper-item v-for="(item, index) in bannerList" :key="index" @click="toDetail(item)">
 | 
			
		||||
          <image :src="item.imgUrl" mode="aspectFill" />
 | 
			
		||||
				</swiper-item>
 | 
			
		||||
			</swiper>
 | 
			
		||||
@@ -129,6 +129,18 @@
 | 
			
		||||
        })
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      toDetail (e) {
 | 
			
		||||
        if (!e.linkUrl) return
 | 
			
		||||
 | 
			
		||||
        if (e.type == '0') {  //0 h5链接; 1 小程序链接; 2外部小程序
 | 
			
		||||
          this.$linkTo(`/subPages/h5/webview?link=${e.linkUrl}&title=${e.title}`)
 | 
			
		||||
        } else {
 | 
			
		||||
          wx.navigateToMiniProgram({
 | 
			
		||||
            appId: e.linkUrl
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      getList () {
 | 
			
		||||
        this.$instance.post(`/api/appmerchantinfo/discountList`, null, {
 | 
			
		||||
          withoutToken: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user