Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_scan
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
android
uniapp_scan
Commits
7f3ea8df
Commit
7f3ea8df
authored
Dec 19, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化tab组件
parent
b2ff7ce5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
60 additions
and
91 deletions
+60
-91
manifest.json
scan/manifest.json
+2
-1
common.js
scan/mixins/common.js
+1
-1
pages.json
scan/pages.json
+37
-24
doc.vue
scan/pages/doc/doc.vue
+1
-2
index.vue
scan/pages/index/index.vue
+2
-14
loading.vue
scan/pages/loading.vue
+7
-13
my.vue
scan/pages/my/my.vue
+10
-36
logo-about.png
scan/static/logo-about.png
+0
-0
No files found.
scan/manifest.json
View file @
7f3ea8df
...
...
@@ -151,7 +151,8 @@
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
}
},
"appid"
:
"2021004129666486"
},
"mp-baidu"
:
{
"usingComponents"
:
true
,
...
...
scan/mixins/common.js
View file @
7f3ea8df
...
...
@@ -147,7 +147,7 @@ export default {
Object
.
assign
(
header
,
{
// token: app.globalData.token,
token
:
'
AC8FA7EB65C3074472378362124462E70E762CAB0EAD1C6EABB742EB893A61C0
5F433703067DF5142735505C42F58997'
,
token
:
'
2EC2B65B461AFEAB9B9CD8B656432756483D433C42E9B84882577C78642C25CF
5F433703067DF5142735505C42F58997'
,
pkgName
:
app
.
globalData
.
pkgName
})
...
...
scan/pages.json
View file @
7f3ea8df
...
...
@@ -8,30 +8,17 @@
}
},
"pages"
:
[
//
#ifndef
APP-PLUS
//
//
#ifndef
APP-PLUS
//
{
//
"path"
:
"pages/loading"
,
//
"style"
:
{
//
"navigationStyle"
:
"custom"
,
//
"navigationBarBackgroundColor"
:
"#2196f3"
,
//
"navigationBarTextStyle"
:
"black"
//用于配置状态栏的字体颜色
//
}
//
},
//
//
#endif
{
//
"path"
:
"pages/loading"
,
//
"style"
:
{
//
"navigationStyle"
:
"custom"
,
//
"navigationBarBackgroundColor"
:
"#2196f3"
,
//
"navigationBarTextStyle"
:
"black"
//用于配置状态栏的字体颜色
//
}
"path"
:
"pagesC/scan/result"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarTextStyle"
:
"black"
//用于配置状态栏的字体颜色
}
},
//
#endif
{
"path"
:
"pages/home"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
...
...
@@ -108,7 +95,7 @@
"network"
:
"all"
,
//在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)
"packages"
:
[
"pagesA"
]
//进入页面后预下载分包
},
"pages/
recommend/recommend
"
:
{
"pages/
doc/doc
"
:
{
"network"
:
"all"
,
//在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)
"packages"
:
[
"pagesC"
]
//进入页面后预下载分包
},
...
...
@@ -124,6 +111,32 @@
"bounce"
:
"none"
,
"scrollIndicator"
:
"none"
}
},
"tabBar"
:
{
"color"
:
"#999"
,
"selectedColor"
:
"#F8425A"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#ffffff"
,
"height"
:
"50px"
,
"fontSize"
:
"16px"
,
"iconWidth"
:
"24px"
,
"spacing"
:
"3px"
,
"list"
:
[{
"pagePath"
:
"pages/index/index"
,
"iconPath"
:
"static/tab/index_unselected.png"
,
"selectedIconPath"
:
"static/tab/index_selected.png"
,
"text"
:
"首页"
},
{
"pagePath"
:
"pages/doc/doc"
,
"iconPath"
:
"static/tab/promote_unselected.png"
,
"selectedIconPath"
:
"static/tab/promote_selected.png"
,
"text"
:
"文档"
},
{
"pagePath"
:
"pages/my/my"
,
"iconPath"
:
"static/tab/my_unselected.png"
,
"selectedIconPath"
:
"static/tab/my_selected.png"
,
"text"
:
"我的"
}]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
...
...
scan/pages/doc/doc.vue
View file @
7f3ea8df
...
...
@@ -93,8 +93,7 @@
},
onLoad
(
e
)
{},
methods
:
{
hide
()
{},
show
()
{
onShow
()
{
},
queryList
(
page
,
size
)
{
...
...
scan/pages/index/index.vue
View file @
7f3ea8df
...
...
@@ -59,20 +59,8 @@
};
},
methods
:
{
show
()
{
// 轮播图
this
.
post
({
url
:
'/vedio/topTabs'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
// this.bannerList = data.list;
}
});
},
hide
()
{
onShow
()
{
}
}
...
...
scan/pages/loading.vue
View file @
7f3ea8df
...
...
@@ -3,19 +3,13 @@
<view
class=
"logo"
>
<image
src=
"@/static/logo-about.png"
mode=
"widthFix"
style=
"border-radius: 20rpx;margin-bottom: 200rpx;"
/>
<view
class=
"animation"
>
<text
style=
"animation-delay: 0s;color: black;"
>
河
</text>
<text
style=
"animation-delay: 0.1s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.2s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.3s;color: black;"
>
狸
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.5s;color: black;"
>
短
</text>
<text
style=
"animation-delay: 0.6s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.7s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.8s;color: black;"
>
视
</text>
<text
style=
"animation-delay: 0.9s;color: black;"
>
</text>
<text
style=
"animation-delay: 1s;color: black;"
>
</text>
<text
style=
"animation-delay: 1.1s;color: black;"
>
频
</text>
<text
style=
"animation-delay: 0s;color: black;"
>
全
</text>
<text
style=
"animation-delay: 0.1s;color: black;"
>
能
</text>
<text
style=
"animation-delay: 0.2s;color: black;"
>
扫
</text>
<text
style=
"animation-delay: 0.3s;color: black;"
>
描
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
M
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
A
</text>
<text
style=
"animation-delay: 0.5s;color: black;"
>
X
</text>
</view>
<view
style=
"color: black;margin-top: 40rpx;font-size: 40rpx;"
>
欢迎使用
</view>
</view>
...
...
scan/pages/my/my.vue
View file @
7f3ea8df
...
...
@@ -36,10 +36,6 @@
</view>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<!--
<view
class=
"item arrow"
@
click=
"handleWatchRecord"
>
观看记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
-->
<view
class=
"item arrow"
@
click=
"handlePayRecord"
>
我的订单
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
...
...
@@ -86,8 +82,7 @@
};
},
methods
:
{
show
()
{
// loadData() {
onShow
()
{
this
.
post
({
url
:
'/user/baseMsg'
,
showLoading
:
false
,
...
...
@@ -98,12 +93,6 @@
}
});
},
hide
()
{
},
handleWatchRecord
()
{
navigateTo
(
`/pagesD/watchRecord/watchRecord`
)
},
handlePayRecord
()
{
// navigateTo(`/pagesD/payRecord/payRecord`)
navigateTo
(
`/pagesC/scan/scan`
)
...
...
@@ -112,30 +101,15 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
handlePhone
()
{
let
that
=
this
// 联系我们
this
.
post
({
url
:
'/app/customerServiceNumbers'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
let
datas
=
data
.
customerServiceNumbers
.
split
(
','
)
let
corpid
=
datas
[
0
]
let
curl
=
datas
[
1
]
wx
.
openCustomerServiceChat
({
extInfo
:
{
url
:
curl
},
corpId
:
corpid
,
success
(
res
)
{},
fail
(
e
)
{
console
.
log
(
e
)
}
})
}
});
wx
.
makePhoneCall
({
phoneNumber
:
'4000969950'
,
success
:
function
(
res
)
{
console
.
log
(
'拨打电话成功!'
);
},
fail
:
function
(
res
)
{
console
.
log
(
'拨打电话失败!'
);
}
})
}
}
};
...
...
scan/static/logo-about.png
View replaced file @
b2ff7ce5
View file @
7f3ea8df
5.94 KB
|
W:
|
H:
9.49 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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