Commit 362748d1 by zeyang

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

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