作者 xuqiang

提交

... ... @@ -158,7 +158,7 @@
computed:{
...mapState(["userinfo"])
},
onShow(){
onLoad(){
this.param.page = 1
this.last_page = 0
this.current_page = 1
... ...
... ... @@ -23,10 +23,10 @@
</view>
</view>
<view class="empTopH"></view>
<swiper class="imgSwiper" :indicator-dots="true" :indicator-active-color="'#fff'" :indicator-color="'rgba(255,255,255,0.30)'" :circular="true">
<swiper class="imgSwiper" :style="{height:swiperHeight+'px'}" @change="changeImg" :indicator-dots="true" :indicator-active-color="'#fff'" :indicator-color="'rgba(255,255,255,0.30)'" :circular="true">
<swiper-item v-for="(item,index) in articleInfo.images" :key="index" @click="closeAllAlert">
<view class="swiper-item">
<image :src="item" mode="aspectFill"></image>
<image :src="item" mode="widthFix"></image>
</view>
</swiper-item>
</swiper>
... ... @@ -186,6 +186,7 @@
export default{
data(){
return{
swiperHeight:0,
keyboardHeight:0,
showPostImg:false,
shareFlag:false,
... ... @@ -231,14 +232,39 @@
},
methods:{
getData(){
this.$request('/article/info',{article_id:this.article_id}).then((res)=>{
let that = this
this.$request('/article/info',{article_id:that.article_id}).then((res)=>{
console.log('故事详情',res)
res.data.content = this.textFormat(res.data.content)
this.articleInfo = res.data
this.showPostImg = true
res.data.content = that.textFormat(res.data.content)
that.articleInfo = res.data
uni.getImageInfo({
src:res.data.images[0],
success: function(image) {
uni.getSystemInfo({
success: function (res) {
that.swiperHeight = res.windowWidth/image.width * image.height;
that.showPostImg = true
}
});
}
});
})
this.getRemarkList()
},
//轮播图切换
changeImg(e){
let that = this
uni.getImageInfo({
src:that.articleInfo.images[e.detail.current],
success: function(image) {
uni.getSystemInfo({
success: function (res) {
that.swiperHeight = res.windowWidth/image.width * image.height;
}
});
}
});
},
textFormat(val) {
// 格式化文字展示文本域格式文字
if (val) {
... ... @@ -523,9 +549,8 @@
height: calc(88rpx + var(--status-bar-height));
}
.imgSwiper{
height: 1028rpx;
.swiper-item{
image{width: 750rpx;height: 1028rpx;}
image{width: 750rpx;}
}
}
.postInfoWrap{
... ...
... ... @@ -891,7 +891,7 @@
/* 视频播放进度 */
.zhi_index24{position: absolute;bottom: 100rpx;left: 0px;width: 750upx;}
/* 其他操作区域 */
.otherHandleWrap{position: absolute;width: 750rpx;height:100rpx;bottom: 0;padding: 0 32rpx;flex-direction: row;justify-content: space-between;align-items: center;}
.otherHandleWrap{position: absolute;width: 750rpx;height:100rpx;bottom: 0;padding: 0 32rpx;flex-direction: row;justify-content: space-between;align-items: center;background-color: #000000;}
.otherHandleWrap .sayWhat{width: 238rpx;height: 64rpx;background: rgba(255,255,255,0.20);border-radius: 64rpx;flex-direction: row;padding-left: 24rpx;align-items: center;}
.otherHandleWrap .userHandle{flex-direction: row;align-items: center;}
.userHandle .handleImg{width: 42rpx;height: 42rpx;margin: 0 12rpx 0 24rpx;}
... ...
... ... @@ -642,6 +642,7 @@
})
},
search(){
uni.hideKeyboard()
if(this.keywords == ''){
uni.showToast({
title:'请输入搜索地址',
... ...
... ... @@ -237,7 +237,7 @@
<view class="projectTbItem" v-for="(item,index) in projectList" :key="index">
<view class="projectTb">
<image src="../../static/image/fuwuicon.png" mode=""></image>
<view class="projectName">{{item.name}}</view>
<view class="projectName" style="width: 90rpx;">{{item.name}}</view>
</view>
<view class="projectTb price">
¥{{item.price}}起
... ... @@ -634,7 +634,7 @@
.projectListAlert .projectList{background: #fff;border-radius: 30rpx;}
.projectList .projectThList{height: 112rpx;background: #35655f;border-radius: 30rpx 30rpx 0 0;display: flex;font-size: 28rpx;color: #fff;}
.projectItem image{width: 39rpx;height: 39rpx;}
.projectThList .projectItem{display: flex;justify-content: center;align-items: center;width: 176rpx;height: 112rpx;}
.projectThList .projectItem{display: flex;justify-content: center;align-items: center;width: 206rpx;height: 112rpx;}
.projectThList .projectDesc{flex: 1;display: flex;align-items: center;justify-content: center;}
.projectDesc image{width: 39rpx;height: 39rpx;}
.projectTbList{
... ... @@ -642,7 +642,7 @@
max-height: 600rpx;
}
.projectTbItem{display: flex;}
.projectTbItem .projectTb{display: flex;justify-content: center;align-items: center;width: 176rpx;height: 112rpx;font-size: 28rpx;color: #646566;}
.projectTbItem .projectTb{display: flex;justify-content: center;align-items: center;width: 206rpx;height: 112rpx;font-size: 28rpx;color: #646566;}
.projectTb .projectName{width: 60rpx;}
.projectTb.price{color: #fc432d;}
.projectTb image{width: 48rpx;height: 48rpx;margin-right: 10rpx;}
... ...
... ... @@ -84,7 +84,7 @@
<view class="content bottomLine">
<view class="left">
<image src="../../static/image/fuwuicon.png" mode=""></image>
<input type="text" v-model="item.name" placeholder="请输入服务名称" placeholder-class="inpPh"/>
<input type="text" v-model="item.name" maxlength="6" placeholder="请输入服务名称" placeholder-class="inpPh"/>
</view>
<view class="right">
<!-- <text>¥</text> -->
... ...