1.0.19 • Published 3 years ago

miniprogram-insure-component v1.0.19

Weekly downloads
18
License
MIT
Repository
-
Last release
3 years ago

miniprogram-insure-component

小程序功能

  1. 交易试算模块 calculate

快速上手

// 第一步:安装
npm install -S miniprogram-insure-component

// 第二步:引入,需在对应的小程序页面的.json文件增加代码
"usingComponents": {
  "calculate": "miniprogram-insure-component/calculate/calculate"
}

// 第三不:使用自定义组件
<calculate
  productFeatureContentHeight="90%"
  closeable
  title="watson"
  ></calculate>

Attribute

参数说明类型默认值版本
mode小程序自定义环境变量,区分development/production,默认development 测试环境Stringdevelopment-
uuid保险师传用户userUuid,中介通传openId,测试使用:153cdcf26b66434e94079bca08666678String-
productId(必传)产品ID,投保申请时有为空校验,测试使用:101972 / 102157String-
meetingUuid(必传)直播间的uuid,投保申请时有为空校验String-
wechatToken(必传)微信token,token + 微信appId 换取 openId,投保申请时有为空校验String-
wechatAppId(必传)微信appid,token + 微信appId 换取 openId,投保申请时有为空校验String-
preorderId(必传),投保申请时有为空校验Number-
appId(必传)邀请人appId,openId + 保险师/中介通appid 换取邀请人的userUuid,投保申请时有为空校验String-
productFeatureShow产品特色-功能是否展示Booleantrue-
productFeatureContentHeight产品特色-浮层高度,productFeatureShow为true是才有效String默认90%,当前支持两种格式:px,百分比;-
productFeatureCloseable产品特色-浮层是否关闭按钮控制Booleanfalse-
showHeader控制头部内容展示的参数,只有当参数开启,closeable和title才有效,默认关闭Booleanfalse-
closeable当前页面-关闭按钮控制(showHeader为true时有效)Booleanfalse-
title当前页面-标题名称(showHeader为true时有效)String-
productFeatureCustom产品特色浮层是否使用组件自带的,true:使用组件自带的; false:使用自定义展示(需监听onFeatureCustom事件),String-

Event

事件名称说明参数
closeInsure点击当前页 X 按钮触发closeable属性为true时有效
applyInsure点击投保申请触发事件会进行当前投保状态的保存(api保存),成功返回: detail: {status: 'ok', currentData: '试算因子集合', total_premium: '预计保费'},失败返回: detail: {status: 'fail', err: '报错对象'}
onFeatureCustom点击产品特色触发productFeatureShow为true是有效
1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago