Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
a5fc598f
Commit
a5fc598f
authored
Aug 15, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aa95b16a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Search.vue
src/components/index/Search.vue
+4
-3
loading.vue
src/pages/index/loading.vue
+4
-4
No files found.
src/components/index/Search.vue
View file @
a5fc598f
...
...
@@ -62,7 +62,8 @@ onLoad(() => {
// console.log('右边界坐标', res.right); // 右边界坐标,单位:px
// console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px
// console.log('左边界坐标', res.left);
contentHeight
.
value
=
res
.
bottom
*
2
+
10
+
'rpx'
;
// 左边界坐标,单位:px
contentHeight
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
+
'px'
;
// contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
},
});
});
...
...
@@ -81,7 +82,7 @@ const back = () => {
top
:
0
;
z-index
:
999999
;
transition
:
background-color
0
.5s
;
box-sizing
:
border-box
;
//
box-sizing: border-box;
.search
{
position
:
absolute
;
bottom
:
10rpx
;
...
...
@@ -90,7 +91,7 @@ const back = () => {
width
:
710rpx
;
height
:
80rpx
;
// background: rgba(255, 255, 255, 0.8);
//
border-radius: 16rpx 16rpx 16rpx 16rpx;
border-radius
:
16rpx
16rpx
16rpx
16rpx
;
opacity
:
0
.8
;
margin
:
0
auto
;
// margin-top: 44rpx;
...
...
src/pages/index/loading.vue
View file @
a5fc598f
...
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import
{
getToken
}
from
'../../utils/auth'
;
onLoad
(
async
(
options
)
=>
{
//
await signIn();
if
(
!
getToken
())
await
signIn2
();
await
signIn
();
//
if (!getToken()) await signIn2();
const
{
type
}
=
options
;
switch
(
type
)
{
case
'0'
:
...
...
@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
break
;
case
'2'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/
index/building?categoryId=3266
'
});
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/
RuralTravel/RuralTravel?categoryId=3268
'
});
break
;
case
'3'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/
RuralTravel/RuralTravel?categoryId=3268
'
,
url
:
'/pages/assistingAgriculture/
index/building?categoryId=3266
'
,
});
break
;
default
:
...
...
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