| | |
| | | var nowClipData = res.data |
| | | if (nowClipData.length > 6 && nowClipData!=uni.getStorageSync('clipboard')) { |
| | | getApp().globalData.hasMode = true |
| | | console.log(nowClipData); |
| | | Vue.prototype.$u.api.identifyGoods({goods_url: nowClipData}).then(e => { |
| | | console.log(e) |
| | | if(e.code != 0) return Vue.prototype.$alert(e.msg) |
| | | var res = e.data; |
| | | callback(res) |
| | | }).catch(function (err) { |
| | | console.log(err) |
| | | }) |
| | | }else{ |
| | | getApp().globalData.hasMode = false |
| | |
| | | const viewContentWidth = parseInt(popupViewWidth - viewContentPadding * 2); |
| | | // 显示弹窗 |
| | | maskLayers.show(); |
| | | |
| | | try{ |
| | | if (data.goodsId) { |
| | | let sLeft = 0; |
| | | let popupViewHeight = popupViewWidth + uni.upx2px(390); |
| | |
| | | getApp().globalData.hasMode = false |
| | | } |
| | | }); |
| | | } |
| | | catch(e) |
| | | { |
| | | console.log(e); |
| | | maskLayers.hide(); |
| | | } |
| | | } |
| | | |
| | | export default () => { |