jufubao-base 1.0.302-beta7 → 1.0.302-beta9

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.302-beta7",
3
+ "version": "1.0.302-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -115,7 +115,11 @@
115
115
  </view>
116
116
  </view>
117
117
  <view class="fixe_bottom" :style="prod_bottom">
118
- <XdButton @click="handleToSecondStep" size="small" type="primary"
118
+ <XdButton
119
+ width="700rpx"
120
+ @click="handleToSecondStep"
121
+ size="small"
122
+ type="primary"
119
123
  >下一步</XdButton
120
124
  >
121
125
  </view>
@@ -165,13 +169,18 @@
165
169
  </view>
166
170
  <view class="fixe_bottom" :style="prod_bottom">
167
171
  <XdButton
172
+ style="width: 300rpx"
168
173
  :cusStyle="[btnStyle]"
169
174
  @click="handleBack"
170
175
  size="small"
171
176
  type="default"
172
177
  >返回修改</XdButton
173
178
  >
174
- <XdButton @click="handleConfirm" size="small" type="primary"
179
+ <XdButton
180
+ style="width: 300rpx"
181
+ @click="handleConfirm"
182
+ size="small"
183
+ type="primary"
175
184
  >确认提交</XdButton
176
185
  >
177
186
  </view>
@@ -288,7 +297,6 @@ export default {
288
297
  "content.detailPath",
289
298
  { value: "" }
290
299
  ).value;
291
- debugger
292
300
  },
293
301
  radioChange: function (evt) {
294
302
  for (let i = 0; i < this.invoice_header_type_list.length; i++) {
@@ -330,13 +338,26 @@ export default {
330
338
  return;
331
339
  }
332
340
  }
333
- if (!this.email) {
334
- this.$xdAlert({ content: "请填写接收邮箱" });
335
- return;
336
- }
337
341
  if (!this.phone_number) {
338
342
  this.$xdAlert({ content: "请填写联系电话" });
339
343
  return;
344
+ } else {
345
+ const reg = /^1[3456789]\d{9}$/;
346
+ if (!reg.test(this.phone_number)) {
347
+ this.$xdAlert({ content: "请填写正确的手机号" });
348
+ return;
349
+ }
350
+ }
351
+ if (!this.email) {
352
+ this.$xdAlert({ content: "请填写接收邮箱" });
353
+ return;
354
+ } else {
355
+ const reg =
356
+ /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/;
357
+ if (!reg.test(this.email)) {
358
+ this.$xdAlert({ content: "请填写正确的邮箱" });
359
+ return;
360
+ }
340
361
  }
341
362
  this.firstStep = false;
342
363
  },
@@ -431,7 +452,7 @@ export default {
431
452
  }
432
453
  input {
433
454
  font-size: 26rpx;
434
- text-align: end;
455
+ text-align: right;
435
456
  }
436
457
  }
437
458
  .required {
@@ -461,7 +482,7 @@ export default {
461
482
  padding: 0 unit(15, rpx);
462
483
  }
463
484
  }
464
- &-step2-content {
485
+ &-step2-content {
465
486
  padding: 24rpx;
466
487
  border-radius: 16rpx;
467
488
  &-item {
@@ -113,7 +113,7 @@
113
113
  <image @click="handlePreview(index, item)" :src="item"></image>
114
114
  </view>
115
115
  </view>
116
- <view :style="{height: layoutInfo.bottom + 'rpx'}"></view>
116
+ <view :style="{ height: layoutInfo.bottom + 'rpx' }"></view>
117
117
  <view v-if="info.status === 'Y'" class="fixe_bottom" :style="prod_bottom">
118
118
  <view :style="[bottomBtnWrapStyle]">
119
119
  <XdButton
@@ -168,7 +168,7 @@ export default {
168
168
  components: {
169
169
  XdFontIcon,
170
170
  XdDailog,
171
- XdUnit
171
+ XdUnit,
172
172
  },
173
173
  mixins: [componentsMixins, extsMixins, JfbBaseInvoiceDetailMixin],
174
174
  data() {
@@ -249,12 +249,17 @@ export default {
249
249
  ).fullTime;
250
250
  }
251
251
  if (res.invoice_result.file_info) {
252
- res.invoice_result.file_info = JSON.parse(res.invoice_result.file_info)
253
- this.images= res.invoice_result.file_info.map(item=>{
254
- return getServiceUrl(item.path,'size3')
255
- })
252
+ res.invoice_result.file_info = JSON.parse(
253
+ res.invoice_result.file_info
254
+ );
255
+ this.images = res.invoice_result.file_info.map((item) => {
256
+ return getServiceUrl(item.path, "size3");
257
+ });
256
258
  }
257
259
  this.info = res.invoice_result;
260
+ if (this.info.status_name === "待开票") {
261
+ this.info.status_name = "开票中";
262
+ }
258
263
  })
259
264
  .catch();
260
265
  },
@@ -304,6 +309,7 @@ export default {
304
309
  }).then((res) => {
305
310
  this.showDialog = false;
306
311
  this.email = "";
312
+ this.$xdAlert({ content: "发送成功" });
307
313
  });
308
314
  },
309
315
  handleSend() {
@@ -310,7 +310,7 @@ export default {
310
310
  multiple: false,
311
311
  className: 'input80',
312
312
  list: [
313
- { label: '展示', value: 'Y' },
313
+ { label: '显示', value: 'Y' },
314
314
  { label: '隐藏', value: 'N' },
315
315
  ]
316
316
  },
@@ -896,7 +896,7 @@
896
896
  </view>
897
897
  <view v-else-if="item.action === 'invoice'">
898
898
  <xd-button
899
- v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='P'"
899
+ v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='N'"
900
900
  size="small"
901
901
  :type="item.type !== undefined ? item.type: 'primary'"
902
902
  :radius="bottomBtnRadius + 'rpx'"
@@ -909,7 +909,7 @@
909
909
  </view>
910
910
  <view v-else-if="item.action === 'viewInvoice'">
911
911
  <xd-button
912
- v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus==='Y'"
912
+ v-if="isShowInvoice && is_show_invoice==='Y'&&invoiceStatus!=='N'"
913
913
  size="small"
914
914
  :type="item.type !== undefined ? item.type: 'primary'"
915
915
  :radius="bottomBtnRadius + 'rpx'"