| Version 2 (modified by pengzhanxuan, 11 years ago) (diff) |
|---|
Table of Contents
实体属性说明
爆料:
topic:{
id: 2395585,
commentNum: 0, //评论数
title: "有钱你就来", //标题
topicType: 2, // 0发现,1优惠,2海淘,3晒物,4经验
image: "http://img0.pcauto.com.cn/12_1.png", //图片
pubDate: "2013-02-03", //时间
good: 20, //值的数量
bad: 1, //不值的数量
price: "只售998,还包邮~" //价格
deprecated: 1 //是否过期
currentPrice : "0.00"; //现在价格
discount : "0.0折"; //打折数
formerPrice : "0.00"; //之前价格
eb: "电商名称",
overdueStatus: 1, // 是否过期
showSource: 1, // 是否显示直达链接
tryToGetWapSource: "http://www.google.com/" // wap直达链接,
hasCoupon: 0, // 是否有优惠券,适用于 优惠,海淘
hdCover: "http://www.google.com/1.png" // 高清图,适用于晒物,经验,试用体验
}
爆料类型
topicType: {
id: 1,
name: '数码家电'
}
发出的评论
sendComment: {
commentId: 37283120,
currentFloor: 2,
formatCreateAt: "2014-10-29 09:40:58",
isSupportPurchasing: 0,
replyRefContent: ""看起来不错哦"",
sentNickName: "qz31244533",
textCommentContent: "怎么还要定金的呢",
topicId: 80671,
topicLogo: "http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1410/28/c0/40244951_1414478236223_150x150.jpg",
topicTitle: "双11预售:佳能 单反相机 1200D/18-55 套机",
topicType: 0,
topicURLForPCWeb: "http://best.pconline.com.cn/faxian_80671.html",
topicUrl: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671",
urlForComment: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671",
userLogo: "http://i1.3conline.com/images/upload/upc/face/28/46/70/67/28467067_100x100",
userface: "http://i1.3conline.com/images/upload/upc/face/31/24/45/33/31244533_100x100",
username: "arthinking"
}
收到的评论
receiveComment: {
$sendComment,
userId: 1, // 评论者ID
username: "Jason", // 评论者名称
userface: "http://img.pc.com.cn/1.png" // 评论者头像
}
栏目
section {
value: 1,
name: '海淘'
}
栏目搜索结果
sectionExtend{
value: 1,
name: '海淘',
count: 12
}
新增属性:
hasCoupon hdCover
推荐位
adPosition:{
adId: 51,
adTitle: "好东西哇",
createTime: "2014-09-25 14:15:55",
imageUrl: "",
imageUrl_170x70: "",
positionIndex: 5,
topic: {
$topic
},
url: "http://g.pconline.com.cn/a/73727.html",
urlType: 1, // 1 爆料 2 网页,
seq:3 // 排序,插入到首页的位置
}
新增属性
seq
礼品
gift: {
id: 1
mallName: '京东', // 电商名称
mallId: 12,
squareImg: "http://img.pconline.com.cn/2.png", // 正方形图片
rectangleImg: "http://img.pconline.com.cn/1.png", // 2:1长方形图片
name: '京东优惠券', // 标题
expiryDate: '2015-02-28 10:10:00',
giftExchangeRule: $giftExchangeRule,
}
优惠券
giftCoupon: {
gift: $gift,
cardNum: '1232',
cardPassword: 's123sdssdfs54212'
}
礼品兑换规则
giftExchangeRule: {
id: 1,
giftId: 2,
needScore: 10,
needGold: 2,
limitTimes: 10
}
代购商家
purchasing: {
id: 1,
linkForApp: "http://www.taobao.com/item_1.html", // 代购地址
userface: "http://img.pconline.com.cn/1.png", // 代购商家头像
description: "超值代购", // 代购商家描述
hasSpotGoods: 1, // 是否有现货:0 现货/1 代购
price: 123, // 价格
username: best12 // 代购商家名称
}
专题
special: {
id:1,
specialName: "双十一精选",
image: "http://img.pconline.com.cn/1.png",
url: "http://g.pconline.com.cn/link/a.html"
}
新增属性
新增实体
广场入口
sunplazaEntry: {
type: 1, // 1 标签爆料列表,2 分类爆料列表,3 电商爆料列表,4 爆料终端页,5 专题页,6 试用详情页,7 外链
tag: {$tag},
topicType: {$topicType},
mall: {},
topic: {$topic},
special: {$special},
url: "http://best.pconline.com.cn/activity.html"
}
新增属性
新增实体
标签
tag: {
id: 1,
name: "精选"
}
分类
topicType: {
id: 1,
name: "数码家电"
}
电商
mall: {
id: 1,
name: "京东",
logo: "http://img.pconline.com.cn/1.png"
}
活动
activity{
id: 1,
title: "亚马逊精选礼品图书满300-100",
cover: "", // 获取80x40尺寸的
}
设置活动
setupActivity{
$activity,
seq: 1
}
用户信息
userInfo: {
id: 12,
status: -1,
gold: 10
point: 20,
purchasingGold:10,
// img 头像从平台获取
logo: "http://img.pc.com.cn/1.png",
}
用户扩展信息
userExtend: {
topicNum: 1,
favNum: 10,
trialNum: 2,
couponNum: 2
}
焦点图
focusImage: {
topicId: 125, // 爆料id
sectionType:1 // 爆料栏目类型: 0发现,1优惠,2海淘,3晒物,4经验
title: "现货直接买!iPhone6 Plus 64G三网通5K1",
image: "http://img.pconline.com.cn/7.jpg",
seq: 1,
isSupportPurchasing: 1, // 是否支持代购 1 支持 0 不支持
}
置顶广告位
adPosition: {
adId: 51,
adTitle: "好东西哇",
createTime: "2014-09-25 14:15:55",
imageUrl: "",
imageUrl_170x70: "",
positionIndex: 5,
topic: {
$topic
}, // urlType 为 1的时候改属性不为空
seq: 1, // 排序,插入到首页的位置
url: "http://best.pconline.com.cn/haitao/73727.html",
urlType: 1 // 1 爆料 2 网页
}
收藏
collect: {
id: 123,
title: "",
time: "",
price": "",
eb": "",(电商名称)
image": "http://xxx",
topicType: 2, // 0发现,1优惠,2海淘,3晒物,4经验
invalid": 0, (1已失效,0未失效)
good: 20, //值的数量
bad": 2, //不值的数量
commentNum: 1, //评论数
createName:"Jason", // 作者
collectCount:1 // 收藏数
}
试用体验相关实体
试用体验
// TODO:
trial: {
id: 1,
name: '铃木口琴',
num: 1, // 试用数量
applyNum: 12, // 申请人数
status: 1, // 活动状态: 1:...
finalTime: '2014-10-10 10:11:10', // 截止时间
price: 100,
score: 10, // 所需积分
gold: 10, // 所需金币
detail: '', // 试用详情
}
体验类型
trialType: {
id: 1,
name: '数码家电'
}
我的试用
myTrial: {
logo: "http://img.pconline.com.cn/1.png",
title: "申请这个"
date: '2015-02-03 10:10::00',
status: 1 // 状态说明,
experiencereport: {
title: 'test',
id: 12,
status: 1 // 未交报告,已交报告,报告通过,需修改
} // 试用报告
}
编辑自设定属性
设定礼品
setupGift: {
$gift,
seq: 1,
type: 1 // 1 首页 2 广场
}
设定专题
setupSpecial: {
$special
}
设定体验
setupTrial: {
$trial,
seq: seq,
type: 1 // 1 首页 2 广场
}
关键词订阅
subscriptionSecond: {
id: 1,
keywordId: 12,
keyword: 'ipad',
mallId: 12,
mallName: '亚马逊'
}
标签
topicTag:{
id:1,
name: '土豪',
isHot: 1, // 是否热点标签
isSpecial:0, // 是否特色标签
type:0 // 类型 0 聚超值 1 母婴
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)