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
1 lines
12 KiB
<view class="page1"><view style="position:fixed;top:0;z-index:99;height:70px;width:100%;display:flex;background:#fff;padding-top:30px;"><uni-icons vue-id="9f787f5e-1" type="left" size="10" data-event-opts="{{[['^tap',[['backPage']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view class="content" style="margin-top:80px;height:auto;"><view class="prompt"><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:50px;line-height:50px;font-weight:bold;padding-left:30px;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="11" bind:__l="__l"></uni-icons><text style="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="10" 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:200px;height:280px;position:relative;background:#fff;margin-left:20px;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:200px;height:200px;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:100px;height:100px;background:rgba(255,255,255,0.4);margin:0 20px;border-radius:10px;color:#777;text-align:center;" bindtap="__e"><uni-icons vue-id="{{'9f787f5e-7-'+index}}" type="plusempty" color="#777" size="20" bind:__l="__l"></uni-icons><view style="height:30px;line-height:30px;">点击添加子图</view></view></view></block><view style="height:200px;"></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:130px;"><view class="popup-photo" style="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%;')+';'+('height:'+(screenHeight*0.9+'px')+';')}}"><view class="popup-pay-shili"><view class="popup-pay-title" style="margin-top:10px;"><text>识别规则示例</text></view><view class="content-fur"><view>为了提高识别的准确率,请您找一款商品的一条规格信息作为AI识别的示例填入,图片中没有的信息不填</view></view><view style="height:160px;"><view style="padding-left:40px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">货号:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:20px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">商品名:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:40px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">采购价:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:20px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">数量:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:40px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">颜色:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:20px;display:flex;height:40px;width:50%;line-height:40px;margin-top:10px;float:left;"><text style="display:inline-block;width:100px;">尺码:</text><input style="display:flex;height:40px;width:200px;line-height:40px;padding-left:20px;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:160px;'+('height:'+(isFocus?'210px':'160px')+';')}}"><view style="z-index:99;background:#fff;border-top:1px solid #eee;"><view class="popup-pay-title" style="margin-top:10px;"><text>{{"请输入"+(name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':'')}}</text></view><view style="height:40px;"><view style="padding-left:40px;display:flex;height:40px;width:90%;line-height:40px;margin:10px auto;"><text style="display:inline-block;width:100px;">{{''+(name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':'')+''}}</text><input style="display:flex;height:40px;width:75%;line-height:40px;padding-left:20px;border:1px solid #eee;" type="text" placeholder="请输入" data-event-opts="{{[['focus',[['changeFocus',['$event']]]],['blur',[['e1',['$event']]]],['input',[['__set_model',['','nameText','$event',[]]]]]]}}" value="{{nameText}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['shurukuang',['$event']]]]]}}" class="popup-pay-container" 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:120px;position:fixed;bottom:200px;"><view data-event-opts="{{[['tap',[['takePhoto',['$event']]]]]}}" style="width:120px;height:120px;border-radius:120px;background:#fff;margin:0 auto;border:2px solid #eee;" bindtap="__e"><view style="width:116px;height:116px;border-radius:116px;background:#fff;margin:0 auto;border:1px solid #fff;"></view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" style="position:absolute;top:20px;left:100px;" 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>
|