zhaojs
2023-06-29 28534913afd81c7d4636badb5f5a518f471b02a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html>
 
<head>
    <meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes">
    <meta content="yes" name="apple-mobile-web-app-capable"><meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <script type="text/javascript" src="https://public.ffquan.cn/lib/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="https://public.ffquan.cn/lib/vue-lazyload.js"></script>
    <script type="text/javascript" src="https://public.ffquan.cn/lib/swiper/js/swiper.min.js"></script>
    <script type="text/javascript" src="https://public.ffquan.cn/lib/taobaoCode/taobaoCode.js?v=1.2.1"></script>
    <script type="text/javascript" src="https://public.ffquan.cn/lib/clipboard.min.js"></script>
    <script type="text/javascript" src="https://p1static.dataoke.com/web/js/layer/layer.js?t=202104191256"></script>
    <script type="text/javascript" src="https://img.ushopvip.com/js/uni-webview-js.js"></script>
    <title>个人CMS</title>
    
    <style>
        body{
            margin: 0;padding: 0;
            background: #ec4050;
        }
        a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0);tap-highlight-color:transparent;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{font-family:Arial,PingFang SC,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}
        .list-container{
            padding-top: 10px;
            display:flex;
            align-items: center;
            justify-content:center;
            flex-direction:column;
        }
        .top-bg{
            width: 100%;
        }
        .check_cms
        {
            width: 85%;
            background: #fff;
            border-radius:8px;
            margin-bottom: 20px;
            padding: 10px;
            font-size: 13px;
        }
        .topgu
        {
            display: flex;
            flex-direction:column;
            align-items: center;
            justify-content:center;
           
        }
        .topgu_top{
          margin-bottom: 30px;
        }
        .topgu_top img
        {
            width: 100%;
        }
        .topgu_bottom
        {
            display:flex;
            justify-content:center;
            margin-bottom: 10px;
        }
        .topgu_bottom img{
            width:100%;
        }
        .loading {
        display: flex;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        top: 0;
        left: 0;
        z-index: 10;
        justify-content: center;
        align-items: center;
        font-size: .35rem;
        color: #333;
    }
 
    </style>
</head>
 
<body>
    <div id="percms">
 
   
    <div  v-if="loading" class="loading">
        <span>生成中...</span>
    </div>
    <div>
        <img src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/cms_topimg.png" class="top-bg" alt="">
    </div>
    <div class="list-container">
        <div class="check_cms topgu">
           <div class="topgu_top">
                <img src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/cms_guid.png"/>
           </div>
           <div class="topgu_bottom">
            <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">
           <div>
            温馨提示:
           </div>
           <div>
            1、如在微信中分享个人店铺链接被屏蔽或异常,请及时联系客服处理<br/>
            2、分享个人店铺给客户,操作熟悉后,建议推荐下载使用app,操作体验更加友好<br/>
           </div>
        </div>
    </div>
</div>
</body>
 
</html>
<script type="text/javascript" src="https://cdn.staticfile.org/vue/2.6.11/vue.min.js"></script>
<script>
    new Vue({
        el: '#percms',
        data:{
           cmsUrl:'',
           loading:false,
           cmsurl:''
        },
        methods:{
            getCmsUrl:function(){
                var _this = this;
                _this.loading=true;
                $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                   //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:{
                       
                    }
                }).done(function(res){
                    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 {
                        if(res.msg=="请先淘宝授权")
                        {
                            uni.postMessage({
                                data: {
                                    action: 'tbauth'
                                }
                            })
                        }
                        else{
                            alert(res.msg);
                        }
                    }
                    _this.loading=false;                              
                })
            },
            getUrlPar:function(name)
            {
                var reg=new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                 var r=window.location.search.substr(1).match(reg);
                if(r !=null)return unescape(r[2]);
                 return null;
            },
            handleClipboard: function(text) {
                var _this = this;
                var clipboardImg = new Clipboard('.fzimg', {
                    text: function() {
                        return text;
                    },
                });
                clipboardImg.on('success', function(e) {
                    layer.msg(
                        '复制成功,快分享给小伙伴吧~'
                    );
                    e.clearSelection();
                    clipboardImg.destroy();
                });
 
                clipboardImg.on('error', function(e) {
                    layer.msg('复制失败,请联系客服');
                });
            },
        }
    })
</script>