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

修改了BUG

parent 3151588f
...@@ -85,13 +85,13 @@ import { ...@@ -85,13 +85,13 @@ import {
{ {
minLength: 2, minLength: 2,
maxLength: 16, maxLength: 16,
errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个汉字字母', errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个汉字字母',
}, },
{ {
validateFunction: function(rule, value, data, callback) { 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)) { if (!nameReg.test(value)) {
callback('姓名只能输入汉字字母,请重新填写') callback('姓名只能输入汉字字母,请重新填写')
} }
return true return true
} }
......
...@@ -2,12 +2,21 @@ ...@@ -2,12 +2,21 @@
<view class="appoint"> <view class="appoint">
<view class="appoint-card"> <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> <image :src="item"></image>
</swiper-item> </swiper-item>
</swiper> </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> --> <!-- <image :src="appoin.bannerImage" style="border-radius:16px 16px 0 0 " mode=""></image> -->
<view class="info"> <view class="info">
<view class="item">课程名称:<view class="item_c">{{appoin.courseName|ellipsis}}</view></view> <view class="item">课程名称:<view class="item_c">{{appoin.courseName|ellipsis}}</view></view>
...@@ -36,8 +45,10 @@ ...@@ -36,8 +45,10 @@
return{ return{
bannerlist:[], bannerlist:[],
appoin:{}, appoin:{},
Idscourse: '' Idscourse: '' ,
indicatorDot:true,
indicatorDots:false,
} }
}, },
...@@ -50,6 +61,8 @@ ...@@ -50,6 +61,8 @@
return value return value
} }
}, },
methods: { methods: {
getappoin(id){ getappoin(id){
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
......
...@@ -215,6 +215,7 @@ ...@@ -215,6 +215,7 @@
height: 299px; height: 299px;
position: relative; position: relative;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden;
.home{ .home{
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<view class="item">上课地点:&nbsp;&nbsp;{{item.mechanismAddress|ellipsis}}</view> <view class="item">上课地点:&nbsp;&nbsp;{{item.mechanismAddress|ellipsis}}</view>
</view> </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> </view>
</template> </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