Commit adc2b319 authored by 郑秀明's avatar 郑秀明

企点客服

parent 180469cb
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
// export const php = 'http://test.pet-dbc.cn/mobile/index.php?' // export const php = 'http://test.pet-dbc.cn/mobile/index.php?'
// php镜像 // php镜像
export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?' // export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?'
// php正式环境 // php正式环境
// export const php = 'https://shop.pet-dbc.cn/mobile/index.php?' export const php = 'https://shop.pet-dbc.cn/mobile/index.php?'
// go测试环境 // go测试环境
// export const go = 'https://tm.pet-dbc.cn' // export const go = 'https://tm.pet-dbc.cn'
// go镜像环境 // go镜像环境
export const go = 'https://jxm.pet-dbc.cn' // export const go = 'https://jxm.pet-dbc.cn'
// go正式环境 // go正式环境
// export const go = 'https://m.pet-dbc.cn'; export const go = 'https://m.pet-dbc.cn';
\ No newline at end of file \ No newline at end of file
...@@ -12,13 +12,20 @@ ...@@ -12,13 +12,20 @@
} }
}, },
mounted(){ mounted(){
var elem = document.querySelector('.draggable'); var $draggable = $('.draggable').draggabilly({
this.$draggable = new Draggabilly(elem, {
containment: true containment: true
}); });
// $('.draggable').parent().css('min-height','100vh');
$draggable.on('staticClick', function( event, pointer ) {
$('#qidian_dom').click();
})
// var elem = document.querySelector('.draggable');
// this.$draggable = new Draggabilly(elem, {
// containment: true
// });
// this.$draggable.$on('staticClick', function( event, pointer ) { // this.$draggable.$on('staticClick', function( event, pointer ) {
// // elem.click(); // elem.click();
// }) // })
} }
} }
......
...@@ -8,17 +8,22 @@ ...@@ -8,17 +8,22 @@
<meta name="keywords" content="谛宝多多 谛宝多多商城 谛宝 宝多多 有宝 小谛"> <meta name="keywords" content="谛宝多多 谛宝多多商城 谛宝 宝多多 有宝 小谛">
<link rel="shortcut icon" href="https://dbc-static.oss-cn-beijing.aliyuncs.com/wx/logo.jpg" type="image/x-icon"> <link rel="shortcut icon" href="https://dbc-static.oss-cn-beijing.aliyuncs.com/wx/logo.jpg" type="image/x-icon">
<title> <title>
谛宝商城 谛宝商城
</title> </title>
<style>
#qidian_dom{line-height: 1;width: 42px;height: 42px;border-radius: 50%;cursor: pointer;text-align: center;background: #ff9232;position: fixed;bottom: 120px;right: 5px;z-index:2000000000}
#qidian_dom span{display: inline-block;position: relative;top: 10px;width: 20px;height: 20px;vertical-align: middle;background: url(https://bqq.gtimg.com/qidian/src/wpa/dist/4.1.0/images/icon-im-44-white-2x.png) no-repeat;background-size: 20px 20px;opacity: 1;cursor: pointer;}
</style>
<script> <script>
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px' document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
}) })
</script> </script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" /> <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/lib/draggabilly.min.js"></script> <script src="https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/lib/draggabilly.min.js"></script>
<!-- WPA start --> <!-- WPA start -->
<script id="qd28857712162361a518c852fc82fde1e5eab730ba68" src="https://wp.qiye.qq.com/qidian/2885771216/2361a518c852fc82fde1e5eab730ba68" charset="utf-8" defer></script> <script id="qd28857712162361a518c852fc82fde1e5eab730ba68" src="https://wp.qiye.qq.com/qidian/2885771216/2361a518c852fc82fde1e5eab730ba68" charset="utf-8" async defer></script>
<!-- WPA end --> <!-- WPA end -->
</head> </head>
<body> <body>
...@@ -26,6 +31,7 @@ ...@@ -26,6 +31,7 @@
<strong>Please enable JavaScript to continue.</strong> <strong>Please enable JavaScript to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<div class='draggable is-pointer-down is-dragging' id='qidian_dom'><span></span></div>
<script> <script>
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function() { (function() {
...@@ -34,7 +40,15 @@ ...@@ -34,7 +40,15 @@
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})(); })();
var $draggable = $('.draggable').draggabilly({
containment: true
});
// $('.draggable').parent().css('min-height','100vh');
$draggable.on('staticClick', function( event, pointer ) {
$('#qidian_dom').click();
})
</script> </script>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"appid": "__UNI__F904656", "appid": "__UNI__F904656",
"description": "", "description": "",
"versionName": "1.0.6", "versionName": "1.0.5",
"versionCode": "100", "versionCode": "100",
"transformPx": false, "transformPx": false,
"app-plus": { "app-plus": {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"mode": "history", "mode": "history",
"base": "/uni" "base": "/uni"
}, },
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/mirror/1.0.6/", "publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/prod/1.0.5/",
"optimization": { "optimization": {
"treeShaking": { "treeShaking": {
"enable": true "enable": true
......
...@@ -56,9 +56,6 @@ ...@@ -56,9 +56,6 @@
</view> </view>
</view> </view>
<uni-load-more :status="loadingType"></uni-load-more> <uni-load-more :status="loadingType"></uni-load-more>
<!-- 全局企点客服组件 -->
<service/>
<!-- 全局企点客服组件 -->
</view> </view>
</template> </template>
...@@ -72,8 +69,7 @@ ...@@ -72,8 +69,7 @@
components: { components: {
uniIcons, uniIcons,
empty, empty,
uniLoadMore, uniLoadMore
service
}, },
data() { data() {
return { return {
...@@ -218,7 +214,8 @@ ...@@ -218,7 +214,8 @@
z-index: 999; z-index: 999;
background-color: #fff; background-color: #fff;
box-shadow: 0 2upx 10upx rgba(0,0,0,.06); box-shadow: 0 2upx 10upx rgba(0,0,0,.06);
top: var(--window-top); // top: var(--window-top);
top: 0;
} }
.search-content{ .search-content{
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment