From 11c38d9f8c8cac85bdd8a2cb62ab7bd083bead29 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 18 七月 2023 14:52:09 +0800 Subject: [PATCH] no message --- public/html/per_cms.html | 30 +++++++++++++++++++++++------- 1 files changed, 23 insertions(+), 7 deletions(-) diff --git a/public/html/per_cms.html b/public/html/per_cms.html index bc50423..e82333c 100644 --- a/public/html/per_cms.html +++ b/public/html/per_cms.html @@ -39,6 +39,7 @@ border-radius:8px; margin-bottom: 20px; padding: 10px; + font-size: 13px; } .topgu { @@ -101,7 +102,7 @@ <div style="width:50%"> <img class="fzimg" @click="getCmsUrl()" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/cms_fxdp.png"/> </div> - + <div style="display: none;" id="copytxt"></div> </div> </div> <div class="check_cms tipcon"> @@ -109,8 +110,8 @@ 娓╅Θ鎻愮ず锛� </div> <div> - 1銆亁xxxxxxxxxxxxxxxxxxxxxxx<br/> - 2銆亁xxxxxxxxxxxxxxxxxxxxxxxx<br/> + 1銆佸鍦ㄥ井淇′腑鍒嗕韩涓汉搴楅摵閾炬帴琚睆钄芥垨寮傚父锛岃鍙婃椂鑱旂郴瀹㈡湇澶勭悊<br/> + 2銆佸垎浜釜浜哄簵閾虹粰瀹㈡埛锛屾搷浣滅啛鎮夊悗锛屽缓璁帹鑽愪笅杞戒娇鐢╝pp,鎿嶄綔浣撻獙鏇村姞鍙嬪ソ<br/> </div> </div> </div> @@ -124,7 +125,8 @@ el: '#percms', data:{ cmsUrl:'', - loading:false + loading:false, + cmsurl:'' }, methods:{ getCmsUrl:function(){ @@ -134,9 +136,12 @@ headers:{ "token":this.getUrlPar("token") }, - url:'http://dfg.shop.com//api/activity/cmsGet', + //url:'http://appapitest.ushopvip.com/api/activity/cmsGet', + //url:'http://dfg.shop.com/api/activity/cmsGet', + url:'http://dfgapp.ushopvip.com/api/activity/cmsGet', type:"post", dataType:"json", + async: false, data:{ } @@ -144,10 +149,21 @@ if(res.code == 0){ _this.cmsUrl = res.data.url; console.log(res.data.url); + _this.cmsurl=res.data.url; _this.handleClipboard(res.data.url); } else { - alert(res.msg); + if(res.msg=="璇峰厛娣樺疂鎺堟潈") + { + uni.postMessage({ + data: { + action: 'tbauth' + } + }) + } + else{ + alert(res.msg); + } } _this.loading=false; }) @@ -167,11 +183,11 @@ }, }); clipboardImg.on('success', function(e) { - alert("澶嶅埗鎴愬姛锛屽揩鍒嗕韩缁欏皬浼欎即鍚"); layer.msg( '澶嶅埗鎴愬姛锛屽揩鍒嗕韩缁欏皬浼欎即鍚' ); e.clearSelection(); + clipboardImg.destroy(); }); clipboardImg.on('error', function(e) { -- Gitblit v1.9.3