Commit f4531879 authored by 李苏's avatar 李苏 💬

云ERP app

parent 9908ea72
//APP更新 //APP更新
import api from 'api/api.js' import api from 'api/api.js'
import { http } from '@/common/service/service.js'
export default function appUpdate() { export default function appUpdate() {
api.postData('/getAppVersion',{ http.post('/getAppVersion',{
/* version: plus.runtime.version, /* version: plus.runtime.version,
imei: plus.device.imei, */ imei: plus.device.imei, */
apptype:"0", apptype:"0",
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "格物ERP", "name" : "格物ERP",
"appid" : "__UNI__C98E701", "appid" : "__UNI__C98E701",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "2",
"versionCode" : 2, "versionCode" : 3,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
"ios" : {}, "ios" : {
"dSYMs" : false
},
/* ios打包配置 */ /* ios打包配置 */
"sdkConfigs" : { "sdkConfigs" : {
"ad" : {}, "ad" : {},
...@@ -51,9 +53,6 @@ ...@@ -51,9 +53,6 @@
"appkey_ios" : "87f4d2a4a0c42e0c86cf312c8b8154e8", "appkey_ios" : "87f4d2a4a0c42e0c86cf312c8b8154e8",
"appkey_android" : "87f4d2a4a0c42e0c86cf312c8b8154e8" "appkey_android" : "87f4d2a4a0c42e0c86cf312c8b8154e8"
} }
},
"push" : {
"unipush" : {}
} }
}, },
"icons" : { "icons" : {
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
"path": "pages/login/cusmerLogin", "path": "pages/login/cusmerLogin",
"style": {} "style": {}
}, },
{ // {
"path": "pages/login/login", // "path": "pages/login/login",
"style": {} // "style": {}
}, // },
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{ {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
} }
}, },
onLoad:function(e){ onLoad:function(e){
if(e){ if(e.query){
let cur=JSON.parse(e.query) let cur=JSON.parse(e.query)
if (cur.infor=="process"){ if (cur.infor=="process"){
this.PageCur='process' this.PageCur='process'
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
// 固定服务器资源地址 // 固定服务器资源地址
// imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico", // imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico",
imgsrc:"", imgsrc:"",
firurl:"http://clouderp.gavelinfo.com/door", firurl:"https://clouderp.gavelinfo.com/door",
sedyrl:"http://clouderp.gavelinfo.com/hderp", sedyrl:"http://clouderp.gavelinfo.com/hderp",
// 服务器——端口号 // 服务器——端口号
fwq:"", fwq:"",
...@@ -230,26 +230,13 @@ ...@@ -230,26 +230,13 @@
console.log("用户名获取成功") console.log("用户名获取成功")
} }
}); });
// this.$router.go(0)
//ACCESS_TOKEN
this.$tip.success('登录成功!') this.$tip.success('登录成功!')
this.$Router.replaceAll({name:'index'}) this.$Router.replaceAll({name:'index'})
// #ifdef APP-PLUS
// this.saveClientId()
// #endif
// #ifndef APP-PLUS
this.$tip.success('登录成功!')
// #endif
}else{ }else{
this.$tip.alert(resp.data.message||"登录失败"); this.$tip.alert(resp.data.message||"登录失败");
} }
}) })
}, },
changErp(){
this.$Router.replaceAll({name:'login'})
},
gofwqsz(){ gofwqsz(){
this.$Router.push({ this.$Router.push({
path: '/pages/login/fwqsz', query:{ path: '/pages/login/fwqsz', query:{
...@@ -343,10 +330,6 @@ ...@@ -343,10 +330,6 @@
//ACCESS_TOKEN //ACCESS_TOKEN
this.$tip.success('登录成功!') this.$tip.success('登录成功!')
this.$Router.replaceAll({name:'index'}) this.$Router.replaceAll({name:'index'})
// #ifdef APP-PLUS
// this.saveClientId()
// #endif
this.$tip.success('登录成功!')
}else{ }else{
this.loading=false; this.loading=false;
this.$tip.alert(resp.data.message||"请求失败"); this.$tip.alert(resp.data.message||"请求失败");
......
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