1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
<view style="letter-spacing:1rpx;background:#ebf4f7;min-height:100vh;"><tn-nav-bar vue-id="3001f21c-1" isBack="{{false}}" backTitle bottomShadow="{{false}}" backgroundColor="#FFFFFF" bind:__l="__l" vue-slots="{{['default']}}"><view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left"><view data-event-opts="{{[['tap',[['goBack']]]]}}" style="padding-left:15rpx;" bindtap="__e"><text class="tn-icon-left" style="font-size:40rpx;"></text></view><view style="text-shadow:1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width:85%;"><view>添加活动</view></view></view></tn-nav-bar><view style="{{'padding-top:'+(vuex_custom_bar_height+'px')+';'}}"><view style="padding:30rpx;"><view style="background-color:#FFF;border-radius:15rpx;padding:20rpx;"><tn-form vue-id="3001f21c-2" labelWidth="{{140}}" bind:__l="__l" vue-slots="{{['default']}}"><tn-form-item vue-id="{{('3001f21c-3')+','+('3001f21c-2')}}" prop="activity_name" bind:__l="__l" vue-slots="{{['default']}}"><tn-input bind:input="__e" vue-id="{{('3001f21c-4')+','+('3001f21c-3')}}" customStyle="{{({width:'600rpx'})}}" placeholder="请填写活动标题" value="{{formData.activity_name}}" data-event-opts="{{[['^input',[['__set_model',['$0','activity_name','$event',[]],['formData']]]]]}}" bind:__l="__l"></tn-input></tn-form-item><tn-form-item vue-id="{{('3001f21c-5')+','+('3001f21c-2')}}" label="活动主图" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-6')+','+('3001f21c-5')}}" disabled="{{true}}" clearable="{{false}}" data-event-opts="{{[['^click',[['upload_img']]]]}}" bind:click="__e" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['upload_img',['$event']]]]]}}" bindtap="__e"><view><block wx:if="{{formData.activity_image==''}}"><text>请上传活动主图</text></block><block wx:if="{{formData.activity_image!=''}}"><image class="no-img" style="width:100rpx;vertical-align:middle;" src="{{apiImgUrl+formData.activity_image}}" mode="widthFix"></image></block><text class="tn-icon-right"></text></view></view></tn-form-item><tn-form-item vue-id="{{('3001f21c-7')+','+('3001f21c-2')}}" label="活动类型" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-8')+','+('3001f21c-7')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right"><view><text>协会活动</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-form-item vue-id="{{('3001f21c-9')+','+('3001f21c-2')}}" label="报名开始时间" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-10')+','+('3001f21c-9')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view><text>{{(formData.signup_start_time==''?'请选择报名开始时间':formData.signup_start_time)+''}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-picker vue-id="{{('3001f21c-11')+','+('3001f21c-2')}}" mode="time" params="{{({year:true,month:true,day:true,hour:true,minute:true,second:false})}}" value="{{start_sign_time_show}}" data-event-opts="{{[['^confirm',[['start_sign_time_do']]],['^input',[['__set_model',['','start_sign_time_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-picker><tn-form-item vue-id="{{('3001f21c-12')+','+('3001f21c-2')}}" label="报名结束时间" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-13')+','+('3001f21c-12')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e"><view><text>{{formData.signup_end_time==''?'请选择报名结束时间':formData.signup_end_time}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-picker vue-id="{{('3001f21c-14')+','+('3001f21c-2')}}" mode="time" params="{{({year:true,month:true,day:true,hour:true,minute:true,second:false})}}" value="{{end_sign_time_show}}" data-event-opts="{{[['^confirm',[['end_sign_time_do']]],['^input',[['__set_model',['','end_sign_time_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-picker><tn-form-item vue-id="{{('3001f21c-15')+','+('3001f21c-2')}}" label="活动开始时间" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-16')+','+('3001f21c-15')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" bindtap="__e"><view><text>{{(formData.activity_start_time==''?'请选择活动开始时间':formData.activity_start_time)+''}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-picker vue-id="{{('3001f21c-17')+','+('3001f21c-2')}}" mode="time" params="{{({year:true,month:true,day:true,hour:true,minute:true,second:false})}}" value="{{start_time_show}}" data-event-opts="{{[['^confirm',[['start_time_do']]],['^input',[['__set_model',['','start_time_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-picker><tn-form-item vue-id="{{('3001f21c-18')+','+('3001f21c-2')}}" label="活动结束时间" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-19')+','+('3001f21c-18')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" bindtap="__e"><view><text>{{formData.activity_end_time==''?'请选择活动结束时间':formData.activity_end_time}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-picker vue-id="{{('3001f21c-20')+','+('3001f21c-2')}}" mode="time" params="{{({year:true,month:true,day:true,hour:true,minute:true,second:false})}}" value="{{end_time_show}}" data-event-opts="{{[['^confirm',[['end_time_do']]],['^input',[['__set_model',['','end_time_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-picker><tn-form-item vue-id="{{('3001f21c-21')+','+('3001f21c-2')}}" label="活动地址" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-22')+','+('3001f21c-21')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['open_mode',[0]]]]]}}" bindtap="__e"><view><text>{{formData.activity_location==''?'请输入活动地址':formData.activity_location}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-form-item vue-id="{{('3001f21c-23')+','+('3001f21c-2')}}" label="显示报名人数" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-24')+','+('3001f21c-23')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e"><view><text>{{$root.m0}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-select vue-id="{{('3001f21c-25')+','+('3001f21c-2')}}" mode="single" list="{{list}}" searchShow="{{true}}" value="{{display_show}}" data-event-opts="{{[['^confirm',[['display_do']]],['^input',[['__set_model',['','display_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-select><tn-form-item vue-id="{{('3001f21c-26')+','+('3001f21c-2')}}" label="报名范围" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-27')+','+('3001f21c-26')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" bindtap="__e"><view><text>{{$root.m1}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-select vue-id="{{('3001f21c-28')+','+('3001f21c-2')}}" mode="single" list="{{range_list}}" searchShow="{{true}}" value="{{display_range_show}}" data-event-opts="{{[['^confirm',[['display_range_do']]],['^input',[['__set_model',['','display_range_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-select><tn-form-item vue-id="{{('3001f21c-29')+','+('3001f21c-2')}}" label="报名审核" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-30')+','+('3001f21c-29')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" bindtap="__e"><view><text>{{$root.m2}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-select vue-id="{{('3001f21c-31')+','+('3001f21c-2')}}" mode="single" list="{{if_auditing_list}}" searchShow="{{true}}" value="{{display_if_auditing_show}}" data-event-opts="{{[['^confirm',[['display_if_auditing_do']]],['^input',[['__set_model',['','display_if_auditing_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-select><tn-form-item vue-id="{{('3001f21c-32')+','+('3001f21c-2')}}" label="报名人数" bind:__l="__l" vue-slots="{{['default']}}"><tn-input bind:input="__e" vue-id="{{('3001f21c-33')+','+('3001f21c-32')}}" clearable="{{false}}" customStyle="{{({width:'500rpx'})}}" placeholder="请填写报名人数(0为不限制)" value="{{formData.number}}" data-event-opts="{{[['^input',[['__set_model',['$0','number','$event',[]],['formData']]]]]}}" bind:__l="__l"></tn-input></tn-form-item><tn-form-item vue-id="{{('3001f21c-34')+','+('3001f21c-2')}}" label="签到" labelWidth="{{200}}" bind:__l="__l" vue-slots="{{['default','right']}}"><tn-input vue-id="{{('3001f21c-35')+','+('3001f21c-34')}}" disabled="{{true}}" clearable="{{false}}" bind:__l="__l"></tn-input><view slot="right" data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" bindtap="__e"><view><text>{{$root.m3}}</text><text class="tn-icon-right"></text></view></view></tn-form-item><tn-select vue-id="{{('3001f21c-36')+','+('3001f21c-2')}}" mode="single" list="{{if_sign_list}}" searchShow="{{true}}" value="{{display_if_sign_show}}" data-event-opts="{{[['^confirm',[['display_if_sign_do']]],['^input',[['__set_model',['','display_if_sign_show','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></tn-select></tn-form></view><view style="background-color:#FFF;border-radius:15rpx;padding:20rpx;margin-top:25rpx;"><tn-input vue-id="3001f21c-37" disabled="{{true}}" placeholder="请输入活动内容" type="textarea" maxLength="{{-1}}" height="{{300}}" clearable="{{false}}" value="{{activity_content}}" data-event-opts="{{[['^click',[['e8']]],['^input',[['__set_model',['','activity_content','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></tn-input></view><view style="margin:0 auto;margin-top:40rpx;text-align:center;"><tn-button vue-id="3001f21c-38" backgroundColor="#3F8BF2" height="90rpx" width="90%" shape="round" fontColor="#ffffff" data-event-opts="{{[['^click',[['submitDo']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">发布</tn-button></view></view></view><tn-modal bind:input="__e" vue-id="3001f21c-39" custom="{{true}}" value="{{addMod}}" data-event-opts="{{[['^input',[['__set_model',['','addMod','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="custom-modal-content"><view style="text-align:center;font-size:34rpx;">活动地址</view><view class="text"><tn-form class="vue-ref" vue-id="{{('3001f21c-40')+','+('3001f21c-39')}}" labelWidth="{{180}}" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><tn-form-item vue-id="{{('3001f21c-41')+','+('3001f21c-40')}}" label="活动地址" prop="content" bind:__l="__l" vue-slots="{{['default']}}"><tn-input bind:input="__e" vue-id="{{('3001f21c-42')+','+('3001f21c-41')}}" type="text" placeholder="填写活动地址" value="{{formData.activity_location}}" data-event-opts="{{[['^input',[['__set_model',['$0','activity_location','$event',[]],['formData']]]]]}}" bind:__l="__l"></tn-input></tn-form-item></tn-form><view style="text-align:center;margin-top:30rpx;"><tn-button vue-id="{{('3001f21c-43')+','+('3001f21c-39')}}" backgroundColor="#E6E6E6" fontColor="#ffffff" data-event-opts="{{[['^click',[['e9']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">取消</tn-button><tn-button style="margin-left:30rpx;" vue-id="{{('3001f21c-44')+','+('3001f21c-39')}}" backgroundColor="tn-bg-blue" fontColor="tn-color-white" data-event-opts="{{[['^click',[['e10']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</tn-button></view></view></view></tn-modal><tn-popup bind:input="__e" vue-id="3001f21c-45" mode="right" width="100%" value="{{editText}}" data-event-opts="{{[['^input',[['__set_model',['','editText','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><tn-nav-bar vue-id="{{('3001f21c-46')+','+('3001f21c-45')}}" isBack="{{false}}" backTitle alpha="{{true}}" bottomShadow="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left"><view data-event-opts="{{[['tap',[['e11',['$event']]]]]}}" style="padding-left:15rpx;" bindtap="__e"><text class="tn-icon-left" style="font-size:40rpx;"></text></view><view class="tn-margin-top" style="text-shadow:1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;"><tn-tabs vue-id="{{('3001f21c-47')+','+('3001f21c-46')}}" list="{{[{name:'活动内容'}]}}" current="{{0}}" activeColor="#000" bold="{{false}}" fontSize="{{24}}" bind:__l="__l"></tn-tabs></view></view></tn-nav-bar><view style="background-color:#FFFFFF;"><view style="{{'padding-top:'+(vuex_custom_bar_height+'px')+';'}}"></view><view style="margin:0rpx 30rpx;background-color:#ffffff;border-radius:40rpx;"><scroll-view class="home" style="height:1200rpx;" scroll-y="{{true}}"><view class="editor-box"><sp-editor vue-id="{{('3001f21c-48')+','+('3001f21c-45')}}" placeholder="活动内容" toolbarConfig="{{$root.a0}}" data-event-opts="{{[['^input',[['inputOver']]],['^init',[['initEditor']]],['^upinImage',[['upinImage']]]]}}" bind:input="__e" bind:init="__e" bind:upinImage="__e" bind:__l="__l"></sp-editor></view></scroll-view></view></view><view style="margin:0 auto;margin-top:40rpx;text-align:center;"><tn-button vue-id="{{('3001f21c-49')+','+('3001f21c-45')}}" backgroundColor="#3F8BF2" height="90rpx" width="90%" shape="round" fontColor="#ffffff" data-event-opts="{{[['^click',[['editTextRes']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</tn-button></view></tn-popup><block wx:if="{{qrcode_show}}"><tn-modal bind:input="__e" vue-id="3001f21c-50" custom="{{true}}" maskCloseable="{{false}}" value="{{qrcode_show}}" data-event-opts="{{[['^input',[['__set_model',['','qrcode_show','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view style="text-align:center;margin:30rpx 0rpx;font-size:32rpx;font-weight:600;">请保存签到二维码</view><view style="text-align:center;width:250rpx;margin:0rpx auto;"><l-painter class="vue-ref" vue-id="{{('3001f21c-51')+','+('3001f21c-50')}}" css="background: #fff;width: 250rpx;text-align: center;" data-ref="painter" bind:__l="__l" vue-slots="{{['default']}}"><l-painter-qrcode vue-id="{{('3001f21c-52')+','+('3001f21c-51')}}" text="{{qrcode_url}}" css="width: 250rpx; height: 250rpx" bind:__l="__l"></l-painter-qrcode></l-painter></view><view style="text-align:center;margin-top:50rpx;"><tn-button vue-id="{{('3001f21c-53')+','+('3001f21c-50')}}" shape="round" width="80%" backgroundColor="#3F8BF2" fontColor="#ffffff" data-event-opts="{{[['^click',[['insQrcode']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">保存</tn-button></view></tn-modal></block></view> |