This commit is contained in:
lnn19986213 2023-10-16 11:30:13 +08:00
parent e025d6ab0a
commit 5a8e1a00c6
26 changed files with 726 additions and 371 deletions

View File

@ -83,13 +83,13 @@
<view class="left">
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
@click="ToEnjoy(item.id)">
@click="ToEnjoy(item.id,index,'0')">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<view class="det-type">类型:{{ item.name }}</view>
<view class="det-type">类型:{{ item.typesName }}</view>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
@ -104,7 +104,7 @@
<view class="right">
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
@click="ToEnjoy(item.id)">
@click="ToEnjoy(item.id,index,'1')">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
@ -226,7 +226,7 @@
this.titleHeight = menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
// #endif
},
onShow() {
onLoad() {
this.getUserInfo()
},
methods: {
@ -286,12 +286,12 @@
'gif' || gs == 'tif' || gs == 'tiff') {
item.file = fileArr[0]
} else if (gs == 'pdf') {
item.file = '../../static/fileImg/pdfS.png'
item.file = '../../static/DataSearch/UploadImg.png'
}
}
})
if (res.data.length > 5) {
this.enjoyList = res.data.slice(0, 5)
if (res.data.length > 8) {
this.enjoyList = res.data.slice(0, 8)
} else {
this.enjoyList = res.data
}
@ -428,7 +428,12 @@
url: "/pagesC/famousArts/famousArts?id=" + val
})
},
ToEnjoy(val) {
ToEnjoy(val,num,tp) {
if(tp == '0'){
this.leftList[num].views++
}else if(tp == '1'){
this.rightList[num].views++
}
uni.navigateTo({
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
})

View File

@ -264,8 +264,6 @@
} else {
this.tab = 1
}
},
onShow() {
this.pages = 1
this.list2 = []
if (this.tab == 0) {
@ -275,6 +273,9 @@
} else if (this.tab == 2) {
this.getZZ()
}
},
onShow() {
},
//
onPullDownRefresh() {

View File

@ -117,7 +117,7 @@
<u-switch v-model="isGm" @change="changeTrue"></u-switch>
</view>
</view>
<view class="form_line">
<view class="form_line" v-if="isGm">
<view class="form_left">
冠名申请开始时间
</view>
@ -125,7 +125,7 @@
<uni-datetime-picker type="datetime" v-model="gmTime" :border="false" :clearIcon="false" />
</view>
</view>
<view class="form_line">
<view class="form_line" v-if="isGm">
<view class="form_left">
冠名申请结束时间
</view>

View File

@ -200,7 +200,7 @@
size:20,
};
},
onShow() {
onLoad() {
this.clickTab(this.tabNum)
},
//

View File

@ -36,8 +36,8 @@
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
placement="column" iconPlacement="right">
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
:key="index" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
:name="item.tagName" activeColor="#99241B ">
:key="item.tagName" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
:name="item.tagName" activeColor="#99241B " @change="checkboxChange(item.tagName)">
</u-checkbox>
</u-checkbox-group>
</scroll-view>
@ -196,7 +196,7 @@
})
},
change(e) {
this.radiolist2 = []
this.radiovalue2 = this.tabs
this.getTab()
},
next() {
@ -328,8 +328,28 @@
},
selectForm2(form) {
let data = form
this.tabs = form
this.v2 = data.join(',')
// this.v2 = data.join(',')
},
checkboxChange(n) {
// console.log("n",n)
let _this = this
let num = 0
let deNUm = false
if(this.tabs.length > 0){
this.tabs.forEach((ele,i) => {
if(ele == n){
num = i
deNUm = true
}
})
}
if(deNUm){
this.tabs.splice(num,1)
}else {
this.tabs.push(n)
}
this.radiovalue2 = this.tabs
this.v2 = this.tabs.join(',')
},
addNewTab() {
this.showTab = false

View File

@ -22,10 +22,10 @@
</view>
</view>
<view class="shou_main">
<view class="shou_main_left" @click="toDetail(v.goodsId,v.id)">
<view class="shou_main_left" @click="toDetail(v.goodsId,v.id,i)">
<image :src="v.file" class="shou_main_left_img"></image>
</view>
<view class="shou_main_center" @click="toDetail(v.goodsId,v.id)">
<view class="shou_main_center" @click="toDetail(v.goodsId,v.id,i)">
<view class="shou_main_center_name">
{{v.name}}
</view>
@ -67,6 +67,8 @@
allPoint: 0,
pages: 1,
size: 20,
sonId: '',
sonNum: '',
};
},
//
@ -83,10 +85,15 @@
this.pages++
this.getMoreData();
},
onShow() {
onLoad() {
this.pages = 1
this.getData()
},
onShow() {
if(this.sonId){
this.getSonData()
}
},
methods: {
//
getData(){
@ -168,7 +175,10 @@
});
})
},
toDetail(val1,val2){
toDetail(val1,val2,num){
this.goodsId = val1
this.sonId = val2
this.sonNum = num
if(val1 != null){
uni.navigateTo({
url: "/pagesC/OrderDetail/OrderDetail?id=" + val1
@ -178,6 +188,38 @@
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val2
})
}
},
getSonData() {
if(this.goodsId) {
this.http.request('/goods/' + this.goodsId, {}, "GET").then(res => {
if (res.code == 200) {
if(!res.data.follow){
this.list.splice(this.sonNum,1)
}
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}else {
this.http.request('/works/details', {
id: this.sonId
}, "GET").then(res => {
if (res.code == 200) {
if(!res.data.isColl){
this.list.splice(this.sonNum,1)
}
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
}
}
};

View File

@ -4,12 +4,16 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="workDetail" v-if="load == false">
<!-- 封面图片 -->
<view style="width: 100%;">
<image style="width: 100%;" :src="cover" mode="widthFix"></image>
</view>
<!-- 轮播图 -->
<u-swiper v-if="list.length > 0" :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px">
<!-- <u-swiper v-if="list.length > 0" :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px">
<view slot="indicator" class="indicator-num">
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
</view>
</u-swiper>
</u-swiper> -->
<!-- 作品名称 -->
<view class="work_name">
{{detailData.name}}
@ -64,6 +68,8 @@
</view>
</view>
</view>
<!-- 其他图片 -->
<image v-if="list.length > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image>
<!-- 附带文件 -->
<view class="file_box" v-for="(item,index) in list2" :key="index" @click="downLoad(item.url)">
<view class="file_box_left">
@ -103,6 +109,7 @@
iswx: 0,
detailData: {},
contractUrl: '',
cover: ''
}
},
onLoad(op) {
@ -147,6 +154,10 @@
}
})
}
if(this.list.length > 0){
this.cover = this.list[0]
this.list.splice(0,1)
}
this.detailData = res.data
_this.load = false
}

