This commit is contained in:
lnn19986213 2022-08-18 10:26:22 +08:00
parent 5f607b3772
commit e0dda77e45
12 changed files with 81 additions and 37 deletions

View File

@ -133,20 +133,25 @@
if (res.code == 200) {
_this.workList = res.data.records
_this.workList.forEach(function(item) {
if (item.user.images != undefined) {
let img = JSON.parse(item.user.images)
item.user.images = img[0]
console.log(0)
if (item.user.images) {
// let img = JSON.parse(item.user.images)
// item.user.images = img[0]
}else{
item.images = '../../static/txIcon.png'
}
console.log(1)
//
if (item.type != undefined) {
if (item.type) {
_this.list1.forEach(function(ele) {
if (item.type == ele.value) {
item.type = ele.name
}
})
}
console.log(2)
//
if (item.file != undefined) {
if (item.file) {
let fileArr = item.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs == 'tiff') {
@ -155,6 +160,7 @@
item.file = '../../static/fileImg/pdfS.png'
}
}
console.log(3)
})
_this.load = false
}
@ -350,12 +356,13 @@
margin-bottom: 16px;
.tag{
width: 80rpx;
// width: 80rpx;
text-align: center;
border: 1rpx solid #AFADB0;
border-radius: 20px;
float: right;
margin: 0 10rpx;
padding: 4rpx 10rpx;
}
}

View File

@ -18,6 +18,12 @@
<view class="work_desc">
{{detailData.introduce}}
</view>
<!-- 作品标签· -->
<view class="sub_title">
<view class="tag" v-for="(a,b) in detailData.workTag" :key="b">
{{a}}
</view>
</view>
<!-- 作品上传时间浏览量类型 -->
<view class="work_det">
<view class="det_box">
@ -55,6 +61,9 @@
{{item.name}}
</view>
</view>
</view>
<view style="height: 60px; width: 100%; backgroud:#fff;">
</view>
<!-- 底部点赞收藏 -->
<view class="detailBottom">
@ -290,7 +299,7 @@
.work_name {
width: 94%;
margin: 10px 3%;
font-size: 16px;
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #251B1D;
@ -299,18 +308,35 @@
.work_desc {
width: 94%;
margin: 10px 3%;
font-size: 12px;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #251B1D;
white-space: pre-wrap;
line-height: 48rpx;
}
.sub_title{
width: 94%;
margin: 10px 3%;
display: flex;
flex-wrap: wrap;
.tag{
// width: 80rpx;
text-align: center;
color: #99241B;
border: 1rpx solid #E7CAC8;
border-radius: 20px;
margin: 0 10rpx;
padding: 4rpx 16rpx;
}
}
.work_det {
width: 94%;
margin: 10px 3%;
height: 17px;
font-size: 12px;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #AFADB0;

View File

@ -39,22 +39,22 @@
num:[
{
is: true,
click: '1522',
click: '12',
time: '2022-02-01',
name: '送万福、进万家文艺惠民暖人心',
url: '../../static/dt2.png'
},
{
is: false,
click: '1522',
time: '2022-02-01',
click: '122',
time: '2022-01-31',
name: '虎年新春活动再上央视《新闻联播》',
url: '../../static/dt1.png'
},
{
is: false,
click: '1522',
time: '2022-02-01',
click: '352',
time: '2022-01-01',
name: '文联送欢乐 安置点享真情',
url: '../../static/dt1.png'
}

View File

@ -108,7 +108,7 @@
.shelves-img {
border-radius: 8px 8px 8px 8px;
width: 311rpx;
height: 342rpx;
height: 380rpx;
}
.name {

View File

@ -289,9 +289,10 @@
},
//
myNews(){
uni.navigateTo({
url: "/pagesA/msgTalk/msgTalk"
})
// uni.navigateTo({
// url: "/pagesA/msgTalk/msgTalk"
// })
}
}
}

View File

@ -101,8 +101,12 @@
} else if (gs == 'pdf') {
item.file = '../../static/fileImg/pdfB.png'
}
let img = JSON.parse(item.user.images)
item.user.images = img[0]
if (item.user.images) {
// let img = JSON.parse(item.images)
// item.images = img[0]
}else{
item.user.images = '../../static/txIcon.png'
}
})
this.list = res.data.records
this.load = false

View File

@ -142,9 +142,11 @@
this.dataList = []
}else {
res.data.records.forEach(function(item){
if(item.images != null && item.images != undefined && item.images != ''){
let img = JSON.parse(item.images)
item.images = img[0]
if (item.images) {
// let img = JSON.parse(item.images)
// item.images = img[0]
}else{
item.images = '../../static/txIcon.png'
}
})
this.dataList = res.data.records
@ -165,9 +167,11 @@
this.dataList = []
}else {
res.data.records.forEach(function(item){
if(item.images != null && item.images != undefined && item.images != ''){
let img = JSON.parse(item.images)
item.images = img[0]
if (item.images) {
// let img = JSON.parse(item.images)
// item.images = img[0]
}else{
item.images = '../../static/txIcon.png'
}
})
this.dataList = res.data.records

View File

@ -141,12 +141,14 @@
if (res.code == 200) {
_this.workList = res.data.records
_this.workList.forEach(function(item) {
if (item.user.images != undefined) {
let img = JSON.parse(item.user.images)
item.user.images = img[0]
if (item.user.images) {
// let img = JSON.parse(item.images)
// item.images = img[0]
}else{
item.user.images = '../../static/txIcon.png'
}
//
if (item.type != undefined) {
if (item.type) {
_this.list1.forEach(function(ele) {
if (item.type == ele.value) {
item.type = ele.name
@ -154,7 +156,7 @@
})
}
//
if (item.file != undefined) {
if (item.file) {
let fileArr = item.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
@ -457,16 +459,16 @@
font-size: 12px;
color: #AFADB0;
height: 18px;
margin-top: 2px;
margin-top: 6px;
margin-bottom: 6px;
.tag{
width: 80rpx;
text-align: center;
border: 1rpx solid #AFADB0;
border-radius: 20px;
float: left;
margin: 0 10rpx;
margin: 10rpx;
padding: 4rpx 10rpx;
}
}

View File

@ -69,7 +69,7 @@
<view class="scroll-list">
<view class="scroll-list__goods-item" v-for="(item, index) in writerList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="famouserDetaol(item.id)" >
<image class="scroll-list__goods-item__image" :src="item.images" style="height: 342rpx;"></image>
<image class="scroll-list__goods-item__image" :src="item.images" style="height: 170px;"></image>
<text class="scroll-list__goods-item__text">{{ item.userName }}</text>
</view>
</view>

View File

@ -7,8 +7,8 @@ export default {
config: {
// baseUrl: "http://192.168.0.57:8080/h5/api", //王锡
// baseUrl: "http://192.168.124.110:8088/api", //周源
baseUrl: "http://10.0.0.48:8080/h5/api", //俞燕红
// baseUrl: "https://yxx.ydool.net/h5/api", //线上
// baseUrl: "http://10.0.0.48:8080/h5/api", //俞燕红
baseUrl: "https://yxx.ydool.net/h5/api", //线上
header: {
'Content-Type': 'application/json;charset=UTF-8',
// 'Content-Type':'application/x-www-form-urlencoded'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 20 KiB

BIN
src/static/txIcon1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB