18034727885
2026-04-27 3a4c1bbb2cf4fb1cdda8a5061b0674f30e7456b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package com.example.smart.util
 
import android.app.Activity
import android.app.ActivityOptions
import android.content.Intent
import android.net.Uri
import android.os.Environment
import com.example.basecore.util.SchemeUtils
import com.example.smart.MyApp
 
 
const val loginScheme = SchemeUtils.rootUrl + "/login"
 
const val mainScheme = SchemeUtils.rootUrl + "/main"
 
 
/**
 * feed
 */
const val feedScheme = SchemeUtils.rootUrl + "/home"
 
 
/**
 * 查询页
 */
const val queryScheme = SchemeUtils.rootUrl + "/query"
 
 
/**
 * 签到页
 */
const val signScheme = SchemeUtils.rootUrl + "/sign"
 
 
/**
 *  项目详情页
 */
const val projectScheme = SchemeUtils.rootUrl + "/project"
 
/**
 * 计划详情页
 */
const val planScheme = SchemeUtils.rootUrl + "/plan"
 
/**
 * 图片查看页
 */
const val viewerScheme = SchemeUtils.rootUrl + "/viewer"
 
/**
 * 员工签到
 */
const val sign_default_param = "?type=DEFAULT"
 
/**
 * 项目签到
 */
const val signProject = SchemeUtils.rootUrl + "/work_sign"
 
/**
 * 新建任务
 */
const val createItemScheme = SchemeUtils.rootUrl + "/create_item"
 
/**
 * 新建计划
 */
const val createPlanScheme = SchemeUtils.rootUrl + "/create_plan"
 
/**
 * 新建施工
 */
const val createWorkScheme = SchemeUtils.rootUrl + "/create_work"
 
/**
 * 联系人
 */
const val contactsScheme = SchemeUtils.rootUrl + "/contact"
 
/**
 *  项目问题&正确做法
 */
const val projectEventScheme = SchemeUtils.rootUrl + "/project_event"
 
 
 
const val tab_select_size = 15
 
const val tab_unselect_size = 15
 
 
 
 
//手机自带扩展外存卡
//null 传入到file文件夹下,Picture为图片
val filePath = MyApp.app.getExternalFilesDir(null)?.absolutePath + "/download"
 
val picPath = MyApp.app.getExternalFilesDir(Environment.DIRECTORY_PICTURES)?.absolutePath
 
 
fun openImageViewerScheme(activity: Activity, paths: ArrayList<String>, position: Int = 0) {
    val uri = Uri.parse(viewerScheme)
    val intent = Intent(Intent.ACTION_VIEW, uri)
    intent.putStringArrayListExtra("path", paths)
    intent.putExtra("position", position)
    val bundle = ActivityOptions.makeSceneTransitionAnimation(activity).toBundle()
    activity.startActivity(intent, bundle)
 
}