Commit 6e1151ad by Denglingling

1、APP图标、android打包 key.jks ,账号信息添加到 [README.md];

2、提取主页面公共样式;
parent 866258e5
骨科仓APP
====
## 安卓 `Android` 打包 `key.jks` 账号信息
- 密钥库口令:gkzhc2020
- 名字与姓氏是什么:wjcx
- 组织单位名称是什么:无境创新
- 组织名称是什么:无境创新
- 输入<my-key-alias>密钥口令:gkzhc2020

4.46 KB | W: | H:

1.13 KB | W: | H:

android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

6.31 KB | W: | H:

1.64 KB | W: | H:

android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

9.03 KB | W: | H:

2.13 KB | W: | H:

android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin
<resources>
<string name="app_name">BoneHouse_Business_APP</string>
<string name="app_name">骨科智慧仓</string>
</resources>
No preview for this file type
......@@ -141,7 +141,7 @@ function requestOrganizationsFail() {
// 上传语音 params={ access_token:'', path='录音地址' } -- 待修改
export function requestQuickAudio(params) {
export function requestQuickAudio_222(params) {
return dispatch => {
let { access_token, path } = params
// 临时
......@@ -192,6 +192,18 @@ export const uploadAttachment = async (token,datas) => {
return await UploadRequest('/dingding/upload_media' + '?access_token=' + token,datas)
};
// 上传语音
export const requestQuickAudio = async (params) => {
let { access_token, path } = params
let formData = new FormData()
let soundPath = `file://${path}`
let fileName = path.substring(path.lastIndexOf('/') + 1, path.length)
let file = { uri: soundPath, type: "multipart/form-data", name: fileName}
formData.append('file', file)
console.log('--------', file, formData)
return await UploadRequest(getUrlParams('/dingding/upload_media', { access_token }), formData)
}
// 提交数据
export function requestQuickSumbit({access_token, ...params}) {
return dispatch => {
......
......@@ -62,4 +62,258 @@ export const icon_style = {
export const safe_view = {
flex: 1
}
export const list_common_item = {
// 备注
remark_item: {
minHeight: 80,
height: 'auto'
},
rema_box: {
paddingVertical: 16
},
rema_tit: {
fontSize: second_text_size,
color: first_text_color,
fontFamily: font_family_regular
// fontWeight: 'bold'
},
rema_Input_outer: {
height: 120,
alignItems: 'center',
// paddingHorizontal: 15,
paddingBottom: 0
},
rema_Input_inner: {
paddingTop: 10,
height: 105,
width: Width() - 38,
// borderWidth: 1,
// borderColor: '#eeeeee'
},
rema_Input: {
paddingVertical: 0,
maxHeight: 105,
fontSize: second_text_size,
textAlign:'left',
textAlignVertical:'top',
alignSelf:'flex-start',
justifyContent:'flex-start',
alignItems:'flex-start',
fontFamily: font_family_regular
},
// 录音
reco_item: {
height: 160,
// height: 340,
// marginBottom: 42
},
reco_play_height: {
height: 90
},
reco_btn_cont: {
paddingVertical: 20
},
reco_btn_tit: {
fontSize: second_text_size,
color: first_text_color,
fontFamily: font_family_regular
},
reco_btn_inner: {
flex: 1,
width: Width() - 38,
// justifyContent: 'flex-end',
alignItems: 'center',
paddingTop: 30
},
reco_btn_box: {
backgroundColor: '#EEECEC',
borderRadius: 30,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
height: pxSize(54),
width: pxSize(162)
},
reco_img_box: {
width: pxSize(20),
height: pxSize(22)
},
reco_text: {
fontSize: 14,
marginVertical: 10
},
reco_btn_text: {
fontSize: second_text_size,
color: first_text_color,
marginLeft: 6,
fontFamily: font_family_regular
},
reco_play_box: {
flex: 1,
width: Width() - 68,
// justifyContent: 'flex-end',
// alignItems: 'center'
},
play_tit:{
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
height: 60
},
play_text: {
fontSize: second_text_size,
color: first_text_color,
fontFamily: font_family_regular
},
play_btn:{
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
// height: 80
},
reco_list_box:{
backgroundColor: '#EEECEC',
borderRadius: 30,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
height: 34,
width: pxSize(100)
},
reco_del_btn: {
backgroundColor: promary_color,
height: 20,
borderRadius: 5,
width: pxSize(60)
},
reco_play_btn: {
width: pxSize(200),
borderRadius: 5,
height: 34,
borderColor: '#DFDFDF',
borderWidth: 1,
backgroundColor: foundation_color
},
reco_text: {
fontSize: second_text_size,
color: first_text_color,
fontFamily: font_family_regular
},
reco_del_tit: {
color: title_text_color,
fontSize: third_text_size
},
reco_play_tit: {
fontSize: second_text_size,
fontFamily: font_family_regular,
color: second_text_color
},
// 耗材明细
consu_detail: {
backgroundColor: home_background_color,
// backgroundColor: '#ccc',
paddingHorizontal: 0,
minHeight: 80,
height: 'auto',
alignItems: 'flex-start'
},
detail_inner: {
flex: 1
},
detail_tit: {
fontSize: second_text_size,
color: '#A3A3A3',
fontFamily: font_family_regular
},
detail_sub_cont: {
backgroundColor: foundation_color,
padding: 20,
marginTop: 10
},
detail_footer: {
paddingHorizontal: 16
},
detail_sub_tit: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
},
detail_tit_text: {
color: '#000',
fontSize: 16,
fontFamily: font_family_regular
},
detail_icon: {
width: pxSize(20),
height: pxSize(20)
},
detail_icon_rig: {
width: pxSize(18),
height: pxSize(18)
},
detail_top_icon: {},
detail_sub_inner: {
marginTop: 10,
maxHeight: pxSize(160),
// flex: 1
},
detail_scroll: {
// flex: 1
// height: 100
},
con_de_sub: {
marginBottom: 10
},
de_sub_tit: {
color: second_text_color
},
de_tip: {
color: second_text_color
},
detail_btn_box: {
backgroundColor: promary_color,
width: '100%',
height: pxSize(46),
borderRadius: 5,
marginTop: 10
},
detail_btn: {
color: title_text_color,
textAlign: 'center',
fontSize: second_text_size,
lineHeight: 40
},
// 添加图片
consu_addpic: {
backgroundColor: home_background_color,
paddingHorizontal: 0,
minHeight: pxHeight(320),
height: 'auto',
alignItems: 'flex-start',
marginBottom: 34
},
addpic_inner: {
flex: 1
},
addpic_tit: {
fontSize: second_text_size,
color: '#A3A3A3',
fontFamily: font_family_regular
},
addpic_cont: {
backgroundColor: foundation_color,
padding: 20,
marginTop: 10,
flexDirection: 'row',
flex: 1
},
addpic_img_btn: {
width: pxSize(68),
height: pxSize(68),
marginRight: 20
},
}
\ No newline at end of file
......@@ -50,12 +50,16 @@ export function CellTextStyle({style, ...props}) {
// 子页面底部按钮
export function FooterBtnStyle({style, textStyle, title, activeOpacity, ...props}) {
return <TouchableOpacity
activeOpacity={activeOpacity}
style={[styles.sub_btn_box, style]}
{...props}>
<Text style={[styles.sub_btn, textStyle]}>{title}</Text>
</TouchableOpacity>
return (
<View style={styles.btn_cont}>
<TouchableOpacity
activeOpacity={activeOpacity}
style={[styles.sub_btn_box, style]}
{...props}>
<Text style={[styles.sub_btn, textStyle]}>{title}</Text>
</TouchableOpacity>
</View>
)
}
const styles = StyleSheet.create({
......@@ -94,16 +98,21 @@ const styles = StyleSheet.create({
// paddingVertical: 20,
marginBottom: 18
},
btn_cont: {
paddingHorizontal: 16
},
sub_btn_box: {
backgroundColor: dis_sub_color,
height: 64,
height: 52,
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
justifyContent: 'center',
marginBottom: 26,
borderRadius: 10
},
sub_btn: {
color: title_text_color,
fontSize: 18,
fontFamily: font_family_medium
fontSize: 16,
fontFamily: font_family_semibold
}
})
\ No newline at end of file
......@@ -152,7 +152,8 @@ const styles = StyleSheet.create({
backgroundColor: '#ffffff',
borderTopLeftRadius: 12,
borderTopRightRadius: 12,
maxHeight: pxHeight(480)
maxHeight: pxHeight(480),
minHeight: pxHeight(180)
// maxHeight: '100%'
},
item: {
......
......@@ -98,7 +98,9 @@ class HomePage extends Component {
<TouchableOpacity
activeOpacity={.8}
style={[styles.home_list, (index%2 !== 0) && styles.home_list_even]}
onPress={() => this.jumpToSubpage(index)}>
onPress={() => this.jumpToSubpage(index)}
key={index}
>
<View style={styles.list_item}>
<View style={styles.img_box}>
<Image source={item.icon} style={styles.list_img}/>
......
......@@ -35,8 +35,8 @@ class LoginPage extends Component{
constructor(props) {
super(props)
this.state = {
username: '',
password: '',
username: '', // shi.ming
password: '', // sfrx2019
subTit: '登录',
subTitList: ['登录', '登录中...'],
isSubLoding: false
......@@ -240,14 +240,14 @@ const styles = StyleSheet.create({
},
login_bg: {
flex: 1,
// alignSelf: 'stretch',
// width: null,
// height: null,
// zIndex: -1,
// position: 'absolute',
// top: 0,
// left: 0,
// right: 0
alignSelf: 'stretch',
width: null,
height: null,
zIndex: -1,
position: 'absolute',
top: 0,
left: 0,
right: 0
},
login_inner: {
// flex: 1,
......@@ -286,7 +286,8 @@ const styles = StyleSheet.create({
height: pxSize(390),
width: pxSize(348),
paddingHorizontal: '8%',
paddingVertical: '12%'
paddingVertical: '12%',
paddingBottom: 0
},
cont_head: {
......@@ -337,7 +338,6 @@ const styles = StyleSheet.create({
},
shadowOpacity: 1,
elevation: 2,
alignItems: 'center',
borderWidth: 0
},
btn_dis_footer: {
......@@ -360,7 +360,7 @@ const styles = StyleSheet.create({
// height: '30%'
width: pxSize(110),
height: pxSize(30),
marginTop: '18%'
marginTop: 42
},
footer_img: {
// flex: 1
......
......@@ -54,9 +54,9 @@ export const UploadRequest = (url,datas) => {
const opts = {
method: 'POST',
body: datas,
// headers: {
// 'Content-Type': 'multipart/form-data'
// },
headers: {
'Content-Type': 'multipart/form-data'
},
timeout: 20000 //20s超时
};
......
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 sign in to comment