This commit is contained in:
parent
e025d6ab0a
commit
5a8e1a00c6
|
@ -83,13 +83,13 @@
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
|
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
|
||||||
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
|
: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>
|
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
|
||||||
<view class="scroll-list__goods-item__title">
|
<view class="scroll-list__goods-item__title">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="scroll-list__goods-item__text">
|
<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="det_box">
|
||||||
<view class="box_left">
|
<view class="box_left">
|
||||||
<image src="../../static/workDetail/seen.png" class="img"></image>
|
<image src="../../static/workDetail/seen.png" class="img"></image>
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
|
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
|
||||||
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
|
: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>
|
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
|
||||||
<view class="scroll-list__goods-item__title">
|
<view class="scroll-list__goods-item__title">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
this.titleHeight = menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
|
this.titleHeight = menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -286,12 +286,12 @@
|
||||||
'gif' || gs == 'tif' || gs == 'tiff') {
|
'gif' || gs == 'tif' || gs == 'tiff') {
|
||||||
item.file = fileArr[0]
|
item.file = fileArr[0]
|
||||||
} else if (gs == 'pdf') {
|
} else if (gs == 'pdf') {
|
||||||
item.file = '../../static/fileImg/pdfS.png'
|
item.file = '../../static/DataSearch/UploadImg.png'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (res.data.length > 5) {
|
if (res.data.length > 8) {
|
||||||
this.enjoyList = res.data.slice(0, 5)
|
this.enjoyList = res.data.slice(0, 8)
|
||||||
} else {
|
} else {
|
||||||
this.enjoyList = res.data
|
this.enjoyList = res.data
|
||||||
}
|
}
|
||||||
|
@ -428,7 +428,12 @@
|
||||||
url: "/pagesC/famousArts/famousArts?id=" + val
|
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({
|
uni.navigateTo({
|
||||||
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
||||||
})
|
})
|
||||||
|
|
|
@ -264,8 +264,6 @@
|
||||||
} else {
|
} else {
|
||||||
this.tab = 1
|
this.tab = 1
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
this.pages = 1
|
this.pages = 1
|
||||||
this.list2 = []
|
this.list2 = []
|
||||||
if (this.tab == 0) {
|
if (this.tab == 0) {
|
||||||
|
@ -275,6 +273,9 @@
|
||||||
} else if (this.tab == 2) {
|
} else if (this.tab == 2) {
|
||||||
this.getZZ()
|
this.getZZ()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
|
||||||
},
|
},
|
||||||
// 下拉刷新
|
// 下拉刷新
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
<u-switch v-model="isGm" @change="changeTrue"></u-switch>
|
<u-switch v-model="isGm" @change="changeTrue"></u-switch>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form_line">
|
<view class="form_line" v-if="isGm">
|
||||||
<view class="form_left">
|
<view class="form_left">
|
||||||
冠名申请开始时间
|
冠名申请开始时间
|
||||||
</view>
|
</view>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
<uni-datetime-picker type="datetime" v-model="gmTime" :border="false" :clearIcon="false" />
|
<uni-datetime-picker type="datetime" v-model="gmTime" :border="false" :clearIcon="false" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form_line">
|
<view class="form_line" v-if="isGm">
|
||||||
<view class="form_left">
|
<view class="form_left">
|
||||||
冠名申请结束时间
|
冠名申请结束时间
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
size:20,
|
size:20,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
this.clickTab(this.tabNum)
|
this.clickTab(this.tabNum)
|
||||||
},
|
},
|
||||||
// 下拉刷新
|
// 下拉刷新
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
||||||
placement="column" iconPlacement="right">
|
placement="column" iconPlacement="right">
|
||||||
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
|
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
|
||||||
:key="index" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
|
:key="item.tagName" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
|
||||||
:name="item.tagName" activeColor="#99241B ">
|
:name="item.tagName" activeColor="#99241B " @change="checkboxChange(item.tagName)">
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.radiolist2 = []
|
this.radiovalue2 = this.tabs
|
||||||
this.getTab()
|
this.getTab()
|
||||||
},
|
},
|
||||||
next() {
|
next() {
|
||||||
|
@ -328,8 +328,28 @@
|
||||||
},
|
},
|
||||||
selectForm2(form) {
|
selectForm2(form) {
|
||||||
let data = 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() {
|
addNewTab() {
|
||||||
this.showTab = false
|
this.showTab = false
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="shou_main">
|
<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>
|
<image :src="v.file" class="shou_main_left_img"></image>
|
||||||
</view>
|
</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">
|
<view class="shou_main_center_name">
|
||||||
{{v.name}}
|
{{v.name}}
|
||||||
</view>
|
</view>
|
||||||
|
@ -67,6 +67,8 @@
|
||||||
allPoint: 0,
|
allPoint: 0,
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
sonId: '',
|
||||||
|
sonNum: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// 下拉刷新
|
// 下拉刷新
|
||||||
|
@ -83,10 +85,15 @@
|
||||||
this.pages++
|
this.pages++
|
||||||
this.getMoreData();
|
this.getMoreData();
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
this.pages = 1
|
this.pages = 1
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
if(this.sonId){
|
||||||
|
this.getSonData()
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//获取列表
|
//获取列表
|
||||||
getData(){
|
getData(){
|
||||||
|
@ -168,7 +175,10 @@
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toDetail(val1,val2){
|
toDetail(val1,val2,num){
|
||||||
|
this.goodsId = val1
|
||||||
|
this.sonId = val2
|
||||||
|
this.sonNum = num
|
||||||
if(val1 != null){
|
if(val1 != null){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/OrderDetail/OrderDetail?id=" + val1
|
url: "/pagesC/OrderDetail/OrderDetail?id=" + val1
|
||||||
|
@ -178,6 +188,38 @@
|
||||||
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val2
|
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",
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,12 +4,16 @@
|
||||||
<u-loading-page :loading="load"></u-loading-page>
|
<u-loading-page :loading="load"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
<view class="workDetail" v-if="load == false">
|
<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">
|
<view slot="indicator" class="indicator-num">
|
||||||
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
|
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
|
||||||
</view>
|
</view>
|
||||||
</u-swiper>
|
</u-swiper> -->
|
||||||
<!-- 作品名称 -->
|
<!-- 作品名称 -->
|
||||||
<view class="work_name">
|
<view class="work_name">
|
||||||
{{detailData.name}}
|
{{detailData.name}}
|
||||||
|
@ -64,6 +68,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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" v-for="(item,index) in list2" :key="index" @click="downLoad(item.url)">
|
||||||
<view class="file_box_left">
|
<view class="file_box_left">
|
||||||
|
@ -103,6 +109,7 @@
|
||||||
iswx: 0,
|
iswx: 0,
|
||||||
detailData: {},
|
detailData: {},
|
||||||
contractUrl: '',
|
contractUrl: '',
|
||||||
|
cover: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
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.detailData = res.data
|
||||||
_this.load = false
|
_this.load = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,9 @@
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
type: ''
|
type: '',
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
@ -55,7 +57,6 @@
|
||||||
//上拉
|
//上拉
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.pages++
|
this.pages++
|
||||||
this.load = true
|
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -91,6 +92,11 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let that = this
|
let that = this
|
||||||
let par = {
|
let par = {
|
||||||
page: this.pages,
|
page: this.pages,
|
||||||
|
@ -112,6 +118,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.load = false
|
this.load = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<view class="search_box">
|
<view class="search_box">
|
||||||
<u-search height=42 margin="0 0 12px 0" searchIconColor="#251B1D" shape="square" :showAction="false"
|
<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>
|
</view>
|
||||||
|
|
||||||
<!-- <u-tabs @click="clickTabs" :list="list1" :activeStyle="{
|
<!-- <u-tabs @click="clickTabs" :list="list1" :activeStyle="{
|
||||||
|
@ -47,8 +47,8 @@
|
||||||
</u-empty>
|
</u-empty>
|
||||||
<view class="art_item" v-for="(v, i) in workList" :key="i">
|
<view class="art_item" v-for="(v, i) in workList" :key="i">
|
||||||
<view class="art_item_top">
|
<view class="art_item_top">
|
||||||
<image :src="v.file" mode="" @click="toDetail(v.id)"></image>
|
<image :src="v.file" mode="" @click="toDetail(v.id,i)"></image>
|
||||||
<view class="like" @click="like(v.id, v.isGreat)">
|
<view class="like" @click="like(v.id, v.isGreat,i)">
|
||||||
<view :class="v.isGreat ? 'img_selected' : 'img'">
|
<view :class="v.isGreat ? 'img_selected' : 'img'">
|
||||||
<!-- 红心 -->
|
<!-- 红心 -->
|
||||||
</view>
|
</view>
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class=" art_item_bott">
|
<view class=" art_item_bott">
|
||||||
<view class="title" @click="toDetail(v.id)">
|
<view class="title" @click="toDetail(v.id,i)">
|
||||||
{{ v.name }}
|
{{ v.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="sub_title" style="overflow: hidden;">
|
<view class="sub_title" style="overflow: hidden;">
|
||||||
|
@ -114,6 +114,10 @@
|
||||||
typeO: 0,
|
typeO: 0,
|
||||||
typeT: 9999,
|
typeT: 9999,
|
||||||
lineBg: '../../static/scrollLine.png',
|
lineBg: '../../static/scrollLine.png',
|
||||||
|
sonId: '',
|
||||||
|
sonNum: '',
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// 下拉刷新
|
// 下拉刷新
|
||||||
|
@ -137,6 +141,11 @@
|
||||||
this.pages = 1
|
this.pages = 1
|
||||||
this.getType()
|
this.getType()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
if(this.sonId){
|
||||||
|
this.getSonData()
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//一级作品分类
|
//一级作品分类
|
||||||
getType() {
|
getType() {
|
||||||
|
@ -179,6 +188,11 @@
|
||||||
},
|
},
|
||||||
//作品列表
|
//作品列表
|
||||||
getData() {
|
getData() {
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let _this = this
|
let _this = this
|
||||||
this.http.request('/works/list', {
|
this.http.request('/works/list', {
|
||||||
page: this.pages,
|
page: this.pages,
|
||||||
|
@ -212,6 +226,11 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
_this.load = false
|
_this.load = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -260,12 +279,13 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//点赞
|
//点赞
|
||||||
like(val1, val2) {
|
like(val1, val2,num) {
|
||||||
if (val2) {
|
if (val2) {
|
||||||
|
this.workList[num].isGreat = false
|
||||||
this.http.request('/worksGreat/delGreat?type=1&workId=' + val1, "POST").then(res => {
|
this.http.request('/worksGreat/delGreat?type=1&workId=' + val1, "POST").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.pages = 1
|
this.workList[num].likes--
|
||||||
this.getData()
|
this.load = false
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -274,10 +294,11 @@
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.workList[num].isGreat = true
|
||||||
this.http.request('/worksGreat/addGreat?type=1&workId=' + val1, "POST").then(res => {
|
this.http.request('/worksGreat/addGreat?type=1&workId=' + val1, "POST").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.pages = 1
|
this.workList[num].likes++
|
||||||
this.getData()
|
this.load = false
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -288,7 +309,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//详情页
|
//详情页
|
||||||
toDetail(val) {
|
toDetail(val,num) {
|
||||||
|
this.sonId = val
|
||||||
|
this.sonNum = num
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
||||||
})
|
})
|
||||||
|
@ -371,6 +394,21 @@
|
||||||
this.pages++
|
this.pages++
|
||||||
this.getMoreData();
|
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",
|
||||||
|
});
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
</view>
|
</view>
|
||||||
</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" v-for="(item,index) in list2" :key="index" @click="downLoad(item.url)">
|
||||||
<view class="file_box_left">
|
<view class="file_box_left">
|
||||||
|
|
|
@ -168,7 +168,7 @@
|
||||||
this.topHeight = this.statusHeight + this.titleHeight
|
this.topHeight = this.statusHeight + this.titleHeight
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
this.pages = 1
|
this.pages = 1
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
|
|
@ -36,13 +36,13 @@
|
||||||
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
||||||
placement="column" iconPlacement="right">
|
placement="column" iconPlacement="right">
|
||||||
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
|
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2"
|
||||||
:key="index" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
|
:key="item.tagName" :label="item.tagName" labelSize="28rpx" labelColor="#231F1C"
|
||||||
:name="item.tagName" activeColor="#99241B ">
|
:name="item.tagName" activeColor="#99241B " @change="checkboxChange(item.tagName)">
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
<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>
|
||||||
<u-popup :show="addTab" @close="closeAdd" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
<u-popup :show="addTab" @close="closeAdd" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||||
<view style="display: flex; padding: 20rpx 0; font-size: 36rpx;">
|
<view style="display: flex; padding: 20rpx 0; font-size: 36rpx;">
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.radiolist2 = []
|
this.radiovalue2 = this.tabs
|
||||||
this.getTab()
|
this.getTab()
|
||||||
},
|
},
|
||||||
next() {
|
next() {
|
||||||
|
@ -305,8 +305,28 @@
|
||||||
},
|
},
|
||||||
selectForm2(form) {
|
selectForm2(form) {
|
||||||
let data = 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() {
|
addNewTab() {
|
||||||
this.showTab = false
|
this.showTab = false
|
||||||
|
|
|
@ -4,11 +4,15 @@
|
||||||
<u-loading-page :loading="load"></u-loading-page>
|
<u-loading-page :loading="load"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
<view class="workDetail" v-if="load == false">
|
<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">
|
<view slot="indicator" class="indicator-num">
|
||||||
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
|
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
|
||||||
</view>
|
</view>
|
||||||
</u-swiper>
|
</u-swiper>
|
||||||
|
<!-- 封面图片 -->
|
||||||
|
<!-- <view style="width: 100%;">
|
||||||
|
<image style="width: 100%;" :src="cover" mode="widthFix"></image>
|
||||||
|
</view> -->
|
||||||
<view class="work_name">
|
<view class="work_name">
|
||||||
<!-- 作品名称自由生活向美而生作品 -->
|
<!-- 作品名称自由生活向美而生作品 -->
|
||||||
{{actDetObj.title}}
|
{{actDetObj.title}}
|
||||||
|
@ -36,8 +40,8 @@
|
||||||
<!-- 1288浏览 -->
|
<!-- 1288浏览 -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <image v-if="list.length > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
@ -49,13 +53,11 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
load: true,
|
load: true,
|
||||||
list: [
|
list: [],
|
||||||
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
|
|
||||||
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
|
|
||||||
],
|
|
||||||
currentNum: 0,
|
currentNum: 0,
|
||||||
actDetObj: {},
|
actDetObj: {},
|
||||||
ActId:''
|
ActId:'',
|
||||||
|
cover: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -71,6 +73,10 @@
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.actDetObj = res.data
|
this.actDetObj = res.data
|
||||||
this.list = res.data.picture.split(',')
|
this.list = res.data.picture.split(',')
|
||||||
|
// if(this.list.length > 0){
|
||||||
|
// this.cover = this.list[0]
|
||||||
|
// this.list.splice(0,1)
|
||||||
|
// }
|
||||||
this.load = false
|
this.load = false
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
@ -104,6 +110,13 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.coverImg{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.decTmgs{
|
||||||
|
width: 94%;
|
||||||
|
margin: 10px 3%;
|
||||||
|
}
|
||||||
|
|
||||||
.work_name {
|
.work_name {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</view>
|
</view>
|
||||||
<u-empty v-if="jianAct.length < 1" mode="data" icon="../../static/orderE.png" marginTop="120">
|
<u-empty v-if="jianAct.length < 1" mode="data" icon="../../static/orderE.png" marginTop="120">
|
||||||
</u-empty>
|
</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="left">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
|
@ -87,14 +87,17 @@
|
||||||
jianAct: [],
|
jianAct: [],
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
this.getHBQ()
|
this.getHBQ()
|
||||||
this.pages = 1
|
this.pages = 1
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goDetail(id){
|
goDetail(id,num){
|
||||||
|
this.jianAct[num].views++
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pagesB/literFamily/ActJianDetail?id='+id
|
url:'/pagesB/literFamily/ActJianDetail?id='+id
|
||||||
})
|
})
|
||||||
|
@ -162,6 +165,11 @@
|
||||||
},
|
},
|
||||||
//上拉数据
|
//上拉数据
|
||||||
getMoreData() {
|
getMoreData() {
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
this.http.request('/silhouette/list', {
|
this.http.request('/silhouette/list', {
|
||||||
page: this.pages,
|
page: this.pages,
|
||||||
size: this.size
|
size: this.size
|
||||||
|
@ -171,6 +179,11 @@
|
||||||
item.picture = picArr[0]
|
item.picture = picArr[0]
|
||||||
this.jianAct.push(item)
|
this.jianAct.push(item)
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: e.data.message,
|
title: e.data.message,
|
||||||
|
|
|
@ -90,12 +90,25 @@
|
||||||
<u-number-box v-model="perNumber" @change="valChange"></u-number-box>
|
<u-number-box v-model="perNumber" @change="valChange"></u-number-box>
|
||||||
</view>
|
</view>
|
||||||
</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 class="gap">
|
||||||
附件上传
|
附件上传
|
||||||
</view>
|
</view>
|
||||||
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
|
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
|
||||||
可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)
|
可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)
|
||||||
</view>
|
</view>
|
||||||
|
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
|
||||||
|
附件图片推荐比例: 37:24
|
||||||
|
</view>
|
||||||
<u-upload class="upload" width="172rpx" height="172rpx" :fileList="fileList3"
|
<u-upload class="upload" width="172rpx" height="172rpx" :fileList="fileList3"
|
||||||
@afterRead="afterRead" @delete="deletePic" name="3" multiple>
|
@afterRead="afterRead" @delete="deletePic" name="3" multiple>
|
||||||
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
|
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
|
||||||
|
@ -132,6 +145,7 @@
|
||||||
morePer: true,
|
morePer: true,
|
||||||
perNumber: 1,
|
perNumber: 1,
|
||||||
fileList3: [],
|
fileList3: [],
|
||||||
|
fileList1: [],
|
||||||
ok: true,
|
ok: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -353,6 +367,14 @@
|
||||||
this.ok = false
|
this.ok = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(this.fileList1.length == 0){
|
||||||
|
uni.showToast({
|
||||||
|
title: '请上传封面',
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
this.ok = false
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.fileList3.length == 0){
|
if(this.fileList3.length == 0){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请上传附件',
|
title: '请上传附件',
|
||||||
|
@ -396,7 +418,8 @@
|
||||||
receiverType: this.userTypeValue,
|
receiverType: this.userTypeValue,
|
||||||
title: this.name,
|
title: this.name,
|
||||||
type: this.typeId,
|
type: this.typeId,
|
||||||
enclosure: data
|
enclosure: data,
|
||||||
|
cover: this.fileList1[0].url,
|
||||||
}, "POST").then(res => {
|
}, "POST").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
|
|
@ -1,278 +1,288 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="">
|
<view class="">
|
||||||
<u-loading-page :loading="load"></u-loading-page>
|
<u-loading-page :loading="load"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
<view class="page" v-if="load == false">
|
<view class="page" v-if="load == false">
|
||||||
<view class="nav">
|
<view class="nav">
|
||||||
<view class="list" v-for="(item, index) in list" :key="index" @click="onNav(item.code, index)">
|
<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 :class="['text', action == index ? 'on' : '']">{{ item.text }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="addIcon" @click="toAddOrder">
|
<view class="addIcon" @click="toAddOrder">
|
||||||
<image src="../../static/orderHall/addOrder.png"></image>
|
<image src="../../static/orderHall/addOrder.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="main" v-if="mainList.length > 0">
|
<view class="main" v-if="mainList.length > 0">
|
||||||
<view class="mainList" v-for="(item, i) in mainList" :key="i">
|
<view class="mainList" v-for="(item, i) in mainList" :key="i" @click="toDetail(item.id)">
|
||||||
<view class="mainListImg" @click="toDetail(item.id)">
|
<view class="mainListImg">
|
||||||
<img class='img' :src="item.enclosure" alt="">
|
<img class='img' :src="item.cover" alt="" mode="widthFix">
|
||||||
<view class="imgTags" v-if="item.isBaoming">
|
<view class="imgTags" v-if="item.isBaoming">
|
||||||
<u-tag text="已完成" type="success" v-if="item.hallState == '3'"></u-tag>
|
<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="error" v-else-if="item.hallState == '4'"></u-tag>
|
||||||
<u-tag text="已接单" type="warning" v-else></u-tag>
|
<u-tag text="已接单" type="warning" v-else></u-tag>
|
||||||
</view>
|
</view>
|
||||||
<view class="imgTags" v-else>
|
<view class="imgTags" v-else>
|
||||||
<u-tag text="招募中" v-if="item.hallState == '1'"></u-tag>
|
<u-tag text="招募中" v-if="item.hallState == '1'"></u-tag>
|
||||||
<u-tag text="进行中" v-else-if="item.hallState == '2'"></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="success" v-else-if="item.hallState == '3'"></u-tag>
|
||||||
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
|
<u-tag text="已逾期" type="error" v-else-if="item.hallState == '4'"></u-tag>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="text1">{{ item.title }}</view>
|
<view class="text1">{{ item.title }}</view>
|
||||||
<view class="text2">{{ item.content }}</view>
|
<view class="text2 u-line-2">{{ item.content }}</view>
|
||||||
<view class="text3">
|
<view class="text3">
|
||||||
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
|
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
|
||||||
<view class="time">截止时间:{{ item.deadline }}</view>
|
<view class="time">截止时间:{{ item.deadline }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||||
</u-empty>
|
</u-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
load: true,
|
load: true,
|
||||||
list: [{
|
list: [{
|
||||||
text: '全部',
|
text: '全部',
|
||||||
code: ''
|
code: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '订购',
|
text: '订购',
|
||||||
code: 'order'
|
code: 'order'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '公益',
|
text: '公益',
|
||||||
code: 'gy'
|
code: 'gy'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '演出',
|
text: '演出',
|
||||||
code: 'show'
|
code: 'show'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '其他',
|
text: '其他',
|
||||||
code: 'other'
|
code: 'other'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
mainList: [],
|
mainList: [],
|
||||||
action: 0,
|
action: 0,
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
type: '',
|
type: '',
|
||||||
}
|
// 请求状态识别变量
|
||||||
},
|
requestStatus: false
|
||||||
// 下拉刷新
|
}
|
||||||
onPullDownRefresh () {
|
},
|
||||||
this.pages = 1
|
// 下拉刷新
|
||||||
this.mainList = []
|
onPullDownRefresh() {
|
||||||
this.getData()
|
this.pages = 1
|
||||||
setTimeout(function () {
|
this.mainList = []
|
||||||
uni.stopPullDownRefresh();
|
this.getData()
|
||||||
}, 1000);
|
setTimeout(function() {
|
||||||
},
|
uni.stopPullDownRefresh();
|
||||||
//上拉
|
}, 1000);
|
||||||
onReachBottom () {
|
},
|
||||||
this.pages++
|
//上拉
|
||||||
this.getData();
|
onReachBottom() {
|
||||||
},
|
this.pages++
|
||||||
onLoad () {
|
this.getData();
|
||||||
this.pages = 1
|
},
|
||||||
this.load = true
|
onLoad() {
|
||||||
this.mainList = []
|
this.pages = 1
|
||||||
this.getData()
|
this.load = true
|
||||||
},
|
this.mainList = []
|
||||||
methods: {
|
this.getData()
|
||||||
getData () {
|
},
|
||||||
let _this = this
|
methods: {
|
||||||
this.http.request('/hall/list', {
|
getData() {
|
||||||
page: this.pages,
|
if (this.requestStatus) {
|
||||||
size: this.size,
|
// 利用 return 终止函数继续运行
|
||||||
type: this.type,
|
return false;
|
||||||
}, "GET").then(res => {
|
}
|
||||||
if (res.code == 200) {
|
this.requestStatus = true;
|
||||||
if (res.data.records.length > 0) {
|
let _this = this
|
||||||
res.data.records.forEach(function (item) {
|
this.http.request('/hall/list', {
|
||||||
if (item.enclosure) {
|
page: this.pages,
|
||||||
let fileArr = item.enclosure.split(',')
|
size: this.size,
|
||||||
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
type: this.type,
|
||||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs == 'tiff') {
|
}, "GET").then(res => {
|
||||||
item.enclosure = fileArr[0]
|
if (res.code == 200) {
|
||||||
}
|
if (res.data.records.length > 0) {
|
||||||
else if (gs == 'pdf') {
|
res.data.records.forEach(function(item) {
|
||||||
item.enclosure = '../../static/fileImg/pdfB.png'
|
if (item.enclosure) {
|
||||||
}
|
let fileArr = item.enclosure.split(',')
|
||||||
}
|
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
||||||
_this.mainList.push(item)
|
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
|
||||||
})
|
'gif' || gs == 'tif' || gs == 'tiff') {
|
||||||
} else {
|
item.enclosure = fileArr[0]
|
||||||
this.pages--
|
} else if (gs == 'pdf') {
|
||||||
}
|
item.enclosure = '../../static/fileImg/pdfB.png'
|
||||||
this.load = false
|
}
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
_this.mainList.push(item)
|
||||||
uni.showToast({
|
})
|
||||||
title: e.data.message,
|
} else {
|
||||||
icon: "none",
|
this.pages--
|
||||||
});
|
}
|
||||||
})
|
this.load = false
|
||||||
},
|
setTimeout(() => {
|
||||||
onNav (val, index) {
|
// 模拟执行完毕
|
||||||
this.action = index
|
// 改变 requestStatus
|
||||||
this.type = val
|
this.requestStatus = false;
|
||||||
this.pages = 1
|
}, 500);
|
||||||
this.load = true
|
}
|
||||||
this.mainList = []
|
}).catch(e => {
|
||||||
this.getData()
|
uni.showToast({
|
||||||
},
|
title: e.data.message,
|
||||||
toDetail (val) {
|
icon: "none",
|
||||||
uni.navigateTo({
|
});
|
||||||
url: `/pagesB/orderHall/orderHallDetails?id=` + val
|
})
|
||||||
})
|
},
|
||||||
},
|
onNav(val, index) {
|
||||||
toAddOrder () {
|
this.action = index
|
||||||
uni.navigateTo({
|
this.type = val
|
||||||
url: `/pagesB/orderHall/addOrder`
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
background-color: #f8f8f8;
|
background-color: #f8f8f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.on {
|
.on {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 76rpx;
|
height: 76rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #251B1D;
|
color: #251B1D;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.on::after {
|
&.on::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 6rpx;
|
height: 6rpx;
|
||||||
background: #9A2720;
|
background: #9A2720;
|
||||||
width: 39%;
|
width: 39%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
padding: 32rpx;
|
padding: 32rpx;
|
||||||
// background-color: #F4F5F7;
|
// background-color: #F4F5F7;
|
||||||
|
|
||||||
.mainList {
|
.mainList {
|
||||||
margin-bottom: 32rpx;
|
margin-bottom: 32rpx;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.mainListImg {
|
.mainListImg {
|
||||||
height: 400rpx;
|
position: relative;
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.imgTags {
|
.imgTags {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
padding: 32rpx;
|
padding: 32rpx;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
|
|
||||||
.text1 {
|
.text1 {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #251B1D;
|
color: #251B1D;
|
||||||
margin-bottom: 5rpx;
|
margin-bottom: 5rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text2 {
|
.text2 {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #989898;
|
color: #989898;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text3 {
|
.text3 {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
|
|
||||||
.mainListTime {
|
.mainListTime {
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
height: 26rpx;
|
height: 26rpx;
|
||||||
margin-top: 4rpx;
|
margin-top: 4rpx;
|
||||||
margin-right: 8rpx;
|
margin-right: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #989898;
|
color: #989898;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.addIcon {
|
.addIcon {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 24rpx;
|
right: 24rpx;
|
||||||
bottom: 242rpx;
|
bottom: 242rpx;
|
||||||
width: 104rpx;
|
width: 104rpx;
|
||||||
height: 104rpx;
|
height: 104rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -70,11 +70,11 @@
|
||||||
<view class="content"><text
|
<view class="content"><text
|
||||||
style=" color: #99241B;">{{serveList.zyzBmCount}}</text>/{{serveList.zyzCount}}</view>
|
style=" color: #99241B;">{{serveList.zyzBmCount}}</text>/{{serveList.zyzCount}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title">
|
<view class="title" v-if="serveList.isGm">
|
||||||
<image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image>
|
<image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image>
|
||||||
<text>服务商冠名</text>
|
<text>服务商冠名</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item_li">
|
<view class="item_li" v-if="serveList.isGm">
|
||||||
<view class="standard">
|
<view class="standard">
|
||||||
<image class="icon" src="../../static/detailIcon/icon5.png" mode="scaleToFill"></image>
|
<image class="icon" src="../../static/detailIcon/icon5.png" mode="scaleToFill"></image>
|
||||||
<text>冠名申请时间:</text>
|
<text>冠名申请时间:</text>
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
size: 20,
|
size: 20,
|
||||||
isAdmin : true,
|
isAdmin : true,
|
||||||
userType: '',
|
userType: '',
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
@ -69,6 +71,11 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
getData(){
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let _this = this
|
let _this = this
|
||||||
this.http.request('/activity/list', {page:this.pages,size:this.size}, "GET").then(res => {
|
this.http.request('/activity/list', {page:this.pages,size:this.size}, "GET").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -84,6 +91,11 @@
|
||||||
this.pages--
|
this.pages--
|
||||||
}
|
}
|
||||||
this.load = false
|
this.load = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -43,14 +43,14 @@
|
||||||
</view>
|
</view>
|
||||||
<checkbox-group @change="changeCheckbox">
|
<checkbox-group @change="changeCheckbox">
|
||||||
<view class="itm" v-for="(item,index) in checkboxData" :key="item.id">
|
<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="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/TxtImg.png" mode="" v-else-if="item.type == 'txt'"></image>
|
||||||
<image src="../../static/DataSearch/musicImg.png" mode="" v-else-if="item.type == 'music'">
|
<image src="../../static/DataSearch/musicImg.png" mode="" v-else-if="item.type == 'music'">
|
||||||
</image>
|
</image>
|
||||||
<image src="../../static/DataSearch/other.png" mode="" v-else></image>
|
<image src="../../static/DataSearch/other.png" mode="" v-else></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="data_detail_box">
|
<view class="data_detail_box" @click="previewImage(item)">
|
||||||
<view class="file_title">
|
<view class="file_title">
|
||||||
<!-- 资料查找 -->
|
<!-- 资料查找 -->
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
|
@ -286,6 +286,7 @@
|
||||||
this.oldID.splice(-1,1)
|
this.oldID.splice(-1,1)
|
||||||
this.folderList = []
|
this.folderList = []
|
||||||
this.checkboxData = []
|
this.checkboxData = []
|
||||||
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
addDir(val) {
|
addDir(val) {
|
||||||
|
@ -301,6 +302,10 @@
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let that = this
|
let that = this
|
||||||
|
this.dotNum = []
|
||||||
|
this.checkedArr = []
|
||||||
|
this.isSelect = true
|
||||||
|
this.allChecked = false
|
||||||
let par = {
|
let par = {
|
||||||
dirIds: this.dirIds,
|
dirIds: this.dirIds,
|
||||||
name: this.dataVal
|
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>
|
</script>
|
||||||
|
|
|
@ -14,12 +14,23 @@
|
||||||
<view class="form_left">
|
<view class="form_left">
|
||||||
类型
|
类型
|
||||||
</view>
|
</view>
|
||||||
<view class="form_right">
|
<view class="form_right" @click="showType=true">
|
||||||
<u--input placeholder="请输入类型" v-model="text2" clearable border="none" inputAlign="right"
|
<u--input placeholder="请输入类型" v-model="type" border="none" inputAlign="right"
|
||||||
style="color: #251B1D;">
|
style="color: #251B1D;" readonly>
|
||||||
|
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
|
||||||
</u--input>
|
</u--input>
|
||||||
</view>
|
</view>
|
||||||
</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 class="gap">
|
||||||
文件上传
|
文件上传
|
||||||
</view>
|
</view>
|
||||||
|
@ -47,8 +58,19 @@
|
||||||
name: '',
|
name: '',
|
||||||
text2: '',
|
text2: '',
|
||||||
fileList3: [],
|
fileList3: [],
|
||||||
|
radiovalue1: '',
|
||||||
|
radiolist1: [{
|
||||||
|
name: '图片',
|
||||||
|
id: 'photo'
|
||||||
|
},{
|
||||||
|
name: '其他',
|
||||||
|
id: 'other'
|
||||||
|
}
|
||||||
|
],
|
||||||
ok: true,
|
ok: true,
|
||||||
isWx: true,
|
isWx: true,
|
||||||
|
showType: false,
|
||||||
|
type: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op){
|
onLoad(op){
|
||||||
|
@ -136,7 +158,7 @@
|
||||||
this.ok = false
|
this.ok = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.text2 == ''){
|
if(this.type == ''){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入类型',
|
title: '请输入类型',
|
||||||
icon: "none",
|
icon: "none",
|
||||||
|
@ -158,7 +180,7 @@
|
||||||
image.push(item.url)
|
image.push(item.url)
|
||||||
})
|
})
|
||||||
let data = image.join(',')
|
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) {
|
if (res.code == 200) {
|
||||||
uni.navigateBack()
|
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
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<u-loading-page :loading="load"></u-loading-page>
|
<u-loading-page :loading="load"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="load == false">
|
<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">
|
<view class="express_contain_content">
|
||||||
{{v.title}}
|
{{v.title}}
|
||||||
</view>
|
</view>
|
||||||
|
@ -41,6 +41,8 @@
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
list2: [],
|
list2: [],
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
@ -62,6 +64,11 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData() {
|
getData() {
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let _this = this
|
let _this = this
|
||||||
this.http.request('/policy/list', {
|
this.http.request('/policy/list', {
|
||||||
page: this.pages,
|
page: this.pages,
|
||||||
|
@ -76,6 +83,12 @@
|
||||||
this.pages--
|
this.pages--
|
||||||
}
|
}
|
||||||
this.load = false
|
this.load = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -84,7 +97,8 @@
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toDetail(val) {
|
toDetail(val, num) {
|
||||||
|
this.list2[num].view++
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/PolicyExpress/PolicyExpressDetail?id=" + val
|
url: "/pagesC/PolicyExpress/PolicyExpressDetail?id=" + val
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,33 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="">
|
||||||
<view class="pageTtitle">
|
<view v-if="loadings">
|
||||||
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
|
<u-loading-page class="loading" loading-text="加载中" :loading="loadings"></u-loading-page>
|
||||||
<view class="apptitle" :style="{'height':titleHeight+'px'}">
|
|
||||||
动态
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view :style="{'height':zwHeight+'px'}"></view>
|
<view class="page" v-if="!loadings">
|
||||||
<view class="activity" v-for="(v,i) in list2" :key="i" @click="toDetail(v.id)">
|
<view class="pageTtitle">
|
||||||
<view class="left">
|
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
|
||||||
<view class="content">
|
<view class="apptitle" :style="{'height':titleHeight+'px'}">
|
||||||
<view class="title">
|
动态
|
||||||
<text class="zd" v-if="v.isTop">置顶</text>
|
</view>
|
||||||
{{v.title}}
|
</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>
|
</view>
|
||||||
<view class="clidate">
|
<view class="right">
|
||||||
<view class="cliNum">点击量:{{v.readCount}}</view>
|
<image :src="v.imgCover" mode=""></image>
|
||||||
<view class="date">{{v.fbTime}}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty>
|
||||||
<image :src="v.imgCover" mode=""></image>
|
<tabbar tabbarId='2'></tabbar>
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty>
|
|
||||||
<tabbar tabbarId='2'></tabbar>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -40,6 +45,9 @@
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
list2: [],
|
list2: [],
|
||||||
|
loadings: true,
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
@ -77,12 +85,18 @@
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
toDetail(val){
|
toDetail(val,num){
|
||||||
|
this.list2[num].readCount++
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/activity/activityDetail?id=" + val
|
url: "/pagesC/activity/activityDetail?id=" + val
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
getData(){
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let _this = this
|
let _this = this
|
||||||
this.http.request('/dynamic/list', {page:this.pages,size:this.size}, "GET").then(res => {
|
this.http.request('/dynamic/list', {page:this.pages,size:this.size}, "GET").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -97,7 +111,12 @@
|
||||||
}else{
|
}else{
|
||||||
this.pages--
|
this.pages--
|
||||||
}
|
}
|
||||||
this.load = false
|
this.loadings = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -129,6 +148,15 @@
|
||||||
.page {
|
.page {
|
||||||
padding:0 16px;
|
padding:0 16px;
|
||||||
padding-bottom:55px;
|
padding-bottom:55px;
|
||||||
|
.loading {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
.pageTtitle {
|
.pageTtitle {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
|
<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>
|
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
|
||||||
<view class="scroll-list__goods-item__title">
|
<view class="scroll-list__goods-item__title">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="scroll-list__goods-item__text">
|
<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="det_box">
|
||||||
<view class="box_left">
|
<view class="box_left">
|
||||||
<image src="../../static/workDetail/seen.png" class="img"></image>
|
<image src="../../static/workDetail/seen.png" class="img"></image>
|
||||||
|
@ -27,13 +27,13 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
|
<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>
|
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
|
||||||
<view class="scroll-list__goods-item__title">
|
<view class="scroll-list__goods-item__title">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="scroll-list__goods-item__text">
|
<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="det_box">
|
||||||
<view class="box_left">
|
<view class="box_left">
|
||||||
<image src="../../static/workDetail/seen.png" class="img"></image>
|
<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({
|
uni.navigateTo({
|
||||||
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
|
||||||
})
|
})
|
||||||
|
@ -166,7 +171,7 @@ export default {
|
||||||
|
|
||||||
&__goods-item {
|
&__goods-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 20rpx 10rpx;
|
margin: 20rpx 0;
|
||||||
|
|
||||||
&__image {
|
&__image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -36,10 +36,13 @@
|
||||||
<view class="codeTitle">{{item.name}}</view>
|
<view class="codeTitle">{{item.name}}</view>
|
||||||
<view class="codeImg">
|
<view class="codeImg">
|
||||||
<view class="codeEle">
|
<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>
|
||||||
<view class="remark">
|
<view class="remark" v-if="item.name == '公众号'">
|
||||||
识别二维码跳转至公众号
|
长按识别二维码,跳转至公众号
|
||||||
|
</view>
|
||||||
|
<view class="remark" v-else-if="item.name == '视频号'">
|
||||||
|
保存图片至相册,微信扫一扫跳转
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="search_box">
|
<view class="search_box">
|
||||||
<u-search height=42 margin="12px 0" searchIconColor="#251B1D" shape="square" :showAction="false"
|
<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">
|
<view class="car_box" @click="toCart">
|
||||||
<image src="../../static/shop/car.png" mode=""></image>
|
<image src="../../static/shop/car.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -60,6 +60,9 @@
|
||||||
<text class="txt1">{{v.pointPrice}}</text> <text>积分</text>
|
<text class="txt1">{{v.pointPrice}}</text> <text>积分</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="time">
|
||||||
|
{{v.typeName}}-{{v.typesName}}
|
||||||
|
</view>
|
||||||
<view class="time">
|
<view class="time">
|
||||||
{{v.sellCount}}人已购
|
{{v.sellCount}}人已购
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<view class="teamBox-title">
|
<view class="teamBox-title">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</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>
|
<image :src="item.cover" mode="" style="width: 100%; height: 100%;"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="teamBox-bottom">
|
<view class="teamBox-bottom">
|
||||||
|
@ -15,12 +15,12 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="interactive">
|
<view class="interactive">
|
||||||
<image src="../../static/workDetail/heart2.png" class="bot_img" v-if="item.isGreat"
|
<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>
|
||||||
<image src="../../static/workDetail/heart1.png" class="bot_img" v-else
|
<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>
|
</image>
|
||||||
<view class="title" @click="clickHeart(item.isGreat, item.id)">
|
<view class="title" @click="clickHeart(item.isGreat, item.id,index)">
|
||||||
{{ item.likes }}
|
{{ item.likes }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -37,6 +37,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-loading-page class="loading" loading-text="加载中" :loading="loadings"></u-loading-page>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -48,6 +49,9 @@
|
||||||
list: [],
|
list: [],
|
||||||
pages: 1,
|
pages: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
|
loadings: true,
|
||||||
|
// 请求状态识别变量
|
||||||
|
requestStatus: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
@ -79,14 +83,14 @@
|
||||||
// this.getData()
|
// this.getData()
|
||||||
},
|
},
|
||||||
//点赞、取消点赞
|
//点赞、取消点赞
|
||||||
clickHeart(val0, val1) {
|
clickHeart(val0, val1,num) {
|
||||||
console.log(val1)
|
this.loadings = true
|
||||||
if (val0) {
|
if (val0) {
|
||||||
|
this.list[num].isGreat = false
|
||||||
this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => {
|
this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.pages = 1
|
this.loadings = false
|
||||||
this.list = []
|
this.list[num].likes--
|
||||||
this.get()
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -95,11 +99,11 @@
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.list[num].isGreat = true
|
||||||
this.http.request('/worksGreat/addGreat?type=3&workId=' + val1, "POST").then(res => {
|
this.http.request('/worksGreat/addGreat?type=3&workId=' + val1, "POST").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.pages = 1
|
this.loadings = false
|
||||||
this.list = []
|
this.list[num].likes++
|
||||||
this.get()
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -140,6 +144,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
get() {
|
get() {
|
||||||
|
if (this.requestStatus) {
|
||||||
|
// 利用 return 终止函数继续运行
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.requestStatus = true;
|
||||||
let _this = this
|
let _this = this
|
||||||
this.http
|
this.http
|
||||||
.request("/exhibition/list", {
|
.request("/exhibition/list", {
|
||||||
|
@ -160,6 +169,12 @@
|
||||||
} else {
|
} else {
|
||||||
this.pages--
|
this.pages--
|
||||||
}
|
}
|
||||||
|
this.loadings = false
|
||||||
|
setTimeout(() => {
|
||||||
|
// 模拟执行完毕
|
||||||
|
// 改变 requestStatus
|
||||||
|
this.requestStatus = false;
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
@ -170,7 +185,8 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
toDetail(val) {
|
toDetail(val,num) {
|
||||||
|
this.list[num].views++
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// 稍后改为 订单管理的页面
|
// 稍后改为 订单管理的页面
|
||||||
url: "/pagesD/xskz/details?id=" + val,
|
url: "/pagesD/xskz/details?id=" + val,
|
||||||
|
@ -199,6 +215,13 @@
|
||||||
.wyxx {
|
.wyxx {
|
||||||
background-color: #fefefe;
|
background-color: #fefefe;
|
||||||
}
|
}
|
||||||
|
.loading {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.tabTitle {
|
.tabTitle {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in New Issue