|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <guide style="z-index: 3" v-if="hasPresent"/>
|
|
|
+ <guide style="z-index: 3" v-if="hasPresent === false"/>
|
|
|
<van-swipe :autoplay="3000" style="margin: 10px 10px;">
|
|
|
<van-swipe-item v-for="(image, index) in images" :key="index">
|
|
|
<img v-lazy="image" style="max-width: 100%"/>
|
|
@@ -91,15 +91,13 @@
|
|
|
console.log(userid);
|
|
|
|
|
|
let presentList = [];
|
|
|
+ let that = this;
|
|
|
BasicFunction.get_data("smartGoods/list?isDel=0&ownerId=" + userid, function (response) {
|
|
|
console.log("------ Data Rcvd in Index --------");
|
|
|
console.log(response);
|
|
|
if (response.ret === "10000") {
|
|
|
let list = response.model.list;
|
|
|
- if (list !== undefined || list.length === 0) {
|
|
|
- console.warn(list);
|
|
|
-
|
|
|
- }
|
|
|
+ if (list.length !== 0) that.hasPresent = true;
|
|
|
list.forEach(gift => {
|
|
|
let temp = {};
|
|
|
temp.id = gift.goodid;
|
|
@@ -113,6 +111,7 @@
|
|
|
temp.desc_long = gift.description;
|
|
|
temp.time = gift.createTime.substring(0, 9);
|
|
|
temp.status = gift.sort;
|
|
|
+ // if(gift.sort && gift.sort !== 4) that.button_active = false;
|
|
|
temp.gender = gift.goodFirstKind;
|
|
|
temp.tags = gift.goodSecondKind;
|
|
|
presentList.push(temp);
|