刘翔宇-旅管家 2 years ago
parent 4170c49092
commit df5aafe988

@ -15,7 +15,8 @@
<view class="activityBox-row"> <view class="activityBox-row">
<text class="icon-shijian iconfont"></text> <text class="icon-shijian iconfont"></text>
<text>活动时间{{timeFormat(numberlist.start_time,"yyyy年MM月DD日")}} {{getHm(numberlist.start_time)}}-{{getHm(numberlist.end_time)}}</text> <text>活动时间{{timeFormat(numberlist.start_time,"yyyy年MM月DD日")}}
{{getHm(numberlist.start_time)}}-{{getHm(numberlist.end_time)}}</text>
</view> </view>
<!-- <view class="activityBox-row"> <!-- <view class="activityBox-row">
@ -48,12 +49,15 @@
参观人数 参观人数
</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 v-if="type=='user'" 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">
</u-number-box> </u-number-box>
</u-form-item> </u-form-item>
<u-form-item v-else label="人数" labelWidth="120" prop="total" ref="total">
{{form.total}} 请添加参与名单
</u-form-item>
<view class="box-tips" v-if="type=='team'"> <view class="box-tips" v-if="type=='team'">
<text class="box-tips-txt" <text class="box-tips-txt"
v-if="type=='user'">每单限购{{list.person_max_count}}同一身份证当天限购1张</text> v-if="type=='user'">每单限购{{list.person_max_count}}同一身份证当天限购1张</text>
@ -361,7 +365,7 @@
if (that.form.type == 2) { if (that.form.type == 2) {
that.form.total = 1 that.form.total = 1
} else if (that.form.type == 1) { } else if (that.form.type == 1) {
that.form.total = res.data.team_min_count; that.form.total = 1;//res.data.team_min_count;
} }
} }
}) })
@ -403,7 +407,7 @@
code: e.detail.code code: e.detail.code
}, },
utilSuccess: function(res) { utilSuccess: function(res) {
that.form.mobile = res.mobile; that.form.mobile = res.mobile;
that.showAuthorization = false that.showAuthorization = false
}, },
utilFail: function(res) { utilFail: function(res) {
@ -477,6 +481,7 @@
} }
this.form.total = this.form.details_list.length;
}, },
tothere() { tothere() {
uni.openLocation({ uni.openLocation({
@ -507,6 +512,7 @@
} }
} }
this.form.details_list.splice(index, 1); this.form.details_list.splice(index, 1);
this.form.total = this.form.details_list.length;
}, },
closeInfo() { closeInfo() {
this.showInfo = false; this.showInfo = false;
@ -549,7 +555,7 @@
} else { } else {
that.form.details_list.push(that.formUser); that.form.details_list.push(that.formUser);
} }
that.form.total = that.form.details_list.length;
that.showAdd = false; that.showAdd = false;
@ -598,6 +604,7 @@
card_type: 1 card_type: 1
}) })
} }
_that.form.total = _that.form.details_list.length
uni.hideLoading(); uni.hideLoading();
} }
}) })

Loading…
Cancel
Save