新需求
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000" v-if="bannerList.length">
|
<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" />
|
<image :src="item.imgUrl" mode="aspectFill" />
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</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 () {
|
getList () {
|
||||||
this.$instance.post(`/api/appmerchantinfo/discountList`, null, {
|
this.$instance.post(`/api/appmerchantinfo/discountList`, null, {
|
||||||
withoutToken: true,
|
withoutToken: true,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const configs = {
|
|||||||
dev: {
|
dev: {
|
||||||
areaId: '341021104000',
|
areaId: '341021104000',
|
||||||
areaName: '郑村镇',
|
areaName: '郑村镇',
|
||||||
baseUrl: 'http://dvcp.sinoecare.net'
|
baseUrl: 'http://192.168.1.87:59998'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 当前选中配置
|
// 当前选中配置
|
||||||
|
|||||||
Reference in New Issue
Block a user