|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
+ <nav-bar path="index"/>
|
|
|
<div class='card'>
|
|
|
<h3><strong>礼物匹配</strong></h3>
|
|
|
<p>希望对方的性别是</p>
|
|
@@ -65,9 +66,11 @@
|
|
|
} from 'vant';
|
|
|
import {BasicFunction} from "../connector/basic-service";
|
|
|
import AddPhoto from "../components/addPhoto";
|
|
|
+ import NavBar from "../components/navBar";
|
|
|
export default {
|
|
|
name: "PresentRegister",
|
|
|
components: {
|
|
|
+ NavBar,
|
|
|
AddPhoto,
|
|
|
[Uploader.name]: Uploader, [Icon.name]: Icon,
|
|
|
[CellGroup.name]: CellGroup, [Field.name]: Field,
|
|
@@ -133,20 +136,20 @@
|
|
|
console.log(this.photo);
|
|
|
|
|
|
let present = [{
|
|
|
- "goodid": this.presentId,
|
|
|
- "name": this.presentName,
|
|
|
- "goodsNo": "A2", "modelId": "1",
|
|
|
- "ownerId": userId.toString(),
|
|
|
- "goodFirstKind": gender_tags.toString(),
|
|
|
- "goodSecondKind": "2000", "sellPrice": "0.0", "marketPrice": "0.0", "costPrice": "0.0",
|
|
|
- "upTime": getNowFormatDate(), "downTime": getNowFormatDate(), "createTime": getNowFormatDate(),
|
|
|
- "storeNums": "1",
|
|
|
- "img": this.photo.file.name,
|
|
|
- "isDel": "0", "content": "none", "keywords": "none",
|
|
|
- "description": this.desc,
|
|
|
- "searchWords": "", "weight": "0.4", "point": "4", "unit": "10", "brandId": "1",
|
|
|
- "visit": "1", "favorite": "1", "sort": "1", "listImg": "xx.jpg",
|
|
|
- "smallImg": "xx.jpg", "specArray": "{}", "exp": "0"
|
|
|
+ goodid: this.presentId,
|
|
|
+ name: this.presentName,
|
|
|
+ goodsNo: "0", modelId: "0",
|
|
|
+ ownerId: userId.toString(),
|
|
|
+ goodFirstKind: gender_tags.toString(),
|
|
|
+ goodSecondKind: "2000", sellPrice: "0.0", marketPrice: "0.0", costPrice: "0.0",
|
|
|
+ upTime: getNowFormatDate(), downTime: getNowFormatDate(), createTime: getNowFormatDate(),
|
|
|
+ storeNums: "0",
|
|
|
+ img: this.photo.file.name,
|
|
|
+ isDel: "0", content: "none", keywords: "none",
|
|
|
+ description: this.desc,
|
|
|
+ searchWords: "", weight: "0.0", point: "0", unit: "0", brandId: "0",
|
|
|
+ visit: "0", favorite: "0", sort: "0", listImg: "xx.jpg",
|
|
|
+ smallImg: "xx.jpg", specArray: "{}", exp: "0"
|
|
|
}];
|
|
|
console.log(present);
|
|
|
let that = this;
|
|
@@ -167,6 +170,10 @@
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
|
+ if (!localStorage.getItem('frontend-userid')) {
|
|
|
+ this.$router.push('login');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(this.$route.query.present) {
|
|
|
let present = this.$route.query.present;
|
|
|
console.log(present);
|