|
|
@@ -10,7 +10,7 @@
|
|
|
<template>
|
|
|
<div class="addorder">
|
|
|
<van-cell-group :border="false" class="form">
|
|
|
- <!-- <van-field
|
|
|
+ <van-field
|
|
|
label="卡牌名称"
|
|
|
:value="name"
|
|
|
placeholder="请输入卡牌名称"
|
|
|
@@ -18,8 +18,8 @@
|
|
|
readonly
|
|
|
@click="pickerShow('show')"
|
|
|
>
|
|
|
- </van-field> -->
|
|
|
- <van-field
|
|
|
+ </van-field>
|
|
|
+ <!-- <van-field
|
|
|
label="卡牌名称"
|
|
|
type="digit"
|
|
|
:value="form.name"
|
|
|
@@ -27,7 +27,7 @@
|
|
|
placeholder="请输入卡牌名称"
|
|
|
>
|
|
|
</van-field>
|
|
|
- <van-uploader style="padding-left:20px" :file-list="images" :after-read="afterRead" @delete="deleteImg" />
|
|
|
+ <van-uploader style="padding-left:20px" :file-list="images" :after-read="afterRead" @delete="deleteImg" /> -->
|
|
|
<van-field
|
|
|
label="卡牌售价"
|
|
|
type="digit"
|
|
|
@@ -206,18 +206,19 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
|
- // collectionId: '',
|
|
|
- // seriesId: '',
|
|
|
+ collectionId: '',
|
|
|
+ seriesId: '',
|
|
|
code: 1,
|
|
|
id: '',
|
|
|
- name: '',
|
|
|
+ // name: '',
|
|
|
postage: '',
|
|
|
boxesCount: null,
|
|
|
boxPrice: '',
|
|
|
startTime: '',
|
|
|
description: '',
|
|
|
packagesCount: null,
|
|
|
- caseStatus: 'UNDO',
|
|
|
+ // caseStatus: 'UNDO',
|
|
|
+ caseStatus: 'PROGRESS',
|
|
|
cardCaseId: '',
|
|
|
special: false,
|
|
|
limitOne: false,
|
|
|
@@ -398,8 +399,8 @@ export default {
|
|
|
collectionId: res.collectionId,
|
|
|
caseStatus: res.caseStatus,
|
|
|
packagesCount: res.packagesCount,
|
|
|
- postage: res.postage || 0,
|
|
|
- images: res.images
|
|
|
+ postage: res.postage || 0
|
|
|
+ // images: res.images
|
|
|
// boxesCount: res.boxesCount || null
|
|
|
};
|
|
|
this.images = res.images.split(',').map(item => {
|
|
|
@@ -509,13 +510,20 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
submit() {
|
|
|
- if (!this.form.name) {
|
|
|
+ if (!this.name) {
|
|
|
wx.showToast({
|
|
|
icon: 'none',
|
|
|
- title: '请填写卡牌名称'
|
|
|
+ title: '请选择卡牌名称'
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ // if (!this.form.name) {
|
|
|
+ // wx.showToast({
|
|
|
+ // icon: 'none',
|
|
|
+ // title: '请填写卡牌名称'
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (!this.form.boxPrice) {
|
|
|
wx.showToast({
|
|
|
icon: 'none',
|
|
|
@@ -537,17 +545,17 @@ export default {
|
|
|
// });
|
|
|
// return;
|
|
|
// }
|
|
|
- if (this.imageUrls.length == 0) {
|
|
|
- wx.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: '请添加图片'
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.imageUrls.length == 0) {
|
|
|
+ // wx.showToast({
|
|
|
+ // icon: 'none',
|
|
|
+ // title: '请添加图片'
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
let cardCaseInputDTO = { ...this.form };
|
|
|
- let images = this.imageUrls.join(',');
|
|
|
+ // let images = this.imageUrls.join(',');
|
|
|
// let images = this.imageUrls;
|
|
|
- cardCaseInputDTO.images = images;
|
|
|
+ // cardCaseInputDTO.images = images;
|
|
|
console.log(cardCaseInputDTO);
|
|
|
this.showLoading();
|
|
|
this.$http
|
|
|
@@ -571,8 +579,8 @@ export default {
|
|
|
caseStatus: res.caseStatus,
|
|
|
limitOne: res.limitOne,
|
|
|
packagesCount: res.packagesCount,
|
|
|
- postage: res.postage || 0,
|
|
|
- images: res.images
|
|
|
+ postage: res.postage || 0
|
|
|
+ // images: res.images
|
|
|
// boxesCount: res.boxesCount || null
|
|
|
};
|
|
|
wx.showToast({
|