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
7.8 KiB

<view class="page1"><view class="type-popup" style="margin-bottom:0;border-radius:0;padding:15rpx;"><view style="height:80rpx;font-size:36rpx;font-weight:bold;line-height:80rpx;text-align:center;"><uni-easyinput bind:input="__e" vue-id="0b9e3e44-1" placeholder="请输入模板名称" value="{{printName}}" data-event-opts="{{[['^input',[['__set_model',['','printName','$event',[]]]]]]}}" bind:__l="__l"></uni-easyinput></view><block wx:for="{{shippList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;flex-direction:column;margin-top:20rpx;background:#fff;border-radius:10px;padding:20rpx;"><view style="display:flex;"><view style="color:#333;width:40%;"><uni-easyinput bind:input="__e" vue-id="{{'0b9e3e44-2-'+index}}" trim="none" placeholder="请输入标签名称" value="{{item.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],[[['shippList','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></view><view style="height:60rpx;width:5%;text-align:center;line-height:60rpx;">:</view><view style="color:#333;width:50%;margin:0 auto 20rpx;"><uni-easyinput bind:input="__e" vue-id="{{'0b9e3e44-3-'+index}}" placeholder="请输入标签值" value="{{item.value}}" data-event-opts="{{[['^input',[['__set_model',['$0','value','$event',[]],[[['shippList','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></view><view data-event-opts="{{[['tap',[['delItem',[index]]]]]}}" style="width:12%;margin-left:20rpx;margin-top:10rpx;" bindtap="__e"><uni-icons vue-id="{{'0b9e3e44-4-'+index}}" color="red" type="minus" size="26" bind:__l="__l"></uni-icons></view></view><view style="display:flex;"><view data-event-opts="{{[['tap',[['addIcon',[index,'left']]]]]}}" style="margin-top:10rpx;width:30%;height:60rpx;line-height:60rpx;background:#088FEB;text-align:center;color:#fff;border-radius:5px;" bindtap="__e"> 左侧添加图标 </view><block wx:for="{{item.leftIcon}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['longpress',[['delIcon',[index,index1,'left']]]]]}}" bindlongpress="__e"><image style="width:60rpx;height:60rpx;margin:10rpx 0 0 10rpx;" src="{{item1}}" alt class="_img"></image></view></block></view><view style="display:flex;"><view data-event-opts="{{[['tap',[['addIcon',[index,'right']]]]]}}" style="margin-top:10rpx;width:30%;height:60rpx;line-height:60rpx;background:#088FEB;text-align:center;color:#fff;border-radius:5px;" bindtap="__e"> 右侧添加图标 </view><block wx:for="{{item.rightIcon}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['longpress',[['delIcon',[index,index1,'right']]]]]}}" bindlongpress="__e"><image style="width:60rpx;height:60rpx;margin:10rpx 0 0 10rpx;" src="{{item1}}" alt class="_img"></image></view></block></view><view style="display:flex;margin-top:20rpx;"><radio-group data-event-opts="{{[['change',[['discountChange',[index,'$event']]]]]}}" style="display:flex;width:41%;" bindchange="__e"><block wx:for="{{items}}" wx:for-item="item1" wx:for-index="index1" wx:key="value"><label class="uni-list-cell uni-list-cell-pd" style="margin-right:0;"><view><radio value="{{item1.value}}" checked="{{item.modelLeft==item1.value}}"></radio></view><view style="width:100rpx;">{{item1.name}}</view></label></block></radio-group><radio-group data-event-opts="{{[['change',[['discountChange1',[index,'$event']]]]]}}" style="display:flex;" bindchange="__e"><block wx:for="{{items2}}" wx:for-item="item2" wx:for-index="index2" wx:key="value"><label class="uni-list-cell uni-list-cell-pd" style="margin-right:0;"><view><radio value="{{item2.value}}" checked="{{item.modelBlod==item2.value}}"></radio></view><view style="width:100rpx;">{{item2.name}}</view></label></block></radio-group></view></view></block><view data-event-opts="{{[['tap',[['addShippList',['$event']]]]]}}" style="text-align:right;height:80rpx;line-height:80rpx;padding-right:20rpx;color:#088FEB;font-size:30rpx;" bindtap="__e">新增一条</view><uqrcode class="vue-ref" vue-id="0b9e3e44-5" canvas-id="qrcode" hide="true" value="{{QrUrl}}" data-ref="uqrcode" bind:__l="__l"></uqrcode><block wx:if="{{shopId=='1810179818189361152'||shopId=='1838094297858183168'}}"><view style="background:#fff;height:100rpx;display:flex;line-height:100rpx;"><input style="width:30%;display:block;height:100rpx;text-align:center;font-size:32rpx;" type="text" maxlength="50" placeholder="输入名称" data-event-opts="{{[['blur',[['addItemName',['$event']]]]]}}" value="{{QrList1.name}}" bindblur="__e"/><input style="width:58%;display:block;height:80rpx;border:1px solid #eee;padding-left:20rpx;margin-top:10rpx;" type="text" disabled="{{true}}" placeholder="点击扫描二维码" data-event-opts="{{[['tap',[['scanCodeAdd',['$event']]]]]}}" value="{{QrList1.path}}" bindtap="__e"/></view></block><view style="display:flex;"><view style="width:150rpx;height:210rpx;margin:20rpx;"><image style="width:150rpx;height:150rpx;background-size:100%;" src="{{QrList1.imgUrl}}"></image><block wx:if="{{QrList1.imgUrl!=''}}"><view>{{QrList1.name}}</view></block></view></view><view style="width:100%;height:160rpx;line-height:70rpx;text-align:center;border-radius:0;color:#fff;"><view data-event-opts="{{[['tap',[['goAddClass',['$event']]]]]}}" style="background:linear-gradient(90deg, #60F3FF, #088FEB);height:70rpx;" bindtap="__e">确认</view><block wx:if="{{shopId=='1810179818189361152'||shopId=='1838094297858183168'}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="background:linear-gradient(90deg, #60F3FF, #088FEB);height:70rpx;margin-top:20rpx;" bindtap="__e"> 打印 </view></block></view></view><uni-popup class="vue-ref" vue-id="0b9e3e44-6" background-color="#fff" data-ref="showIconPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content"><view class="popup-pay-title"><text>选择洗涤图标</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('0b9e3e44-7')+','+('0b9e3e44-6')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['e1']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view style="height:900rpx;overflow:scroll;"><block wx:for="{{iconList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkIcon',['$0'],[[['iconList','',index]]]]]]]}}" style="display:flex;flex-direction:column;text-align:center;width:30%;float:left;margin-right:3%;height:180rpx;padding-top:40rpx;" bindtap="__e"><image style="width:60rpx;height:60rpx;background-size:100%;margin-top:20rpx;display:inline-block;margin:0 auto;" src="{{item.value}}" alt class="_img"></image><text>{{item.text}}</text></view></block></view></view></uni-popup><uni-popup class="vue-ref" vue-id="0b9e3e44-8" background-color="#fff" data-ref="printPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:600rpx;height:400rpx;"><view class="popup-pay-title"><text>请输入打印数量</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('0b9e3e44-9')+','+('0b9e3e44-8')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['e2']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view style="margin-top:40rpx;"><uni-easyinput bind:input="__e" vue-id="{{('0b9e3e44-10')+','+('0b9e3e44-8')}}" type="text" placeholder="请输入打印数量" value="{{number}}" data-event-opts="{{[['^input',[['__set_model',['','number','$event',[]]]]]]}}" bind:__l="__l"></uni-easyinput><view class="popup-pay-container"><kk-printer class="vue-ref" vue-id="{{('0b9e3e44-11')+','+('0b9e3e44-8')}}" bufferData="{{bufferData}}" printNum="{{printNum}}" defaultText="打印" data-ref="kkprinter" data-event-opts="{{[['^onPrint',[['onPrint1']]]]}}" bind:onPrint="__e" bind:__l="__l"></kk-printer></view></view></view></uni-popup><canvas style="width:200px;height:200px;top:-10000px;" canvas-id="qrcode1"></canvas></view>