Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑秀明
shop_mobile_uni
Commits
adc2b319
Commit
adc2b319
authored
Mar 25, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企点客服
parent
180469cb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
19 deletions
+37
-19
host.js
common/host.js
+4
-4
service.vue
components/service.vue
+11
-4
index.html
index.html
+17
-3
manifest.json
manifest.json
+2
-2
search.vue
pages/search/search.vue
+3
-6
No files found.
common/host.js
View file @
adc2b319
...
...
@@ -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
components/service.vue
View file @
adc2b319
...
...
@@ -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();
// })
}
}
...
...
index.html
View file @
adc2b319
...
...
@@ -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>
manifest.json
View file @
adc2b319
...
...
@@ -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
...
...
pages/search/search.vue
View file @
adc2b319
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment