Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
397937e2
Commit
397937e2
authored
Sep 06, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 悬浮窗位置
parent
b6b87dd5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
upload-progress.vue
src/components/upload-progress/upload-progress.vue
+1
-1
main.js
src/main.js
+10
-10
index.vue
src/pages/index/index.vue
+1
-1
complete.vue
src/pages/order/complete.vue
+1
-0
No files found.
src/components/upload-progress/upload-progress.vue
View file @
397937e2
...
...
@@ -129,7 +129,7 @@
}
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
>
.upload-progress
{
width
:
100%
;
height
:
100%
;
...
...
src/main.js
View file @
397937e2
import
Vue
from
'vue'
import
Vue
from
'vue'
import
moment
from
'moment'
import
App
from
'./App'
import
uView
from
"uview-ui"
;
...
...
@@ -8,24 +8,24 @@ import {router,RouterMount} from '@/router/index.js' //路径换成自己的
Vue
.
config
.
productionTip
=
false
Vue
.
mixin
(
vuexStore
)
Vue
.
use
(
uView
);
Vue
.
use
(
uView
);
App
.
mpType
=
'app'
const
app
=
new
Vue
({
store
,
...
App
})
// 引入时间组件 moment
moment
.
locale
(
'zh-cn'
);
Vue
.
prototype
.
moment
=
moment
// 引入时间组件 moment
moment
.
locale
(
'zh-cn'
);
Vue
.
prototype
.
moment
=
moment
Vue
.
filter
(
'datefmt'
,
function
(
input
,
fmtstring
)
{
//当input为时间戳,需转为Number类型
if
(
input
){
return
moment
(
input
).
format
(
fmtstring
);
}
else
{
return
""
;
}
});
});
// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用
import
httpInterceptor
from
'@/common/http.interceptor.js'
...
...
@@ -33,9 +33,9 @@ Vue.use(httpInterceptor, app)
Vue
.
use
(
router
)
// http接口API抽离,免于写url或者一些固定的参数
import
httpApi
from
'@/common/http.api.js'
Vue
.
use
(
httpApi
,
app
)
// 分享
Vue
.
use
(
httpApi
,
app
)
// 分享
let
mpShare
=
require
(
'@/uview-ui/libs/mixin/mpShare.js'
)
Vue
.
mixin
(
mpShare
)
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
...
...
src/pages/index/index.vue
View file @
397937e2
...
...
@@ -60,7 +60,7 @@
</view>
</scroll-view>
</view>
<upload-progress
></upload-progress
>
<upload-progress
/
>
</TabBarPage>
</template>
...
...
src/pages/order/complete.vue
View file @
397937e2
...
...
@@ -313,6 +313,7 @@
:cancel-btn=
"true"
@
click=
"uploadSelect"
></u-action-sheet>
<upload-progress
/>
</view>
</template>
<
script
>
...
...
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