Commit 362748d1 by zeyang

1. CFFP认证中消息列表没有配置点击事件

2. 登录 勾选隐私协议错误
3. 轮播图跳转逻辑错误
parent b55b9aa5
<template>
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration">
<swiper-item v-for="bannerItem in carouselList">
<!-- <uni-link :href="bannerItem.destinationAddress?bannerItem.destinationAddress:'#'"> -->
<image :src="bannerItem.filePath" mode="widthFix" @click="jumpUrl(bannerItem.destinationAddress)"></image>
<!-- </uni-link> -->
</swiper-item>
</swiper>
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration">
<swiper-item v-for="bannerItem in carouselList">
<!-- <uni-link :href="bannerItem.destinationAddress?bannerItem.destinationAddress:'#'"> -->
<image :src="bannerItem.filePath" mode="widthFix" @click="jumpUrl(bannerItem.destinationAddress)"></image>
<!-- </uni-link> -->
</swiper-item>
</swiper>
</template>
<script>
export default{
props:['carouselList'],
data(){
export default {
props: ['carouselList'],
data() {
return {
indicatorDots: true,
autoplay: true,
......@@ -20,33 +20,42 @@
duration: 500,
}
},
name:'carousel',
components:{},
mounted(){
console.log(this.carouselList)
name: 'carousel',
components: {},
mounted() {
},
methods:{
jumpUrl(url){
if(!url){
methods: {
jumpUrl(url) {
if (!url) {
return false
}else{
// #ifdef H5
window.location.href = url;
// #endif
// #ifdef APP-PLUS
uni.navigateTo({
url: '/components/webview?url=' + url
// page.json定义的路径 传url 到webview界面去接收 实现跳转
})
//#endif
} else {
let index = url.indexOf('/cffp/pages/');
if (index != -1) {
uni.navigateTo({
url: url.substring(index + 5, url.length)
})
} else {
// #ifdef H5
window.location.href = url;
// #endif
// #ifdef APP-PLUS
uni.navigateTo({
url: '/components/webview?url=' + url
// page.json定义的路径 传url 到webview界面去接收 实现跳转
})
//#endif
}
}
}
}
}
</script>
<style lang="scss">
.swiper{
height:228rpx;
.swiper {
height: 228rpx;
}
</style>
\ No newline at end of file
......@@ -42,7 +42,7 @@
</view>
</form>
<view class="agree" v-if="loginType!='resetpw'">
<label class="radio" @click="agreeFlag=!agreeFlag"><radio :checked="agreeFlag" /></label>
<label class="radio" ><radio @click="c_agreeFlag" :checked="agreeFlag" /></label>
<text>已阅读并同意</text>
<text class="file" @click="getFile(1)">服务协议</text>
<text></text>
......@@ -104,6 +104,9 @@
}
},
methods: {
c_agreeFlag(){
this.agreeFlag=!this.agreeFlag;
},
rpsdlogin(){
this.loginType= 'codelogin'
},
......
<template>
<view class="pad">
<!--搜索组件-->
<search :isSearch="1" @send="getCourseList"></search>
<search :isSearch="1" :userId = "userId" @send="getCourseList"></search>
<!--轮播组件-->
<view class="banner">
<view class="uni-margin-wrap">
......@@ -31,7 +31,8 @@
cffpCourseInfos:[],
currentPage:'courselist',
fileUploadItemCFFPList:[],
queryName:null
queryName:null,
userId: uni.getStorageSync('cffp_userId'),
}
},
name:'courselist',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment