index.wxml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. <!-- components/diy-group/index.wxml -->
  2. <block wx:if="{{column == 'template1'}}">
  3. <view class="goods" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  4. <block wx:for="{{list}}" wx:key="index">
  5. <view
  6. class="one_box"
  7. style="width: {{style.groupWidth}}%;background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  8. data-id="{{item.objectId}}"
  9. bind:tap="toUrl"
  10. >
  11. <image
  12. class="image"
  13. src="{{item.goods.image}}"
  14. style="border-radius: {{style.groupBorderRadius * 2}}rpx {{style.groupBorderRadius * 2}}rpx 0 0"
  15. mode="widthFix"
  16. lazy-load="false"
  17. binderror=""
  18. bindload=""
  19. />
  20. <view class="bargain_box" wx:if="{{data.showCountdown}}">
  21. <view class="bargin_font">拼团</view>
  22. <view class="bargin_count">
  23. <block wx:if="{{item.time > 0}}">
  24. <view class="bargin_end">距结束仅剩</view>
  25. <van-count-down
  26. use-slot
  27. time="{{item.time}}"
  28. data-index="{{index}}"
  29. bind:change="onChange"
  30. format="DD 天 HH 时 mm 分 ss 秒"
  31. >
  32. <text class="item">{{ item.timeDate.days }} 天</text>
  33. <text class="item">{{ item.timeDate.hours }} 时</text>
  34. <text class="item">{{ item.timeDate.minutes }} 分</text>
  35. <text class="item">{{ item.timeDate.seconds }} 秒</text>
  36. </van-count-down>
  37. </block>
  38. <block wx:else>
  39. <view class="bargin_end2">已结束</view>
  40. </block>
  41. </view>
  42. </view>
  43. <view class="commodity">
  44. <view class="name_info">
  45. <view class="tag" wx:if="{{data.groupPeople}}">{{item.people}}人团</view>
  46. <view class="commodity_name" style="font-size:{{style.titleSize * 2}}rpx;">
  47. {{item.goods.name}}
  48. </view>
  49. </view>
  50. <view class="commodity_detailed" style="font-size:{{style.descSize * 2}}rpx">
  51. {{item.goods.desc}}
  52. </view>
  53. <view class="commodity_detailed" wx:if="{{data.showTotal}}">
  54. 仅剩{{item.goods.total}}件
  55. </view>
  56. <view class="commodity_number">
  57. <view class="row-left">
  58. <view class="price" wx:if="{{data.showGroupPrice}}">
  59. ¥{{item.price}}
  60. </view>
  61. <view class="original" wx:if="{{data.showPrice}}">
  62. ¥{{item.goods.price}}
  63. </view>
  64. </view>
  65. <van-icon
  66. name="cart-circle-o"
  67. wx:if="{{buybutton == 1}}"
  68. color="red"
  69. size="60rpx"
  70. />
  71. <van-icon
  72. name="add-o"
  73. wx:if="{{buybutton == 2}}"
  74. color="red"
  75. size="60rpx"
  76. />
  77. <view
  78. class="circular3"
  79. wx:if="{{buybutton == 3}}"
  80. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  81. >
  82. {{style.btnText}}
  83. </view>
  84. <view
  85. class="circular3 circular4"
  86. wx:if="{{buybutton == 4}}"
  87. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  88. >
  89. {{style.btnText}}
  90. </view>
  91. <van-icon
  92. name="add"
  93. wx:if="{{buybutton == 5}}"
  94. color="red"
  95. size="60rpx"
  96. />
  97. <van-icon
  98. name="shopping-cart-o"
  99. wx:if="{{buybutton == 6}}"
  100. color="red"
  101. size="60rpx"
  102. />
  103. <view
  104. class="circular7"
  105. wx:if="{{buybutton == 7}}"
  106. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  107. >
  108. {{style.btnText}}
  109. </view>
  110. <view
  111. class="circular7 circular8"
  112. wx:if="{{buybutton == 8}}"
  113. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  114. >
  115. {{style.btnText}}
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </block>
  121. </view>
  122. </block>
  123. <block wx:if="{{column == 'template2'}}">
  124. <view class="two_box" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  125. <block wx:for="{{list}}" wx:key="index">
  126. <view
  127. class="line_box"
  128. style="width: {{style.groupWidth}}%;background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  129. data-id="{{item.objectId}}"
  130. bind:tap="toUrl"
  131. >
  132. <image
  133. class="image"
  134. src="{{item.goods.image}}"
  135. mode="aspectFill"
  136. lazy-load="false"
  137. binderror=""
  138. bindload=""
  139. />
  140. <view class="end_box" wx:if="{{data.showCountdown}}">
  141. <block wx:if="{{item.time > 0}}">
  142. <view class="bargin_end">距结束仅剩</view>
  143. <van-count-down
  144. use-slot
  145. time="{{item.time}}"
  146. data-index="{{index}}"
  147. bind:change="onChange"
  148. format="DD 天 HH 时 mm 分 ss 秒"
  149. >
  150. <text class="item">{{ item.timeDate.days }} 天</text>
  151. <text class="item">{{ item.timeDate.hours }} 时</text>
  152. <text class="item">{{ item.timeDate.minutes }} 分</text>
  153. <text class="item">{{ item.timeDate.seconds }} 秒</text>
  154. </van-count-down>
  155. </block>
  156. <block wx:else>
  157. <view class="bargin_end2">已结束</view>
  158. </block>
  159. </view>
  160. <view class="two_end">
  161. <view class="two_tag" style="font-size:{{style.titleSize * 2}}rpx;">
  162. <span class="people" wx:if="{{data.groupPeople}}">{{item.people}}人团</span>
  163. {{item.goods.name}}
  164. </view>
  165. <view class="commodity_desc" style="font-size:{{style.descSize * 2}}rpx">
  166. {{item.goods.desc || '暂无产品简介'}}
  167. </view>
  168. <view class="end_detailed" wx:if="{{data.showTotal}}">
  169. 仅剩{{item.goods.total}}件
  170. </view>
  171. <view class="end_info">
  172. <view class="end_number">
  173. <view class="money1" wx:if="{{data.showGroupPrice}}">
  174. ¥{{item.price}}
  175. </view>
  176. <view class="money2" wx:if="{{data.showPrice}}">
  177. ¥{{item.goods.price}}
  178. </view>
  179. </view>
  180. <van-icon
  181. name="cart-circle-o"
  182. wx:if="{{buybutton == 1}}"
  183. color="red"
  184. size="48rpx"
  185. />
  186. <van-icon
  187. name="add-o"
  188. wx:if="{{buybutton == 2}}"
  189. color="red"
  190. size="48rpx"
  191. />
  192. <view
  193. class="circular3"
  194. wx:if="{{buybutton == 3}}"
  195. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  196. >
  197. {{style.btnText}}
  198. </view>
  199. <view
  200. class="circular3 circular4"
  201. wx:if="{{buybutton == 4}}"
  202. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  203. >
  204. {{style.btnText}}
  205. </view>
  206. <van-icon
  207. name="add"
  208. wx:if="{{buybutton == 5}}"
  209. color="red"
  210. size="48rpx"
  211. />
  212. <van-icon
  213. name="shopping-cart-o"
  214. wx:if="{{buybutton == 6}}"
  215. color="red"
  216. size="48rpx"
  217. />
  218. <view
  219. class="circular7"
  220. wx:if="{{buybutton == 7}}"
  221. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  222. >
  223. {{style.btnText}}
  224. </view>
  225. <view
  226. class="circular7 circular8"
  227. wx:if="{{buybutton == 8}}"
  228. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  229. >
  230. {{style.btnText}}
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. </block>
  236. </view>
  237. </block>
  238. <block wx:if="{{column == 'template3'}}">
  239. <view class="three_box" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  240. <block wx:for="{{list}}" wx:key="index">
  241. <view
  242. class="three"
  243. style="width: {{style.groupWidth}}%;background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  244. data-id="{{item.objectId}}"
  245. bind:tap="toUrl"
  246. >
  247. <image
  248. class="image"
  249. src="{{item.goods.image}}"
  250. mode="widthFix"
  251. lazy-load="false"
  252. binderror=""
  253. bindload=""
  254. />
  255. <view class="three-end">
  256. <view class="three_tag" style="font-size:{{style.titleSize * 2}}rpx;">
  257. <span class="people" wx:if="{{data.groupPeople}}">{{item.people}}人团</span>
  258. {{item.goods.name}}
  259. </view>
  260. <view class="commodity_desc" style="font-size:{{style.descSize * 2}}rpx">
  261. {{item.goods.desc || '暂无产品简介'}}
  262. </view>
  263. <view class="three_name2" wx:if="{{data.showTotal}}">
  264. 仅剩{{item.goods.total}}件
  265. </view>
  266. <view class="end_info">
  267. <view class="end_number">
  268. <view class="money1" wx:if="{{data.showGroupPrice}}">
  269. ¥{{item.price}}
  270. </view>
  271. <view class="money2" wx:if="{{data.showPrice}}">
  272. ¥{{item.goods.price}}
  273. </view>
  274. </view>
  275. <van-icon
  276. name="cart-circle-o"
  277. wx:if="{{buybutton == 1}}"
  278. color="red"
  279. size="48rpx"
  280. />
  281. <van-icon
  282. name="add-o"
  283. wx:if="{{buybutton == 2}}"
  284. color="red"
  285. size="48rpx"
  286. />
  287. <view
  288. class="circular3"
  289. wx:if="{{buybutton == 3}}"
  290. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  291. >
  292. {{style.btnText}}
  293. </view>
  294. <view
  295. class="circular3 circular4"
  296. wx:if="{{buybutton == 4}}"
  297. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  298. >
  299. {{style.btnText}}
  300. </view>
  301. <van-icon
  302. name="add"
  303. wx:if="{{buybutton == 5}}"
  304. color="red"
  305. size="48rpx"
  306. />
  307. <van-icon
  308. name="shopping-cart-o"
  309. wx:if="{{buybutton == 6}}"
  310. color="red"
  311. size="48rpx"
  312. />
  313. <view
  314. class="circular7"
  315. wx:if="{{buybutton == 7}}"
  316. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  317. >
  318. {{style.btnText}}
  319. </view>
  320. <view
  321. class="circular7 circular8"
  322. wx:if="{{buybutton == 8}}"
  323. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  324. >
  325. {{style.btnText}}
  326. </view>
  327. </view>
  328. </view>
  329. </view>
  330. </block>
  331. </view>
  332. </block>
  333. <block wx:if="{{column == 'template4'}}">
  334. <view class="for_box" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  335. <block wx:for="{{list}}" wx:key="index">
  336. <view
  337. class="detailed"
  338. style="width: {{style.groupWidth}}%;background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  339. data-id="{{item.objectId}}"
  340. bind:tap="toUrl"
  341. >
  342. <view class="detailed_left">
  343. <image
  344. class="image"
  345. src="{{item.goods.image}}"
  346. mode="widthFix"
  347. lazy-load="false"
  348. binderror=""
  349. bindload=""
  350. />
  351. <view class="end_box" wx:if="{{data.showCountdown}}">
  352. <block wx:if="{{item.time > 0}}">
  353. <view class="bargin_end">距结束仅剩</view>
  354. <van-count-down
  355. use-slot
  356. time="{{item.time}}"
  357. data-index="{{index}}"
  358. bind:change="onChange"
  359. format="DD 天 HH 时 mm 分 ss 秒"
  360. >
  361. <text class="item">{{ item.timeDate.days }} 天</text>
  362. <text class="item">{{ item.timeDate.hours }} 时</text>
  363. <text class="item">{{ item.timeDate.minutes }} 分</text>
  364. <text class="item">{{ item.timeDate.seconds }} 秒</text>
  365. </van-count-down>
  366. </block>
  367. <block wx:else>
  368. <view class="bargin_end2">已结束</view>
  369. </block>
  370. </view>
  371. </view>
  372. <view class="detailed-txt">
  373. <view class="detailed_top">
  374. <view class="four_tag" style="font-size:{{style.titleSize * 2}}rpx;">
  375. <span class="people" wx:if="{{data.groupPeople}}">
  376. {{item.people}}人团
  377. </span>
  378. {{item.goods.name}}
  379. </view>
  380. <view class="commodity_desc" style="font-size:{{style.descSize * 2}}rpx">
  381. {{item.goods.desc || '暂无产品简介'}}
  382. </view>
  383. <view class="three_name2" wx:if="{{data.showTotal}}">
  384. 仅剩{{item.goods.total}}件
  385. </view>
  386. </view>
  387. <view class="price_info">
  388. <view class="price">
  389. <view class="group_price" wx:if="{{data.showGroupPrice}}">
  390. ¥{{item.price}}
  391. </view>
  392. <view class="original_price" wx:if="{{data.showPrice}}">
  393. ¥{{item.goods.price}}
  394. </view>
  395. </view>
  396. <van-icon
  397. name="cart-circle-o"
  398. wx:if="{{buybutton == 1}}"
  399. color="red"
  400. size="60rpx"
  401. />
  402. <van-icon
  403. name="add-o"
  404. wx:if="{{buybutton == 2}}"
  405. color="red"
  406. size="60rpx"
  407. />
  408. <view
  409. class="circular3"
  410. wx:if="{{buybutton == 3}}"
  411. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  412. >
  413. {{style.btnText}}
  414. </view>
  415. <view
  416. class="circular3 circular4"
  417. wx:if="{{buybutton == 4}}"
  418. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  419. >
  420. {{style.btnText}}
  421. </view>
  422. <van-icon
  423. name="add"
  424. wx:if="{{buybutton == 5}}"
  425. color="red"
  426. size="60rpx"
  427. />
  428. <van-icon
  429. name="shopping-cart-o"
  430. wx:if="{{buybutton == 6}}"
  431. color="red"
  432. size="60rpx"
  433. />
  434. <view
  435. class="circular7"
  436. wx:if="{{buybutton == 7}}"
  437. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  438. >
  439. {{style.btnText}}
  440. </view>
  441. <view
  442. class="circular7 circular8"
  443. wx:if="{{buybutton == 8}}"
  444. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  445. >
  446. {{style.btnText}}
  447. </view>
  448. </view>
  449. </view>
  450. </view>
  451. </block>
  452. </view>
  453. </block>
  454. <block wx:if="{{column == 'template5'}}">
  455. <view class="goods" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  456. <block wx:for="{{list}}" wx:key="index">
  457. <view
  458. class="one_box {{ index == 0 ? 'groupWidth0' : ''}}"
  459. style="background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  460. data-id="{{item.objectId}}"
  461. bind:tap="toUrl"
  462. >
  463. <image
  464. class="image"
  465. src="{{item.goods.image}}"
  466. style="border-radius: {{style.groupBorderRadius * 2}}rpx {{style.groupBorderRadius * 2}}rpx 0 0"
  467. mode="widthFix"
  468. lazy-load="false"
  469. binderror=""
  470. bindload=""
  471. />
  472. <view class="bargain_box" wx:if="{{data.showCountdown}}">
  473. <view class="bargin_font">拼团</view>
  474. <view class="bargin_count">
  475. <block wx:if="{{item.time > 0}}">
  476. <view class="bargin_end">距结束仅剩</view>
  477. <van-count-down
  478. use-slot
  479. time="{{item.time}}"
  480. data-index="{{index}}"
  481. bind:change="onChange"
  482. format="DD 天 HH 时 mm 分 ss 秒"
  483. >
  484. <text class="item item1">{{ item.timeDate.days }} 天</text>
  485. <text class="item item1">{{ item.timeDate.hours }} 时</text>
  486. <text class="item item1">{{ item.timeDate.minutes }} 分</text>
  487. <text class="item item1">{{ item.timeDate.seconds }} 秒</text>
  488. </van-count-down>
  489. </block>
  490. <block wx:else>
  491. <view class="bargin_end2">已结束</view>
  492. </block>
  493. </view>
  494. </view>
  495. <view class="commodity">
  496. <view class="name_info">
  497. <view class="tag people" wx:if="{{data.groupPeople}}">
  498. {{item.people}}人团
  499. </view>
  500. <view class="commodity_name" style="font-size:{{style.titleSize * 2}}rpx;">
  501. {{item.goods.name}}
  502. </view>
  503. </view>
  504. <view class="commodity_detailed" style="font-size:{{style.descSize * 2}}rpx">
  505. {{item.goods.desc}}
  506. </view>
  507. <view class="commodity_detailed" wx:if="{{data.showTotal}}">
  508. 仅剩{{item.goods.total}}件
  509. </view>
  510. <view class="commodity_number">
  511. <view class="row-left">
  512. <view class="price" wx:if="{{data.showGroupPrice}}">
  513. ¥{{item.price}}
  514. </view>
  515. <view class="original" wx:if="{{data.showPrice}}">
  516. ¥{{item.goods.price}}
  517. </view>
  518. </view>
  519. <van-icon
  520. name="cart-circle-o"
  521. wx:if="{{buybutton == 1}}"
  522. color="red"
  523. size="60rpx"
  524. />
  525. <van-icon
  526. name="add-o"
  527. wx:if="{{buybutton == 2}}"
  528. color="red"
  529. size="60rpx"
  530. />
  531. <view
  532. class="circular3"
  533. wx:if="{{buybutton == 3}}"
  534. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  535. >
  536. {{style.btnText}}
  537. </view>
  538. <view
  539. class="circular3 circular4"
  540. wx:if="{{buybutton == 4}}"
  541. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  542. >
  543. {{style.btnText}}
  544. </view>
  545. <van-icon
  546. name="add"
  547. wx:if="{{buybutton == 5}}"
  548. color="red"
  549. size="60rpx"
  550. />
  551. <van-icon
  552. name="shopping-cart-o"
  553. wx:if="{{buybutton == 6}}"
  554. color="red"
  555. size="60rpx"
  556. />
  557. <view
  558. class="circular7"
  559. wx:if="{{buybutton == 7}}"
  560. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  561. >
  562. {{style.btnText}}
  563. </view>
  564. <view
  565. class="circular7 circular8"
  566. wx:if="{{buybutton == 8}}"
  567. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  568. >
  569. {{style.btnText}}
  570. </view>
  571. </view>
  572. </view>
  573. </view>
  574. </block>
  575. </view>
  576. </block>
  577. <block wx:if="{{column == 'template6'}}">
  578. <view class="scroll_info" style="width:{{style.width}}%;margin:{{style.margin.top * 2}}rpx {{style.margin.right * 2}}rpx {{style.margin.bottom * 2}}rpx {{style.margin.left * 2}}rpx;padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx;background:{{style.background}};border-radius:{{style.borderRadius * 2}}rpx;">
  579. <scroll-view scroll-x="true">
  580. <block wx:for="{{list}}" wx:key="index">
  581. <view
  582. class="six-box"
  583. style="width: {{style.groupWidth}}%;background: {{style.groupBackground}}; border-radius: {{style.groupBorderRadius * 2}}rpx;margin:{{style.groupMargin.top * 2}}rpx {{style.groupMargin.right * 2}}rpx {{style.groupMargin.bottom * 2}}rpx {{style.groupMargin.left * 2}}rpx;padding:{{style.groupPadding.top * 2}}rpx {{style.groupPadding.right * 2}}rpx {{style.groupPadding.bottom * 2}}rpx {{style.groupPadding.left * 2}}rpx;"
  584. data-id="{{item.objectId}}"
  585. bind:tap="toUrl"
  586. >
  587. <image
  588. class="image"
  589. src="{{item.goods.image}}"
  590. style="border-radius: {{style.groupBorderRadius * 2}}rpx {{style.groupBorderRadius * 2}}rpx 0 0"
  591. mode="widthFix"
  592. lazy-load="false"
  593. binderror=""
  594. bindload=""
  595. />
  596. <view class="end_info">
  597. <view class="six_tag" style="font-size:{{style.titleSize * 2}}rpx;">
  598. <span class="people" wx:if="{{data.groupPeople}}">
  599. {{item.people}}人团
  600. </span>
  601. {{item.goods.name}}
  602. </view>
  603. <view class="commodity_desc" style="font-size:{{style.descSize * 2}}rpx">
  604. {{item.goods.desc || '暂无产品简介'}}
  605. </view>
  606. <view class="six_name" wx:if="{{data.showTotal}}">
  607. 仅剩{{item.goods.total}}件
  608. </view>
  609. <view class="price_info">
  610. <view class="price">
  611. <view class="group_price" wx:if="{{data.showGroupPrice}}">
  612. ¥{{item.price}}
  613. </view>
  614. <view class="original_price" wx:if="{{data.showPrice}}">
  615. ¥{{item.goods.price}}
  616. </view>
  617. </view>
  618. <van-icon
  619. name="cart-circle-o"
  620. wx:if="{{buybutton == 1}}"
  621. color="red"
  622. size="60rpx"
  623. />
  624. <van-icon
  625. name="add-o"
  626. wx:if="{{buybutton == 2}}"
  627. color="red"
  628. size="60rpx"
  629. />
  630. <view
  631. class="circular3"
  632. wx:if="{{buybutton == 3}}"
  633. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  634. >
  635. {{style.btnText}}
  636. </view>
  637. <view
  638. class="circular3 circular4"
  639. wx:if="{{buybutton == 4}}"
  640. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  641. >
  642. {{style.btnText}}
  643. </view>
  644. <van-icon
  645. name="add"
  646. wx:if="{{buybutton == 5}}"
  647. color="red"
  648. size="60rpx"
  649. />
  650. <van-icon
  651. name="shopping-cart-o"
  652. wx:if="{{buybutton == 6}}"
  653. color="red"
  654. size="60rpx"
  655. />
  656. <view
  657. class="circular7"
  658. wx:if="{{buybutton == 7}}"
  659. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  660. >
  661. {{style.btnText}}
  662. </view>
  663. <view
  664. class="circular7 circular8"
  665. wx:if="{{buybutton == 8}}"
  666. style="font-size:{{style.btnSize * 2}}rpx;color:{{style.btnColor}}"
  667. >
  668. {{style.btnText}}
  669. </view>
  670. </view>
  671. </view>
  672. </view>
  673. </block>
  674. </scroll-view>
  675. </view>
  676. </block>