Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ai-astro-app
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
liubinyu
ai-astro-app
Commits
f911ce01
Commit
f911ce01
authored
Jun 19, 2025
by
liubinyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉位置
parent
54cf9670
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
16 deletions
+15
-16
App.vue
App.vue
+0
-5
README.md
README.md
+4
-0
xw.keystore
certificate/xw.keystore
+0
-0
manifest.json
manifest.json
+5
-3
index.vue
pages/index/index.vue
+1
-6
index.js
store/index.js
+1
-2
index.js
utils/index.js
+4
-0
No files found.
App.vue
View file @
f911ce01
...
@@ -9,11 +9,6 @@
...
@@ -9,11 +9,6 @@
store
.
commit
(
'xStore'
,
{
name
:
'x_sys'
,
value
:
res
})
store
.
commit
(
'xStore'
,
{
name
:
'x_sys'
,
value
:
res
})
}
}
})
})
uni
.
getLocation
({
success
(
res
)
{
store
.
commit
(
'xStore'
,
{
name
:
'x_location'
,
value
:
res
})
}
})
},
},
onShow
:
function
()
{
onShow
:
function
()
{
console
.
log
(
'App Show'
)
console
.
log
(
'App Show'
)
...
...
README.md
0 → 100644
View file @
f911ce01
## 打包证书目录
-
/certificate
-
证书别名 xw
-
证书密钥 123456
\ No newline at end of file
certificate/xw.keystore
0 → 100644
View file @
f911ce01
File added
manifest.json
View file @
f911ce01
...
@@ -40,14 +40,16 @@
...
@@ -40,14 +40,16 @@
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_EXTERNAL_STORAGE
\"
/>"
"<uses-permission android:name=
\"
android.permission.READ_EXTERNAL_STORAGE
\"
/>"
],
],
"targetSdkVersion"
:
30
,
"targetSdkVersion"
:
30
,
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
]
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
],
"minSdkVersion"
:
21
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"idfa"
:
false
"idfa"
:
false
,
"dSYMs"
:
false
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{},
"sdkConfigs"
:
{},
...
...
pages/index/index.vue
View file @
f911ce01
...
@@ -37,12 +37,7 @@
...
@@ -37,12 +37,7 @@
if
(
this
.
x_user
)
{
if
(
this
.
x_user
)
{
res
=
await
this
.
$api
.
userEdit
(
Object
.
assign
({},
this
.
x_user
,
{
constellation
}))
res
=
await
this
.
$api
.
userEdit
(
Object
.
assign
({},
this
.
x_user
,
{
constellation
}))
}
else
{
}
else
{
res
=
await
this
.
$api
.
autoRegister
({
res
=
await
this
.
$api
.
autoRegister
({
constellation
,
userName
:
this
.
x_sys
.
deviceId
})
constellation
,
userName
:
this
.
x_sys
.
deviceId
,
latitude
:
this
.
x_location
.
latitude
,
longitude
:
this
.
x_location
.
longitude
,
})
}
}
if
(
res
)
{
if
(
res
)
{
uni
.
reLaunch
({
uni
.
reLaunch
({
...
...
store/index.js
View file @
f911ce01
...
@@ -9,7 +9,7 @@ try {
...
@@ -9,7 +9,7 @@ try {
console
.
log
(
'本地储存:'
,
lifeData
)
console
.
log
(
'本地储存:'
,
lifeData
)
}
catch
(
e
)
{}
}
catch
(
e
)
{}
let
saveStateKeys
=
[
'x_xz'
,
'x_sys'
,
'x_location'
];
let
saveStateKeys
=
[
'x_xz'
,
'x_sys'
];
const
saveLifeData
=
function
(
key
,
value
)
{
const
saveLifeData
=
function
(
key
,
value
)
{
if
(
saveStateKeys
.
indexOf
(
key
)
!=
-
1
)
{
if
(
saveStateKeys
.
indexOf
(
key
)
!=
-
1
)
{
...
@@ -24,7 +24,6 @@ const store = new Vuex.Store({
...
@@ -24,7 +24,6 @@ const store = new Vuex.Store({
state
:
{
state
:
{
x_xz
:
lifeData
.
x_xz
,
// 用户选择的星座
x_xz
:
lifeData
.
x_xz
,
// 用户选择的星座
x_sys
:
lifeData
.
x_sys
,
// 设备信息
x_sys
:
lifeData
.
x_sys
,
// 设备信息
x_location
:
lifeData
.
x_location
,
// 位置信息
x_user
:
null
,
// 用户信息
x_user
:
null
,
// 用户信息
},
},
mutations
:
{
mutations
:
{
...
...
utils/index.js
View file @
f911ce01
...
@@ -38,4 +38,8 @@ export function dateFormat(date, fmt = 'YYYY-MM-DD') {
...
@@ -38,4 +38,8 @@ export function dateFormat(date, fmt = 'YYYY-MM-DD') {
}
}
}
}
return
fmt
;
return
fmt
;
}
export
function
log
(
msg
)
{
uni
.
showModal
({
title
:
'日志'
,
content
:
msg
})
}
}
\ No newline at end of file
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