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.
 

308 lines
12 KiB

<view class="container">
<view class="nav">
<view class="upload" wx:for="{{uploaderList}}" wx:key="upimag">
<icon class='ui_uploader_item_icon' bindtap='clearImg' data-index="{{index}}" type="clear" size="20"
color="red" />
<image bindtap='showImg' data-index="{{index}}" src='{{item}}' mode='aspectFill'></image>
</view>
<view class="blur" wx:if="{{showUpload}}">
<image src="../../../images/addactive.png"></image>
<view class="intro">首图尺寸建议:宽750px*高680px</view>
<view class="upload" bindtap='upload' >上传首图</view>
</view>
</view>
<view class="form">
<view class="list">
<view class="title">报名时间</view>
<view class="time">
<picker mode="multiSelector" value="{{startT}}" bindchange="changeDateTime"
range="{{dateTimeArray}}">
<view class="picker">
{{startT}}
</view>
</picker>
<picker mode="multiSelector" value="{{startTTwo}}" bindchange="changeDateTimeTwo"
range="{{dateTimeArrayTwo}}">
<view class="picker">
{{startTTwo}}
</view>
</picker>
</view>
</view>
<view class="list">
<view class="title">活动时间</view>
<view class="time">
<picker mode="multiSelector" value="{{startTThree}}" bindchange="changeDateTimeThree"
range="{{dateTimeArrayTwo}}">
<view class="picker">
{{startTThree}}
</view>
</picker>
<picker mode="multiSelector" value="{{startTFour}}" bindchange="changeDateTimeFour"
range="{{dateTimeArrayFour}}">
<view class="picker">
{{startTFour}}
</view>
</picker>
</view>
</view>
<view class="list" hidden>
<view class="title">选择俱乐部</view>
<view class="inputbox">
<picker bindchange="bindPickerChange" value="{{index}}" range-key="clubName" range="{{array}}" data-id='{{array[index].clubId}}'>
<view class="picker">
{{array[index].clubName}}
</view>
</picker>
<!-- <input type="text" placeholder="输入活动名称" bindinput="nameInput"/> -->
</view>
</view>
<view class="list">
<view class="title">活动名称</view>
<view class="inputbox">
<input type="text" placeholder="输入活动名称" bindinput="nameInput"/>
</view>
</view>
<view class="list">
<view class="title">联系电话</view>
<view class="inputbox">
<input type="text" placeholder="输入电话号码" bindinput="telInput"/>
</view>
</view>
<!-- <view class="formlistimg">
<text>活动logo</text>
<view class="upload" wx:for="{{uploaderListfront}}" wx:key="upimagfront">
<icon class='ui_uploader_item_icon' bindtap='clearImgfront' data-index="{{index}}" type="clear" size="20"
color="red" />
<image bindtap='showImgfront' data-index="{{index}}" src='{{item}}' mode='aspectFill'></image>
</view>
<image src="../../../images/imgadd.png" bindtap='uploadfront' wx:if="{{showUploadfront}}"></image>
</view> -->
<view class="list">
<view class="title">活动地址</view>
<view class="addressbox">
<input type="text" placeholder="输入活动地址" value="{{address}}" bindinput="addressInput"/>
<view class="ding" bindtap="tochooseAddress">选择定位<image src="../../../images/dingwei.png"></image></view>
</view>
</view>
<view class="listaraw">
<view class="title">活动内容</view>
<view class="areabox">
<!-- 开始 -->
<view class='toWrite' bindtap='addImg'>
<image src='../../../images/addactive.png'
style='width:60rpx;height:60rpx;margin-left:15rpx;margin-top:15rpx;' />
</view>
<view style="width: 100%;min-height: 300rpx;">
<textarea style="height: 200rpx;" bindinput='inputCon' value='{{firstCon}}' placeholder='写点什么...' bindblur="outBlur" id='0' />
<view wx:for="{{dataList}}" wx:key="datalist" style='background-color:white;'>
<view class='img_view'>
<image src='{{item.pic}}' mode='aspectFill' />
<view>
<icon type='clear' bindtap='deletedImg' data-index='{{index}}' size='20' color='red' class="deleteicon"></icon>
</view>
</view>
<!-- <textarea class='input_view' maxlength='-1' auto-height='true' bindinput='inputCon' value='{{item.value}}' placeholder='写点什么...' bindblur="outBlur" id='{{index+1}}' /> -->
</view>
<view style='height:10rpx;width:100%;'></view>
</view>
<!-- 结束 -->
</view>
</view>
<view class="formlist">
<text>报名费用</text>
<view class="authright">
<radio-group name="isFree" bindchange="radioChange" >
<label hidden><radio value="0" color="#FFCB12"/>免费</label>
<label><radio value="1" checked="true" color="#FFCB12"/>付费</label>
</radio-group>
</view>
</view>
<view class="money" > <!-- hidden="{{nofree}}"-->
<view class="formlist">
<text>费用名称</text>
<input type="text" placeholder="10字以内" bindinput="custname"/>
</view>
<view class="formlist">
<text>金额</text>
<input type="text" placeholder="有人报名后不可修改" bindinput="custmoney"/>
</view>
<view class="list">
<view class="title">费用说明</view>
<view class="areabox">
<textarea placeholder="50字以内" bindinput="custintro"/>
</view>
</view>
</view>
<view class="formlist">
<text>活动人数限制</text>
<input type="text" placeholder="无限制" bindinput="peoplelimitInput"/>
</view>
<!-- <view class="formlist">
<text>报名可选择费用项数</text>
<input type="text" placeholder="无限制" bindinput="feeInput"/>
</view> -->
<view class="formlist">
<text>允许帮助他人报名次数</text>
<input type="text" placeholder="无限制" bindinput="helpInput"/>
</view>
<!-- <view class="formlist">
<text>报名人是否需要审核</text>
<view class="authright">
<radio-group name="isCheck" bindchange="checkChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不需要</label>
<label><radio value="1" color="#FFCB12"/>需要</label>
</radio-group>
</view>
</view> -->
<view class="formlist noline" bindtap="tobackmoney">
<text>退款设置</text>
<image src="../../../images/back.png"></image>
</view>
<view class="notice">* 活动有人支付成功后,则不能更改退款设置</view>
<!-- <view class="list">
<view class="title">报名填写项</view>
<view class="signbox">
<block wx:for="{{questionReq}}" wx:key="sign">
<view>
<text>{{item}}</text>
</view>
</block>
<view bindtap="addrequired">
<text>+</text>
</view>
</view>
</view> -->
<view class="formlist">
<text>报名截止后可修改信息</text>
<view class="authright">
<radio-group name="isUpdateRegister" bindchange="registerChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不可以</label>
<label><radio value="1" color="#FFCB12"/>可以</label>
</radio-group>
</view>
</view>
<!-- <view class="formlist">
<text>是否显示报名列表</text>
<view class="authright">
<radio-group name="isShowRegister" bindchange="showregisterChange" >
<label><radio value="0" color="#FFCB12"/>不显示</label>
<label><radio value="1" checked="true" color="#FFCB12"/>显示</label>
</radio-group>
</view>
</view> -->
<!-- <view class="formlist">
<text>是否显示主办方信息</text>
<view class="authright">
<radio-group name="isShowSponsor" bindchange="sponsorChange" >
<label><radio value="0" color="#FFCB12"/>不显示</label>
<label><radio value="1" checked="true" color="#FFCB12"/>显示</label>
</radio-group>
</view>
</view> -->
<view class="formlist" hidden>
<text>保险</text>
<input type="text" placeholder="请输入保险费用" bindinput="safeInput"/>
</view>
<view class="formlist" hidden>
<text>买保险方式</text>
<view class="authright">
<radio-group name="insuranceType" bindchange="insuranceTypeChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>无</label>
<label><radio value="1" color="#FFCB12"/>统一</label>
<label><radio value="2" color="#FFCB12"/>自助</label>
</radio-group>
</view>
</view>
<!-- <view class="formlist">
<text>小程序通知</text>
<view class="authright">
<radio-group name="isAppletNotify" bindchange="appleChange" >
<label><radio value="0" color="#FFCB12"/>不通知</label>
<label><radio value="1" checked="true" color="#FFCB12"/>通知</label>
</radio-group>
</view>
</view>
<view class="formlist">
<text>短信通知</text>
<view class="authright">
<radio-group name="isSmsNotify" bindchange="smsChange" >
<label><radio value="0" color="#FFCB12"/>不通知</label>
<label><radio value="1" checked="true" color="#FFCB12"/>通知</label>
</radio-group>
</view>
</view> -->
<!-- <view class="formlist">
<text>报名后自动加入俱乐部</text>
<view class="authright">
<radio-group name="isJoin" bindchange="isJoinChange" >
<label><radio value="0" color="#FFCB12"/>不自动加入</label>
<label><radio value="1" checked="true" color="#FFCB12"/>自动加入</label>
</radio-group>
</view>
</view> -->
<view class="formlist" hidden>
<text>上传分享海报</text>
<button>点击上传</button>
</view>
<view class="agree">
<checkbox-group bindchange="xieyi">
<label>
<checkbox name="box_check" value="{{checked}}"></checkbox>
我已阅读并同意<text catchtap='seexcieyi'>《服务协议》</text>
</label>
</checkbox-group>
</view>
</view>
<view class="bottom" bindtap="setActive">发布</view>
</view>
<!-- 用户协议 -->
<!-- <scroll-view class="modal-box" scroll-y="true" hidden="{{flag}}">
<view class="modal-content"></view>
<view class='modal'>
<view class="choice ">
<template is="wxParse" data="{{wxParseData:ftext.nodes}}" />
</view>
<view class="choice" style='margin-top:30rpx'>
<button class="knowBtn" bindtap='know'>我知道了</button>
</view>
</view>
</scroll-view> -->
<!-- 模态框 -->
<modal hidden="{{hidden}}" title="退款设置" confirm-text="确定" cancel-text="取消"
bindcancel="cancel" bindconfirm="confirm">
<view class="content">
<radio-group bindchange="backChange">
<label class="radio-box" wx:for="{{items}}" wx:key="refundlist">
<view class="radiocircle">
<view class="name">{{item.name}}</view>
<view class="radio-check">
<radio value="{{item.value}}" checked="{{item.checked}}" />
</view>
</view>
</label>
</radio-group>
<view class="dotime" hidden="{{ifchoose}}">
指定时间
<picker mode="date" value="{{refundTime}}" start="2021-01-01" end="2099-09-01" bindchange="bindDateChange">
<view class="picker">
{{refundTime}}
</view>
</picker>
</view>
</view>
</modal>
<!-- <modal hidden="{{taghidden}}" title="创建新报名项" confirm-text="添加" cancel-text="取消"
bindcancel="tagcancel" bindconfirm="tagconfirm">
<input type="text" bindinput="addtags"/>
</modal> -->