Commit f911ce01 authored by liubinyu's avatar liubinyu

去掉位置

parent 54cf9670
...@@ -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')
......
## 打包证书目录
- /certificate
- 证书别名 xw
- 证书密钥 123456
\ No newline at end of file
...@@ -43,11 +43,13 @@ ...@@ -43,11 +43,13 @@
"<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" : {},
......
...@@ -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({
......
...@@ -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: {
......
...@@ -39,3 +39,7 @@ export function dateFormat(date, fmt = 'YYYY-MM-DD') { ...@@ -39,3 +39,7 @@ 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment