摘要: _self.accuserList = res.data.data.accuser.map((arr)= { if (arr.userType == 1){ arr.userType = "自然人" }if (arr.userType == 2){ arr.userType = "法人公司" }if 阅读全文
posted @ 2019-01-30 17:14 -http 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 页面部分: {this.state.answer.map((item,index) = { return( this.changeImage(index)} {index==this.state.index ? : } {/ A /} {item.a_text} ) } )} touchableOp 阅读全文
posted @ 2019-01-25 11:26 -http 阅读(678) 评论(0) 推荐(0) 编辑
摘要: // 页面部分 提示// ios中需要配置权限 在xcode info.plist 加入NSPhotoLibraryAddUsageDescription 从而获取保存图片权限 //js部分 method里面 start (index) { const self = this this.index 阅读全文
posted @ 2018-11-29 11:53 -http 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 库 sql 创建数据库 create database 数据库名 使用数据库 use 数据库名 查看数据库 show databases 数据库名 删除数据库 drop database 数据库名; 数据库导入 1.use 数据库 2.source .sql 文件路径 数据库导出 mysqldump 阅读全文
posted @ 2018-10-11 15:43 -http 阅读(120) 评论(0) 推荐(0) 编辑
摘要: git git fetch origin 拉取远程仓库代码 git add ./ 添加本地仓库数据 git commit m 'xxxxx' 备注 git merge origin or git pull origin master 合并代码 CONFLICT 解决冲突文件 重新提交 git add 阅读全文
posted @ 2018-10-11 15:41 -http 阅读(227) 评论(0) 推荐(0) 编辑
摘要: //多选js部分 changeMoreSelect =(index) = { const set = new Set(this.state.changeArr) set.has(index) ? set.delete(index) : set.add(index) //通过下标查询,如果set返回t 阅读全文
posted @ 2018-10-10 15:50 -http 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 常用的数据更新赋值在this.state.xxx= xxx 如果保持数据更新放置与 this.setState({ xxx:xxx }) 有时我们需要setState之后立马要用state更新的数据,就在回调里用。例如: this.setState({type:index+1},()= {conso 阅读全文
posted @ 2018-06-05 12:02 -http 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 悬浮效果hover: 就是鼠标放上去以及离开时产生的变化。 vue 中有两个属性分别为 onmouseover onmouseout 我们可以利用这两个属性来达成我们所需要的效果: 代码如下 以上代码为微信图标默认为灰色图片,当鼠标移动至上面讲替换领一张图片,为绿色。 阅读全文
posted @ 2018-05-02 11:17 -http 阅读(28530) 评论(0) 推荐(0) 编辑
摘要: //发表评论 sendComment () { this.disabled = true if (this.text == ''){ this.$message({ type:'error', message:'输入内容不能为空', }) this.disabled = false }else{ t 阅读全文
posted @ 2018-05-02 11:04 -http 阅读(3043) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios' // axios基本配置 axios.defaults.timeout = 5000 axios.defaults.baseURL = 'http://192.168.1.8:8500' axios.defaults.withCredentials 阅读全文
posted @ 2018-04-20 17:19 -http 阅读(221) 评论(0) 推荐(0) 编辑