|
|
@@ -33,14 +33,14 @@
|
|
|
readonly
|
|
|
>
|
|
|
</van-field>
|
|
|
- <van-field
|
|
|
+ <!-- <van-field
|
|
|
label="拼箱人数"
|
|
|
type="number"
|
|
|
:value="form.boxesCount"
|
|
|
@input="form.boxesCount = $event.detail"
|
|
|
placeholder="请输入参加人数"
|
|
|
>
|
|
|
- </van-field>
|
|
|
+ </van-field> -->
|
|
|
<van-field
|
|
|
label="邮费"
|
|
|
:value="form.postage"
|
|
|
@@ -50,8 +50,8 @@
|
|
|
</van-field>
|
|
|
</van-cell-group>
|
|
|
<div class="box-con">
|
|
|
- <div class="label">卡牌细节图</div>
|
|
|
- <van-uploader :file-list="images" :after-read="afterRead" @delete="deleteImg" />
|
|
|
+ <!-- <div class="label">卡牌细节图</div>
|
|
|
+ <van-uploader :file-list="images" :after-read="afterRead" @delete="deleteImg" /> -->
|
|
|
<div v-if="!showId">
|
|
|
<div class="box-top">
|
|
|
<div class="top">
|
|
|
@@ -65,7 +65,7 @@
|
|
|
</div>
|
|
|
</van-sticky>
|
|
|
</div>
|
|
|
- <div class="box" v-if="switchs">
|
|
|
+ <!-- <div class="box" v-if="switchs">
|
|
|
<div class="top">
|
|
|
<div class="right">
|
|
|
<div class="tool-item">
|
|
|
@@ -86,7 +86,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
<div class="box" v-if="showId">
|
|
|
<div class="top2">
|
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
code: 1,
|
|
|
id: '',
|
|
|
postage: '',
|
|
|
- boxesCount: '',
|
|
|
+ // boxesCount: null,
|
|
|
boxPrice: '',
|
|
|
startTime: '',
|
|
|
description: '',
|
|
|
@@ -183,18 +183,18 @@ export default {
|
|
|
newShow: false,
|
|
|
showId: false,
|
|
|
id: 0,
|
|
|
- images: [],
|
|
|
+ // images: [],
|
|
|
cardList: [],
|
|
|
- imagesList: [],
|
|
|
- imageUrls: [],
|
|
|
+ // imagesList: [],
|
|
|
+ // imageUrls: [],
|
|
|
nowChooseId: [],
|
|
|
sotrId: [],
|
|
|
list: [],
|
|
|
actions: [],
|
|
|
time: 0,
|
|
|
typeOptions: [
|
|
|
- { id: 0, name: '组队模板(24组6包)', group: 24, groupCount: 6, special: false },
|
|
|
- { id: 1, name: '端盒模板(AB组)', group: 2, groupCount: 24, special: true },
|
|
|
+ { id: 0, name: '组队模板(24队每队6人)', group: 24, groupCount: 6, special: false },
|
|
|
+ { id: 1, name: '端盒模板(AB组24对)', group: 2, groupCount: 24, special: true },
|
|
|
{ id: 2, name: '组队模板(单组24包)', group: 1, groupCount: 24, special: false },
|
|
|
{ id: 3, name: '组队模板(单组20包)', group: 1, groupCount: 20, special: false }
|
|
|
],
|
|
|
@@ -316,18 +316,18 @@ export default {
|
|
|
description: res.description,
|
|
|
id: res.id,
|
|
|
collectionId: res.collectionId,
|
|
|
- images: res.images,
|
|
|
+ // images: res.images,
|
|
|
caseStatus: res.caseStatus,
|
|
|
packagesCount: res.packagesCount,
|
|
|
- boxesCount: res.boxesCount || 0,
|
|
|
+ // boxesCount: res.boxesCount || null,
|
|
|
postage: res.postage || 0
|
|
|
};
|
|
|
- this.images = res.images.split(',').map(item => {
|
|
|
- return {
|
|
|
- url: item
|
|
|
- };
|
|
|
- });
|
|
|
- this.imageUrls = res.images.split(',');
|
|
|
+ // this.images = res.images.split(',').map(item => {
|
|
|
+ // return {
|
|
|
+ // url: item
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // this.imageUrls = res.images.split(',');
|
|
|
});
|
|
|
},
|
|
|
select(e) {
|
|
|
@@ -383,6 +383,7 @@ export default {
|
|
|
.then(res => {
|
|
|
console.log(res);
|
|
|
this.hideLoading();
|
|
|
+ this.form.special = params.special;
|
|
|
this.form.groupDTOS = res;
|
|
|
console.log(this.form.groupDTOS);
|
|
|
})
|
|
|
@@ -394,37 +395,37 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- afterRead(file) {
|
|
|
- this.showLoading();
|
|
|
- this.$http
|
|
|
- .uploadFile(file.path)
|
|
|
- .then(res => {
|
|
|
- if (this.images.length > 2) {
|
|
|
- this.toast('最多上传三张图片');
|
|
|
- return;
|
|
|
- }
|
|
|
- this.hideLoading();
|
|
|
- this.imagesList.push({ ...file, url: res });
|
|
|
- this.images = [...this.imagesList];
|
|
|
- this.imageUrls.push(res);
|
|
|
- // console.log(this.images);
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- this.hideLoading();
|
|
|
- wx.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: e.error
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- deleteImg(e) {
|
|
|
- let list = [...this.images];
|
|
|
- list.splice(e.detail.index, 1);
|
|
|
- this.images = list;
|
|
|
- this.imageUrls = list.map(item => {
|
|
|
- return item.url;
|
|
|
- });
|
|
|
- },
|
|
|
+ // afterRead(file) {
|
|
|
+ // this.showLoading();
|
|
|
+ // this.$http
|
|
|
+ // .uploadFile(file.path)
|
|
|
+ // .then(res => {
|
|
|
+ // if (this.images.length > 2) {
|
|
|
+ // this.toast('最多上传三张图片');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // this.hideLoading();
|
|
|
+ // this.imagesList.push({ ...file, url: res });
|
|
|
+ // this.images = [...this.imagesList];
|
|
|
+ // this.imageUrls.push(res);
|
|
|
+ // // console.log(this.images);
|
|
|
+ // })
|
|
|
+ // .catch(e => {
|
|
|
+ // this.hideLoading();
|
|
|
+ // wx.showToast({
|
|
|
+ // icon: 'none',
|
|
|
+ // title: e.error
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // deleteImg(e) {
|
|
|
+ // let list = [...this.images];
|
|
|
+ // list.splice(e.detail.index, 1);
|
|
|
+ // this.images = list;
|
|
|
+ // this.imageUrls = list.map(item => {
|
|
|
+ // return item.url;
|
|
|
+ // });
|
|
|
+ // },
|
|
|
submit() {
|
|
|
if (!this.name) {
|
|
|
wx.showToast({
|
|
|
@@ -447,23 +448,23 @@ export default {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.form.boxesCount) {
|
|
|
- wx.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: '请选拼箱人数'
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.imageUrls.length == 0) {
|
|
|
- wx.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: '请添加图片'
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (!this.form.boxesCount) {
|
|
|
+ // 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(',');
|
|
|
- cardCaseInputDTO.images = images;
|
|
|
+ // let images = this.imageUrls.join(',');
|
|
|
+ // cardCaseInputDTO.images = images;
|
|
|
this.showLoading();
|
|
|
this.$http
|
|
|
.post('/cardCase/save', cardCaseInputDTO, {
|
|
|
@@ -482,10 +483,10 @@ export default {
|
|
|
description: res.description,
|
|
|
id: res.id,
|
|
|
collectionId: res.collectionId,
|
|
|
- images: res.images,
|
|
|
+ // images: res.images,
|
|
|
caseStatus: res.caseStatus,
|
|
|
packagesCount: res.packagesCount,
|
|
|
- boxesCount: res.boxesCount || 0,
|
|
|
+ // boxesCount: res.boxesCount || null,
|
|
|
postage: res.postage || 0
|
|
|
};
|
|
|
wx.showToast({
|
|
|
@@ -547,7 +548,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
font-weight: bold;
|
|
|
color: #000000;
|
|
|
- margin-left: -3px;
|
|
|
+ margin: 35px 0 0 -3px;
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
.box-top {
|