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

企点客服

parent 180469cb
......@@ -2,16 +2,16 @@
// export const php = 'http://test.pet-dbc.cn/mobile/index.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正式环境
// export const php = 'https://shop.pet-dbc.cn/mobile/index.php?'
export const php = 'https://shop.pet-dbc.cn/mobile/index.php?'
// go测试环境
// export const go = 'https://tm.pet-dbc.cn'
// go镜像环境
export const go = 'https://jxm.pet-dbc.cn'
// export const go = 'https://jxm.pet-dbc.cn'
// go正式环境
// export const go = 'https://m.pet-dbc.cn';
\ No newline at end of file
export const go = 'https://m.pet-dbc.cn';
\ No newline at end of file
......@@ -12,13 +12,20 @@
}
},
mounted(){
var elem = document.querySelector('.draggable');
this.$draggable = new Draggabilly(elem, {
var $draggable = $('.draggable').draggabilly({
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 ) {
// // elem.click();
// elem.click();
// })
}
}
......
......@@ -8,17 +8,22 @@
<meta name="keywords" content="谛宝多多 谛宝多多商城 谛宝 宝多多 有宝 小谛">
<link rel="shortcut icon" href="https://dbc-static.oss-cn-beijing.aliyuncs.com/wx/logo.jpg" type="image/x-icon">
<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>
document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
</script>
<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>
<!-- 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 -->
</head>
<body>
......@@ -26,6 +31,7 @@
<strong>Please enable JavaScript to continue.</strong>
</noscript>
<div id="app"></div>
<div class='draggable is-pointer-down is-dragging' id='qidian_dom'><span></span></div>
<script>
var _hmt = _hmt || [];
(function() {
......@@ -34,7 +40,15 @@
var s = document.getElementsByTagName("script")[0];
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>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
</html>
......@@ -2,7 +2,7 @@
"name": "shop_mobile_uni",
"appid": "__UNI__F904656",
"description": "",
"versionName": "1.0.6",
"versionName": "1.0.5",
"versionCode": "100",
"transformPx": false,
"app-plus": {
......@@ -51,7 +51,7 @@
"mode": "history",
"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": {
"treeShaking": {
"enable": true
......
......@@ -56,9 +56,6 @@
</view>
</view>
<uni-load-more :status="loadingType"></uni-load-more>
<!-- 全局企点客服组件 -->
<service/>
<!-- 全局企点客服组件 -->
</view>
</template>
......@@ -72,8 +69,7 @@
components: {
uniIcons,
empty,
uniLoadMore,
service
uniLoadMore
},
data() {
return {
......@@ -218,7 +214,8 @@
z-index: 999;
background-color: #fff;
box-shadow: 0 2upx 10upx rgba(0,0,0,.06);
top: var(--window-top);
// top: var(--window-top);
top: 0;
}
.search-content{
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