用户协议及隐私政策的弹窗,通用版本,两种按钮排版,左右结构和上下结构两种
import '../../components/lanyun-agreement.stml'
<lanyun-agreement @lanYunAgreement="clickAgreementBtn" type="style1" title="" appName="" okBtnColor="" okBtnText="" >
| 参数 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| type | 按钮风格,必填 style1 按钮上下排版 style2 按钮左右排版 | string | style1 | 
| title | 弹窗标题,选填 | string | "用户协议及隐私政策" | 
| okBtnColor | 同意按钮背景颜色,选填 | string | #FF7900 | 
| okBtnText | 同意按钮的文字,选填 | string | "同意并继续" | 
| noBtnText | 不同意按钮的文字,选填 | string | "不同意" | 
| appName | APP的名称,选填 往文字说明里放 | string | 空值 | 
clickAgreementBtn(e){ console.log(JSON.stringify(e.detail.index)); 返回点击按钮的索引 0 是同意 1 不同意 2 点击用户协议 3 点隐私政策 }
