You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="step2"> <view class="card" v-for="(item,index) in list" :key="index" :class="{active: FormData.pointId==item.id}" @click="choosePoint(item)"> <view class="leftTxt"> <view class="name oneRowText">{{ item.pointName }}</view> <view class="adr">{{item.pointAddress}}</view> </view> <view class="icon"> <image src="@/static/images/index/telephone_cli.png" mode="" v-if="FormData.pointId==item.id"></image> <image src="@/static/images/index/telephone.png" mode="" v-else></image> </view> </view> <view class="poz_btn"> <view class="btn_row" > <!-- <view class="border btn" @click="changeStep(1)">返回上一步</view> --> <view class="btn" @click="changeStep(2)">下一步</view> </view> </view> </view> </template>
<script> export default { props: ['list', 'FormData'], methods: { changeStep(val) { if(!this.FormData.pointId) return this.$u.toast('请选择模拟馆') this.$emit('changeStep', val) }, choosePoint(item) { this.$emit('choosePoint',item) } } } </script>
<style lang="scss" scoped> .step2 { width: 100%; padding-bottom: 120rpx; .card { padding: 28rpx 36rpx; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; &.active { background: rgba(25,137,250,0.1); border: 2rpx solid #1989FA; color: $themC; } .leftTxt { width: 0; flex: 1; .name { font-size: 32rpx; font-weight: 600; }
.adr { font-size: 24rpx; margin-top: 8rpx; } }
.icon { width: 72rpx; height: 72rpx; } } } .btn { width: 47%; height: 72rpx; background: #1989FA; border-radius: 8rpx; font-size: 28rpx; color: #fff; text-align: center; line-height: 72rpx; margin: 108rpx auto 50rpx auto; } </style>
|