testdata.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. //商家信息
  2. const storeData = {
  3. //商家唯一标识
  4. store_id: '168',
  5. //商家名称
  6. store_name: '小太阳商店',
  7. //头像
  8. avatar: '//imgs.1op.cn/i/hxshop/avatar/3.png',
  9. //横幅图片
  10. banner: '//imgs.1op.cn/i/hxshop/banner/banner.jpg',
  11. //详情
  12. info: '店内用了本市最好的鲜肉,排骨;配料未本店祖传秘方,吃一次将永不忘。',
  13. //商家住址
  14. address: '新疆阿克苏是他北路2号',
  15. //地标或社区
  16. community: '天府名城',
  17. //配送时间
  18. delivery_time: '11:00~20:30',
  19. //联系电话
  20. telephone: '18299989916',
  21. //商家购物车
  22. shopping_cart: [],
  23. //配送费
  24. shipping_dees: 0,
  25. //配送起步价
  26. starting_price:30
  27. };
  28. //首页门店列表
  29. const storeList = [
  30. {
  31. //商户标识
  32. store_id: '852',
  33. //店名
  34. name: '田东日式料理',
  35. //门头
  36. avatar: '//imgs.1op.cn/i/hxshop/goods/14.jpg',
  37. //小区
  38. community: '秦阳店',
  39. //评分
  40. mark: '4.8',
  41. //月售
  42. monthly_sales: 356,
  43. //门店距离,按米计算
  44. distance: 500,
  45. //起送价
  46. starting_price: 3,
  47. //配送费
  48. shipping_dees: 15,
  49. //商品列表
  50. goods:[{
  51. //id
  52. id: '235',
  53. //商品名称
  54. name: '画画酱酱面',
  55. //主图
  56. main_pic: '//imgs.1op.cn/i/hxshop/goods/10.jpg',
  57. //标签 【招牌,爆款,推荐】等等
  58. tag: '招牌',
  59. //现价
  60. price: 45,
  61. //原价
  62. old_price: 65,
  63. }
  64. ,{id: '236', name: '白色米', main_pic: '//imgs.1op.cn/i/hxshop/goods/6.jpg', tag: '招牌', price: 45, old_price: 65,}
  65. ,{id: '237', name: '小羊肉', main_pic: '//imgs.1op.cn/i/hxshop/goods/2.jpg', tag: '爆款', price: 45, old_price: 65,}
  66. ,{id: '238', name: '烤鸡翅', main_pic: '//imgs.1op.cn/i/hxshop/goods/3.jpg', tag: '爆款', price: 45, old_price: 65,}
  67. ,{id: '239', name: '爆爆鱼', main_pic: '//imgs.1op.cn/i/hxshop/goods/4.jpg', tag: '推荐', price: 45, old_price: 65,}
  68. ,{id: '240', name: '生吃肉票', main_pic: '//imgs.1op.cn/i/hxshop/goods/5.jpg', tag: '推荐', price: 45, old_price: 65,}
  69. ]
  70. }
  71. ,{
  72. store_id: '853',
  73. name: '十里飘香烧烤',
  74. avatar: '//imgs.1op.cn/i/hxshop/goods/2.jpg',
  75. community: '',
  76. mark: '4.8',
  77. monthly_sales: 356,
  78. distance: 500,
  79. starting_price: 3,
  80. shipping_dees: 15,
  81. goods:[
  82. {id: '236', name: '可乐鸡翅buibui爽', main_pic: '//imgs.1op.cn/i/hxshop/goods/7.jpg', tag: '招牌', price: 45, old_price: 65,}
  83. ,{id: '237', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/8.jpg', tag: '爆款', price: 45, old_price: 65,}
  84. ,{id: '238', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/9.jpg', tag: '爆款', price: 45, old_price: 65,}
  85. ,{id: '239', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/10.jpg', tag: '推荐', price: 45, old_price: 65,}
  86. ,{id: '240', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/11.jpg', tag: '推荐', price: 45, old_price: 65,}
  87. ]
  88. }
  89. ,{
  90. store_id: '853',
  91. name: '德克士',
  92. avatar: '//imgs.1op.cn/i/hxshop/goods/3.jpg',
  93. community: '天府名城',
  94. mark: '4.8',
  95. monthly_sales: 356,
  96. distance: 500,
  97. starting_price: 3,
  98. shipping_dees: 15,
  99. goods:[
  100. {id: '236', name: '可乐鸡翅buibui爽', main_pic: '//imgs.1op.cn/i/hxshop/goods/12.jpg', tag: '招牌', price: 45, old_price: 65,}
  101. ,{id: '237', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/13.jpg', tag: '爆款', price: 45, old_price: 65,}
  102. ,{id: '238', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/14.jpg', tag: '爆款', price: 45, old_price: 65,}
  103. ,{id: '239', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/15.jpg', tag: '推荐', price: 45, old_price: 65,}
  104. ,{id: '240', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/16.jpg', tag: '推荐', price: 45, old_price: 65,}
  105. ]
  106. }
  107. ,{
  108. store_id: '854',
  109. name: '五点快餐',
  110. avatar: '//imgs.1op.cn/i/hxshop/goods/4.jpg',
  111. community: '天北花园',
  112. mark: '4.8',
  113. monthly_sales: 356,
  114. distance: 500,
  115. starting_price: 3,
  116. shipping_dees: 15,
  117. goods:[
  118. {id: '236', name: '可乐鸡翅buibui爽', main_pic: '//imgs.1op.cn/i/hxshop/goods/17.jpg', tag: '招牌', price: 45, old_price: 65,}
  119. ,{id: '237', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/1.jpg', tag: '爆款', price: 45, old_price: 65,}
  120. ,{id: '238', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/3.jpg', tag: '爆款', price: 45, old_price: 65,}
  121. ,{id: '239', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/5.jpg', tag: '推荐', price: 45, old_price: 65,}
  122. ,{id: '240', name: '百富汉堡', main_pic: '//imgs.1op.cn/i/hxshop/goods/7.jpg', tag: '推荐', price: 45, old_price: 65,}
  123. ]
  124. }]
  125. //评论数据
  126. const commentData = [{
  127. header_img: "//imgs.1op.cn/i/hxshop/avatar/3.png",
  128. user_name: "测试1",
  129. rate:5,
  130. create_time: "2019.04.12",
  131. content: "好评",
  132. imgs:[
  133. '//imgs.1op.cn/i/hxshop/goods/7.jpg',
  134. '//imgs.1op.cn/i/hxshop/goods/1.jpg',
  135. '//imgs.1op.cn/i/hxshop/goods/9.jpg',
  136. '//imgs.1op.cn/i/hxshop/goods/3.jpg'
  137. ]
  138. },
  139. {
  140. content: "中评",
  141. create_time: "2019.04.12",
  142. header_img: "//imgs.1op.cn/i/hxshop/avatar/2.png",
  143. user_name: "测试2",
  144. rate:4,
  145. // imgs:[]
  146. },
  147. {
  148. content: "",
  149. create_time: "2019.04.12",
  150. header_img: "//imgs.1op.cn/i/hxshop/avatar/2.png",
  151. user_name: "测试3",
  152. rate:2,
  153. // imgs:[]
  154. },{
  155. content: "好评",
  156. create_time: "2019.04.12",
  157. header_img: "//imgs.1op.cn/i/hxshop/avatar/3.png",
  158. user_name: "小蚂蚁",
  159. rate:5,
  160. imgs:[
  161. '//imgs.1op.cn/i/hxshop/goods/9.jpg',
  162. '//imgs.1op.cn/i/hxshop/goods/12.jpg',
  163. '//imgs.1op.cn/i/hxshop/goods/16.jpg',
  164. '//imgs.1op.cn/i/hxshop/goods/7.jpg'
  165. ]
  166. },
  167. {
  168. content: "中评",
  169. create_time: "2019.04.12",
  170. header_img: "//imgs.1op.cn/i/hxshop/avatar/4.png",
  171. user_name: "沙漠骆驼",
  172. rate:3.5,
  173. // imgs:[]
  174. },
  175. {
  176. content: "",
  177. create_time: "2019.04.12",
  178. header_img: "//imgs.1op.cn/i/hxshop/avatar/5.png",
  179. user_name: "莫思",
  180. rate:2.3,
  181. // imgs:[]
  182. }];
  183. //商品数据
  184. const goodsData= [{
  185. id: 1,
  186. type_id:1,
  187. name:'白果王水果沙拉',
  188. descripe:"脆糯营养,口感好,健康绿色",
  189. img:'//imgs.1op.cn/i/hxshop/goods/14.jpg',
  190. price:"",
  191. oldprice:"",
  192. //规格
  193. form: {id:1,name:"尺寸"},
  194. form_child:[
  195. {id:81,pid:1,name:"8寸500g", price:"46", oldprice:"100", select:true},
  196. {id:82,pid:1,name:"10寸600g", price:"97", oldprice:"100",select:false},
  197. {id:83,pid:1,name:"12寸800g", price:"135", oldprice:"100",select:false},
  198. {id:84,pid:1,name:"四川麻辣", price:"12", oldprice:"100",select:false},
  199. {id:85,pid:1,name:"香辣", price:"20", oldprice:"100",select:false},
  200. {id:86,pid:1,name:"卤香", price:"90", oldprice:"100",select:false},
  201. {id:87,pid:1,name:"鲜甜广味", price:"80", oldprice:"100",select:false},
  202. {id:88,pid:1,name:"镇店茴香味", price:"100", oldprice:"100",select:false}
  203. ]
  204. },
  205. {
  206. id: 2,
  207. type_id:2,
  208. name:'精品烤山药',
  209. descripe:"脆糯营养,口感好,健康绿色",
  210. img: '//imgs.1op.cn/i/hxshop/goods/12.jpg',
  211. price:"",
  212. oldprice:"",
  213. //规格
  214. form: {id:1,name:"尺寸"},
  215. form_child:[
  216. {id:81,pid:1,name:"8寸500g", price:"78", oldprice:"100", select:true},
  217. {id:82,pid:1,name:"10寸600g", price:"97", oldprice:"100",select:false},
  218. {id:83,pid:1,name:"12寸800g", price:"135", oldprice:"100",select:false},
  219. {id:84,pid:1,name:"四川麻辣", price:"12", oldprice:"100",select:false},
  220. {id:85,pid:1,name:"香辣", price:"20", oldprice:"100",select:false},
  221. {id:86,pid:1,name:"卤香", price:"90", oldprice:"100",select:false},
  222. {id:87,pid:1,name:"鲜甜广味", price:"80", oldprice:"100",select:false},
  223. {id:88,pid:1,name:"镇店茴香味", price:"100", oldprice:"100",select:false}
  224. ]
  225. },
  226. {
  227. id: 3,
  228. type_id:2,
  229. name:'川味毛血旺',
  230. descripe:"脆糯营养,口感好,健康绿色",
  231. img: '//imgs.1op.cn/i/hxshop/goods/11.jpg',
  232. price:"4",
  233. oldprice:"",
  234. },
  235. {
  236. id: 4,
  237. type_id:3,
  238. name:'吐鲁番烤全羊',
  239. descripe:"脆糯营养,口感好,健康绿色",
  240. img: '//imgs.1op.cn/i/hxshop/goods/10.jpg',
  241. price:"4",
  242. oldprice:""
  243. },
  244. {
  245. id: 5,
  246. type_id:3,
  247. name:'红烧肉',
  248. descripe:"脆糯营养,口感好,健康绿色",
  249. img: '//imgs.1op.cn/i/hxshop/goods/9.jpg',
  250. price:"4",
  251. oldprice:""
  252. },
  253. {
  254. id: 6,
  255. type_id:4,
  256. name:'新疆特色辣子鸡',
  257. descripe:"脆糯营养,口感好,健康绿色",
  258. img: '//imgs.1op.cn/i/hxshop/goods/8.jpg',
  259. price:"4",
  260. oldprice:""
  261. },
  262. {
  263. id: 106,
  264. type_id:4,
  265. name:'新疆特色羊排',
  266. descripe:"脆糯营养,口感好,健康绿色",
  267. img: '//imgs.1op.cn/i/hxshop/goods/9.jpg',
  268. price:"4",
  269. oldprice:""
  270. },
  271. {
  272. id: 7,
  273. type_id:5,
  274. name:'绝味海鲜拼盘',
  275. descripe:"脆糯营养,口感好,健康绿色",
  276. img: '//imgs.1op.cn/i/hxshop/goods/7.jpg',
  277. price:"4",
  278. oldprice:""
  279. },
  280. {
  281. id: 8,
  282. type_id:5,
  283. name:'金色香糯大粽子',
  284. descripe:"脆糯营养,口感好,健康绿色",
  285. img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',
  286. price:"4",
  287. oldprice:""
  288. },
  289. {
  290. id: 9,
  291. type_id:5,
  292. name:'马梓林香香鸡',
  293. descripe:"脆糯营养,口感好,健康绿色",
  294. img: '//imgs.1op.cn/i/hxshop/goods/5.jpg',
  295. price:"4",
  296. oldprice:""
  297. },
  298. {
  299. id: 10,
  300. type_id:6,
  301. name:'草莓味莫普氏蛋糕',
  302. descripe:"脆糯营养,口感好,健康绿色",
  303. img: '//imgs.1op.cn/i/hxshop/goods/4.jpg',
  304. price:"4",
  305. oldprice:""
  306. },
  307. {
  308. id: 23,
  309. type_id:6,
  310. name:'川味毛血旺',
  311. descripe:"脆糯营养,口感好,健康绿色",
  312. img: '//imgs.1op.cn/i/hxshop/goods/11.jpg',
  313. price:"4",
  314. oldprice:"",
  315. },
  316. {
  317. id: 24,
  318. type_id:6,
  319. name:'吐鲁番烤全羊',
  320. descripe:"脆糯营养,口感好,健康绿色",
  321. img: '//imgs.1op.cn/i/hxshop/goods/10.jpg',
  322. price:"4",
  323. oldprice:""
  324. },
  325. {
  326. id: 25,
  327. type_id:7,
  328. name:'红烧肉',
  329. descripe:"脆糯营养,口感好,健康绿色",
  330. img: '//imgs.1op.cn/i/hxshop/goods/9.jpg',
  331. price:"4",
  332. oldprice:""
  333. },
  334. {
  335. id: 26,
  336. type_id:7,
  337. name:'新疆特色辣子鸡',
  338. descripe:"脆糯营养,口感好,健康绿色",
  339. img: '//imgs.1op.cn/i/hxshop/goods/8.jpg',
  340. price:"4",
  341. oldprice:""
  342. },
  343. {
  344. id: 27,
  345. type_id:7,
  346. name:'绝味海鲜拼盘',
  347. descripe:"脆糯营养,口感好,健康绿色",
  348. img: '//imgs.1op.cn/i/hxshop/goods/7.jpg',
  349. price:"4",
  350. oldprice:""
  351. },
  352. {id: 28,type_id:8,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',price:"4",oldprice:""},
  353. {id: 29,type_id:8,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/5.jpg',price:"4",oldprice:""},
  354. {id: 30,type_id:8,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/4.jpg',price:"4",oldprice:""},
  355. {id: 31,type_id:9,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/16.jpg',price:"4",oldprice:""},
  356. {id: 32,type_id:9,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/17.jpg',price:"4",oldprice:""},
  357. {id: 33,type_id:9,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/15.jpg',price:"4",oldprice:""},
  358. {id: 46,type_id:8,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',price:"4",oldprice:""},
  359. {id: 34,type_id:10,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/14.jpg',price:"4",oldprice:""},
  360. {id: 35,type_id:10,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/13.jpg',price:"4",oldprice:""},
  361. {id: 45,type_id:8,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',price:"4",oldprice:""},
  362. {id: 36,type_id:10,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/12.jpg',price:"4",oldprice:""},
  363. {id: 37,type_id:10,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/11.jpg',price:"4",oldprice:""},
  364. {id: 38,type_id:11,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/10.jpg',price:"4",oldprice:""},
  365. {id: 44,type_id:8,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',price:"4",oldprice:""},
  366. {id: 39,type_id:12,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/9.jpg',price:"4",oldprice:""},
  367. {id: 40,type_id:12,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/8.jpg',price:"4",oldprice:""},
  368. {id: 13,type_id:13,name:'金色香糯大粽子',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/6.jpg',price:"4",oldprice:""},
  369. {id: 41,type_id:12,name:'马梓林香香鸡',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/7.jpg',price:"4",oldprice:""},
  370. {id: 42,type_id:13,name:'草莓味莫普氏蛋糕',descripe:"脆糯营养,口感好,健康绿色",img: '//imgs.1op.cn/i/hxshop/goods/1.jpg',price:"4",oldprice:""}
  371. ];
  372. //商品种类数据
  373. const categoryData = [
  374. {id: 1,name: '烧烤'},
  375. {id: 2,name: '生鲜'},
  376. {id: 3,name: '绿蔬'},
  377. {id: 4,name: '肉类'},
  378. {id: 5,name: '川味'},
  379. {id: 6,name: '粤菜'},
  380. {id: 7,name: '湘菜'},
  381. {id: 8,name: '西餐'},
  382. {id: 9,name: '饮料'},
  383. {id: 10,name: '糕点'},
  384. {id: 11,name: '凉菜'},
  385. {id: 12,name: '火锅'},
  386. {id: 13,name: '干锅'}
  387. ];
  388. //商品详细
  389. const goodsInfo = {
  390. //商品id
  391. id: 18,
  392. //商品类id
  393. type_id:1,
  394. //商品名称
  395. name:'新疆特色辣子鸡排饭',
  396. //商品描述-就是掌柜描述,
  397. descripe:"口味可以自己选,有香辣、蒜香、葱香、孜然、老麻口味",
  398. //主图
  399. img:'//imgs.1op.cn/i/hxshop/goods/7.jpg',
  400. //滚动图片
  401. banner_img:['//imgs.1op.cn/i/hxshop/goods/14.jpg','//imgs.1op.cn/i/hxshop/goods/7.jpg','//imgs.1op.cn/i/hxshop/goods/12.jpg'],
  402. //现价
  403. price:"23",
  404. //原价
  405. oldprice:"44",
  406. //月销售
  407. monthly_sales: "566",
  408. //商品标签
  409. goods_tag:['约800克','香辣','特色菜','营养美食'],
  410. //规格
  411. form: {id:1,name:"尺寸"},
  412. form_child:[
  413. {id:81,pid:1,name:"8寸500g", price:"46", oldprice:"100", select:true},
  414. {id:82,pid:1,name:"10寸600g", price:"97", oldprice:"100",select:false},
  415. {id:83,pid:1,name:"12寸800g", price:"135", oldprice:"100",select:false},
  416. {id:84,pid:1,name:"四川麻辣", price:"12", oldprice:"100",select:false},
  417. {id:85,pid:1,name:"香辣", price:"20", oldprice:"100",select:false},
  418. {id:86,pid:1,name:"卤香", price:"90", oldprice:"100",select:false},
  419. {id:87,pid:1,name:"鲜甜广味", price:"80", oldprice:"100",select:false},
  420. {id:88,pid:1,name:"镇店茴香味", price:"100", oldprice:"100",select:false}
  421. ],
  422. //详情
  423. detail:[
  424. {
  425. tit:'掌柜描述',
  426. txt:'口味可以自己选,有香辣、蒜香、葱香、孜然、老麻口味',
  427. },{
  428. tit:'主料',
  429. txt:'鸡胸排,大葱',
  430. },{
  431. tit:'菜系',
  432. txt:'新疆特色菜',
  433. },{
  434. tit:'口味',
  435. txt:'香辣',
  436. }
  437. //......更多
  438. ],
  439. //图文
  440. desc: `
  441. <view style="width:100%">
  442. <image style="width:100%;display:block;" src="//imgs.1op.cn/i/hxshop/goods/14.jpg" />
  443. <image style="width:100%;display:block;" src="//imgs.1op.cn/i/hxshop/goods/7.jpg" />
  444. <image style="width:100%;display:block;" src="//imgs.1op.cn/i/hxshop/goods/6.jpg" />
  445. <image style="width:100%;display:block;" src="//imgs.1op.cn/i/hxshop/goods/3.jpg" />
  446. <image style="width:100%;display:block;" src="//imgs.1op.cn/i/hxshop/goods/1.jpg" />
  447. </view>
  448. `,
  449. };
  450. //商品评价
  451. const goodsEva = {
  452. //总评价数
  453. sum: '386',
  454. //好评
  455. praise: '306',
  456. //差评
  457. bad_review: '80',
  458. //评价标签
  459. eva_tag: {
  460. //有图
  461. 'exist_pic': '62',
  462. //赞
  463. 'appreciate': '96',
  464. //踩
  465. 'oppose': '16',
  466. //其他标签
  467. 'other': ['92%人口味满意','300人希望再次购买']
  468. },
  469. eva_list: [
  470. {
  471. //用户名
  472. name: '白色的太阳',
  473. //头像
  474. avatar: '//imgs.1op.cn/i/hxshop/avatar/4.png',
  475. //评论时间
  476. time: '2020.03.12',
  477. //点赞或踩商品,没有投票【0】、赞【1】、踩【2】
  478. point: 1,
  479. //评价内容
  480. content: "味道好极了,家里人超爱吃,希望下次能多放点辣椒,我们家吃辣",
  481. //上传的图片
  482. pic: ['//imgs.1op.cn/i/hxshop/goods/12.jpg','//imgs.1op.cn/i/hxshop/goods/13.jpg','//imgs.1op.cn/i/hxshop/goods/15.jpg']
  483. },
  484. {
  485. //用户名
  486. name: '匿名用户',
  487. //头像
  488. avatar: '//imgs.1op.cn/i/hxshop/avatar/2.png',
  489. //评论时间
  490. time: '2020.03.16',
  491. //点赞或踩商品,没有投票【0】、赞【1】、踩【2】
  492. point: 2,
  493. //评价内容
  494. content: "",
  495. //上传的图片
  496. pic: []
  497. },
  498. {
  499. //用户名
  500. name: '匿名用户',
  501. //头像
  502. avatar: '//imgs.1op.cn/i/hxshop/avatar/6.png',
  503. //评论时间
  504. time: '2020.03.16',
  505. //点赞或踩商品,没有投票【0】、赞【1】、踩【2】
  506. point: 0,
  507. //评价内容
  508. content: "一般般",
  509. //上传的图片
  510. pic: []
  511. },
  512. ]
  513. }
  514. // 订单
  515. const ordersData = [
  516. {
  517. id: 'MS2020041101',
  518. store_id: 168,
  519. tag:'../../static/img/index/yd.png',
  520. store_name: '肯德基',
  521. community: '阿克苏友好店',
  522. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/2.png',
  523. create_time: '2020-4-11 19:51',
  524. total: 122.45,
  525. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  526. status: 3,
  527. },
  528. {
  529. id: 'MS2020041102',
  530. store_id: 186,
  531. tag:'../../static/img/index/sc.png',
  532. store_name: '美食大龙虾*烧烤虾尾',
  533. goods_name: '小龙虾+鸡翅+可乐+田螺',
  534. community: '',
  535. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/5.png',
  536. create_time: '2020-4-11 19:51',
  537. total: 122.45,
  538. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  539. status: 2,
  540. },
  541. {
  542. id: 'MS2020041103',
  543. store_id: 183,
  544. tag:'../../static/img/index/sg.png',
  545. store_name: '辣椒小海鲜',
  546. community: '',
  547. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/9.png',
  548. create_time: '2020-4-11 19:51',
  549. total: 122.45,
  550. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  551. status: 1,
  552. },
  553. {
  554. id: 'MS2020041104',
  555. store_id: 182,
  556. tag:'../../static/img/index/cs.png',
  557. store_name: '特色冒菜-四川爆啦',
  558. community: '特卖店',
  559. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/9.png',
  560. create_time: '2020-4-11 19:51',
  561. total: 122.45,
  562. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  563. status: 4,
  564. },
  565. {
  566. id: 'MS2020041105',
  567. store_id: 181,
  568. tag:'../../static/img/index/yd.png',
  569. store_name: '绝味黑鸭脖',
  570. community: '',
  571. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/9.png',
  572. create_time: '2020-4-11 19:51',
  573. total: 122.45,
  574. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  575. status: 5,
  576. },
  577. {
  578. id: 'MS2020041106',
  579. store_id: 180,
  580. tag:'../../static/img/index/yd.png',
  581. store_name: '天天来食府',
  582. community: '',
  583. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/9.png',
  584. create_time: '2020-4-11 19:51',
  585. total: 122.45,
  586. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  587. status: 6,
  588. },
  589. {
  590. id: 'MS2020041107',
  591. store_id: 170,
  592. tag:'../../static/img/index/yd.png',
  593. store_name: '肯德基',
  594. community: '兴隆店',
  595. avatar: 'https://imgs.1op.cn/i/hxshop/avatar/10.png',
  596. create_time: '2020-4-11 19:51',
  597. total: 122.45,
  598. //订单状态 [1已取消,2待支付,3待收货,4待评价,5完成,6退款中,7退款完成]
  599. status: 7,
  600. }
  601. ]
  602. export default {
  603. storeData,
  604. storeList,
  605. commentData,
  606. goodsData,
  607. categoryData,
  608. goodsInfo,
  609. goodsEva,
  610. ordersData
  611. }