Sem descrição

chen.cheng 27263bd8ff 移除页面分享标题 há 9 meses atrás
common 7f280124e3 + 交通强国小程序变更 há 9 meses atrás
components bc485e1248 优化注册表单和首页轮播图显示 há 9 meses atrás
pages 27263bd8ff 移除页面分享标题 há 9 meses atrás
pasb 27263bd8ff 移除页面分享标题 há 9 meses atrás
pasbrg 167fd86708 优化注册表单和首页轮播图显示 há 9 meses atrás
static 02e69394c9 + 与会企业行程 há 11 meses atrás
store 7498f5b8cc init há 11 meses atrás
uni_modules 63f229cbf5 + 与会企业行程 há 11 meses atrás
util df59c70f74 + 交通强国小程序变更 há 9 meses atrás
.gitignore 6bdfdf059d + gitignore há 11 meses atrás
App.vue 7498f5b8cc init há 11 meses atrás
LICENSE 7498f5b8cc init há 11 meses atrás
README.md 27dcc1518e 修正交通方式相关文案并更新时间格式 há 9 meses atrás
jsconfig.json 02e69394c9 + 与会企业行程 há 11 meses atrás
main.js 6b8347c5af * 修改环境配置文件 há 11 meses atrás
manifest.json f20b2d6da4 + 实现批量审核功能 há 10 meses atrás
package.json b49465020b + 我的报名列表 há 10 meses atrás
pages.json cd6d794c87 优化注册表单和首页轮播图显示 há 9 meses atrás
template.h5.html 7498f5b8cc init há 11 meses atrás
tree.md 7498f5b8cc init há 11 meses atrás
uni.scss 7498f5b8cc init há 11 meses atrás
vue.config.js 7498f5b8cc init há 11 meses atrás

README.md

多端融合开发

1. 坑

  1. 子组件调用父组件的方法

    <child :click-handle="handleClick" />
    

    子组件的this指向为子组件。

解决这个问题需要使用
this.$emit('handleClick', '参数'); 
  1. 子组件样式问题,需要在common 文件中写样式
  2. ide启动总是提示 ‘uni-app 自定义组件 components/RichText/index 建议移动到子包 pasb 内’,原因是启动了分包优化

    "optimization" : {  
     "subPackages" : false//关闭分包优化  
    },  
    
  3. hbuild发布微信小程序需要启动微信开发者工具

表单配置
{
  "userInfo.usrName": {
    "type": "string",
    "required": true,
    "message": "请填写姓名",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.tel": {
    "type": "string",
    "len": 11,
    "required": true,
    "message": "请填写11位手机号",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.email": {
    "type": "string",
    "required": false,
    "message": "请填写邮箱",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.orgUnitName": {
    "type": "string",
    "required": true,
    "message": "请填写单位名称",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.uniLevel": {
    "type": "string",
    "required": true,
    "message": "请填写职务",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.usrType": {
    "type": "string",
    "required": true,
    "message": "请填写人员类型",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.conferenceFlag": {
    "type": "string",
    "required": true,
    "message": "请选择是否参加现场调研",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.contentId": {
    "type": "number",
    "required": true,
    "message": "请选择会场",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.themeFlag": {
    "type": "string",
    "required": true,
    "message": "请选择是否参加主题研讨",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.themeId": {
    "type": "number",
    "required": true,
    "message": "请选择主题",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.wayComing": {
    "type": "string",
    "required": true,
    "message": "请选择来程交通方式",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.comInfo": {
    "type": "string",
    "required": true,
    "message": "请填写来程车次/航班",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.wayBack": {
    "type": "string",
    "required": true,
    "message": "返程交通方式",
    "trigger": [
      "blur",
      "change"
    ]
  },
  "userInfo.backInfo": {
    "type": "string",
    "required": true,
    "message": "请填写返程车次/航班",
    "trigger": [
      "blur",
      "change"
    ]
  }
}