修改测试问题
This commit is contained in:
@@ -2,6 +2,7 @@ const debug = true // true 是连地服务端本地,false 是连接线上
|
||||
|
||||
const development = {
|
||||
domain: 'http://192.168.1.103:10215',
|
||||
// domain: 'http://192.168.1.102:27707/api',
|
||||
}
|
||||
|
||||
const production = {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// export const MQTT_IP = 'pqmcn.com:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
export const MQTT_IP = '192.168.1.103:38083/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
export const MQTT_IP = 'pqmcn.com:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
// export const MQTT_IP = '192.168.1.103:38083/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
// export const MQTT_IP = '192.168.1.103:38083/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
|
||||
const MQTT_USERNAME = 't_user'//mqtt用户名
|
||||
const MQTT_PASSWORD = 'njcnpqs'//密码
|
||||
|
||||
@@ -83,7 +83,10 @@ function errHandler(res) {
|
||||
break
|
||||
default:
|
||||
uni.showToast({
|
||||
title: res.message || res.msg || '网络异常,请稍后再试',
|
||||
title:
|
||||
res.message.substring(res.message.indexOf(',') + 1) ||
|
||||
res.msg.substring(msg.indexOf(',') + 1) ||
|
||||
'网络异常,请稍后再试',
|
||||
duration: 2000,
|
||||
icon: 'none',
|
||||
})
|
||||
|
||||
@@ -34,7 +34,7 @@ const isCustomDebugBase = (appName = '') => {
|
||||
|
||||
export const checkAppUpdate = () => {
|
||||
// #ifndef APP-PLUS
|
||||
return
|
||||
// return
|
||||
// #endif
|
||||
|
||||
// 开发环境跳过检查
|
||||
@@ -225,7 +225,7 @@ const downloadAndInstallApk = (url) => {
|
||||
const percent = ((task.downloadedSize / task.totalSize) * 100).toFixed(0)
|
||||
console.log('🚀 ~ downloadAndInstallApk ~ percent:', percent)
|
||||
// 直接更新 waiting 的标题,不会闪烁
|
||||
progressWaiting.setTitle(`正在下载更新 ${percent}%`)
|
||||
progressWaiting.setTitle(`正在下载更新...`)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -183,35 +183,6 @@ const validatePhoneNumber = (phone) => {
|
||||
return testReg.test(phone)
|
||||
}
|
||||
|
||||
const getUserLocation = (call) => {
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (address) {
|
||||
call(address)
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '定位失败,请打开定位权限',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.openSetting({
|
||||
success: (resSett) => {
|
||||
if (resSett.authSetting['scope.userLocation']) {
|
||||
uni.getLocation({
|
||||
success: (address) => {
|
||||
call && call(address)
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// 加载用户配置
|
||||
var globalConfigIsLoading = false,
|
||||
@@ -349,7 +320,6 @@ export default {
|
||||
formatTime,
|
||||
parseTime,
|
||||
h5Helper,
|
||||
getUserLocation,
|
||||
loadConfig,
|
||||
prePage,
|
||||
loginSuccess,
|
||||
|
||||
Reference in New Issue
Block a user