From b011d8275031bbaf601c54fcf9769f0631a254ea Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期一, 03 七月 2023 11:03:39 +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