jufubao-base 1.0.169-beta21 → 1.0.169-beta22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.169-beta21",
3
+ "version": "1.0.169-beta22",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -775,6 +775,16 @@ export default {
775
775
  className: "input70",
776
776
  hidden: data.previewCurrent !== "account",
777
777
  },
778
+ {
779
+ label: '密码图标:',
780
+ ele: "el-input",
781
+ valueKey: "passwordIcon",
782
+ value: data.passwordIcon || "",
783
+ groupKey:'style',
784
+ placeholder: "请输入密码图标",
785
+ className: "input70",
786
+ hidden: data.previewCurrent !== "account",
787
+ },
778
788
  {
779
789
  label: "标签字体样式设置:",
780
790
  ele: "xd-font",
@@ -175,6 +175,7 @@
175
175
  class="form-item"
176
176
  :class="[inputStyle]"
177
177
  label="密码"
178
+ :leftIcon="passwordIcon"
178
179
  :labelWidth="labelWidth"
179
180
  content-align="left"
180
181
  >
@@ -398,6 +399,7 @@ export default {
398
399
  },
399
400
  phoneIcon: "", //手机号登录输入框图标
400
401
  codeIcon: "", //验证码登录输入框图标
402
+ passwordIcon: "", //密码登录输入框图标
401
403
  inputStyle: "linear", //输入框样式 linear:线性 face: 面性
402
404
  formBorderColor: "#F9F9F9", //
403
405
  formBorderWidth: 1, //表单边框宽度
@@ -658,6 +660,7 @@ export default {
658
660
  this.authBtnPadding = getContainerPropsValue(value, "content.authBtnPadding", {top: 20, left: 20, right: 20, bottom: 20});
659
661
  this.phoneIcon = getContainerPropsValue(value, "content.phoneIcon", '');
660
662
  this.codeIcon = getContainerPropsValue(value, "content.codeIcon", '');
663
+ this.passwordIcon = getContainerPropsValue(value, "content.passwordIcon", '');
661
664
  this.inputStyle = getContainerPropsValue(value, "content.inputStyle", 'linear');
662
665
  this.formBorderColor = getContainerPropsValue(value, "content.formBorderColor", '#F9F9F9');
663
666
  this.formBorderWidth = getContainerPropsValue(value, "content.formBorderWidth", '1');
@@ -589,6 +589,21 @@
589
589
  let valid_token = this.$xdUniHelper.randomChar(20);
590
590
  this.valid_token = valid_token;
591
591
  },
592
+ p_qrCardBind(result){
593
+ jfbRootExec("qrCardBind", {
594
+ vm: this,
595
+ data: {
596
+ card_qrcode: result,
597
+ is_show_pop: "Y"
598
+ }
599
+ }).then(res => {
600
+ console.log(res);
601
+ this.handlerAfterBindCard(res)
602
+ }).catch(err => {
603
+ console.log(err);
604
+ this.$xdLog.catch(err)
605
+ })
606
+ },
592
607
  doScanCode(){
593
608
  console.log("开始扫码");
594
609
  // #ifdef H5
@@ -596,7 +611,8 @@
596
611
  needResult: 1,
597
612
  scanType: ["qrCode"],
598
613
  success: res => {
599
- this.$set(this.form, 'card_number', res.resultStr)
614
+ // this.$set(this.form, 'card_number', res.resultStr)
615
+ this.p_qrCardBind(res.resultStr)
600
616
  },
601
617
  fail: (error) => {
602
618
  if (typeof error === 'string') error = {error: error}
@@ -608,7 +624,8 @@
608
624
  // #ifdef MP
609
625
  uni.scanCode({
610
626
  success: res => {
611
- this.$set(this.form, 'card_number', res.result)
627
+ // this.$set(this.form, 'card_number', res.result)
628
+ this.p_qrCardBind(res.result)
612
629
  },
613
630
  fail: (error) => {
614
631
  this.$xdLog.setARMSError(error)