刘翔宇-旅管家 3 years ago
parent 0449cc7dd6
commit deefa54bda

@ -15,7 +15,7 @@
<view class="activityBox-row"> <view class="activityBox-row">
<text class="icon-shijian iconfont"></text> <text class="icon-shijian iconfont"></text>
<text>活动时间{{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text> <text>活动时间{{timeFormat(list.start_time,"yyyy年MM月DD日")}} {{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text>
</view> </view>
<!-- <view class="activityBox-row"> <!-- <view class="activityBox-row">
@ -45,10 +45,10 @@
<u--form labelPosition="left" :model="form" :rules="rules" ref="form"> <u--form labelPosition="left" :model="form" :rules="rules" ref="form">
<view class="box-card"> <view class="box-card">
<view class="box-card-title"> <view class="box-card-title">
人数 人数
</view> </view>
<view class="box-card-content"> <view class="box-card-content">
<u-form-item label="参观人数" labelWidth="120" prop="total" ref="total"> <u-form-item label="人数" labelWidth="120" prop="total" ref="total">
<u-number-box slot="right" v-model="form.total" inputWidth="44" color="#EF9525" <u-number-box slot="right" v-model="form.total" inputWidth="44" color="#EF9525"
bgColor="#FCF6E3" :min="(type=='user'?1:list.team_min_count)" bgColor="#FCF6E3" :min="(type=='user'?1:list.team_min_count)"
:max="(type=='user'?list.person_max_count:list.team_max_count)" class="plus"> :max="(type=='user'?list.person_max_count:list.team_max_count)" class="plus">
@ -352,9 +352,12 @@
methods: { methods: {
getHm(val) { getHm(val) {
if (val) { if (val) {
return this.$moment(val).format("HH:mm:ss") return this.$moment(val).format("HH:mm")
} else return ""; } else return "";
}, },
timeFormat(val, format) {
return this.$moment(val).format(format)
},
confirmCards(e){ confirmCards(e){
this.card_type_names = e.value[0].label this.card_type_names = e.value[0].label
this.form.card_type = e.value[0].value this.form.card_type = e.value[0].value

@ -22,9 +22,12 @@
<text>{{isUnde(item.type_name)}}</text> <text>{{isUnde(item.type_name)}}</text>
</view> </view>
<block v-if="item.orders_count==item.total"> <block v-if="item.orders_count==item.total">
<view class="tag"> <view class="tag" v-if="item.isCanBook">
<text>已约满</text> <text>已约满</text>
</view> </view>
<view class="tag" v-else>
<text>{{item.rate_name}}</text>
</view>
</block> </block>
<block v-else> <block v-else>
<view class="tag" :class="{activityBox_btn:item.isCanBook}"> <view class="tag" :class="{activityBox_btn:item.isCanBook}">
@ -35,7 +38,7 @@
<view class="activityBox-row"> <view class="activityBox-row">
<text class="icon-shijian iconfont"></text> <text class="icon-shijian iconfont"></text>
<text>活动时间{{getHm(item.start_time)}}-{{getHm(item.end_time)}}</text> <text>活动时间{{timeFormat(item.start_time,"yyyy年MM月DD日")}} {{getHm(item.start_time)}}-{{getHm(item.end_time)}}</text>
</view> </view>
<!-- <view class="activityBox-row"> <!-- <view class="activityBox-row">
@ -139,8 +142,11 @@
}, },
getHm(val) { getHm(val) {
if (val) { if (val) {
return this.$moment(val).format("HH:mm:ss") return this.$moment(val).format("HH:mm")
} else return ""; } else return "";
},
timeFormat(val, format) {
return this.$moment(val).format(format)
} }
} }
} }

@ -24,7 +24,7 @@
<view class="activityBox-row"> <view class="activityBox-row">
<text class="icon-shijian iconfont"></text> <text class="icon-shijian iconfont"></text>
<text>活动时间{{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text> <text>活动时间{{timeFormat(list.start_time,"yyyy年MM月DD日")}} {{getHm(list.start_time)}}-{{getHm(list.end_time)}}</text>
</view> </view>
<!-- <view class="activityBox-row"> <!-- <view class="activityBox-row">
@ -100,6 +100,9 @@
}, },
methods: { methods: {
timeFormat(val, format) {
return this.$moment(val).format(format)
},
tothere() { tothere() {
uni.openLocation({ uni.openLocation({
latitude: parseFloat(this.list.latitude), latitude: parseFloat(this.list.latitude),
@ -153,7 +156,7 @@
}, },
getHm(val) { getHm(val) {
if (val) { if (val) {
return this.$moment(val).format("HH:mm:ss") return this.$moment(val).format("HH:mm")
} else return ""; } else return "";
} }
} }

Loading…
Cancel
Save