Commit df52d3dd authored by 刘鑫鹏's avatar 刘鑫鹏

修改了BUG

parent 3151588f
......@@ -85,13 +85,13 @@ import {
{
minLength: 2,
maxLength: 16,
errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个汉字字母',
errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个汉字字母',
},
{
validateFunction: function(rule, value, data, callback) {
let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/
let nameReg = /^[\u4E00-\u9FA5_a-zA-Z]{2,16}$/
if (!nameReg.test(value)) {
callback('姓名只能输入汉字字母,请重新填写')
callback('姓名只能输入汉字字母,请重新填写')
}
return true
}
......
......@@ -2,12 +2,21 @@
<view class="appoint">
<view class="appoint-card">
<swiper circular indicator-dots>
<swiper circular v-if="bannerlist.length>1" :indicator-dots="indicatorDot" autoplay="true" interval="3000" duration="500">
<swiper-item v-for="(item,i) in bannerlist ":key="i" >
<swiper-item v-for="(item,i) in bannerlist ":key="i" >
<image :src="item"></image>
</swiper-item>
</swiper>
<swiper circular v-else :indicator-dots="indicatorDots" autoplay="true" interval="3000" duration="500">
<swiper-item v-for="(item,i) in bannerlist ":key="i" >
<image :src="item"></image>
</swiper-item>
</swiper>
<!-- <image :src="appoin.bannerImage" style="border-radius:16px 16px 0 0 " mode=""></image> -->
<view class="info">
<view class="item">课程名称:<view class="item_c">{{appoin.courseName|ellipsis}}</view></view>
......@@ -36,8 +45,10 @@
return{
bannerlist:[],
appoin:{},
Idscourse: ''
Idscourse: '' ,
indicatorDot:true,
indicatorDots:false,
}
},
......@@ -50,6 +61,8 @@
return value
}
},
methods: {
getappoin(id){
......
......@@ -50,7 +50,7 @@
</view>
</view>
</view>
<view style="margin-left: 45%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -91,7 +91,7 @@
</view>
</view>
</view>
<view style="margin-left: 45%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -132,7 +132,7 @@
</view>
</view>
</view>
<view style="margin-left: 45%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -172,7 +172,7 @@
</view>
</view>
</view>
<view style="margin-left: 45%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -213,7 +213,7 @@
</view>
</view>
</view>
<view style="margin-left: 45%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......
......@@ -215,6 +215,7 @@
height: 299px;
position: relative;
overflow-x: hidden;
overflow-y: hidden;
.home{
......
......@@ -23,7 +23,7 @@
<view class="item">上课地点:&nbsp;&nbsp;{{item.mechanismAddress|ellipsis}}</view>
</view>
</view>
<view style="margin-left: 35%;margin-bottom: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">点击加载更多...</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;margin-top: 20px;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</template>
......
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