zhaojs
2023-07-20 fc9bd6378d3bfbde6d5c71535757a3d44de8d8ff
uniapp/utils/getClipboard.js
@@ -11,13 +11,13 @@
        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
@@ -49,7 +49,7 @@
    const viewContentWidth = parseInt(popupViewWidth - viewContentPadding * 2);
    // 显示弹窗
    maskLayers.show();
    try{
    if (data.goodsId) {
      let sLeft = 0;
      let popupViewHeight = popupViewWidth + uni.upx2px(390);
@@ -743,6 +743,12 @@
        getApp().globalData.hasMode = false
      }
    });
   }
   catch(e)
   {
      console.log(e);
      maskLayers.hide();
   }
  }
  export default () => {