Information.vue 1.7 KB
<template>
	<view>
		<view class="top" v-for="(item,index) in list" :key="index" @click="detail(item.id)">
			<view class="topText">
				<text class="title">{{item.work_name}}</text>
				<view class="payBox">
					<text class="yiPay">{{item.is_pay==1?'已付款':'未付款'}}</text>
				</view>
			</view>
			<view class="BtnText">
				<view><text class="pei">培训价格:{{item.price}}</text></view>
				<view>
					<view><text class="on">{{item.create_time_text}}报名</text></view>
					<!-- <view><text class="on">15:25:24 报名</text></view> -->
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	import request from '../../utils/request.js'
	export default {
		onShow() {
			this.getList()
		},
		data() {
			return {
                list:[]
			}
		},
		methods: {
             getList(){
				 request.post('/api/index/sign_up_list',{}).then(res=>{
					 this.list=res.data.data
				 }).catch(err=>{
					 
				 })
			 },
			 detail(id){
				 uni.navigateTo({
				 	url:'/pages/index/RegistrationDetails?id='+id
				 })
			 }
		}
	}
</script>

<style>
	.topText {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.BtnText {
		display: flex;
		justify-content: space-between;
		margin-top: 12px;
	}

	.on {
		color: #323233;
		font-size: 24rpx;
	}

	.pei {
		color: #323233;
		font-size: 26rpx;
	}

	.title {
		color: #323233;
		font-size: 26rpx;
	}

	.payBox {
		background: #199460;
		border-radius: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.yiPay {
		color: #FFFFFF;
		font-size: 24rpx;
		padding: 2px 8px;
	}

	.top {
		background-color: #FFFFFF;
		padding: 16px;
		border-bottom: 1px solid #EBEDF0;
	}
</style>