修改配置
This commit is contained in:
1 parent
9213b35541
commit
d33f16f38d
4 files changed
+62
-55
No files matched your search
@@ -1,13 +1,14 @@
|
||||
# ******************** start 开发环境 start ********************
|
||||
|
||||
VITE_APP_DEV_SERVICE =http://localhost:48080/app-api
|
||||
#VITE_APP_DEV_SERVICE =http://localhost:48080/app-api
|
||||
VITE_APP_DEV_SERVICE =https://stgl.pj.gov.cn/app-api
|
||||
# VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api
|
||||
|
||||
# ******************** end 开发环境 end ********************
|
||||
|
||||
|
||||
|
||||
# ******************** start 生产环境 start ********************
|
||||
|
||||
VITE_APP_PROD_SERVICE = http://123.156.228.134:48080/app-api
|
||||
|
||||
# ******************** end 生产环境 end ********************
|
||||
#VITE_APP_PROD_SERVICE = http://123.156.228.134:48080/app-api
|
||||
VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/app-api
|
||||
# ******************** end 生产环境 end ********************
|
||||
+43
-42
@@ -1,28 +1,28 @@
|
||||
{
|
||||
"name": "",
|
||||
"appid": "",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
"name" : "",
|
||||
"appid" : "",
|
||||
"description" : "浦江县机关事务智慧后勤一体化平台",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {},
|
||||
"modules" : {},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
@@ -41,38 +41,39 @@
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {},
|
||||
"ios" : {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {}
|
||||
"sdkConfigs" : {}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "",
|
||||
"setting": {
|
||||
"urlCheck": false
|
||||
"mp-weixin" : {
|
||||
"appid" : "",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents": true
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion": "3",
|
||||
"h5": {
|
||||
"router": {
|
||||
"base": "/",
|
||||
"mode": "hash"
|
||||
}
|
||||
"vueVersion" : "3",
|
||||
"h5" : {
|
||||
"router" : {
|
||||
"base" : "/h5/",
|
||||
"mode" : "hash"
|
||||
},
|
||||
"title" : "浦江县机关事务智慧后勤一体化平台"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -109,10 +109,10 @@ const doCancelApply = async (v: any) => {
|
||||
</view>
|
||||
<view>
|
||||
<text class="main-text-28">审批状态:</text>
|
||||
<tm-tag v-if="v.status == 1" color="info" size="xs">审批中</tm-tag>
|
||||
<tm-tag v-if="v.status == 2" color="success" size="xs">审批通过</tm-tag>
|
||||
<tm-tag v-if="v.status == 3" color="error" size="xs">审批不通过</tm-tag>
|
||||
<tm-tag v-if="v.status == 4" color="info" size="xs">已取消</tm-tag>
|
||||
<tm-tag v-if="v.checkStatus == '1'" color="info" size="xs">审批中</tm-tag>
|
||||
<tm-tag v-if="v.checkStatus == '2'" color="success" size="xs">审批通过</tm-tag>
|
||||
<tm-tag v-if="v.checkStatus == '3'" color="error" size="xs">审批不通过</tm-tag>
|
||||
<tm-tag v-if="v.checkStatus == '4'" color="info" size="xs">已取消</tm-tag>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-row items-center justify-end p-t-10rpx">
|
||||
|
||||
@@ -18,11 +18,11 @@ const data = {
|
||||
|
||||
const state = reactive<any>({
|
||||
wallet: [],
|
||||
userInfo: {}
|
||||
userInfo: {},
|
||||
})
|
||||
|
||||
onLoad(() => {
|
||||
|
||||
onLoad((options) => {
|
||||
});
|
||||
onShow(() => {
|
||||
getUserInfo()
|
||||
@@ -46,7 +46,12 @@ const doLogin = async () => {
|
||||
title: '登录中...',
|
||||
mask: true
|
||||
});
|
||||
const { data: authData } = await userApi.auth("test");
|
||||
|
||||
const url = window.location.href;
|
||||
const params = new URL(url).searchParams;
|
||||
const token = params.get('uabaseToken'); // 获取 uabaseToken 参数值
|
||||
console.log('Token:', token);
|
||||
const { data: authData } = await userApi.auth(token);
|
||||
uni.setStorageSync(tokenKey, authData)
|
||||
const { data: userData } = await userApi.userInfo();
|
||||
uni.setStorageSync(userInfoKey, userData)
|
||||
@@ -119,4 +124,4 @@ const doLogout = async () => {
|
||||
border-bottom: 1px solid #fafafa;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in new issue
Block a user