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

<view class="page1"><view data-ref="top" class="top vue-ref"><view data-event-opts="{{[['tap',[['backPage',['$event']]]]]}}" style="width:80rpx;height:80rpx;margin:98rpx 0 0 30rpx;" bindtap="__e"><uni-icons vue-id="9f787f5e-1" type="left" color="#fff" size="27" bind:__l="__l"></uni-icons></view><view class="top1"><text style="display:block;margin-top:107rpx;color:#fff;">Ai入库</text></view></view><view class="content"><view class="prompt"><view class="prompt-title"><view class="hello-right"></view><view class="ai-bot"></view><view class="hello-left"><text style="font-size:40rpx;font-weight:800;line-height:56rpx;color:#fff;">Hi</text></view></view><view class="prompt-title-text"><text>欢迎使用Ai助手,为了提高图片识别准确率,建议您按照以下要求上传图片:</text><text>1.每张图片建议您裁剪到20个规格或以下</text><text>2.确保最后一款商品规格截取完整</text><text>3.每张图片输入对应的规格数量</text><text>4.图片越清晰角度越正识别准确率越高,建议使用原相机拍照并在相册内截图后上传</text><text>5.如果拍照后找不到所拍照片,打开微信的设置-通用-照片、视频里面的照片,点击开启后重启微信即可</text><text>6.点击可查看<text data-event-opts="{{[['tap',[['goTutorial',['$event']]]]]}}" style="color:blue;" bindtap="__e">使用教程</text></text></view><view class="prompt-title-img"><block wx:for="{{imgList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="img"><image show-menu-by-longpress="{{true}}" src="{{item}}" data-event-opts="{{[['tap',[['showImage',['$0'],[[['imgList','',index]]]]]]]}}" bindtap="__e"></image></view></block></view></view><view data-event-opts="{{[['tap',[['toggle',['$event']]]]]}}" style="height:98rpx;line-height:98rpx;font-size:34rpx;font-weight:bold;padding-left:30rpx;position:relative;" bindtap="__e"> 上传图片 <view class="title-line"></view><view class="icon-upload"><uni-icons vue-id="9f787f5e-2" type="cloud-upload" color="#00BFFF" size="30" bind:__l="__l"></uni-icons><text style="font-size:24rpx;float:left;font-weight:normal;">(←点击此处添加主图)</text></view></view><block wx:for="{{purchaseOcrPictureList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;width:100%;overflow:scroll;"><view class="content-list-img"><view data-event-opts="{{[['tap',[['delImage',[index]]]]]}}" class="del-icon" bindtap="__e"><uni-icons vue-id="{{'9f787f5e-3-'+index}}" type="trash" color="#00BFFF" size="20" bind:__l="__l"></uni-icons></view><image show-menu-by-longpress="{{true}}" src="{{item.ocrPicture}}" data-event-opts="{{[['load',[['loadImg',['$event']]]],['tap',[['showImage',['$0'],[[['purchaseOcrPictureList','',index,'ocrPicture']]]]]]]}}" bindload="__e" bindtap="__e"></image><uni-easyinput vue-id="{{'9f787f5e-4-'+index}}" type="number" prefixIcon="compose" placeholder="请输入规格数量" value="{{item.count}}" data-event-opts="{{[['^blur',[['numChange',['zhu','$0',index],[[['purchaseOcrPictureList','',index]]]]]],['^input',[['__set_model',['$0','count','$event',[]],[[['purchaseOcrPictureList','',index]]]]]]]}}" bind:blur="__e" bind:input="__e" bind:__l="__l"></uni-easyinput></view><block wx:for="{{item.children}}" wx:for-item="items" wx:for-index="indexs" wx:key="indexs"><view style="width:200rpx;height:280rpx;position:relative;background:#fff;margin-left:20rpx;border-radius:10px;"><view data-event-opts="{{[['tap',[['delSonImage',[index,indexs]]]]]}}" class="del-icon" bindtap="__e"><uni-icons vue-id="{{'9f787f5e-5-'+index+'-'+indexs}}" type="trash" color="#00BFFF" size="20" bind:__l="__l"></uni-icons></view><image style="width:200rpx;height:200rpx;padding:5px;" show-menu-by-longpress="{{true}}" src="{{items.ocrPicture}}" data-event-opts="{{[['load',[['loadImg',['$event']]]],['tap',[['showImage',['$0'],[[['purchaseOcrPictureList','',index],['children','',indexs,'ocrPicture']]]]]]]}}" bindload="__e" bindtap="__e"></image><uni-easyinput vue-id="{{'9f787f5e-6-'+index+'-'+indexs}}" type="number" placeholder="子图规格数量" value="{{items.count}}" data-event-opts="{{[['^blur',[['numChange',['zi','$0',index,'$1',indexs],[[['purchaseOcrPictureList','',index]],[['purchaseOcrPictureList','',index],['children','',indexs]]]]]],['^input',[['__set_model',['$0','count','$event',[]],[[['purchaseOcrPictureList','',index],['children','',indexs]]]]]]]}}" bind:blur="__e" bind:input="__e" bind:__l="__l"></uni-easyinput></view></block><view data-event-opts="{{[['tap',[['addSonImg',['$0'],[[['purchaseOcrPictureList','',index,'id']]]]]]]}}" style="width:200rpx;height:219rpx;background:rgba(255,255,255,0.4);margin:0 20rpx;border-radius:10px;font-size:24rpx;color:#777;text-align:center;" bindtap="__e"><uni-icons vue-id="{{'9f787f5e-7-'+index}}" type="plusempty" color="#777" size="80" bind:__l="__l"></uni-icons><view style="height:30rpx;line-height:30rpx;">点击添加子图</view></view></view></block><view style="height:200rpx;"></view></view><view data-event-opts="{{[['tap',[['clickAiBtn',['$event']]]]]}}" class="bottom-box" bindtap="__e"><view class="run-line"></view><image class="bottom-img _img" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/27e2655fe19f454d93970f968d91fbef.png" alt></image><view class="bottom-btn">Ai识别</view></view><uni-popup class="vue-ref" vue-id="9f787f5e-8" background-color="#fff" data-ref="popup" bind:__l="__l" vue-slots="{{['default']}}"><view style="height:300rpx;"><view class="popup-photo" style="font-size:28rpx;font-weight:400;">提示:建议使用原相机拍照并在相册内截图后上传</view><view data-event-opts="{{[['tap',[['upLoadImg',['xuan']]]]]}}" class="popup-photo" bindtap="__e">从相册选择</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="popup-photo" style="border-bottom:0;border-top:10px solid #eee;" bindtap="__e">取消</view></view></uni-popup><uni-popup class="vue-ref" vue-id="9f787f5e-9" background-color="#fff" data-ref="productDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="{{'background:'+('url('+purchaseOcrPictureList[0].ocrPicture+') no-repeat;background-size: 100%;')+';'}}"><view class="popup-pay-shili"><view class="popup-pay-title" style="margin-top:50rpx;"><text>识别规则示例</text></view><view class="content-fur"><view>为了提高识别的准确率,请您找一款商品的一条规格信息作为AI识别的示例填入,图片中没有的信息不填</view></view><view style="height:350rpx;"><view style="padding-left:40rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 货号: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" disabled="true" type="text" placeholder="请输入货号" data-event-opts="{{[['tap',[['clickInput',['productSn']]]],['input',[['__set_model',['','productSn','$event',[]]]]]]}}" value="{{productSn}}" bindtap="__e" bindinput="__e"/></view><view style="padding-left:20rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 商品名: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" disabled="true" type="text" placeholder="请输入商品名" data-event-opts="{{[['tap',[['clickInput',['productName']]]],['input',[['__set_model',['','productName','$event',[]]]]]]}}" value="{{productName}}" bindtap="__e" bindinput="__e"/></view><view style="padding-left:40rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 采购价: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" type="digit" placeholder="请输入价格" data-event-opts="{{[['focus',[['obtainPrice',['$event','price']]]],['blur',[['changessPrice',['$event','price']]]],['input',[['__set_model',['','price','$event',[]]]]]]}}" value="{{price}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></view><view style="padding-left:20rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 数量: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" type="digit" placeholder="请输入数量" data-event-opts="{{[['focus',[['obtainPrice',['$event','productCount']]]],['blur',[['changessPrice',['$event']]]],['input',[['__set_model',['','productCount','$event',[]]]]]]}}" value="{{productCount}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></view><view style="padding-left:40rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 颜色: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" type="text" disabled="true" placeholder="请输入颜色" data-event-opts="{{[['tap',[['clickInput',['color']]]],['input',[['__set_model',['','color','$event',[]]]]]]}}" value="{{color}}" bindtap="__e" bindinput="__e"/></view><view style="padding-left:20rpx;display:flex;height:80rpx;width:50%;line-height:80rpx;margin-top:20rpx;float:left;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 尺码: </text><input style="display:flex;height:80rpx;width:200rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" type="text" disabled="true" placeholder="请输入尺码" data-event-opts="{{[['tap',[['clickInput',['size']]]],['input',[['__set_model',['','size','$event',[]]]]]]}}" value="{{size}}" bindtap="__e" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['identify',['$event']]]]]}}" class="popup-pay-container" bindtap="__e"> 确认 </view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="9f787f5e-10" background-color="#fff" data-ref="tanDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:100%;height:400rpx;"><view style="z-index:99;background:#fff;border-top:1px solid #eee;"><view class="popup-pay-title" style="margin-top:50rpx;"><text>{{"请输入"+(name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':'')}}</text></view><view style="height:100rpx;"><view style="padding-left:40rpx;display:flex;height:80rpx;width:90%;line-height:80rpx;margin:20rpx auto;"><text style="display:inline-block;width:100rpx;font-size:22rpx;">{{''+(name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':'')+''}}</text><input class="vue-ref" style="display:flex;height:80rpx;width:75%;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" focus="{{focus}}" type="text" placeholder="请输入" data-ref="inputText" data-event-opts="{{[['input',[['__set_model',['','nameText','$event',[]]]]]]}}" value="{{nameText}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['shurukuang',['$event']]]]]}}" class="popup-pay-container" style="position:absolute;bottom:10px;left:5%;" bindtap="__e"> 确认 </view></view></view></uni-popup><block wx:if="{{isTake}}"><view style="position:fixed;width:100%;height:100%;z-index:100;top:0;"><camera style="width:100%;height:100%;" device-position="back" output-dimension="max" flash="off" data-event-opts="{{[['initdone',[['showBtn',['$event']]]]]}}" bindinitdone="__e"></camera><block wx:if="{{isShow==true}}"><view style="width:100%;height:120rpx;position:fixed;bottom:200rpx;"><view data-event-opts="{{[['tap',[['takePhoto',['$event']]]]]}}" style="width:120rpx;height:120rpx;border-radius:120rpx;background:#fff;margin:0 auto;border:2px solid #eee;" bindtap="__e"><view style="width:116rpx;height:116rpx;border-radius:116rpx;background:#fff;margin:0 auto;border:1px solid #fff;"></view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="position:absolute;top:20rpx;left:100rpx;" bindtap="__e"><uni-icons vue-id="9f787f5e-11" type="close" color="#777" size="40" bind:__l="__l"></uni-icons></view></view></block></view></block></view>