zhaojs
2023-07-31 8dcfae4fff98fbbb19ff46bd9750f25bc56801a9
public/html/per_cms.html
@@ -34,11 +34,12 @@
        }
        .check_cms
        {
            width: 95%;
            width: 85%;
            background: #fff;
            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、xxxxxxxxxxxxxxxxxxxxxxxx<br/>
            2、xxxxxxxxxxxxxxxxxxxxxxxxx<br/>
            1、如在微信中分享个人店铺链接被屏蔽或异常,请及时联系客服处理<br/>
            2、分享个人店铺给客户,操作熟悉后,建议推荐下载使用app,操作体验更加友好<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;                              
                })
@@ -171,6 +187,7 @@
                  '复制成功,快分享给小伙伴吧~'
               );
               e.clearSelection();
                    clipboardImg.destroy();
            });
            clipboardImg.on('error', function(e) {