publish.ttml 18 KB

1
  1. <view><fa-navbar vue-id="50568f02-1" title="发布文章" bind:__l="__l"></fa-navbar><block tt:if="{{showForm}}"><view class="u-p-30"><u-form class="vue-ref" vue-id="50568f02-2" model="{{form}}" rules="{{rules}}" errorType="{{errorType}}" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><block tt:if="{{$root.g0!=-1}}"><u-form-item vue-id="{{('50568f02-3')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label="副栏目:" label-width="130" bind:__l="__l" vue-slots="{{['default']}}"><fa-selects bind:input="__e" vue-id="{{('50568f02-4')+','+('50568f02-3')}}" fa-list="{{secondList}}" title="请选择副栏目" checkeType="selects" showValue="{{archives&&archives.channel_ids}}" value="{{form.channel_ids}}" data-event-opts="{{[['^input',[['__set_model',['$0','channel_ids','$event',[]],['form']]]]]}}" bind:__l="__l"></fa-selects></u-form-item></block><u-form-item vue-id="{{('50568f02-5')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label="标题:" prop="title" required="{{rules.title&&rules.title.length>0}}" label-width="130" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-6')+','+('50568f02-5')}}" border="{{border}}" placeholder="请输入标题" type="text" value="{{form.title}}" data-event-opts="{{[['^input',[['__set_model',['$0','title','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item><block tt:if="{{$root.g1!=-1}}"><u-form-item vue-id="{{('50568f02-7')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label="略缩图:" label-width="130" bind:__l="__l" vue-slots="{{['default']}}"><fa-upload-image bind:input="__e" vue-id="{{('50568f02-8')+','+('50568f02-7')}}" file-list="{{imageList.image||[]}}" value="{{form.image}}" data-event-opts="{{[['^input',[['__set_model',['$0','image','$event',[]],['form']]]]]}}" bind:__l="__l"></fa-upload-image></u-form-item></block><block tt:if="{{$root.g2!=-1}}"><u-form-item vue-id="{{('50568f02-9')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label="组图:" label-width="130" bind:__l="__l" vue-slots="{{['default']}}"><fa-upload-image bind:input="__e" vue-id="{{('50568f02-10')+','+('50568f02-9')}}" imgType="many" file-list="{{imageList.images||[]}}" value="{{form.images}}" data-event-opts="{{[['^input',[['__set_model',['$0','images','$event',[]],['form']]]]]}}" bind:__l="__l"></fa-upload-image></u-form-item></block><block tt:if="{{$root.g3!=-1}}"><u-form-item vue-id="{{('50568f02-11')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label="标签:" label-width="130" bind:__l="__l" vue-slots="{{['default']}}"><fa-tags bind:input="__e" vue-id="{{('50568f02-12')+','+('50568f02-11')}}" tagList="{{archives&&archives.tags}}" value="{{form.tags}}" data-event-opts="{{[['^input',[['__set_model',['$0','tags','$event',[]],['form']]]]]}}" bind:__l="__l"></fa-tags></u-form-item></block><block tt:if="{{$root.g4!=-1}}"><u-form-item vue-id="{{('50568f02-13')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" label="关键字:" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-14')+','+('50568f02-13')}}" type="text" border="{{border}}" placeholder="请填写关键字" value="{{form.keywords}}" data-event-opts="{{[['^input',[['__set_model',['$0','keywords','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{$root.g5!=-1}}"><u-form-item vue-id="{{('50568f02-15')+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" label="描述:" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-16')+','+('50568f02-15')}}" type="textarea" border="{{border}}" placeholder="请填写描述" value="{{form.description}}" data-event-opts="{{[['^input',[['__set_model',['$0','description','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item></block><block tt:for="{{fields}}" tt:for-item="item" tt:for-index="index" tt:key="index"><block><block tt:if="{{item.type=='string'}}"><u-form-item vue-id="{{('50568f02-17-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-18-'+index)+','+('50568f02-17-'+index)}}" type="text" border="{{border}}" placeholder="{{'请填写'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='text'}}"><u-form-item vue-id="{{('50568f02-19-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-20-'+index)+','+('50568f02-19-'+index)}}" type="textarea" border="{{border}}" placeholder="{{'请填写'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='array'&&item.name!='downloadurl'}}"><u-form-item vue-id="{{('50568f02-21-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-array bind:input="__e" vue-id="{{('50568f02-22-'+index)+','+('50568f02-21-'+index)}}" faKey="{{item.setting.key}}" faVal="{{item.setting.value}}" showValue="{{field_values[item.name]}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-array></u-form-item></block><block tt:if="{{item.type=='array'&&item.name=='downloadurl'}}"><u-form-item vue-id="{{('50568f02-23-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-array-download bind:input="__e" vue-id="{{('50568f02-24-'+index)+','+('50568f02-23-'+index)}}" showValue="{{field_values[item.name]}}" contentList="{{item.content_list}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-array-download></u-form-item></block><block tt:if="{{item.type=='date'}}"><u-form-item vue-id="{{('50568f02-25-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('50568f02-26-'+index)+','+('50568f02-25-'+index)}}" border="{{border}}" type="select" select-open="{{showPicker&&mode=='date'}}" placeholder="{{'请选择'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^click',[['selectPicker',['date','$0'],[[['fields','',index,'name']]]]]],['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='time'}}"><u-form-item vue-id="{{('50568f02-27-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('50568f02-28-'+index)+','+('50568f02-27-'+index)}}" border="{{border}}" type="select" select-open="{{showPicker&&mode=='time'}}" placeholder="{{'请选择'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^click',[['selectPicker',['time','$0'],[[['fields','',index,'name']]]]]],['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='datetime'}}"><u-form-item vue-id="{{('50568f02-29-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('50568f02-30-'+index)+','+('50568f02-29-'+index)}}" border="{{border}}" type="select" select-open="{{showPicker&&mode=='datetime'}}" placeholder="{{'请选择'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^click',[['selectPicker',['datetime','$0'],[[['fields','',index,'name']]]]]],['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='datetimerange'}}"><u-form-item vue-id="{{('50568f02-31-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('50568f02-32-'+index)+','+('50568f02-31-'+index)}}" border="{{border}}" type="select" select-open="{{calendarShow}}" placeholder="{{'请选择'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^click',[['e0']]],['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" data-event-params="{{({item})}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='number'}}"><u-form-item vue-id="{{('50568f02-33-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('50568f02-34-'+index)+','+('50568f02-33-'+index)}}" type="number" border="{{border}}" placeholder="{{'请填写'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='checkbox'}}"><u-form-item vue-id="{{('50568f02-35-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-check-radio bind:input="__e" vue-id="{{('50568f02-36-'+index)+','+('50568f02-35-'+index)}}" faList="{{item.content_list}}" checkValue="{{field_values[item.name]||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-check-radio></u-form-item></block><block tt:if="{{item.type=='radio'}}"><u-form-item vue-id="{{('50568f02-37-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-check-radio bind:input="__e" vue-id="{{('50568f02-38-'+index)+','+('50568f02-37-'+index)}}" faList="{{item.content_list}}" type="radio" checkValue="{{field_values[item.name]||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-check-radio></u-form-item></block><block tt:if="{{item.type=='select'}}"><u-form-item vue-id="{{('50568f02-39-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-selects bind:input="__e" vue-id="{{('50568f02-40-'+index)+','+('50568f02-39-'+index)}}" fa-list="{{item.content_list}}" title="{{item.title}}" checkeType="{{item.type}}" showValue="{{field_values[item.name]||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-selects></u-form-item></block><block tt:if="{{item.type=='selects'}}"><u-form-item vue-id="{{('50568f02-41-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-selects bind:input="__e" vue-id="{{('50568f02-42-'+index)+','+('50568f02-41-'+index)}}" fa-list="{{item.content_list}}" title="{{item.title}}" checkeType="{{item.type}}" showValue="{{field_values[item.name]||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-selects></u-form-item></block><block tt:if="{{item.type=='image'}}"><u-form-item vue-id="{{('50568f02-43-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-upload-image bind:input="__e" vue-id="{{('50568f02-44-'+index)+','+('50568f02-43-'+index)}}" file-list="{{imageList[item.name]||[]}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-upload-image></u-form-item></block><block tt:if="{{item.type=='images'}}"><u-form-item vue-id="{{('50568f02-45-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-upload-image bind:input="__e" vue-id="{{('50568f02-46-'+index)+','+('50568f02-45-'+index)}}" imgType="many" file-list="{{imageList[item.name]||[]}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-upload-image></u-form-item></block><block tt:if="{{item.type=='switch'}}"><u-form-item vue-id="{{('50568f02-47-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-switch bind:input="__e" vue-id="{{('50568f02-48-'+index)+','+('50568f02-47-'+index)}}" defvalue="{{field_values[item.name]||0}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-switch></u-form-item></block><block tt:if="{{item.type=='city'}}"><u-form-item vue-id="{{('50568f02-49-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('50568f02-50-'+index)+','+('50568f02-49-'+index)}}" border="{{border}}" type="select" select-open="{{cityShow}}" placeholder="{{'请选择'+item.title}}" value="{{form[item.name]}}" data-event-opts="{{[['^click',[['e1']]],['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" data-event-params="{{({item})}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></block><block tt:if="{{item.type=='selectpage'}}"><u-form-item vue-id="{{('50568f02-51-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-selectpages bind:input="__e" vue-id="{{('50568f02-52-'+index)+','+('50568f02-51-'+index)}}" fa-id="{{item.id}}" title="{{item.title}}" checkeType="{{item.type}}" showField="{{item.setting.field}}" keyField="{{item.setting.primarykey}}" showValue="{{(form[item.name]?form[item.name]:field_values[item.name])||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-selectpages></u-form-item></block><block tt:if="{{item.type=='selectpages'}}"><u-form-item vue-id="{{('50568f02-53-'+index)+','+('50568f02-2')}}" label-position="{{labelPosition}}" label-width="130" prop="{{item.name}}" label="{{item.title}}" required="{{rules[item.name]&&rules[item.name].length>0}}" bind:__l="__l" vue-slots="{{['default']}}"><fa-selectpages bind:input="__e" vue-id="{{('50568f02-54-'+index)+','+('50568f02-53-'+index)}}" fa-id="{{item.id}}" title="{{item.title}}" checkeType="{{item.type}}" showField="{{item.setting.field}}" keyField="{{item.setting.primarykey}}" showValue="{{(form[item.name]?form[item.name]:field_values[item.name])||item.defaultvalue}}" value="{{form[item.name]}}" data-event-opts="{{[['^input',[['__set_model',['$0','$1','$event',[]],['form',[['fields','',index,'name']]]]]]]}}" bind:__l="__l"></fa-selectpages></u-form-item></block></block></block></u-form><view class="u-p-30"><u-button vue-id="50568f02-55" type="primary" hover-class="none" custom-style="{{$root.a0}}" shape="circle" data-event-opts="{{[['^click',[['submit']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">提交</u-button></view></view></block><u-picker vue-id="50568f02-56" mode="time" params="{{params}}" value="{{showPicker}}" data-event-opts="{{[['^confirm',[['pickerResult']]],['^input',[['__set_model',['','showPicker','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker><u-calendar vue-id="50568f02-57" mode="range" max-date="3000-01-01" value="{{calendarShow}}" data-event-opts="{{[['^change',[['calendarResult']]],['^input',[['__set_model',['','calendarShow','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-calendar><fa-citys bind:cityChange="__e" bind:input="__e" vue-id="50568f02-58" value="{{cityShow}}" data-event-opts="{{[['^cityChange',[['cityResult']]],['^input',[['__set_model',['','cityShow','$event',[]]]]]]}}" bind:__l="__l"></fa-citys><fa-tabbar vue-id="50568f02-59" bind:__l="__l"></fa-tabbar></view>