From 55803b1a7b478aade9b6e59ca6675777375e2a92 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 07 七月 2023 15:48:24 +0800 Subject: [PATCH] no message --- uniapp/utils/getClipboard.js | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/uniapp/utils/getClipboard.js b/uniapp/utils/getClipboard.js index 875016a..6746089 100644 --- a/uniapp/utils/getClipboard.js +++ b/uniapp/utils/getClipboard.js @@ -2,16 +2,16 @@ import request from './http.js' import utils from './utils.js' import clipboard from "../js_sdk/dc-clipboard/clipboard.js" - - + function getclick(callback) { - + //鑾峰彇鍓创鏉垮唴瀹� uni.getClipboardData({ success: res => { console.log(res, '======================================================'); 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) @@ -21,7 +21,6 @@ }) }else{ getApp().globalData.hasMode = false - console.log('鍐呴儴澶嶅埗'); } } }) @@ -31,7 +30,7 @@ function updatePopup(dataInfo) { var data = dataInfo.goods; // 寮圭獥閬僵灞� - let maskLayers = new plus.nativeObj.View("maskLayers", { //鍏堝垱寤洪伄缃╁眰 + var maskLayers = new plus.nativeObj.View("maskLayers", { //鍏堝垱寤洪伄缃╁眰 top: '0px', left: '0px', height: '100%', @@ -56,7 +55,7 @@ let popupViewHeight = popupViewWidth + uni.upx2px(390); sLeft = (data.originalPrice.toString().length + 1) * uni.upx2px(30); // 寮圭獥鍐呭 - var clipViews = new plus.nativeObj.View("clipViews", { //鍒涘缓搴曢儴鍥炬爣鑿滃崟 + let clipViews = new plus.nativeObj.View("clipViews", { //鍒涘缓搴曢儴鍥炬爣鑿滃崟 tag: "rect", top: (screenHeight - popupViewHeight) / 2 + "px", left: (screenWidth - popupViewWidth) / 2 + "px", @@ -297,7 +296,7 @@ }) }else{ uni.navigateTo({ - url: '/pages/goods/goodsDetail?info=' + encodeURIComponent(JSON.stringify(data)) + url: '/pages/goods/goodsDetail?proform=clipboard&info=' + encodeURIComponent(JSON.stringify(data)) }) } getApp().globalData.hasMode = false @@ -480,7 +479,7 @@ }, { - src: './static/images/app/jd.png', + src: 'https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/index_icon/%E4%BA%AC%E4%B8%9C.png', tag: 'img', id: 'jd', position: { @@ -502,7 +501,7 @@ } }, { - src: './static/images/app/pdd.png', + src: 'https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/index_icon/%E6%8B%BC.png', tag: 'img', id: 'pdd', position: { @@ -513,7 +512,7 @@ } }, { - src: './static/images/app/vph.png', + src: 'https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/index_icon/%E5%94%AF.png', tag: 'img', id: 'vph', position: { -- Gitblit v1.9.3