Merge branch 'master' of https://e.coding.net/boss-01/yxx/app
This commit is contained in:
commit
e825f9e895
|
@ -15,8 +15,8 @@
|
|||
</view>
|
||||
|
||||
|
||||
<view class="main" >
|
||||
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" v-if="tabNum==1">
|
||||
<view class="main">
|
||||
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" v-if="tabNum==1">
|
||||
<!-- <image src="../../static/icon12.jpg" mode=""></image> -->
|
||||
<image :src="item.enclosure" mode="" @click="goActDeat(item.id,1)"></image>
|
||||
<view class="bottom_part" style="padding: 0 12px;">
|
||||
|
@ -24,10 +24,16 @@
|
|||
<view class="title">
|
||||
{{item.title}}
|
||||
</view>
|
||||
|
||||
|
||||
<view class="tag_sta_end" v-if='item.state=="3"'>
|
||||
已完成
|
||||
</view>
|
||||
<view class="tag_sta_fail" v-if='item.state=="4"'>
|
||||
未接单
|
||||
</view>
|
||||
<!-- <view class="tag_sta_fail" v-if='item.state=="3"'>
|
||||
已结束
|
||||
</view> -->
|
||||
|
||||
<view class="tag_sta_going" v-if='item.state=="1"||item.state=="0"'>
|
||||
进行中
|
||||
|
@ -37,13 +43,13 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="act_time">
|
||||
|
||||
|
||||
活动时间: {{item.createdAt}}
|
||||
</view>
|
||||
<view class="but_box" style="margin-top: 20rpx;">
|
||||
|
||||
|
||||
|
||||
<view class="but_box" style="margin-top: 20rpx;" v-if="!(item.state=='4')">
|
||||
|
||||
|
||||
|
||||
<view style="width: 236rpx;margin: 0 10rpx; " v-if='!(item.state== "0")'>
|
||||
<u-button icon="photo-fill" shape="circle" text="已传图片" @click="touploadedimg(item.images)">
|
||||
</u-button>
|
||||
|
@ -51,26 +57,27 @@
|
|||
<view style="width: 236rpx; margin: 0 10rpx;" v-if='item.state=="1"' @click="done(item.id)">
|
||||
<u-button color="#99241B" shape="circle" text="确认完成"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="width: 236rpx;margin: 0 10rpx; " v-if='(item.state== "0")'>
|
||||
<u-button icon="photo-fill" shape="circle" color="#99241B" plain text="图片上传"
|
||||
@click="toUpimgPage(item.id)"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "2" '>
|
||||
<u-button plain color="#99241B" shape="circle" text="评价" @click="pingjia(i,item.id)"></u-button>
|
||||
<u-button plain color="#99241B" shape="circle" text="评价" @click="pingjia(i,item.id)">
|
||||
</u-button>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
|
||||
<!-- <view style="width: 190rpx;margin: 0 10rpx; " > -->
|
||||
<u-button shape="circle" text="已评价" @click="toEvlauedpg(item.id)"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" v-if="tabNum==2">
|
||||
|
||||
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" v-if="tabNum==2">
|
||||
<image @click="goActDeat(item.id)" :src="item.enclosure" mode=""></image>
|
||||
<view class="bottom_part" style="padding: 0 12px;">
|
||||
<view class="ddd" style="display: flex; justify-content: space-between; align-items: center;">
|
||||
|
@ -80,36 +87,36 @@
|
|||
<view class="tag_sta" v-if="item.state=='0'">
|
||||
已报名
|
||||
</view>
|
||||
|
||||
|
||||
<view class="tag_sta_end" v-if='item.state=="2"'>
|
||||
已完成
|
||||
</view>
|
||||
|
||||
|
||||
<view class="tag_sta_going" v-if='item.state=="1"'>
|
||||
进行中
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="act_time">
|
||||
活动时间: {{item.createdAt}}
|
||||
</view>
|
||||
<view class="but_box" style="margin-top: 20rpx;">
|
||||
|
||||
|
||||
|
||||
|
||||
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "0"'>
|
||||
<u-button shape="circle" text="取消报名" @click="cancleBM(item.id)"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
|
||||
<u-button shape="circle" text="收到的评价" @click="receiveevlaue(item.id)"></u-button>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
@ -156,8 +163,8 @@
|
|||
</u-modal>
|
||||
|
||||
|
||||
<view v-if="!(orderList.length>0)" >
|
||||
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" >
|
||||
<view v-if="!(orderList.length>0)">
|
||||
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -192,11 +199,11 @@
|
|||
},
|
||||
methods: {
|
||||
receiveevlaue(id) {
|
||||
|
||||
|
||||
this.showShoudao = true
|
||||
this.http.request('/hallUser/sdpj?id=' + id, {}, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
|
||||
|
||||
this.starsvalue = res.data.evaluate
|
||||
this.showShoudao = true
|
||||
|
||||
|
@ -316,40 +323,40 @@
|
|||
})
|
||||
}
|
||||
},
|
||||
goActDeat(id,typEnum) {
|
||||
if(typEnum){
|
||||
goActDeat(id, typEnum) {
|
||||
if (typEnum) {
|
||||
uni.navigateTo({
|
||||
url:`/pages/orderHall/orderHallDetails?id=${id}&isCheck=${typEnum}`
|
||||
url: `/pages/orderHall/orderHallDetails?id=${id}&isCheck=${typEnum}`
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url:`/pages/orderHall/orderHallDetails?id=${id}`
|
||||
url: `/pages/orderHall/orderHallDetails?id=${id}`
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
toUpimgPage(id) {
|
||||
this.http.request('/hallUser/pjList?hallId=' + id, {}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
console.log("reg", res.data)
|
||||
if(res.data.length>0){
|
||||
uni.navigateTo({
|
||||
url: `/pages/my/imgUpload?id=` + id
|
||||
})
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: "无人接单",
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
|
||||
if (res.code == 200) {
|
||||
console.log("reg", res.data)
|
||||
if (res.data.length > 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/my/imgUpload?id=` + id
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "无人接单",
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
|
||||
},
|
||||
touploadedimg(imgstr) {
|
||||
uni.navigateTo({
|
||||
|
@ -405,9 +412,11 @@
|
|||
margin: 0rpx 32rpx; */
|
||||
background-color: #F5F5F5 !important;
|
||||
}
|
||||
.main{
|
||||
|
||||
.main {
|
||||
padding: 0rpx 32rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 60%;
|
||||
|
@ -458,6 +467,18 @@
|
|||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.tag_sta_fail {
|
||||
width: 100rpx;
|
||||
height: 48rpx;
|
||||
background: #F5F5F5;
|
||||
;
|
||||
border-radius: 8rpx;
|
||||
line-height: 48rpx;
|
||||
color: #7A7A7A;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.act_time {
|
||||
height: 34rpx;
|
||||
font-size: 24rpx;
|
||||
|
|
Loading…
Reference in New Issue