Commit f911ce01 authored by liubinyu's avatar liubinyu

去掉位置

parent 54cf9670
......@@ -9,11 +9,6 @@
store.commit('xStore', { name: 'x_sys', value: res })
}
})
uni.getLocation({
success(res) {
store.commit('xStore', { name: 'x_location', value: res })
}
})
},
onShow: function() {
console.log('App Show')
......
## 打包证书目录
- /certificate
- 证书别名 xw
- 证书密钥 123456
\ No newline at end of file
......@@ -40,14 +40,16 @@
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<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,
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],
"minSdkVersion" : 21
},
/* ios打包配置 */
"ios" : {
"idfa" : false
"idfa" : false,
"dSYMs" : false
},
/* SDK配置 */
"sdkConfigs" : {},
......
......@@ -37,12 +37,7 @@
if (this.x_user) {
res = await this.$api.userEdit(Object.assign({}, this.x_user, { constellation }))
} else {
res = await this.$api.autoRegister({
constellation,
userName: this.x_sys.deviceId,
latitude: this.x_location.latitude,
longitude: this.x_location.longitude,
})
res = await this.$api.autoRegister({ constellation, userName: this.x_sys.deviceId })
}
if (res) {
uni.reLaunch({
......
......@@ -9,7 +9,7 @@ try {
console.log('本地储存:', lifeData)
} catch (e) {}
let saveStateKeys = ['x_xz', 'x_sys', 'x_location'];
let saveStateKeys = ['x_xz', 'x_sys'];
const saveLifeData = function(key, value) {
if (saveStateKeys.indexOf(key) != -1) {
......@@ -24,7 +24,6 @@ const store = new Vuex.Store({
state: {
x_xz: lifeData.x_xz, // 用户选择的星座
x_sys: lifeData.x_sys, // 设备信息
x_location: lifeData.x_location, // 位置信息
x_user: null, // 用户信息
},
mutations: {
......
......@@ -38,4 +38,8 @@ export function dateFormat(date, fmt = 'YYYY-MM-DD') {
}
}
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