oxy-uni-ui 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +13 -2
- package/components/oxy-checkbox/index.scss +37 -2
- package/components/oxy-sort-button/index.scss +3 -4
- package/components/oxy-tag/index.scss +157 -17
- package/components/oxy-tag/oxy-tag.vue +14 -2
- package/components/oxy-tag/types.ts +9 -0
- package/dev-tools.ts +2 -0
- package/devTools/components/DevToolsOverlay.vue +56 -0
- package/devTools/components/DevToolsUiHost.vue +589 -0
- package/devTools/config.js +55 -0
- package/devTools/core/components/mpDevBubble.vue +174 -0
- package/devTools/core/libs/createH5Bubble.js +156 -0
- package/devTools/core/libs/devCache.js +151 -0
- package/devTools/core/libs/devOptions.js +163 -0
- package/devTools/core/libs/devUi.js +219 -0
- package/devTools/core/libs/drawView.js +140 -0
- package/devTools/core/libs/errorReport.js +64 -0
- package/devTools/core/libs/jsonCompress.js +334 -0
- package/devTools/core/libs/logReport.js +59 -0
- package/devTools/core/libs/pageLinkList.js +125 -0
- package/devTools/core/libs/timeFormat.js +94 -0
- package/devTools/core/proxy/console.js +430 -0
- package/devTools/core/proxy/index.js +36 -0
- package/devTools/core/proxy/request.js +495 -0
- package/devTools/core/proxy/storage.js +113 -0
- package/devTools/core/proxy/uniBus.js +153 -0
- package/devTools/core/proxy/uniListen.js +192 -0
- package/devTools/core/proxy/vueMixin.js +120 -0
- package/devTools/index.js +168 -0
- package/devTools/page/components/bottomTools.vue +1046 -0
- package/devTools/page/components/dialog/addStorage.vue +204 -0
- package/devTools/page/components/dialog/createDir.vue +366 -0
- package/devTools/page/components/dialog/editDialog.vue +192 -0
- package/devTools/page/components/dialog/routeDialog.vue +184 -0
- package/devTools/page/components/dialog/sendRequest.vue +603 -0
- package/devTools/page/components/dialog/textFileEditDialog.vue +391 -0
- package/devTools/page/components/libs/appDelDir.js +86 -0
- package/devTools/page/components/libs/dirReader.js +248 -0
- package/devTools/page/components/libs/fileSize.js +15 -0
- package/devTools/page/components/libs/getRuntimeInfo.js +134 -0
- package/devTools/page/components/listItem/consoleItem.vue +314 -0
- package/devTools/page/components/listItem/errorItem.vue +292 -0
- package/devTools/page/components/listItem/fileSysItem.vue +533 -0
- package/devTools/page/components/listItem/infoList.vue +100 -0
- package/devTools/page/components/listItem/jsRunnerItem.vue +255 -0
- package/devTools/page/components/listItem/logItem.vue +193 -0
- package/devTools/page/components/listItem/networkItem.vue +398 -0
- package/devTools/page/components/listItem/objectAnalysis.vue +651 -0
- package/devTools/page/components/listItem/pages.vue +319 -0
- package/devTools/page/components/listItem/routeItem.vue +153 -0
- package/devTools/page/components/listItem/setting.vue +734 -0
- package/devTools/page/components/listItem/storageList.vue +681 -0
- package/devTools/page/components/listItem/tools.vue +315 -0
- package/devTools/page/components/listItem/vuexList.vue +599 -0
- package/devTools/page/components/main.vue +1867 -0
- package/devTools/page/components/mixins/animationControl.js +91 -0
- package/devTools/page/components/mixins/mp.js +83 -0
- package/devTools/page/components/ui/btnTabs.vue +90 -0
- package/devTools/page/components/ui/codeHisPicker.vue +172 -0
- package/devTools/page/components/ui/h5Cell.vue +13 -0
- package/devTools/page/components/ui/menuBtn.vue +94 -0
- package/devTools/page/components/ui/mobileSwiperScroll.vue +74 -0
- package/devTools/page/components/ui/requestSpeedLimit.vue +52 -0
- package/devTools/page/components/ui/requestTimeoutMock.vue +55 -0
- package/devTools/page/components/ui/subTitleBar.vue +101 -0
- package/devTools/page/static/copy.png +0 -0
- package/devTools/page/static/delete.png +0 -0
- package/devTools/page/static/fileSys/AI.png +0 -0
- package/devTools/page/static/fileSys/DWG.png +0 -0
- package/devTools/page/static/fileSys/EXE.png +0 -0
- package/devTools/page/static/fileSys/GIF.png +0 -0
- package/devTools/page/static/fileSys/HTML.png +0 -0
- package/devTools/page/static/fileSys/PSD.png +0 -0
- package/devTools/page/static/fileSys/RVT.png +0 -0
- package/devTools/page/static/fileSys/SKP.png +0 -0
- package/devTools/page/static/fileSys/SVG.png +0 -0
- package/devTools/page/static/fileSys/excel.png +0 -0
- package/devTools/page/static/fileSys/pdf.png +0 -0
- package/devTools/page/static/fileSys/pptl.png +0 -0
- package/devTools/page/static/fileSys/shipin.png +0 -0
- package/devTools/page/static/fileSys/tupian.png +0 -0
- package/devTools/page/static/fileSys/txt.png +0 -0
- package/devTools/page/static/fileSys/weizhiwenjian.png +0 -0
- package/devTools/page/static/fileSys/wenjianjia.png +0 -0
- package/devTools/page/static/fileSys/word.png +0 -0
- package/devTools/page/static/fileSys/yasuo.png +0 -0
- package/devTools/page/static/fileSys/yinpin.png +0 -0
- package/devTools/page/static/fold.png +0 -0
- package/devTools/page/static/menu.png +0 -0
- package/devTools/page/static/refresh.png +0 -0
- package/devTools/page/static/unfold.png +0 -0
- package/devTools/tools.vue +25 -0
- package/devTools/type/devTools.d.ts +406 -0
- package/oxy-dev-tools/components/DevToolsUiHost.vue +555 -0
- package/oxy-dev-tools/config.js +61 -0
- package/oxy-dev-tools/core/components/mpDevBubble.vue +176 -0
- package/oxy-dev-tools/core/libs/createH5Bubble.js +156 -0
- package/oxy-dev-tools/core/libs/devCache.js +149 -0
- package/oxy-dev-tools/core/libs/devOptions.js +160 -0
- package/oxy-dev-tools/core/libs/devUi.js +219 -0
- package/oxy-dev-tools/core/libs/drawView.js +144 -0
- package/oxy-dev-tools/core/libs/errorReport.js +60 -0
- package/oxy-dev-tools/core/libs/jsonCompress.js +328 -0
- package/oxy-dev-tools/core/libs/logReport.js +55 -0
- package/oxy-dev-tools/core/libs/pageLinkList.js +121 -0
- package/oxy-dev-tools/core/libs/timeFormat.js +93 -0
- package/oxy-dev-tools/core/proxy/console.js +398 -0
- package/oxy-dev-tools/core/proxy/index.js +33 -0
- package/oxy-dev-tools/core/proxy/request.js +473 -0
- package/oxy-dev-tools/core/proxy/storage.js +96 -0
- package/oxy-dev-tools/core/proxy/uniBus.js +148 -0
- package/oxy-dev-tools/core/proxy/uniListen.js +190 -0
- package/oxy-dev-tools/core/proxy/vueMixin.js +115 -0
- package/oxy-dev-tools/index.ts +183 -0
- package/oxy-dev-tools/oxy-dev-tools.vue +62 -0
- package/oxy-dev-tools/page/components/bottomTools.vue +933 -0
- package/oxy-dev-tools/page/components/dialog/addStorage.vue +184 -0
- package/oxy-dev-tools/page/components/dialog/createDir.vue +352 -0
- package/oxy-dev-tools/page/components/dialog/editDialog.vue +178 -0
- package/oxy-dev-tools/page/components/dialog/routeDialog.vue +170 -0
- package/oxy-dev-tools/page/components/dialog/sendRequest.vue +530 -0
- package/oxy-dev-tools/page/components/dialog/textFileEditDialog.vue +379 -0
- package/oxy-dev-tools/page/components/libs/appDelDir.js +77 -0
- package/oxy-dev-tools/page/components/libs/dirReader.js +239 -0
- package/oxy-dev-tools/page/components/libs/fileSize.js +15 -0
- package/oxy-dev-tools/page/components/libs/getRuntimeInfo.js +132 -0
- package/oxy-dev-tools/page/components/listItem/consoleItem.vue +292 -0
- package/oxy-dev-tools/page/components/listItem/errorItem.vue +268 -0
- package/oxy-dev-tools/page/components/listItem/fileSysItem.vue +511 -0
- package/oxy-dev-tools/page/components/listItem/infoList.vue +89 -0
- package/oxy-dev-tools/page/components/listItem/jsRunnerItem.vue +236 -0
- package/oxy-dev-tools/page/components/listItem/logItem.vue +185 -0
- package/oxy-dev-tools/page/components/listItem/networkItem.vue +362 -0
- package/oxy-dev-tools/page/components/listItem/objectAnalysis.vue +642 -0
- package/oxy-dev-tools/page/components/listItem/pages.vue +285 -0
- package/oxy-dev-tools/page/components/listItem/routeItem.vue +140 -0
- package/oxy-dev-tools/page/components/listItem/setting.vue +687 -0
- package/oxy-dev-tools/page/components/listItem/storageList.vue +623 -0
- package/oxy-dev-tools/page/components/listItem/tools.vue +273 -0
- package/oxy-dev-tools/page/components/listItem/vuexList.vue +559 -0
- package/oxy-dev-tools/page/components/main.vue +1824 -0
- package/oxy-dev-tools/page/components/mixins/animationControl.js +80 -0
- package/oxy-dev-tools/page/components/mixins/mp.js +76 -0
- package/oxy-dev-tools/page/components/ui/btnTabs.vue +77 -0
- package/oxy-dev-tools/page/components/ui/codeHisPicker.vue +161 -0
- package/oxy-dev-tools/page/components/ui/h5Cell.vue +13 -0
- package/oxy-dev-tools/page/components/ui/menuBtn.vue +87 -0
- package/oxy-dev-tools/page/components/ui/mobileSwiperScroll.vue +71 -0
- package/oxy-dev-tools/page/components/ui/requestSpeedLimit.vue +47 -0
- package/oxy-dev-tools/page/components/ui/requestTimeoutMock.vue +50 -0
- package/oxy-dev-tools/page/components/ui/subTitleBar.vue +87 -0
- package/oxy-dev-tools/page/static/copy.png +0 -0
- package/oxy-dev-tools/page/static/delete.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/AI.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/DWG.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/EXE.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/GIF.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/HTML.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/PSD.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/RVT.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/SKP.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/SVG.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/excel.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/pdf.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/pptl.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/shipin.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/tupian.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/txt.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/weizhiwenjian.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/wenjianjia.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/word.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/yasuo.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/yinpin.png +0 -0
- package/oxy-dev-tools/page/static/fold.png +0 -0
- package/oxy-dev-tools/page/static/menu.png +0 -0
- package/oxy-dev-tools/page/static/refresh.png +0 -0
- package/oxy-dev-tools/page/static/unfold.png +0 -0
- package/oxy-dev-tools/tools.vue +22 -0
- package/oxy-dev-tools/type/devTools.d.ts +406 -0
- package/package.json +1 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<subTitleBar :isOpen="isShowSetting" @click="changeStatus('isShowSetting')" title="DevTools扩展配置项" />
|
|
4
|
+
<template v-if="isShowSetting">
|
|
5
|
+
<!-- #ifdef APP-PLUS || H5 -->
|
|
6
|
+
<view class="settingItem">
|
|
7
|
+
<view class="settingHead">
|
|
8
|
+
<text class="settingTitle">页面自动注入Eruda调试工具</text>
|
|
9
|
+
<text class="settingSubtitle">(强大的节点选择等工具;重启APP后生效)</text>
|
|
10
|
+
</view>
|
|
11
|
+
<switch :checked="isInjectEruda" @change="switchChange($event, 'isInjectEruda')" color="#3b82f6" />
|
|
12
|
+
</view>
|
|
13
|
+
<view class="settingItem">
|
|
14
|
+
<view class="settingHead">
|
|
15
|
+
<text class="settingTitle">页面自动注入vConsole调试工具</text>
|
|
16
|
+
<text class="settingSubtitle">(腾讯开源的h5调试工具;重启APP后生效)</text>
|
|
17
|
+
</view>
|
|
18
|
+
<switch :checked="isInjectVConsole" @change="switchChange($event, 'isInjectVConsole')" color="#3b82f6" />
|
|
19
|
+
</view>
|
|
20
|
+
<!-- #endif -->
|
|
21
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
22
|
+
<view class="settingItem">
|
|
23
|
+
<view class="settingHead">
|
|
24
|
+
<text class="settingTitle">小程序VConsole开关</text>
|
|
25
|
+
<text class="settingSubtitle">设置是否打开调试开关。此开关对正式版也能生效。</text>
|
|
26
|
+
</view>
|
|
27
|
+
<switch :checked="isOpenMpDevTag" @change="switchChange($event, 'isOpenMpDevTag')" color="#3b82f6" />
|
|
28
|
+
</view>
|
|
29
|
+
<!-- #endif -->
|
|
30
|
+
</template>
|
|
31
|
+
<subTitleBar :isOpen="isShowBtnPanel" @click="changeStatus('isShowBtnPanel')" title="常用工具" />
|
|
32
|
+
<view v-if="isShowBtnPanel" class="btnPanel">
|
|
33
|
+
<!-- #ifdef APP-PLUS || H5 -->
|
|
34
|
+
<view class="btnItem btn-def" @click="restart">
|
|
35
|
+
<text class="btnText">重启APP</text>
|
|
36
|
+
</view>
|
|
37
|
+
<!-- #endif -->
|
|
38
|
+
|
|
39
|
+
<view class="btnItem btn-def" @click="goPage">
|
|
40
|
+
<text class="btnText">跳转指定页面</text>
|
|
41
|
+
</view>
|
|
42
|
+
|
|
43
|
+
<view class="btnItem btn-def" @click="$emit('goOpenRequest')">
|
|
44
|
+
<text class="btnText">发起网络请求</text>
|
|
45
|
+
</view>
|
|
46
|
+
|
|
47
|
+
<view class="btnItem btn-red" @click="delLocalStorage">
|
|
48
|
+
<text class="btnText">清空localStorage缓存</text>
|
|
49
|
+
</view>
|
|
50
|
+
</view>
|
|
51
|
+
<subTitleBar :isOpen="isShowDiyTools" @click="changeStatus('isShowDiyTools')" title="自定义Tools" />
|
|
52
|
+
<tools v-if="isShowDiyTools" ref="tools" />
|
|
53
|
+
</view>
|
|
54
|
+
</template>
|
|
55
|
+
<script>
|
|
56
|
+
import devCache from '../../../core/libs/devCache'
|
|
57
|
+
import tools from '../../../tools.vue'
|
|
58
|
+
import subTitleBar from '../ui/subTitleBar.vue'
|
|
59
|
+
import devUi from '../../../core/libs/devUi.js'
|
|
60
|
+
export default {
|
|
61
|
+
components: {
|
|
62
|
+
tools,
|
|
63
|
+
subTitleBar
|
|
64
|
+
},
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
/**
|
|
68
|
+
* 是否显示系统工具栏
|
|
69
|
+
*/
|
|
70
|
+
isShowSetting: false,
|
|
71
|
+
/**
|
|
72
|
+
* 是否自动注入Eruda
|
|
73
|
+
*/
|
|
74
|
+
isInjectEruda: uni.getStorageSync('devTools_isInjectEruda') == 'yes',
|
|
75
|
+
/**
|
|
76
|
+
* 是否自动注入vConsole
|
|
77
|
+
*/
|
|
78
|
+
isInjectVConsole: uni.getStorageSync('devTools_isInjectVConsole') == 'yes',
|
|
79
|
+
/**
|
|
80
|
+
* 是否显示 用户自定义tools
|
|
81
|
+
*/
|
|
82
|
+
isShowDiyTools: true,
|
|
83
|
+
/**
|
|
84
|
+
* 是否打开小程序调试工具
|
|
85
|
+
*/
|
|
86
|
+
isOpenMpDevTag: uni.getStorageSync('devTools_isOpenMpDevTag') == 'yes',
|
|
87
|
+
/**
|
|
88
|
+
* 常用工具栏开关
|
|
89
|
+
*/
|
|
90
|
+
isShowBtnPanel: true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
/**
|
|
95
|
+
* 更改选中状态
|
|
96
|
+
*/
|
|
97
|
+
changeStatus(key) {
|
|
98
|
+
this[key] = !this[key]
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* 开关选择器改变事件
|
|
102
|
+
*/
|
|
103
|
+
switchChange(e, key) {
|
|
104
|
+
let status = e.detail.value
|
|
105
|
+
this[key] = status
|
|
106
|
+
uni.setStorageSync('devTools_' + key, status ? 'yes' : 'no')
|
|
107
|
+
|
|
108
|
+
if (key == 'isOpenMpDevTag') {
|
|
109
|
+
wx.setEnableDebug({
|
|
110
|
+
enableDebug: status
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* 重启APP
|
|
116
|
+
*/
|
|
117
|
+
restart() {
|
|
118
|
+
// #ifdef APP-PLUS
|
|
119
|
+
plus.runtime.restart()
|
|
120
|
+
// #endif
|
|
121
|
+
// #ifdef H5
|
|
122
|
+
location.href = '/'
|
|
123
|
+
// #endif
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* 跳转指定页面
|
|
127
|
+
*/
|
|
128
|
+
goPage() {
|
|
129
|
+
uni.$emit('devTools_showRouteDialog')
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* 清空LocalStorage
|
|
133
|
+
*/
|
|
134
|
+
delLocalStorage() {
|
|
135
|
+
devUi.showModal({
|
|
136
|
+
title: '操作确认',
|
|
137
|
+
content: '是否确认清空LocalStorage缓存?',
|
|
138
|
+
success(res) {
|
|
139
|
+
if (res.confirm) {
|
|
140
|
+
// #ifdef APP-PLUS
|
|
141
|
+
let keys = plus.storage.getAllKeys()
|
|
142
|
+
for (let i = 0; i < keys.length; i++) {
|
|
143
|
+
const key = String(keys[i])
|
|
144
|
+
if (key.indexOf('devTools_') == 0) {
|
|
145
|
+
continue
|
|
146
|
+
}
|
|
147
|
+
uni.removeStorageSync(key)
|
|
148
|
+
}
|
|
149
|
+
// #endif
|
|
150
|
+
|
|
151
|
+
// #ifdef H5
|
|
152
|
+
for (let i = 0; i < localStorage.length; i++) {
|
|
153
|
+
let key = String(localStorage.key(i))
|
|
154
|
+
if (key.indexOf('devTools_') == 0) {
|
|
155
|
+
continue
|
|
156
|
+
}
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
localStorage.removeItem(key)
|
|
159
|
+
}, i * 2 + 1)
|
|
160
|
+
}
|
|
161
|
+
// #endif
|
|
162
|
+
|
|
163
|
+
// #ifdef MP
|
|
164
|
+
let keyList = devCache.get('storage')
|
|
165
|
+
if (!keyList) keyList = []
|
|
166
|
+
for (let i = 0; i < keyList.length; i++) {
|
|
167
|
+
const key = keyList[i]
|
|
168
|
+
if (key.indexOf('devTools_') == 0) {
|
|
169
|
+
continue
|
|
170
|
+
}
|
|
171
|
+
uni.removeStorageSync(key)
|
|
172
|
+
}
|
|
173
|
+
// #endif
|
|
174
|
+
devUi.showToast({
|
|
175
|
+
icon: 'success',
|
|
176
|
+
title: '清空成功!'
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</script>
|
|
185
|
+
<style lang="scss" scoped>
|
|
186
|
+
.padding-sm {
|
|
187
|
+
padding: 20rpx;
|
|
188
|
+
}
|
|
189
|
+
.settingItem:active {
|
|
190
|
+
background-color: rgba(15, 23, 42, 0.04);
|
|
191
|
+
}
|
|
192
|
+
.settingItem {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: row;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
align-items: center;
|
|
197
|
+
width: calc(100% - 40rpx);
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
margin: 10rpx 20rpx;
|
|
200
|
+
padding: 14rpx 16rpx;
|
|
201
|
+
border-radius: 14rpx;
|
|
202
|
+
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
203
|
+
background: #fff;
|
|
204
|
+
box-shadow: 0 2rpx 10rpx rgba(15, 23, 42, 0.04);
|
|
205
|
+
.settingHead {
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
flex: 1;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
.settingTitle {
|
|
211
|
+
font-size: 24rpx;
|
|
212
|
+
line-height: 34rpx;
|
|
213
|
+
color: #0f172a;
|
|
214
|
+
}
|
|
215
|
+
.settingSubtitle {
|
|
216
|
+
margin-top: 4rpx;
|
|
217
|
+
font-size: 21rpx;
|
|
218
|
+
line-height: 30rpx;
|
|
219
|
+
color: #64748b;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
.btnPanel {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-direction: row;
|
|
226
|
+
flex-wrap: wrap;
|
|
227
|
+
padding-left: 20rpx;
|
|
228
|
+
padding-right: 20rpx;
|
|
229
|
+
padding-top: 12rpx;
|
|
230
|
+
|
|
231
|
+
.btnItem {
|
|
232
|
+
margin-right: 10rpx;
|
|
233
|
+
margin-bottom: 10rpx;
|
|
234
|
+
border-radius: 12rpx;
|
|
235
|
+
/* #ifndef APP-PLUS */
|
|
236
|
+
min-width: 160rpx;
|
|
237
|
+
/* #endif */
|
|
238
|
+
height: 58rpx;
|
|
239
|
+
border: 1px solid #e2e8f0;
|
|
240
|
+
background-color: #fff;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: row;
|
|
243
|
+
align-items: center;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
padding: 0 16rpx;
|
|
246
|
+
.btnText {
|
|
247
|
+
font-size: 22rpx;
|
|
248
|
+
line-height: 30rpx;
|
|
249
|
+
color: #334155;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
.btn-red:active {
|
|
253
|
+
background-color: rgba(220, 38, 38, 0.85);
|
|
254
|
+
}
|
|
255
|
+
.btn-red {
|
|
256
|
+
border: 1px solid #dc2626;
|
|
257
|
+
background-color: #dc2626;
|
|
258
|
+
.btnText {
|
|
259
|
+
color: #fff;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.btn-def:active {
|
|
263
|
+
background-color: rgba(15, 23, 42, 0.08);
|
|
264
|
+
}
|
|
265
|
+
.btn-def {
|
|
266
|
+
border: 1px solid #e2e8f0;
|
|
267
|
+
background-color: #f8fafc;
|
|
268
|
+
.btnText {
|
|
269
|
+
color: #334155;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
</style>
|