View File

@ -37,7 +37,9 @@
dataList: [],
pages: 1,
size: 20,
type: ''
type: '',
//
requestStatus: false
};
},
onLoad() {
@ -55,7 +57,6 @@
//
onReachBottom() {
this.pages++
this.load = true
this.getData();
},
methods: {
@ -91,6 +92,11 @@
})
},
getData() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let that = this
let par = {
page: this.pages,
@ -112,6 +118,11 @@
}
this.load = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({

View File

@ -6,7 +6,7 @@
<view v-else>
<view class="search_box">
<u-search height=42 margin="0 0 12px 0" searchIconColor="#251B1D" shape="square" :showAction="false"
v-model="artValue" placeholder="请输入名家名称" @search='search'></u-search>
v-model="artValue" placeholder="请输入关键字" @search='search'></u-search>
</view>
<!-- <u-tabs @click="clickTabs" :list="list1" :activeStyle="{
@ -47,8 +47,8 @@
</u-empty>
<view class="art_item" v-for="(v, i) in workList" :key="i">
<view class="art_item_top">
<image :src="v.file" mode="" @click="toDetail(v.id)"></image>
<view class="like" @click="like(v.id, v.isGreat)">
<image :src="v.file" mode="" @click="toDetail(v.id,i)"></image>
<view class="like" @click="like(v.id, v.isGreat,i)">
<view :class="v.isGreat ? 'img_selected' : 'img'">
<!-- 红心 -->
</view>
@ -58,7 +58,7 @@
</view>
</view>
<view class=" art_item_bott">
<view class="title" @click="toDetail(v.id)">
<view class="title" @click="toDetail(v.id,i)">
{{ v.name }}
</view>
<view class="sub_title" style="overflow: hidden;">
@ -114,6 +114,10 @@
typeO: 0,
typeT: 9999,
lineBg: '../../static/scrollLine.png',
sonId: '',
sonNum: '',
//
requestStatus: false
};
},
//
@ -137,6 +141,11 @@
this.pages = 1
this.getType()
},
onShow() {
if(this.sonId){
this.getSonData()
}
},
methods: {
//
getType() {
@ -179,6 +188,11 @@
},
//
getData() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http.request('/works/list', {
page: this.pages,
@ -212,6 +226,11 @@
}
})
_this.load = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({
@ -260,12 +279,13 @@
})
},
//
like(val1, val2) {
like(val1, val2,num) {
if (val2) {
this.workList[num].isGreat = false
this.http.request('/worksGreat/delGreat?type=1&workId=' + val1, "POST").then(res => {
if (res.code == 200) {
this.pages = 1
this.getData()
this.workList[num].likes--
this.load = false
}
}).catch(e => {
uni.showToast({
@ -274,10 +294,11 @@
});
})
} else {
this.workList[num].isGreat = true
this.http.request('/worksGreat/addGreat?type=1&workId=' + val1, "POST").then(res => {
if (res.code == 200) {
this.pages = 1
this.getData()
this.workList[num].likes++
this.load = false
}
}).catch(e => {
uni.showToast({
@ -288,7 +309,9 @@
}
},
//
toDetail(val) {
toDetail(val,num) {
this.sonId = val
this.sonNum = num
uni.navigateTo({
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
})
@ -371,6 +394,21 @@
this.pages++
this.getMoreData();
}
},
getSonData() {
this.http.request('/works/details', {
id: this.sonId
}, "GET").then(res => {
if (res.code == 200) {
this.workList[this.sonNum].isGreat = res.data.isGreat
this.workList[this.sonNum].likes = res.data.likes
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
}
}

View File

@ -79,7 +79,7 @@
</view>
</view>
<!-- 其他图片 -->
<image v-if="list.lenght > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image>
<image v-if="list.length > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image>
<!-- 附带文件 -->
<view class="file_box" v-for="(item,index) in list2" :key="index" @click="downLoad(item.url)">
<view class="file_box_left">

View File

@ -168,7 +168,7 @@
this.topHeight = this.statusHeight + this.titleHeight
// #endif
},
onShow() {
onLoad() {
this.pages = 1
this.getData()
},

View File

@ -36,13 +36,13 @@
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
placement="column" iconPlacement="right">
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
:key="index" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
:name="item.tagName" activeColor="#99241B ">
:key="item.tagName" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
:name="item.tagName" activeColor="#99241B " @change="checkboxChange(item.tagName)">
</u-checkbox>
</u-checkbox-group>
</scroll-view>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showTab=false">确认</u-button>
type="default" @click="showTab = false">确认</u-button>
</u-popup>
<u-popup :show="addTab" @close="closeAdd" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<view style="display: flex; padding: 20rpx 0; font-size: 36rpx;">
@ -173,7 +173,7 @@
})
},
change(e) {
this.radiolist2 = []
this.radiovalue2 = this.tabs
this.getTab()
},
next() {
@ -305,8 +305,28 @@
},
selectForm2(form) {
let data = form
this.tabs = form
this.v2 = data.join(',')
// this.v2 = data.join(',')
},
checkboxChange(n) {
// console.log("n",n)
let _this = this
let num = 0
let deNUm = false
if(this.tabs.length > 0){
this.tabs.forEach((ele,i) => {
if(ele == n){
num = i
deNUm = true
}
})
}
if(deNUm){
this.tabs.splice(num,1)
}else {
this.tabs.push(n)
}
this.radiovalue2 = this.tabs
this.v2 = this.tabs.join(',')
},
addNewTab() {
this.showTab = false

View File

@ -4,11 +4,15 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="workDetail" v-if="load == false">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300px">
<view slot="indicator" class="indicator-num">
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
</view>
</u-swiper>
<!-- 封面图片 -->
<!-- <view style="width: 100%;">
<image style="width: 100%;" :src="cover" mode="widthFix"></image>
</view> -->
<view class="work_name">
<!-- 作品名称自由生活向美而生作品 -->
{{actDetObj.title}}
@ -36,8 +40,8 @@
<!-- 1288浏览 -->
</view>
</view>
</view>
<!-- <image v-if="list.length > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image> -->
</view>
</view>
@ -49,13 +53,11 @@
data() {
return {
load: true,
list: [
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
],
list: [],
currentNum: 0,
actDetObj: {},
ActId:''
ActId:'',
cover: ''
}
},
onShow() {
@ -71,6 +73,10 @@
if (res.code == 200) {
this.actDetObj = res.data
this.list = res.data.picture.split(',')
// if(this.list.length > 0){
// this.cover = this.list[0]
// this.list.splice(0,1)
// }
this.load = false
}
}).catch(e => {
@ -104,6 +110,13 @@
font-size: 12px;
}
}
.coverImg{
width: 100%;
}
.decTmgs{
width: 94%;
margin: 10px 3%;
}
.work_name {
width: 94%;

View File

@ -44,7 +44,7 @@
</view>
<u-empty v-if="jianAct.length < 1" mode="data" icon="../../static/orderE.png" marginTop="120">
</u-empty>
<view class="activity" v-for="(v,i) in jianAct" :key="i" @click="goDetail(v.id)">
<view class="activity" v-for="(v,i) in jianAct" :key="i" @click="goDetail(v.id,i)">
<view class="left">
<view class="content">
<view class="title">
@ -87,14 +87,17 @@
jianAct: [],
pages: 1,
size: 20,
//
requestStatus: false
};
},
onShow() {
onLoad() {
this.getHBQ()
this.pages = 1
},
methods: {
goDetail(id){
goDetail(id,num){
this.jianAct[num].views++
uni.navigateTo({
url:'/pagesB/literFamily/ActJianDetail?id='+id
})
@ -162,6 +165,11 @@
},
//
getMoreData() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
this.http.request('/silhouette/list', {
page: this.pages,
size: this.size
@ -171,6 +179,11 @@
item.picture = picArr[0]
this.jianAct.push(item)
})
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}).catch(e => {
uni.showToast({
title: e.data.message,

View File

@ -90,12 +90,25 @@
<u-number-box v-model="perNumber" @change="valChange"></u-number-box>
</view>
</view>
<view class="gap">
封面上传
</view>
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)
</view>
<u-upload class="upload" width="172rpx" height="172rpx" :fileList="fileList1"
@afterRead="afterRead" @delete="deletePic" name="1" multiple :maxCount="1">
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
<view class="gap">
附件上传
</view>
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)
</view>
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
附件图片推荐比例 37:24
</view>
<u-upload class="upload" width="172rpx" height="172rpx" :fileList="fileList3"
@afterRead="afterRead" @delete="deletePic" name="3" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
@ -132,6 +145,7 @@
morePer: true,
perNumber: 1,
fileList3: [],
fileList1: [],
ok: true,
}
},
@ -353,6 +367,14 @@
this.ok = false
return
}
if(this.fileList1.length == 0){
uni.showToast({
title: '请上传封面',
icon: "none",
});
this.ok = false
return
}
if(this.fileList3.length == 0){
uni.showToast({
title: '请上传附件',
@ -396,7 +418,8 @@
receiverType: this.userTypeValue,
title: this.name,
type: this.typeId,
enclosure: data
enclosure: data,
cover: this.fileList1[0].url,
}, "POST").then(res => {
if (res.code == 200) {
uni.navigateBack()

View File

@ -1,278 +1,288 @@
<template>
<view class="">
<view class="">
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="page" v-if="load == false">
<view class="nav">
<view class="list" v-for="(item, index) in list" :key="index" @click="onNav(item.code, index)">
<view :class="['text', action == index ? 'on' : '']">{{ item.text }}</view>
</view>
</view>
<view class="addIcon" @click="toAddOrder">
<image src="../../static/orderHall/addOrder.png"></image>
</view>
<view class="main" v-if="mainList.length > 0">
<view class="mainList" v-for="(item, i) in mainList" :key="i">
<view class="mainListImg" @click="toDetail(item.id)">
<img class='img' :src="item.enclosure" alt="">
<view class="imgTags" v-if="item.isBaoming">
<u-tag text="已完成" type="success" v-if="item.hallState == '3'"></u-tag>
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
<u-tag text="已接单" type="warning" v-else></u-tag>
</view>
<view class="imgTags" v-else>
<u-tag text="招募中" v-if="item.hallState == '1'"></u-tag>
<u-tag text="进行中" v-else-if="item.hallState == '2'"></u-tag>
<u-tag text="已完成" type="success" v-else-if="item.hallState == '3'"></u-tag>
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
</view>
</view>
<view class="text">
<view class="text1">{{ item.title }}</view>
<view class="text2">{{ item.content }}</view>
<view class="text3">
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
<view class="time">截止时间{{ item.deadline }}</view>
</view>
</view>
</view>
<view class="">
<view class="">
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="page" v-if="load == false">
<view class="nav">
<view class="list" v-for="(item, index) in list" :key="index" @click="onNav(item.code, index)">
<view :class="['text', action == index ? 'on' : '']">{{ item.text }}</view>
</view>
</view>
<view class="addIcon" @click="toAddOrder">
<image src="../../static/orderHall/addOrder.png"></image>
</view>
<view class="main" v-if="mainList.length > 0">
<view class="mainList" v-for="(item, i) in mainList" :key="i" @click="toDetail(item.id)">
<view class="mainListImg">
<img class='img' :src="item.cover" alt="" mode="widthFix">
<view class="imgTags" v-if="item.isBaoming">
<u-tag text="已完成" type="success" v-if="item.hallState == '3'"></u-tag>
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
<u-tag text="已接单" type="warning" v-else></u-tag>
</view>
<view class="imgTags" v-else>
<u-tag text="招募中" v-if="item.hallState == '1'"></u-tag>
<u-tag text="进行中" v-else-if="item.hallState == '2'"></u-tag>
<u-tag text="已完成" type="success" v-else-if="item.hallState == '3'"></u-tag>
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
</view>
</view>
<view class="text">
<view class="text1">{{ item.title }}</view>
<view class="text2 u-line-2">{{ item.content }}</view>
<view class="text3">
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
<view class="time">截止时间{{ item.deadline }}</view>
</view>
</view>
</view>
</view>
<view v-else>
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
</u-empty>
</view>
</view>
</view>
</view>
<view v-else>
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
</u-empty>
</view>
</view>
</view>
</template>
<script>
export default {
data () {
return {
load: true,
list: [{
text: '全部',
code: ''
},
{
text: '订购',
code: 'order'
},
{
text: '公益',
code: 'gy'
},
{
text: '演出',
code: 'show'
},
{
text: '其他',
code: 'other'
}
],
mainList: [],
action: 0,
pages: 1,
size: 20,
type: '',
}
},
//
onPullDownRefresh () {
this.pages = 1
this.mainList = []
this.getData()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
//
onReachBottom () {
this.pages++
this.getData();
},
onLoad () {
this.pages = 1
this.load = true
this.mainList = []
this.getData()
},
methods: {
getData () {
let _this = this
this.http.request('/hall/list', {
page: this.pages,
size: this.size,
type: this.type,
}, "GET").then(res => {
if (res.code == 200) {
if (res.data.records.length > 0) {
res.data.records.forEach(function (item) {
if (item.enclosure) {
let fileArr = item.enclosure.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') {
item.enclosure = fileArr[0]
}
else if (gs == 'pdf') {
item.enclosure = '../../static/fileImg/pdfB.png'
}
}
_this.mainList.push(item)
})
} else {
this.pages--
}
this.load = false
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
onNav (val, index) {
this.action = index
this.type = val
this.pages = 1
this.load = true
this.mainList = []
this.getData()
},
toDetail (val) {
uni.navigateTo({
url: `/pagesB/orderHall/orderHallDetails?id=` + val
})
},
toAddOrder () {
uni.navigateTo({
url: `/pagesB/orderHall/addOrder`
})
}
}
}
export default {
data() {
return {
load: true,
list: [{
text: '全部',
code: ''
},
{
text: '订购',
code: 'order'
},
{
text: '公益',
code: 'gy'
},
{
text: '演出',
code: 'show'
},
{
text: '其他',
code: 'other'
}
],
mainList: [],
action: 0,
pages: 1,
size: 20,
type: '',
//
requestStatus: false
}
},
//
onPullDownRefresh() {
this.pages = 1
this.mainList = []
this.getData()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
//
onReachBottom() {
this.pages++
this.getData();
},
onLoad() {
this.pages = 1
this.load = true
this.mainList = []
this.getData()
},
methods: {
getData() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http.request('/hall/list', {
page: this.pages,
size: this.size,
type: this.type,
}, "GET").then(res => {
if (res.code == 200) {
if (res.data.records.length > 0) {
res.data.records.forEach(function(item) {
if (item.enclosure) {
let fileArr = item.enclosure.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') {
item.enclosure = fileArr[0]
} else if (gs == 'pdf') {
item.enclosure = '../../static/fileImg/pdfB.png'
}
}
_this.mainList.push(item)
})
} else {
this.pages--
}
this.load = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
onNav(val, index) {
this.action = index
this.type = val
this.pages = 1
this.load = true
this.mainList = []
this.getData()
},
toDetail(val) {
uni.navigateTo({
url: `/pagesB/orderHall/orderHallDetails?id=` + val
})
},
toAddOrder() {
uni.navigateTo({
url: `/pagesB/orderHall/addOrder`
})
}
}
}
</script>
<style lang="scss" scoped>
page {
background-color: #f8f8f8;
}
page {
background-color: #f8f8f8;
}
image {
width: 100%;
height: 100%;
}
image {
width: 100%;
height: 100%;
}
.on {
font-weight: 600;
}
.on {
font-weight: 600;
}
.page {
.nav {
display: flex;
.page {
.nav {
display: flex;
.list {
width: 20%;
height: 76rpx;
background: #FFFFFF;
.list {
width: 20%;
height: 76rpx;
background: #FFFFFF;
.text {
font-size: 28rpx;
font-weight: 400;
color: #251B1D;
line-height: 70rpx;
text-align: center;
position: relative;
.text {
font-size: 28rpx;
font-weight: 400;
color: #251B1D;
line-height: 70rpx;
text-align: center;
position: relative;
&.on::after {
content: '';
position: absolute;
height: 6rpx;
background: #9A2720;
width: 39%;
left: 50%;
bottom: 0;
transform: translateX(-50%);
}
}
}
}
&.on::after {
content: '';
position: absolute;
height: 6rpx;
background: #9A2720;
width: 39%;
left: 50%;
bottom: 0;
transform: translateX(-50%);
}
}
}
}
.main {
padding: 32rpx;
// background-color: #F4F5F7;
.main {
padding: 32rpx;
// background-color: #F4F5F7;
.mainList {
margin-bottom: 32rpx;
border-radius: 16rpx;
overflow: hidden;
.mainList {
margin-bottom: 32rpx;
border-radius: 16rpx;
overflow: hidden;
.mainListImg {
height: 400rpx;
position: relative;
.mainListImg {
position: relative;
.img {
width: 100%;
height: 100%;
}
.img {
width: 100%;
}
.imgTags {
position: absolute;
right: 0;
bottom: 0;
}
}
.imgTags {
position: absolute;
right: 0;
bottom: 0;
}
}
.text {
padding: 32rpx;
background-color: #FFF;
.text {
padding: 32rpx;
background-color: #FFF;
.text1 {
font-size: 32rpx;
font-weight: 600;
color: #251B1D;
margin-bottom: 5rpx;
}
.text1 {
font-size: 32rpx;
font-weight: 600;
color: #251B1D;
margin-bottom: 5rpx;
}
.text2 {
font-size: 28rpx;
font-weight: 400;
color: #989898;
}
.text2 {
font-size: 28rpx;
font-weight: 400;
color: #989898;
}
.text3 {
display: flex;
margin-top: 16rpx;
.text3 {
display: flex;
margin-top: 16rpx;
.mainListTime {
width: 26rpx;
height: 26rpx;
margin-top: 4rpx;
margin-right: 8rpx;
}
.mainListTime {
width: 26rpx;
height: 26rpx;
margin-top: 4rpx;
margin-right: 8rpx;
}
.time {
font-size: 24rpx;
font-weight: 400;
color: #989898;
}
}
}
}
}
.time {
font-size: 24rpx;
font-weight: 400;
color: #989898;
}
}
}
}
}
.addIcon {
position: fixed;
right: 24rpx;
bottom: 242rpx;
width: 104rpx;
height: 104rpx;
border-radius: 50%;
z-index: 999;
}
}
</style>
.addIcon {
position: fixed;
right: 24rpx;
bottom: 242rpx;
width: 104rpx;
height: 104rpx;
border-radius: 50%;
z-index: 999;
}
}
</style>

View File

@ -70,11 +70,11 @@
<view class="content"><text
style=" color: #99241B;">{{serveList.zyzBmCount}}</text>/{{serveList.zyzCount}}</view>
</view>
<view class="title">
<view class="title" v-if="serveList.isGm">
<image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image>
<text>服务商冠名</text>
</view>
<view class="item_li">
<view class="item_li" v-if="serveList.isGm">
<view class="standard">
<image class="icon" src="../../static/detailIcon/icon5.png" mode="scaleToFill"></image>
<text>冠名申请时间:</text>

View File

@ -36,6 +36,8 @@
size: 20,
isAdmin : true,
userType: '',
//
requestStatus: false
};
},
onLoad() {
@ -69,6 +71,11 @@
})
},
getData(){
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http.request('/activity/list', {page:this.pages,size:this.size}, "GET").then(res => {
if (res.code == 200) {
@ -84,6 +91,11 @@
this.pages--
}
this.load = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({

View File

@ -43,14 +43,14 @@
</view>
<checkbox-group @change="changeCheckbox">
<view class="itm" v-for="(item,index) in checkboxData" :key="item.id">
<view class="fileImg">
<view class="fileImg" @click="previewImage(item)">
<image :src="item.url" mode="" v-if="item.type == 'photo'"></image>
<image src="../../static/DataSearch/TxtImg.png" mode="" v-else-if="item.type == 'txt'"></image>
<image src="../../static/DataSearch/musicImg.png" mode="" v-else-if="item.type == 'music'">
</image>
<image src="../../static/DataSearch/other.png" mode="" v-else></image>
</view>
<view class="data_detail_box">
<view class="data_detail_box" @click="previewImage(item)">
<view class="file_title">
<!-- 资料查找 -->
{{ item.name }}
@ -286,6 +286,7 @@
this.oldID.splice(-1,1)
this.folderList = []
this.checkboxData = []
this.getList()
},
addDir(val) {
@ -301,6 +302,10 @@
},
getList() {
let that = this
this.dotNum = []
this.checkedArr = []
this.isSelect = true
this.allChecked = false
let par = {
dirIds: this.dirIds,
name: this.dataVal
@ -323,6 +328,21 @@
});
})
},
//
previewImage(val) { // index 使 (val)
console.log(val)
let photoList = []
if(val.type == 'photo'){
photoList.push(val.url)
uni.previewImage({
current: 0, //
urls: photoList, // photoList
loop:true, //
})
}
}
}
}
</script>

View File

@ -14,12 +14,23 @@
<view class="form_left">
类型
</view>
<view class="form_right">
<u--input placeholder="请输入类型" v-model="text2" clearable border="none" inputAlign="right"
style="color: #251B1D;">
<view class="form_right" @click="showType=true">
<u--input placeholder="请输入类型" v-model="type" border="none" inputAlign="right"
style="color: #251B1D;" readonly>
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
</u--input>
</view>
</view>
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<u-radio-group @change="selectForm1" v-model="type" :borderBottom="true" placement="column"
iconPlacement="right">
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist1" :key="index"
:label="item.name" labelSize="28rpx" labelColor="#231F1C" :name="item.name" activeColor="#99241B ">
</u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showType=false">确认</u-button>
</u-radio-group>
</u-popup>
<view class="gap">
文件上传
</view>
@ -47,8 +58,19 @@
name: '',
text2: '',
fileList3: [],
radiovalue1: '',
radiolist1: [{
name: '图片',
id: 'photo'
},{
name: '其他',
id: 'other'
}
],
ok: true,
isWx: true,
showType: false,
type: ''
}
},
onLoad(op){
@ -136,7 +158,7 @@
this.ok = false
return
}
if(this.text2 == ''){
if(this.type == ''){
uni.showToast({
title: '请输入类型',
icon: "none",
@ -158,7 +180,7 @@
image.push(item.url)
})
let data = image.join(',')
this.http.request('/information/upload?dirIds=' + this.id + '&type=' + this.text2 + '&name=' + this.name + '&url=' + data , {}, "POST").then(res => {
this.http.request('/information/upload?dirIds=' + this.id + '&type=' + this.radiovalue1 + '&name=' + this.name + '&url=' + data , {}, "POST").then(res => {
if (res.code == 200) {
uni.navigateBack()
}
@ -169,7 +191,25 @@
});
})
}
}
},
selectType() {
this.$refs.picker.show()
},
selectForm1(form) {
let _this = this
this.radiolist1.forEach(function(item) {
if (item.name == form) {
_this.radiovalue1 = item.id
}
})
},
// selectForm1(e) {
// const value = e.detail.value
// console.log(this.radiovalue1)
// },
close() {
this.showType = false
},
}
}

View File

@ -4,7 +4,7 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view v-if="load == false">
<view class="express_contain" v-for="(v,i) in list2" :key="i" @click="toDetail(v.id)">
<view class="express_contain" v-for="(v,i) in list2" :key="i" @click="toDetail(v.id,i)">
<view class="express_contain_content">
{{v.title}}
</view>
@ -41,6 +41,8 @@
pages: 1,
size: 20,
list2: [],
//
requestStatus: false
};
},
onLoad() {
@ -62,6 +64,11 @@
},
methods: {
getData() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http.request('/policy/list', {
page: this.pages,
@ -76,6 +83,12 @@
this.pages--
}
this.load = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({
@ -84,7 +97,8 @@
});
})
},
toDetail(val) {
toDetail(val, num) {
this.list2[num].view++
uni.navigateTo({
url: "/pagesC/PolicyExpress/PolicyExpressDetail?id=" + val
})
@ -113,23 +127,23 @@
color: #8E8F9E;
font-size: 12px;
overflow: hidden;
.det_box {
float: left;
margin-right: 20px;
overflow: hidden;
.box_left {
width: 16px;
height: 16px;
float: left;
.img {
width: 100%;
height: 100%;
}
}
.box_right {
margin-left: 2px;
float: left;
@ -137,4 +151,4 @@
}
}
}
</style>
</style>

View File

@ -1,33 +1,38 @@
<template>
<view class="page">
<view class="pageTtitle">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
<view class="apptitle" :style="{'height':titleHeight+'px'}">
动态
</view>
<view class="">
<view v-if="loadings">
<u-loading-page class="loading" loading-text="加载中" :loading="loadings"></u-loading-page>
</view>
<view :style="{'height':zwHeight+'px'}"></view>
<view class="activity" v-for="(v,i) in list2" :key="i" @click="toDetail(v.id)">
<view class="left">
<view class="content">
<view class="title">
<text class="zd" v-if="v.isTop">置顶</text>
{{v.title}}
<view class="page" v-if="!loadings">
<view class="pageTtitle">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
<view class="apptitle" :style="{'height':titleHeight+'px'}">
动态
</view>
</view>
<view :style="{'height':zwHeight+'px'}"></view>
<view class="activity" v-for="(v,i) in list2" :key="i" @click="toDetail(v.id,i)">
<view class="left">
<view class="content">
<view class="title">
<text class="zd" v-if="v.isTop">置顶</text>
{{v.title}}
</view>
</view>
<view class="clidate">
<view class="cliNum">点击量:{{v.readCount}}</view>
<view class="date">{{v.fbTime}}</view>
</view>
</view>
<view class="clidate">
<view class="cliNum">点击量:{{v.readCount}}</view>
<view class="date">{{v.fbTime}}</view>
<view class="right">
<image :src="v.imgCover" mode=""></image>
</view>
</view>
<view class="right">
<image :src="v.imgCover" mode=""></image>
</view>
<u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty>
<tabbar tabbarId='2'></tabbar>
</view>
<u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty>
<tabbar tabbarId='2'></tabbar>
</view>
</template>
<script>
@ -40,6 +45,9 @@
pages: 1,
size: 20,
list2: [],
loadings: true,
//
requestStatus: false
};
},
onReady() {
@ -77,12 +85,18 @@
this.getData();
},
methods:{
toDetail(val){
toDetail(val,num){
this.list2[num].readCount++
uni.navigateTo({
url: "/pagesC/activity/activityDetail?id=" + val
})
},
getData(){
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http.request('/dynamic/list', {page:this.pages,size:this.size}, "GET").then(res => {
if (res.code == 200) {
@ -97,7 +111,12 @@
}else{
this.pages--
}
this.load = false
this.loadings = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
}).catch(e => {
uni.showToast({
@ -129,6 +148,15 @@
.page {
padding:0 16px;
padding-bottom:55px;
.loading {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
background-color: #FFFFFF;
z-index: 100;
}
.pageTtitle {
position: fixed;
top: 0;

View File

@ -7,13 +7,13 @@
<view class="container">
<view class="left">
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id)">
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id,index,'0')">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<text class="det-type">类型:{{ item.typesName }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
@ -27,13 +27,13 @@
</view>
<view class="right">
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id)">
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id,index,'1')">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<text class="det-type">类型:{{ item.typesName }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
@ -112,7 +112,12 @@ export default {
});
})
},
ToEnjoy(val) {
ToEnjoy(val,num,tp) {
if(tp == '0'){
this.leftList[num].views++
}else if(tp == '1'){
this.rightList[num].views++
}
uni.navigateTo({
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
})
@ -166,7 +171,7 @@ export default {
&__goods-item {
width: 100%;
margin: 20rpx 10rpx;
margin: 20rpx 0;
&__image {
width: 100%;

View File

@ -36,10 +36,13 @@
<view class="codeTitle">{{item.name}}</view>
<view class="codeImg">
<view class="codeEle">
<image :src="item.photo" mode="" class="code"></image>
<image :src="item.photo" mode="" class="code" show-menu-by-longpress="true"></image>
</view>
<view class="remark">
识别二维码跳转至公众号
<view class="remark" v-if="item.name == '公众号'">
长按识别二维码,跳转至公众号
</view>
<view class="remark" v-else-if="item.name == '视频号'">
保存图片至相册,微信扫一扫跳转
</view>
</view>
</view>

View File

@ -10,7 +10,7 @@
</view>
<view class="search_box">
<u-search height=42 margin="12px 0" searchIconColor="#251B1D" shape="square" :showAction="false"
v-model="artValue" placeholder="请输入商品名称" @search='search'></u-search>
v-model="artValue" placeholder="请输入关键字" @search='search'></u-search>
<view class="car_box" @click="toCart">
<image src="../../static/shop/car.png" mode=""></image>
</view>
@ -60,6 +60,9 @@
<text class="txt1">{{v.pointPrice}}</text> <text>积分</text>
</view>
</view>
<view class="time">
{{v.typeName}}-{{v.typesName}}
</view>
<view class="time">
{{v.sellCount}}人已购
</view>

View File

@ -5,7 +5,7 @@
<view class="teamBox-title">
{{ item.name }}
</view>
<view class="teamBox-top" @click="toDetail(item.id)">
<view class="teamBox-top" @click="toDetail(item.id,index)">
<image :src="item.cover" mode="" style="width: 100%; height: 100%;"></image>
</view>
<view class="teamBox-bottom">
@ -15,12 +15,12 @@
</view>
<view class="interactive">
<image src="../../static/workDetail/heart2.png" class="bot_img" v-if="item.isGreat"
@click="clickHeart(item.isGreat, item.id)">
@click="clickHeart(item.isGreat, item.id,index)">
</image>
<image src="../../static/workDetail/heart1.png" class="bot_img" v-else
@click="clickHeart(item.isGreat, item.id)">
@click="clickHeart(item.isGreat, item.id,index)">
</image>
<view class="title" @click="clickHeart(item.isGreat, item.id)">
<view class="title" @click="clickHeart(item.isGreat, item.id,index)">
{{ item.likes }}
</view>
</view>
@ -37,6 +37,7 @@
</view>
</view>
</view>
<u-loading-page class="loading" loading-text="加载中" :loading="loadings"></u-loading-page>
</view>
</template>
@ -48,6 +49,9 @@
list: [],
pages: 1,
size: 10,
loadings: true,
//
requestStatus: false
};
},
onLoad() {
@ -79,14 +83,14 @@
// this.getData()
},
//
clickHeart(val0, val1) {
console.log(val1)
clickHeart(val0, val1,num) {
this.loadings = true
if (val0) {
this.list[num].isGreat = false
this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => {
if (res.code == 200) {
this.pages = 1
this.list = []
this.get()
this.loadings = false
this.list[num].likes--
}
}).catch(e => {
uni.showToast({
@ -95,11 +99,11 @@
});
})
} else {
this.list[num].isGreat = true
this.http.request('/worksGreat/addGreat?type=3&workId=' + val1, "POST").then(res => {
if (res.code == 200) {
this.pages = 1
this.list = []
this.get()
this.loadings = false
this.list[num].likes++
}
}).catch(e => {
uni.showToast({
@ -140,6 +144,11 @@
}
},
get() {
if (this.requestStatus) {
// return
return false;
}
this.requestStatus = true;
let _this = this
this.http
.request("/exhibition/list", {
@ -160,6 +169,12 @@
} else {
this.pages--
}
this.loadings = false
setTimeout(() => {
//
// requestStatus
this.requestStatus = false;
}, 500);
}
})
.catch((e) => {
@ -170,7 +185,8 @@
});
},
toDetail(val) {
toDetail(val,num) {
this.list[num].views++
uni.navigateTo({
//
url: "/pagesD/xskz/details?id=" + val,
@ -199,6 +215,13 @@
.wyxx {
background-color: #fefefe;
}
.loading {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
}
.tabTitle {
display: flex;