jufubao-base 1.0.10 → 1.0.12

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.10",
3
+ "version": "1.0.12",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -11,8 +11,6 @@
11
11
  background-image: url(@url);
12
12
  }
13
13
 
14
- .getBusinessImageUrl('base_qr.png');
15
-
16
14
  //start
17
15
  .jfb-base-block {
18
16
  border: 1px dashed rgba(0, 0, 0, 0);
@@ -166,6 +166,7 @@
166
166
  import XdButton from "@/components/XdButton/XdButton";
167
167
  import {jfbRootExec} from "@/utils/xd.event";
168
168
  import JfbBaseCardMixin from "./JfbBaseCardMixin";
169
+ import {mapState,mapActions} from 'vuex'
169
170
 
170
171
  export default {
171
172
  name: "JfbBaseCard",
@@ -176,6 +177,11 @@
176
177
  mixins: [
177
178
  JfbBaseCardMixin
178
179
  ],
180
+ computed: {
181
+ ...mapState({
182
+ jwxSDK: state=>state.jwxSDK
183
+ })
184
+ },
179
185
  data() {
180
186
  return {
181
187
  cutIndex: 1,
@@ -203,7 +209,17 @@
203
209
  * @description 扫码绑定
204
210
  */
205
211
  handleScan() {
206
-
212
+ jfbRootExec('getH5WxAuthorize', {
213
+ vm: this,
214
+ data: {}
215
+ }).then(res => {
216
+ console.log(res, '0000000')
217
+ })
218
+ console.log(this.jwxSDK,'this.jwxSDK')
219
+ if (this.jwxSDK !== null) {
220
+ console.log(this.jwxSDK,'this.jwxSDK')
221
+ //todo
222
+ }
207
223
  },
208
224
  /**
209
225
  * @description 已绑定卡登录
@@ -261,6 +277,7 @@
261
277
  }, false);
262
278
  },
263
279
  onJfbLoad(options) {
280
+ console.log(this.jwxSDK,'000000')
264
281
  this.$nextTick(() => {
265
282
  let {inCallback, isBack} = this.$xdUniHelper.parseURL()['params'];
266
283
  if (inCallback) this.inCallback = decodeURIComponent(inCallback);
@@ -33,4 +33,15 @@ module.exports = [
33
33
  },
34
34
  disabled: true,
35
35
  },
36
+ {
37
+ mapFnName: 'getCardYue', //自定义方法名字(必选)
38
+ isRule: false,
39
+ title: '获得绑定的卡剩余点数',
40
+ prefix: 'yue',
41
+ path: '/card/v1/card-bind/get-bind-card-points',
42
+ params: {
43
+ card_number: ['卡号', 'String', '必选'],
44
+ },
45
+ disabled: true,
46
+ },
36
47
  ];
@@ -13,7 +13,7 @@
13
13
  <view class="jfb-base-card-shift__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-card-shift__body" style="position: relative;">
16
+ <view class="jfb-base-card-shift__body" style="position: relative;" v-if=" info!==null">
17
17
  <view>
18
18
  <view class="jfb-base-card-shift__body-info" v-for="(item,index) in valueKey" :key="index">
19
19
  <view class="jfb-base-card-shift__body-info-label">{{item.label}}</view>
@@ -73,18 +73,7 @@
73
73
  ],
74
74
  data() {
75
75
  return {
76
- info: {
77
- card_point: 0,
78
- card_type_name: "",
79
- end_time: "2024-02-23 23:59:59",
80
- card_status: "Y",
81
- card_status_name: "开启",
82
- unit: "点",
83
- main_product_name: "",
84
- other_card_point: 0,
85
- is_exchange: "N",
86
- is_exchange_name: "不可转换"
87
- },
76
+ info: null,
88
77
  valueKey: [
89
78
  {
90
79
  label: '票券名称',
@@ -100,11 +89,11 @@
100
89
  },
101
90
  {
102
91
  label: '票券转换',
103
- key: 'is_exchange_name'
92
+ key: 'exchange_card_type_name'
104
93
  },
105
94
  {
106
95
  label: '转换剩余',
107
- key: 'other_card_point'
96
+ key: 'exchange_card_point'
108
97
  },
109
98
  ],
110
99
  card_number: '',
@@ -130,7 +119,7 @@
130
119
  {
131
120
  vm: this,
132
121
  data: {
133
- card_number: this.card_number,
122
+ card_number: '171004000000012',
134
123
  }
135
124
  }).then((res)=>{
136
125
  this.success=true
@@ -144,13 +133,14 @@
144
133
  },
145
134
  onJfbLoad(options) {
146
135
  console.log(this.layoutInfo, options, 8888)
147
- this.card_number = options.card_number || '101001000005479'
136
+ this.card_number = options.card_number || '171004000000012'
148
137
  jfbRootExec('getByIdCardDetail', {
149
138
  vm: this,
150
139
  data: {
151
140
  card_number: this.card_number
152
141
  }
153
142
  }).then(res => {
143
+ console.log(res,'00000000')
154
144
  this.info = res
155
145
  }).catch(err => {})
156
146
  },