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.
 
 
 
 

1 lines
4.9 KiB

<view class="templates-box"><view class="templates-name"><input type="text" placeholder="请输入模板名称" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/></view><view class="charge-type acea-row row-around"><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" bindchange="__e"><label><radio value="{{0}}" checked="{{type==0}}"></radio><text>件数</text></label><label><radio value="{{1}}" checked="{{type==1}}"></radio><text>重量</text></label></radio-group></view><view class="default-tempalte"><view>{{templateList[0].regionName}}</view><view class="m28 acea-row row-between"><view>运费</view><view class="acea-row row-middle"><text>¥</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['templateList.__$n0']]]]]}}" value="{{templateList[0].price}}" bindinput="__e"/><text>{{"/"+(type==0?'件':'kg')}}</text></view></view><view class="step-freight-box"><view class="acea-row row-between"><view>阶梯运费</view><switch style="transform:scale(0.7);" checked="{{setpFreight}}" color="#FF6D31" data-event-opts="{{[['change',[['switchChange',['$event']]]]]}}" bindchange="__e"></switch></view><view hidden="{{!(setpFreight)}}" class="step-box"><view class="acea-row row-middle row-center"><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','first','$event',[]],['templateList.__$n0']]]]]}}" value="{{templateList[0].first}}" bindinput="__e"/><text>{{(type==0?'件':'kg')+"内(含)¥"}}</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['templateList.__$n0']]]]]}}" value="{{templateList[0].price}}" bindinput="__e"/></view><view class="acea-row row-middle row-center"><text>每增加</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','_continue','$event',[]],['templateList.__$n0']]]]]}}" value="{{templateList[0]._continue}}" bindinput="__e"/><text>{{(type==0?'件':'kg')+","}}</text><text>运费增加</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','continue_price','$event',[]],['templateList.__$n0']]]]]}}" value="{{templateList[0].continue_price}}" bindinput="__e"/></view></view></view></view><view data-event-opts="{{[['tap',[['showTree',['$event']]]]]}}" class="add-appoint-btn" bindtap="__e">添加指定地区设置</view><view class="appoint-template-box"><block wx:for="{{templateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{index>0}}"><view class="default-tempalte"><view data-event-opts="{{[['tap',[['delTempItem',[index]]]]]}}" class="close-btn" bindtap="__e">×</view><view>{{item.regionName}}</view><view class="m28 acea-row row-between"><view>运费</view><view class="acea-row row-middle"><text>¥</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],[[['templateList','',index]]]]]]]}}" value="{{item.price}}" bindinput="__e"/><text>{{"/"+(type==0?'件':'kg')}}</text></view></view><view class="step-freight-box"><view class="acea-row row-between"><view>阶梯运费</view><switch style="transform:scale(0.7);" checked="{{item.setpFreight}}" color="#FF6D31" data-event-opts="{{[['change',[['appointSwitchChange',[index]]]]]}}" bindchange="__e"></switch></view><view hidden="{{!(item.setpFreight)}}" class="step-box"><view class="acea-row row-middle row-center"><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','first','$event',[]],[[['templateList','',index]]]]]]]}}" value="{{item.first}}" bindinput="__e"/><text>{{(type==0?'件':'kg')+"内(含)¥"}}</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],[[['templateList','',index]]]]]]]}}" value="{{item.price}}" bindinput="__e"/></view><view class="acea-row row-middle row-center"><text>每增加</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','_continue','$event',[]],[[['templateList','',index]]]]]]]}}" value="{{item._continue}}" bindinput="__e"/><text>{{(type==0?'件':'kg')+","}}</text><text>运费增加</text><input class="inp-price" type="text" data-event-opts="{{[['input',[['__set_model',['$0','continue_price','$event',[]],[[['templateList','',index]]]]]]]}}" value="{{item.continue_price}}" bindinput="__e"/></view></view></view></view></block></block></block></view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="submit-btn" bindtap="__e">确认提交</view><tki-tree class="vue-ref" vue-id="1f3889c5-1" multiple="{{true}}" range="{{list}}" selectParent="true" foldAll="{{true}}" rangeKey="name" data-ref="tkitree" data-event-opts="{{[['^confirm',[['treeConfirm']]],['^cancel',[['treeCancel']]]]}}" bind:confirm="__e" bind:cancel="__e" bind:__l="__l"></tki-tree></view>