作者 xuqiang

提交

... ... @@ -45,7 +45,7 @@
</view>
</view>
<view class="playTabList" v-if="tabIndex == 1">
<swiper class="classList" :autoplay="false" display-multiple-items="5" :disable-touch="banner.length > 1 ? false : true">
<swiper class="classList" :autoplay="false" display-multiple-items="4" :disable-touch="cateList.length > 3 ? false : true">
<swiper-item>
<view class="playTabItem" :class="{active:playTabIndex == 0}" @click="changePlayTab(0)">
全部
... ... @@ -577,18 +577,18 @@
align-items: center;
.classList{
display: flex;
width: 450rpx;
width: 480rpx;
height: 88rpx;
.playTabItem{
position: relative;
width: 90rpx;
width: 120rpx;
text-align: center;
line-height: 88rpx;
color: #969799;
font-size: 28rpx;
font-weight: 600;
.playTabLine{
position: absolute;width: 50rpx;height: 5rpx;background: #35655f;bottom: 18rpx;left:20rpx;
position: absolute;width: 50rpx;height: 5rpx;background: #35655f;bottom: 18rpx;left:35rpx;
}
}
.playTabItem.active{color: #35655f;}
... ...
... ... @@ -28,7 +28,7 @@
<swiper class="imgSwiper" @change="changeImg" :indicator-dots="articleInfo.images.length > 1 ? true : false" :indicator-active-color="'#35655f'" :indicator-color="'rgba(0,0,0,0.3)'" :circular="true" :duration="300">
<swiper-item v-for="(item,index) in articleInfo.images" :key="index" @click="closeAllAlert">
<view class="swiper-item" :style="{'align-items':swiperHeight >= 480 ? 'flex-start' : 'center'}">
<image :src="item" mode="widthFix"></image>
<image :src="item" mode="widthFix" :mode="swiperHeight < 500 || swiperHeight > 501 ? 'widthFix' : 'aspectFill'" :class="{tempH:swiperHeight >= 500 && swiperHeight <= 501}"></image>
</view>
</swiper-item>
</swiper>
... ... @@ -560,6 +560,7 @@
display: flex;
justify-content: center;
image{width: 750rpx;}
.tempH{height: 980rpx;}
}
}
.postInfoWrap{
... ...
... ... @@ -768,6 +768,7 @@
//点击标记点
markertap(e){
let landArr = this.landList
this.landList = []
let coverArr = []
let index = 0
coverArr.push(this.covers[0])
... ... @@ -911,27 +912,34 @@
}
},
phone(mobile){
uni.request({
url:apiUrl+'/user/getMiddleNumber',
method:'POST',
header: {
'content-type': 'application/x-www-form-urlencoded',
'token': uni.getStorageSync('token')
},
data:{mobile:mobile},
success: (res) => {
if(res.data.code == 1){
uni.makePhoneCall({
phoneNumber:res.data.data
})
}else{
uni.showToast({
title:res.data.msg,
icon:'none'
})
}
}
uni.showToast({
title:'已开启虚拟号码为您保护隐私',
icon:'none',
duration:3000
})
setTimeout(()=>{
uni.request({
url:apiUrl+'/user/getMiddleNumber',
method:'POST',
header: {
'content-type': 'application/x-www-form-urlencoded',
'token': uni.getStorageSync('token')
},
data:{mobile:mobile},
success: (res) => {
if(res.data.code == 1){
uni.makePhoneCall({
phoneNumber:res.data.data
})
}else{
uni.showToast({
title:res.data.msg,
icon:'none'
})
}
}
})
},2000)
}
}
}
... ...