|
@@ -4,107 +4,83 @@
|
|
|
<view class="status_bar"><!-- 这里是状态栏 --></view>
|
|
|
<view class="money-box">
|
|
|
<view class="goback-box" @click="toBack"><image class="goback" src="../../static/img/fanhui.png" mode=""></image></view>
|
|
|
- <view class="header">浙江馆</view>
|
|
|
+ <view class="header">艺术品挂牌交易区</view>
|
|
|
<image class="money_bg" src="../../static/img/hinfo-bg.png"></image>
|
|
|
- <view class="message flex" @click="nav('/pages/index/message')">
|
|
|
- <image class="message-left" src="../../static/img/hinco.png" mode=""></image>
|
|
|
- <view class="message-font clamp">全民动员,公告内容信息公告消息显123456789</view>
|
|
|
- <image class="message-right" src="../../static/img/backb.png" mode=""></image>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="shingle-mmain flex">
|
|
|
- <view class="smmain-item">
|
|
|
- <view class="smitem-top red">开放中</view>
|
|
|
- <view class="smitem-bottom">状态</view>
|
|
|
- </view>
|
|
|
- <view class="shu"></view>
|
|
|
- <view class="smmain-item">
|
|
|
- <view class="smitem-top">纯平</view>
|
|
|
- <view class="smitem-bottom">馆长</view>
|
|
|
- </view>
|
|
|
- <view class="shu"></view>
|
|
|
- <view class="smmain-item">
|
|
|
- <view class="people flex">
|
|
|
- <view class="peopleitem"><image src="../../static/img/busy.png" mode=""></image></view>
|
|
|
+ <view class="hallist-bg">
|
|
|
+ <image src="" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="message flex" @click="nav('/pages/index/message')">
|
|
|
+ <image class="message-left" src="../../static/img/hinco.png" mode=""></image>
|
|
|
+ <view class="message-font clamp">全民动员,公告内容信息公告消息显123456789</view>
|
|
|
+ <image class="message-right" src="../../static/img/backb.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="navbar">
|
|
|
+ <view class="navbar-item" @click="navTo('/pages/money/qudou')">
|
|
|
+ <view class="navbar-font">
|
|
|
+ <image class="navbar-image" src="../../static/img/been.png" mode=""></image>
|
|
|
+ <view class="font">趣豆</view>
|
|
|
</view>
|
|
|
- <view class="smitem-bottom">流畅</view>
|
|
|
+ <view class="navbar-num">200</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="main">
|
|
|
- <view class="mtitle-english">AFTERNOON SHOWS</view>
|
|
|
- <view class="mmain flex" @click="nav('/pages/hall/hallinfo')">
|
|
|
- <view class="mmain-info">
|
|
|
- <view class="mmain-title">
|
|
|
- <image class="mmaint-left" src="../../static/img/afternooninco.png" mode=""></image>
|
|
|
- <view class="mmaint-font">下午场</view>
|
|
|
- <view class="mmaint-time">13:59开售</view>
|
|
|
- </view>
|
|
|
- <view class="mmain-time" style="margin-top: 28rpx;">预约时间:9:30-13:53</view>
|
|
|
- <view class="mmain-time">入场时间:9:30-13:53</view>
|
|
|
- <view class="mmain-time flex">
|
|
|
- <view class="mmain-font">距预约结束:</view>
|
|
|
- <view class="lyy-b-jz flex">
|
|
|
- <uni-countdowns
|
|
|
- color="#FFFFFF"
|
|
|
- splitor-color="#4166FC"
|
|
|
- background-color="#4166FC"
|
|
|
- border-color="#4166FC"
|
|
|
- :show-day="false"
|
|
|
- :hour="stopTime.stopTimeH"
|
|
|
- :minute="stopTime.stopTimeM"
|
|
|
- :second="stopTime.stopTimeS"
|
|
|
- ></uni-countdowns>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="vvv"></view>
|
|
|
+ <view class="navbar-item">
|
|
|
+ <view class="navbar-font" @click="navTo('/pages/user/scoreAccumulate')">
|
|
|
+ <image class="navbar-image" src="../../static/money/m03.png" mode=""></image>
|
|
|
+ <view class="font">积分</view>
|
|
|
</view>
|
|
|
- <view class="mmain-image"><image src="../../static/img/afternoon.png" mode=""></image></view>
|
|
|
+ <view class="navbar-num">200</view>
|
|
|
</view>
|
|
|
- <view class="bottom" @click="open()">
|
|
|
- <view class="bottom-font">立即预约</view>
|
|
|
- <image class="bottom-image" src="../../static/img/jt.png" mode=""></image>
|
|
|
+ <view class="vvv"></view>
|
|
|
+ <view class="navbar-item">
|
|
|
+ <view class="navbar-font">
|
|
|
+ <image class="navbar-image" src="../../static/money/m04.png" mode=""></image>
|
|
|
+ <view class="font">置换券</view>
|
|
|
+ </view>
|
|
|
+ <view class="navbar-num">200</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="main">
|
|
|
- <view class="mtitle-english">EVENING SHOWS</view>
|
|
|
- <view class="mmain flex" @click="nav('/pages/hall/hallinfo')">
|
|
|
+ <view class="main" v-for="(item, index) in list" :key="index">
|
|
|
+ <view class="mtitle-english">{{ item.show }}</view>
|
|
|
+ <view class="mmain flex">
|
|
|
<view class="mmain-info">
|
|
|
<view class="mmain-title">
|
|
|
- <image class="mmaint-left" src="../../static/img/eveninginco.png" mode=""></image>
|
|
|
- <view class="mmaint-font">下午场</view>
|
|
|
- <view class="mmaint-time">13:59开售</view>
|
|
|
+ <image class="mmaint-left" :src="item.time_image" mode=""></image>
|
|
|
+ <view class="mmaint-font">{{ item.nickname }}</view>
|
|
|
+ <view class="mmaint-time">{{ item.radd_time }}开售</view>
|
|
|
</view>
|
|
|
- <view class="mmain-time" style="margin-top: 28rpx;">预约时间:9:30-13:53</view>
|
|
|
- <view class="mmain-time">入场时间:9:30-13:53</view>
|
|
|
+ <view class="mmain-time" style="margin-top: 28rpx;">预约时间:{{ item.add_time }}-{{ item.end_time }}</view>
|
|
|
+ <view class="mmain-time">入场时间:{{ item.radd_time }}-{{ item.rend_time }}</view>
|
|
|
<view class="mmain-time flex">
|
|
|
<view class="mmain-font">距预约结束:</view>
|
|
|
<view class="lyy-b-jz flex">
|
|
|
<uni-countdowns
|
|
|
color="#FFFFFF"
|
|
|
- splitor-color="#4166FC"
|
|
|
- background-color="#4166FC"
|
|
|
- border-color="#4166FC"
|
|
|
+ splitor-color="#FECD57"
|
|
|
+ background-color="#FECD57"
|
|
|
+ border-color="#FECD57"
|
|
|
:show-day="false"
|
|
|
- :hour="stopTime.stopTimeH"
|
|
|
- :minute="stopTime.stopTimeM"
|
|
|
- :second="stopTime.stopTimeS"
|
|
|
+ :hour="item.hours"
|
|
|
+ :minute="item.minutes"
|
|
|
+ :second="item.seconds"
|
|
|
></uni-countdowns>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="mmain-image"><image src="../../static/img/evening.png" mode=""></image></view>
|
|
|
+ <view class="mmain-image"><image :src="item.image" mode=""></image></view>
|
|
|
</view>
|
|
|
- <view class="bottom" @click="open()">
|
|
|
- <view class="bottom-font">立即预约</view>
|
|
|
+ <view class="bottom" @click="open(item)">
|
|
|
+ <view class="bottom-font">立即{{item.str}}</view>
|
|
|
<image class="bottom-image" src="../../static/img/jt.png" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-popup ref="popup" type="center">
|
|
|
<view class="popup">
|
|
|
- <view class="popup-title">是否立即预约?</view>
|
|
|
+ <view class="popup-title">预约需要{{price}}艺金券是否立即预约?</view>
|
|
|
<view class="btn-box">
|
|
|
<view class="btn-left" @click="close()">取消</view>
|
|
|
- <view class="btn-right" @click="close()">确定</view>
|
|
|
+ <view class="btn-right" @click="appointment()">确定</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
@@ -113,35 +89,106 @@
|
|
|
|
|
|
<script>
|
|
|
import uniCountdowns from '@/components/uni-countdown/uni-countdowns.vue';
|
|
|
+import { auction_list,subscribe,advance } from '@/api/hall.js';
|
|
|
+import { timeComputed } from '@/utils/rocessor.js';
|
|
|
export default {
|
|
|
components: {
|
|
|
uniCountdowns
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- // 倒计时
|
|
|
- stopTime: {
|
|
|
- stopTimeH: 1,
|
|
|
- stopTimeM: 1,
|
|
|
- stopTimeS: 1
|
|
|
- }
|
|
|
+ price:'',//预约的价格
|
|
|
+ id: '',//预约会场id
|
|
|
+ page: 1,
|
|
|
+ limit: 10,
|
|
|
+ loadingType: 'more',
|
|
|
+ list: []
|
|
|
};
|
|
|
},
|
|
|
+ onLoad(option) {
|
|
|
+ this.id = option.id;
|
|
|
+ this.loadData();
|
|
|
+ },
|
|
|
methods: {
|
|
|
- open() {
|
|
|
- this.$refs.popup.open();
|
|
|
+ loadData() {
|
|
|
+ const obj = this;
|
|
|
+ if (obj.loadingType == 'nomore' || obj.loadingType == 'loading') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ obj.loadingType = 'loading';
|
|
|
+ auction_list({
|
|
|
+ page: obj.page,
|
|
|
+ limit: obj.limit,
|
|
|
+ auction_gu_id: obj.id
|
|
|
+ }).then(({ data }) => {
|
|
|
+ console.log(data, '123456');
|
|
|
+ data.forEach(e => {
|
|
|
+ let now_time = timeComputed(e.time);
|
|
|
+ console.log(e.time,now_time);
|
|
|
+ e.hours = now_time.hours;
|
|
|
+ e.minutes = now_time.minutes;
|
|
|
+ e.seconds = now_time.seconds;
|
|
|
+ let jcsj = e.radd_time.split(':')
|
|
|
+ if(jcsj[0]*1 >= 8 && jcsj[0]*1 < 12){
|
|
|
+ e.time_image = '../../static/img/morningicon.png'
|
|
|
+ e.show = 'MORNING SHOWS'
|
|
|
+ }else if(jcsj[0]*1 >= 12 && jcsj[0]*1 < 18){
|
|
|
+ e.show = 'AFTERNOON SHOWS'
|
|
|
+ e.time_image = '../../static/img/afternoonicon.png'
|
|
|
+ }else {
|
|
|
+ e.time_image = '../../static/img/eveningicon.png'
|
|
|
+ e.show = 'EVENING SHOWS'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ obj.list = obj.list.concat(data);
|
|
|
+ if (data.length != obj.limit) {
|
|
|
+ obj.loadingType = 'more';
|
|
|
+ obj.page++;
|
|
|
+ } else {
|
|
|
+ obj.loadingType = 'nomore';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ open(item) {
|
|
|
+ if(item.sta != 1) {
|
|
|
+ this.id = item.id
|
|
|
+ advance({id: item.id}).then(e =>{
|
|
|
+ console.log(e,'success');
|
|
|
+ this.nav()
|
|
|
+ }).then(e =>{
|
|
|
+ console.log(e,'fail');
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.price = item.anticipate
|
|
|
+ this.id = item.id
|
|
|
+ this.$refs.popup.open();
|
|
|
+ }
|
|
|
},
|
|
|
close() {
|
|
|
+ this.price = ''
|
|
|
+ this.id = ''
|
|
|
this.$refs.popup.close();
|
|
|
},
|
|
|
- nav(url) {
|
|
|
+ nav() {
|
|
|
uni.navigateTo({
|
|
|
- url
|
|
|
- })
|
|
|
+ url:'/pages/hall/hallinfo?id=' + this.id
|
|
|
+ });
|
|
|
},
|
|
|
toBack() {
|
|
|
- uni.navigateBack({
|
|
|
-
|
|
|
+ uni.navigateBack({});
|
|
|
+ },
|
|
|
+ appointment() {
|
|
|
+ subscribe({id: this.id}).then(({data}) =>{
|
|
|
+ this.$api.msg('预约成功')
|
|
|
+ console.log(data);
|
|
|
+ this.price = ''
|
|
|
+ this.id = ''
|
|
|
+ this.$refs.popup.close();
|
|
|
+ }).catch(e =>{
|
|
|
+ this.price = ''
|
|
|
+ this.id = ''
|
|
|
+ this.$refs.popup.close();
|
|
|
+ console.log(e);
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -187,38 +234,9 @@ page,
|
|
|
}
|
|
|
.money_bg {
|
|
|
width: 100%;
|
|
|
- height: 480rpx;
|
|
|
+ height: 382rpx;
|
|
|
display: block;
|
|
|
}
|
|
|
- .message {
|
|
|
- justify-content: space-around;
|
|
|
- position: absolute;
|
|
|
- top: 270rpx;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- margin: 0 auto;
|
|
|
- padding: 16rpx 40rpx 16rpx 50rpx;
|
|
|
- width: 690rpx;
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
|
|
|
- border-radius: 20rpx;
|
|
|
- .message-left {
|
|
|
- width: 52rpx;
|
|
|
- height: 52rpx;
|
|
|
- flex-shrink: 0;
|
|
|
- }
|
|
|
- .message-font {
|
|
|
- margin: 0 40rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #0c1732;
|
|
|
- }
|
|
|
- .message-right {
|
|
|
- width: 18rpx;
|
|
|
- height: 30rpx;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
.shingle-mmain {
|
|
|
position: relative;
|
|
@@ -333,7 +351,7 @@ page,
|
|
|
margin-top: 32rpx;
|
|
|
width: 380rpx;
|
|
|
height: 64rpx;
|
|
|
- background: #375afe;
|
|
|
+ background: #d13737;
|
|
|
border-radius: 20rpx;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
@@ -353,10 +371,9 @@ page,
|
|
|
}
|
|
|
.popup {
|
|
|
width: 582rpx;
|
|
|
- height: 378rpx;
|
|
|
background: #ffffff;
|
|
|
border-radius: 20rpx;
|
|
|
- padding-top: 118rpx;
|
|
|
+ padding: 118rpx 20rpx 30rpx;
|
|
|
.popup-title {
|
|
|
text-align: center;
|
|
|
font-size: 42rpx;
|
|
@@ -365,26 +382,26 @@ page,
|
|
|
color: #0c1732;
|
|
|
}
|
|
|
.btn-box {
|
|
|
- padding: 90rpx 30rpx 0;
|
|
|
+ padding-top: 90rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
.btn-left {
|
|
|
width: 248rpx;
|
|
|
height: 78rpx;
|
|
|
- border: 2rpx solid #4166fc;
|
|
|
+ border: 2rpx solid #DC262B;
|
|
|
border-radius: 10rpx;
|
|
|
font-size: 34rpx;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
|
- color: #4166fc;
|
|
|
+ color: #DC262B;
|
|
|
text-align: center;
|
|
|
line-height: 78rpx;
|
|
|
}
|
|
|
.btn-right {
|
|
|
width: 248rpx;
|
|
|
height: 78rpx;
|
|
|
- background: linear-gradient(0deg, rgba(60, 237, 237, 0.99), #04b8ff, #375afe);
|
|
|
+ background: #DC262B;
|
|
|
border-radius: 10rpx;
|
|
|
font-size: 34rpx;
|
|
|
font-family: PingFang SC;
|
|
@@ -395,4 +412,90 @@ page,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.message {
|
|
|
+ justify-content: space-around;
|
|
|
+ margin: 20rpx auto 0;
|
|
|
+ padding: 16rpx 40rpx 16rpx 50rpx;
|
|
|
+ width: 690rpx;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
|
|
|
+ border-radius: 20rpx;
|
|
|
+ .message-left {
|
|
|
+ width: 52rpx;
|
|
|
+ height: 52rpx;
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+ .message-font {
|
|
|
+ margin: 0 40rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #0c1732;
|
|
|
+ }
|
|
|
+ .message-right {
|
|
|
+ width: 18rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+.hallist-bg {
|
|
|
+ position: relative;
|
|
|
+ z-index: 10;
|
|
|
+ margin: -240rpx auto 0;
|
|
|
+ width: 702rpx;
|
|
|
+ height: 300rpx;
|
|
|
+ border-radius: 14rpx;
|
|
|
+ background-color: #2979FF;
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+.navbar {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-around;
|
|
|
+ width: 700rpx;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin: 40rpx auto 0;
|
|
|
+ padding: 40rpx 0 50rpx;
|
|
|
+
|
|
|
+ .vvv {
|
|
|
+ width: 2rpx;
|
|
|
+ height: 74rpx;
|
|
|
+ background: #dcdcdc;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .navbar-font {
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ image {
|
|
|
+ margin-right: 10rpx;
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .font {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #0c1732;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar-num {
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #0c1732;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|