u-ordinary-list.vue 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. <template>
  2. <view class="u-list" v-show="is_show_off">
  3. <!--排序-->
  4. <view class="goods-rank" v-if="isRank">
  5. <view class="item" :class="rr.is_choose?'active':''" v-for="(rr,rrindex) in goods_rank"
  6. :key="rrindex" @click="changeRank(rr,goodsList)">
  7. <text>{{rr.name}}</text>
  8. <image :src="rr[rr.rank_type+'_img']"
  9. v-if="rr.is_rank"></image>
  10. </view>
  11. </view>
  12. <!--分类-->
  13. <template v-if="showCat && catList.length > 1">
  14. <scroll-view scroll-x v-bind:class="[theme, 'u-scroll-view', 'dir-left-nowrap']">
  15. <text
  16. v-for="(item, index) in catList"
  17. v-bind:key="index"
  18. v-bind:class="[
  19. catStyle === 2 && activeCurrent === index ?
  20. 'u-active-current-round ' + theme + '-m-back ' + theme :
  21. catStyle === 1 && activeCurrent === index ?
  22. 'u-active-current '+ theme + '-m-text ' + theme + ' ' + theme+ '-m-border': 'u-default-text',
  23. catStyle === 2 ? 'u-current-round' : '',
  24. 'u-nav-item'
  25. ]"
  26. v-on:click="changeNav(index)"
  27. >
  28. {{item.menuName}}
  29. </text>
  30. </scroll-view>
  31. </template>
  32. <!--商品列表-->
  33. <view v-bind:class="goodsListClass">
  34. <!--列表模式-->
  35. <template v-if="listStyle === -1 || (!listStyle && listStyle !== 0)">
  36. <block v-for="(goods, index) in goodsList" v-bind:key="index">
  37. <view
  38. v-bind:class="[goodsStyleObject, 'main-between', 'u-list-mode', 'dir-left-nowrap']"
  39. hover-class="goods-hover-class"
  40. v-on:click.stop="router(goods)"
  41. >
  42. <view class="box-grow-0 u-left">
  43. <!-- 售罄 -->
  44. <view
  45. v-if="isShowStock(goods)"
  46. class="u-out-dialog"
  47. >
  48. <image
  49. class="u-dialog-img"
  50. v-bind:src="sellOutPic"
  51. ></image>
  52. </view>
  53. <!-- 角标 -->
  54. <image
  55. v-if="showGoodsTag"
  56. v-bind:class="[tagLeftTop, 'u-goods-tag']"
  57. v-bind:src="goodsTagPicUrl"
  58. ></image>
  59. <!-- 商品封面图 -->
  60. <app-image
  61. borderRadius="16rpx"
  62. width="220rpx"
  63. height="220rpx"
  64. v-bind:img-src="goods.cover_pic"
  65. v-bind:mode="mode"
  66. ></app-image>
  67. </view>
  68. <view class="box-grow-1 u-right dir-top-nowrap main-between">
  69. <view
  70. v-if="(isDIY && showGoodsName) || isShowGoodsName"
  71. v-bind:class="[
  72. goods.vip_card_appoint.discount || ((goods.level_show === 1 || goods.level_show === 2) && goods.is_negotiable !== 1) ? 't-omit' : 't-omit-two',
  73. 'box-grow-0', 'u-goods-name'
  74. ]"
  75. >
  76. {{goods.name}}
  77. </view>
  78. <view class="box-grow-1 dir-left-nowrap cross-bottom">
  79. <view class="box-grow-1">
  80. <view v-if="isShowMemPrice(goods)" class="u-price-margin">
  81. <app-member-price
  82. v-bind:price="goods.level_price"
  83. :theme="themeObject"
  84. ></app-member-price>
  85. </view>
  86. <view v-if="isShowVip(goods)" class="u-price-margin">
  87. <app-sup-vip
  88. v-bind:is_vip_card_user="goods.vip_card_appoint.is_vip_card_user"
  89. v-bind:discount="goods.vip_card_appoint.discount"
  90. ></app-sup-vip>
  91. </view>
  92. <view
  93. v-if="showGoodsPrice || isShowOriginalPrice(goods)"
  94. v-bind:class="goods.is_sales === 1 ? 'dir-left-nowrap main-left cross-center' : 'dir-top-nowrap'"
  95. >
  96. <text v-if="showGoodsPrice" class="u-goods-price" v-bind:class="[theme + '-m-text ', theme]">{{goods.price_content}}</text>
  97. <text
  98. v-if="isShowOriginalPrice(goods)"
  99. v-bind:class="[goods.is_sales === 1 ? 'u-original-margin' : '', 'u-original-price']"
  100. >{{goods.original_price}}</text>
  101. </view>
  102. <view v-if="goods.is_sales === 1 && goods.is_negotiable !== 1" class="u-goods-sales">{{goods.sales}}</view>
  103. </view>
  104. <template v-if="isShowCart && goods.goods_stock !== 0 && goods.is_negotiable !== 1 || (isDIY && isShowBuyBtn(goods))">
  105. <view
  106. v-if="buyBtn === 'text'"
  107. v-on:click.stop="buyProduct(goods)"
  108. v-bind:style="btnStyle"
  109. v-bind:class="[buyBtnClass, 'u-text-btn', theme + '-m-back', theme]"
  110. >{{buyBtnText}}</view>
  111. <!-- <view
  112. v-else
  113. v-on:click.stop="buyProduct(goods)"
  114. v-bind:class="['u-cart-btn-icon', 'box-grow-0', 'u-cart-btn-icon-' + buyBtn, theme + '-m-back', theme]"
  115. ></view> -->
  116. </template>
  117. </view>
  118. </view>
  119. </view>
  120. </block>
  121. </template>
  122. <!--左右滑动-->
  123. <template v-else-if="listStyle === 0">
  124. <scroll-view scroll-x class="u-swipe-left-right ">
  125. <view class="dir-left-nowrap">
  126. <block v-for="(goods, index) in goodsList" v-bind:key="index">
  127. <view v-bind:class="goodsStyleObject" hover-class="goods-hover-class" v-on:click.stop="router(goods)" class="u-goods" >
  128. <view class="u-top">
  129. <!-- 售罄 -->
  130. <view
  131. v-if="isShowStock(goods)"
  132. class="u-out-dialog"
  133. >
  134. <image
  135. class="u-dialog-img"
  136. v-bind:src="sellOutPic"
  137. ></image>
  138. </view>
  139. <!-- 角标 -->
  140. <image
  141. v-if="showGoodsTag"
  142. v-bind:class="[tagLeftTop, 'u-goods-tag']"
  143. v-bind:src="goodsTagPicUrl"
  144. ></image>
  145. <!-- 商品封面图 -->
  146. <app-image
  147. borderRadius="16rpx 16rpx 0 0"
  148. width="200rpx"
  149. height="200rpx"
  150. v-bind:img-src="goods.cover_pic"
  151. v-bind:mode="mode"
  152. ></app-image>
  153. </view>
  154. <view class="u-content-height dir-top-nowrap main-between">
  155. <view
  156. v-if="showGoodsName"
  157. v-bind:class="[textAlign, 'u-goods-name', 't-omit-two']"
  158. style="font-size: 28rpx;"
  159. >
  160. {{goods.name}}
  161. </view>
  162. <view class="u-bottom">
  163. <view v-if="isShowMemPrice(goods)" v-bind:class="[pluginAlign, 'u-member-margin']">
  164. <app-member-price
  165. :theme="themeObject"
  166. v-bind:price="goods.level_price"
  167. ></app-member-price>
  168. </view>
  169. <view v-if="isShowVip(goods)" v-bind:class="[pluginAlign, 'u-member-margin']">
  170. <app-sup-vip
  171. v-bind:is_vip_card_user="goods.vip_card_appoint.is_vip_card_user"
  172. v-bind:discount="goods.vip_card_appoint.discount"
  173. ></app-sup-vip>
  174. </view>
  175. <view
  176. v-if="showGoodsPrice || isShowOriginalPrice(goods)"
  177. v-bind:class="[textAlign, 'dir-top-nowrap']"
  178. >
  179. <text v-if="showGoodsPrice" class="u-goods-price" v-bind:class="[theme + '-m-text', theme]" style="font-size: 28rpx;">{{goods.price_content}}</text>
  180. <text
  181. v-if="isShowOriginalPrice(goods)"
  182. class="u-original-price"
  183. >{{goods.original_price}}</text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </block>
  189. </view>
  190. </scroll-view>
  191. </template>
  192. <!--一行一个-->
  193. <template v-else-if="listStyle === 1">
  194. <block v-for="(goods, index) in goodsList" v-bind:key="index">
  195. <view hover-class="goods-hover-class" v-bind:class="goodsStyleObject" v-on:click.stop="router(goods)" class="u-one-per-line" >
  196. <view class="u-top">
  197. <!-- 售罄 -->
  198. <view v-if="isShowStock(goods)" class="u-out-dialog">
  199. <image class="u-dialog-img" v-bind:src="sellOutPic"></image>
  200. </view>
  201. <!-- 角标 -->
  202. <image
  203. v-if="showGoodsTag"
  204. v-bind:class="[tagLeftTop, 'u-goods-tag']"
  205. v-bind:src="goodsTagPicUrl"
  206. ></image>
  207. <!-- 商品封面图 -->
  208. <app-image
  209. width="100%"
  210. v-bind:img-src="goods.cover_pic"
  211. v-bind:height="coverPicHeight"
  212. v-bind:mode="mode"
  213. ></app-image>
  214. </view>
  215. <view v-if="showGoodsName" v-bind:class="[textAlign, 'u-goods-name', 't-omit']" >
  216. {{goods.name}}
  217. </view>
  218. <view class="u-bottom dir-left-nowrap cross-center">
  219. <view v-bind:class="[theme + '-m-text ', theme, 'box-grow-1', 'u-price']">
  220. <view v-bind:class="[textStyle === 2 ? 'main-center' : '', 'dir-left-nowrap', 'cross-center']">
  221. <view v-if="showGoodsPrice" class="u-goods-price">
  222. {{goods.price_content}}
  223. </view>
  224. <view v-if="isShowMemPrice(goods)" class="u-member-margin">
  225. <app-member-price
  226. :theme="themeObject"
  227. v-bind:price="goods.level_price"
  228. ></app-member-price>
  229. </view>
  230. <view v-if="isShowVip(goods)" class="u-member-margin">
  231. <app-sup-vip
  232. v-bind:is_vip_card_user="goods.vip_card_appoint.is_vip_card_user"
  233. v-bind:discount="goods.vip_card_appoint.discount"
  234. ></app-sup-vip>
  235. </view>
  236. </view>
  237. <view v-bind:class="[textAlign, 'u-original-price']" v-if="isShowOriginalPrice(goods)">
  238. ¥{{goods.original_price}}
  239. </view>
  240. </view>
  241. <template v-if="isShowBuyBtn(goods) === 1 && textStyle !== 2">
  242. <view
  243. v-if="buyBtn === 'text'"
  244. v-on:click.stop="buyProduct(goods)"
  245. v-bind:class="[buyBtnClass, 'u-text-btn', 'box-grow-0']"
  246. v-bind:style="btnStyle"
  247. >{{buyBtnText}}</view>
  248. <!-- <view
  249. v-else
  250. v-on:click.stop="buyProduct(goods)"
  251. v-bind:class="['u-cart-btn-icon', 'box-grow-0', 'u-cart-btn-icon-' + buyBtn, theme + '-m-back', theme]"
  252. ></view> -->
  253. </template>
  254. </view>
  255. </view>
  256. </block>
  257. </template>
  258. <!--一行两个-->
  259. <template v-else-if="listStyle === 2">
  260. <block v-for="(goods, index) in goodsList" v-bind:key="index">
  261. <view
  262. hover-class="goods-hover-class"
  263. v-on:click.stop="router(goods)"
  264. v-bind:class="[goodsStyleObject, 'u-one-line-two', 'dir-top-nowrap']"
  265. >
  266. <view class="u-top box-grow-0">
  267. <!-- 售罄 -->
  268. <view
  269. v-if="isShowStock(goods)"
  270. :class="goodsStyle !== 2 ? 'u-out-dialog' : 'u-border-out-dialog'"
  271. >
  272. <image
  273. :class="goodsStyle !== 2 ? 'u-dialog-img' : 'u-border-dialog-img'"
  274. v-bind:src="sellOutPic"
  275. ></image>
  276. </view>
  277. <!-- 角标 -->
  278. <image
  279. v-if="showGoodsTag"
  280. v-bind:class="[tagLeftTop, 'u-goods-tag']"
  281. v-bind:src="goodsTagPicUrl"
  282. ></image>
  283. <!-- 商品封面图 -->
  284. <app-image
  285. borderRadius="16rpx 16rpx 0 0"
  286. :width="goodsStyle === 2 ? '344rpx': '360rpx'"
  287. height="220rpx"
  288. v-bind:img-src="goods.cover_pic"
  289. v-bind:mode="mode"
  290. ></app-image>
  291. </view>
  292. <view v-bind:class="['u-bottom', 'box-grow-1', 'dir-top-nowrap', showGoodsName ? 'main-between' : 'main-right']">
  293. <view v-if="(isDIY && showGoodsName) || isShowGoodsName" v-bind:class="[textAlign, 'u-goods-name', 't-omit-two']">
  294. {{goods.name}}
  295. </view>
  296. <view class="box-grow-0 u-price dir-left-nowrap cross-bottom main-between" >
  297. <view class="box-grow-1">
  298. <view v-if="goods.sign == 'pick' && activity" class="u-margin dir-left-nowrap cross-bottom">
  299. <text :class="[themeObject.back, 'u-des-price']">
  300. {{activity.rule_price}}元任选{{activity.rule_num}}件
  301. </text>
  302. </view>
  303. <view v-if="goods.sign === 'advance'" class="u-margin dir-left-nowrap cross-bottom">
  304. <text :class="[themeObject.back, 'u-des-price']">
  305. 定金¥{{goods.deposit}}抵¥{{goods.swell_deposit}}
  306. </text>
  307. </view>
  308. <view v-if="goods.sign === 'flash_sale'" class="u-margin dir-left-nowrap cross-bottom">
  309. <text v-if="goods.discount_type === 1" :class="[themeObject.back, 'u-des-price']">{{goods.min_discount}}折
  310. </text>
  311. <text v-if="goods.discount_type === 2" :class="[themeObject.back, 'u-des-price']">减{{goods.min_discount}}元
  312. </text>
  313. </view>
  314. <view
  315. v-if="isShowMemPrice(goods)"
  316. v-bind:class="[pluginAlign, 'u-price-margin']"
  317. >
  318. <app-member-price :theme="themeObject" v-bind:price="goods.level_price"></app-member-price>
  319. </view>
  320. <view
  321. v-if="isShowVip(goods)"
  322. v-bind:class="[pluginAlign, 'u-price-margin']"
  323. >
  324. <app-sup-vip
  325. v-bind:is_vip_card_user="goods.vip_card_appoint.is_vip_card_user"
  326. v-bind:discount="goods.vip_card_appoint.discount"
  327. ></app-sup-vip>
  328. </view>
  329. <view v-if="showGoodsPrice || isShowOriginalPrice(goods)"
  330. v-bind:class="[goods.is_sales === 1 ? 'dir-left-nowrap main-left cross-center' : 'dir-top-nowrap', 'u-price-margin' , goods.is_sales === 1 ? pluginAlign : null]">
  331. <text v-if="showGoodsPrice" v-bind:class="[theme + '-m-text ', theme, 't-omit', 'u-goods-price', textAlign]">
  332. {{goods.price_content}}
  333. </text>
  334. <text v-if="isShowOriginalPrice(goods)" v-bind:class="[goods.is_sales === 1 ? 'u-original-margin' : '', 'u-original-price', textAlign]">
  335. ¥{{goods.original_price}}
  336. </text>
  337. </view>
  338. <view v-if="goods.is_sales === 1 && 0 && goods.is_negotiable !== 1" v-bind:class="[textAlign, 'u-goods-sales', !showGoodsPrice ? 'u-price-margin' : '']">{{goods.sales}}</view>
  339. </view>
  340. <template v-if="isShowCart && goods.goods_stock !== 0 && goods.is_negotiable !== 1 || (isDIY && isShowBuyBtn(goods) === 1 && textStyle !== 2)">
  341. <view
  342. v-if="buyBtn === 'text'"
  343. v-bind:class="[buyBtnClass, 'u-text-btn', 'box-grow-0']"
  344. v-bind:style="btnStyle"
  345. v-on:click.stop="buyProduct(goods)"
  346. >{{buyBtnText}}</view>
  347. <!-- <view
  348. v-else
  349. v-bind:class="['u-cart-btn-icon', 'box-grow-0', 'u-cart-btn-icon-' + buyBtn, theme + '-m-back', theme]"
  350. v-on:click.stop="buyProduct(goods)"
  351. ></view> -->
  352. </template>
  353. </view>
  354. </view>
  355. </view>
  356. </block>
  357. </template>
  358. <!--一行三个-->
  359. <template v-else-if="listStyle === 3">
  360. <block v-for="(goods, index) in goodsList" v-bind:key="index">
  361. <view
  362. hover-class="goods-hover-class"
  363. v-on:click.stop="router(goods)"
  364. v-bind:class="[goodsStyleObject, 'u-one-line-three', 'dir-top-nowrap', 'box-grow-0']"
  365. >
  366. <view class="u-top box-grow-0">
  367. <!-- 售罄 -->
  368. <view
  369. v-if="isShowStock(goods)"
  370. class="u-out-dialog"
  371. >
  372. <image
  373. class="u-dialog-img"
  374. v-bind:src="sellOutPic"
  375. ></image>
  376. </view>
  377. <!-- 角标 -->
  378. <image
  379. v-if="showGoodsTag"
  380. v-bind:class="[tagLeftTop, 'u-goods-tag']"
  381. v-bind:src="goodsTagPicUrl"
  382. ></image>
  383. <!-- 商品封面图 -->
  384. <app-image
  385. borderRadius="16rpx 16rpx 0 0"
  386. :width="goodsStyle === 2 ? '222rpx' : '224rpx'"
  387. height="224rpx"
  388. v-bind:img-src="goods.cover_pic"
  389. v-bind:mode="mode"
  390. ></app-image>
  391. </view>
  392. <view class="u-bottom box-grow-1 dir-top-nowrap main-between">
  393. <view v-if="(isDIY && showGoodsName) || isShowGoodsName" v-bind:class="[textAlign, 'box-grow-0', 'u-goods-name', 't-omit-two']">
  394. {{goods.name}}
  395. </view>
  396. <view class="box-grow-1 dir-top-nowrap main-right">
  397. <view
  398. v-if="isShowMemPrice(goods)"
  399. v-bind:class="[pluginAlign, 'u-price-margin']"
  400. >
  401. <app-member-price :theme="themeObject" v-bind:price="goods.level_price"></app-member-price>
  402. </view>
  403. <view
  404. v-if="isShowVip(goods)"
  405. v-bind:class="[pluginAlign, 'u-price-margin']"
  406. >
  407. <app-sup-vip
  408. v-bind:is_vip_card_user="goods.vip_card_appoint.is_vip_card_user"
  409. v-bind:discount="goods.vip_card_appoint.discount"
  410. ></app-sup-vip>
  411. </view>
  412. <view class="box-grow-0 u-price-margin dir-left-nowrap cross-center" v-bind:class="[!showGoodsPrice && textStyle !== 2 ? 'main-right' : 'main-between', textStyle === 2 ? 'main-center' : '']">
  413. <view v-if="showGoodsPrice || isShowOriginalPrice(goods)" :class="[theme + '-m-text', theme, 'u-goods-price']">
  414. <view v-if="showGoodsPrice" v-bind:class="textAlign">{{goods.price_content}}</view>
  415. <view v-if="isShowOriginalPrice(goods)" v-bind:class="[textAlign, 'u-original-price']">¥{{goods.original_price}}</view>
  416. <view v-if="!isDIY && goods.is_sales === 1 && goods.is_negotiable !== 1" v-bind:class="['u-goods-sales']">{{goods.sales}}</view>
  417. </view>
  418. <!-- <view
  419. v-if="isShowCart && goods.goods_stock !== 0 && goods.is_negotiable !== 1 || (isDIY && isShowBuyBtn(goods) && textStyle !== 2)"
  420. v-on:click.stop="buyProduct(goods)"
  421. v-bind:class="['u-cart-btn-icon', 'box-grow-0', 'u-cart-btn-icon-' + buyBtn, theme + '-m-back', theme]"
  422. >
  423. </view> -->
  424. <!-- <view v-if="isDIY && isShowBuyBtn(goods) === 0 && textStyle !== 2 && showBuyBtn" class="u-cart-btn-icon"></view> -->
  425. </view>
  426. </view>
  427. </view>
  428. </view>
  429. </block>
  430. </template>
  431. </view>
  432. <!--购物车-->
  433. <template v-if="isShowAttr">
  434. <app-attr
  435. :goods="attrGoods.goods"
  436. :previewUrl="previewUrl"
  437. :submitUrl="submitUrl"
  438. :attrGroupList="attrGoods.goods.attr_groups"
  439. :theme="theme"
  440. :show="attrGoods.attrShow"
  441. ></app-attr>
  442. </template>
  443. </view>
  444. </template>
  445. <script>
  446. import { mapGetters, mapState } from "vuex";
  447. import appAttr from "../../../components/page-component/app-attr/app-attr.vue";
  448. export default {
  449. name: "u-goods-list",
  450. props: {
  451. // 活动信息
  452. activity: {
  453. type: Object
  454. },
  455. // 是否排序
  456. isRank: {
  457. type: Boolean,
  458. default: true
  459. },
  460. // 是否为DIY
  461. isDIY: {
  462. type: Boolean,
  463. default: false
  464. },
  465. // 是否显示分类
  466. showCat: {
  467. type: Boolean
  468. },
  469. // 分裂列表
  470. catList: {
  471. type: Array
  472. },
  473. // 分类样式
  474. catStyle: {
  475. type: Number
  476. },
  477. // 主题色
  478. theme: {
  479. type: String
  480. },
  481. themeObject: {
  482. type: Object
  483. },
  484. // 商品列表
  485. list: {
  486. type: Array
  487. },
  488. // 列表样式 -1 列表模式 0 左右滑动 1 一行一个 2 一行两个 3 一行三个
  489. listStyle: {
  490. type: [Number , Boolean]
  491. },
  492. // 列表模式显示分割线 1 显示 0 不显示
  493. borderShow: {
  494. type: Number
  495. },
  496. // 商品样式 1 白底无边框 2 白底有边框 3 无底无边框
  497. goodsStyle: {
  498. type: Number
  499. },
  500. // 商品封面图是否填充 0 留白 1 填充
  501. fill: {
  502. type: Number,
  503. default: 1
  504. },
  505. // 商品右上角角标 url
  506. goodsTagPicUrl: {
  507. type: String
  508. },
  509. // 是否展示角标 0 不展示 1 展示
  510. showGoodsTag: {
  511. type: Number
  512. },
  513. // 是否展示商品名称 0 不展示 1 展示
  514. showGoodsName: {
  515. type: Number,
  516. default: 1
  517. },
  518. // 是否展示商品价格 0 不展示 1 展示
  519. showGoodsPrice: {
  520. type: Number,
  521. default: 1
  522. },
  523. // 显示购买按钮 0 不展示 1 展示
  524. showBuyBtn: {
  525. type: Number,
  526. default: 1
  527. },
  528. // 购买按钮样式 cart 购物车 add 加号 text 文字
  529. buyBtn: {
  530. type: String,
  531. default: 'text'
  532. },
  533. // 按钮样式
  534. buyBtnStyle: {
  535. type: Number
  536. },
  537. // 按钮文案
  538. buyBtnText: {
  539. type: String,
  540. default: '加入购物车'
  541. },
  542. // text按钮颜色
  543. buttonColor: {
  544. type: String
  545. },
  546. // 文本对齐方式 1 左对齐 2 居中
  547. textStyle: {
  548. type: Number
  549. },
  550. // 商品封面图宽高比例 1-1 3-2
  551. goodsCoverProportion: {
  552. type: String
  553. },
  554. // 原价显示
  555. isUnderLinePrice: {
  556. type: Boolean,
  557. default: true
  558. },
  559. // 是否显示规格
  560. isShowAttr: {
  561. type: Boolean,
  562. default: false
  563. },
  564. isBuy: {
  565. type: Boolean,
  566. default: true
  567. },
  568. // 预览接口
  569. previewUrl: {
  570. type: String
  571. },
  572. // 支付接口
  573. submitUrl: {
  574. type: String
  575. },
  576. // 载入间隔
  577. addTime: {
  578. type: Number,
  579. default: 0
  580. },
  581. // 分页加载
  582. pagination: {
  583. type: Boolean,
  584. default: false
  585. },
  586. reset: {
  587. type: Boolean,
  588. default: false
  589. }
  590. },
  591. computed: {
  592. ...mapState({
  593. // 全局设置
  594. appSetting: function(state) {
  595. return state.mallConfig.mall.setting
  596. },
  597. // 小程序图片
  598. appImg: function(state) {
  599. return state.mallConfig.__wxapp_img.mall;
  600. },
  601. // 全局显示购物车
  602. isShowCart: function(state) {
  603. return !this.isDIY && state.mallConfig.mall.setting.is_show_cart && this.showBuyBtn;
  604. },
  605. // 全局显示商品名称
  606. isShowGoodsName: function(state) {
  607. return !this.isDIY && state.mallConfig.mall.setting.is_show_goods_name;
  608. }
  609. }),
  610. ...mapGetters('mallConfig',{
  611. getVideo: 'getVideo'
  612. }),
  613. // 获取商品数组
  614. copyList() {
  615. if (!this.is_show_off) return [];
  616. if (this.showCat) {
  617. return this.catList[this.activeCurrent].goodsList;
  618. } else {
  619. return this.list;
  620. }
  621. },
  622. // 商品样式
  623. goodsStyleObject: function() {
  624. let str = '';
  625. this.goodsStyle === 2 ? str += 'u-is-border ' : '';
  626. this.goodsStyle !== 3 ? str += 'u-white-back': '';
  627. return str;
  628. },
  629. // 商品封面图是否填充
  630. mode: function() {
  631. let str = '';
  632. this.fill === 1 ? str = 'aspectFill' : str = 'aspectFit';
  633. return str;
  634. },
  635. // 售罄图片
  636. sellOutPic: function() {
  637. return this.appSetting.is_use_stock === '1' ? this.appImg.plugins_out : this.appSetting.sell_out_pic;
  638. },
  639. // 角标弧度
  640. tagLeftTop: function() {
  641. return this.listStyle === -1 || this.listStyle === 0 || this.listStyle === 2 || this.listStyle === 3 ? 'u-goods-tag-radius' : '';
  642. },
  643. // 文字按钮样式
  644. buyBtnClass: function() {
  645. let buyBtnClass = ``;
  646. if (this.buyBtnStyle == 2 || this.buyBtnStyle == 4) {
  647. buyBtnClass += `u-text-btn-border `;
  648. }
  649. if (this.buyBtnStyle == 4 || this.buyBtnStyle == 3) {
  650. buyBtnClass += `u-text-btn-radius`;
  651. }
  652. return buyBtnClass;
  653. },
  654. // 按钮样式
  655. btnStyle: function() {
  656. let btnStyle = ``;
  657. if (this.buyBtnStyle == 1 || this.buyBtnStyle == 3) {
  658. btnStyle += `background-color: ${this.buttonColor};color: #ffffff;`;
  659. } else {
  660. btnStyle += `border-color: ${this.buttonColor};color: ${this.buttonColor};`;
  661. }
  662. return btnStyle;
  663. },
  664. // 文本对齐方式
  665. textAlign: function() {
  666. return this.textStyle === 2 ? 'u-text-align' : null;
  667. },
  668. // 插件对齐方式
  669. pluginAlign: function() {
  670. return this.textStyle === 2 ? 'dir-left-nowrap main-center' : null;
  671. },
  672. // 一行一个图片高度
  673. coverPicHeight: function() {
  674. return this.goodsCoverProportion === '1-1' ? '702rpx' : '468rpx';
  675. },
  676. // 商品列表样式
  677. goodsListClass: function() {
  678. if (this.listStyle === 2) {
  679. return 'dir-left-wrap main-between u-goods-list';
  680. } else if (this.listStyle === 3) {
  681. return 'dir-left-wrap main-left u-one-line-three-list';
  682. } else if (this.listStyle === 0) {
  683. return 'u-swipe-left-right-list';
  684. } else if (this.borderShow === 1) {
  685. return 'u-goods-list u-bottom-border';
  686. } else {
  687. return 'u-goods-list';
  688. }
  689. }
  690. },
  691. data() {
  692. return {
  693. // 当前选中分类
  694. activeCurrent: 0,
  695. // 是否展示
  696. is_show_off: true,
  697. // 规格商品
  698. attrGoods: {
  699. goods: {},
  700. attrShow: 0
  701. },
  702. // 临时列表
  703. tempList: [],
  704. // 商品数组
  705. goodsList: [],
  706. // 排序
  707. goods_rank:[{
  708. name:'综合',
  709. is_rank:false,
  710. is_choose: true,
  711. },{
  712. name:'销量',
  713. is_rank:true,
  714. is_choose: false,
  715. rank_type:'default',
  716. key:'sale',
  717. default_img:'../../../static/image/icon/price-sort-default.png',
  718. top_img:'../../../static/image/icon/price-sort-to-high.png',
  719. low_img:'../../../static/image/icon/price-sort-to-low.png',
  720. },{
  721. name:'价格',
  722. is_rank:true,
  723. is_choose: false,
  724. rank_type:'default',
  725. key:'price',
  726. default_img:'../../../static/image/icon/price-sort-default.png',
  727. top_img:'../../../static/image/icon/price-sort-to-high.png',
  728. low_img:'../../../static/image/icon/price-sort-to-low.png',
  729. },{
  730. name:'最新',
  731. is_rank:true,
  732. is_choose: false,
  733. rank_type:'default',
  734. key:'time',
  735. default_img:'../../../static/image/icon/price-sort-default.png',
  736. top_img:'../../../static/image/icon/price-sort-to-high.png',
  737. low_img:'../../../static/image/icon/price-sort-to-low.png',
  738. }]
  739. }
  740. },
  741. methods: {
  742. changeRank(item,goods_list){
  743. let _this = this;
  744. _this.goods_rank.forEach(val => {
  745. if(item.key == val.key){
  746. val.is_choose = true;
  747. switch ( val.rank_type) {
  748. case 'default':
  749. case 'top':
  750. val.rank_type = 'low';
  751. break;
  752. case 'low':
  753. val.rank_type = 'top';
  754. break;
  755. }
  756. }else{
  757. val.is_choose = false;
  758. val.rank_type = 'default';
  759. }
  760. });
  761. if(typeof goods_list.old == "undefined" || !goods_list.old){
  762. goods_list.old = JSON.stringify(goods_list)
  763. }
  764. switch (item.key) {
  765. case 'sale':
  766. goods_list.sort(_this.compare('sales',item.rank_type))
  767. break;
  768. case 'price':
  769. goods_list.sort(_this.compare('price',item.rank_type))
  770. break;
  771. case 'time':
  772. goods_list.sort(_this.compare('created_at',item.rank_type,'time'))
  773. break;
  774. default:
  775. goods_list.sort(_this.compare('id',item.rank_type))
  776. }
  777. },
  778. compare (property,type,fieldsType){
  779. let regex = /\d+/;
  780. return function (obj1, obj2) {
  781. if(fieldsType == 'time'){
  782. obj1[property] = new Date(obj1[property]).getTime();
  783. obj2[property] = new Date(obj2[property]).getTime();
  784. }
  785. let value1 = regex.exec(obj1[property]);
  786. let value2 = regex.exec(obj2[property]);
  787. value1 = value1[0];
  788. value2 = value2[0];
  789. if(type == 'top'){
  790. return value1 - value2; // 升序
  791. }
  792. return value2 - value1; // 降序
  793. }
  794. },
  795. // 复制而不是引用对象和数组
  796. cloneData(data) {
  797. return JSON.parse(JSON.stringify(data));
  798. },
  799. // 循环载入
  800. splitData() {
  801. if (!this.tempList.length) return;
  802. let item = this.tempList[0];
  803. this.goodsList.push(item);
  804. this.tempList.splice(0, 1);
  805. if (this.tempList.length) {
  806. setTimeout(() => {
  807. this.splitData();
  808. }, this.addTime);
  809. }
  810. },
  811. // 切换分类
  812. changeNav(index) {
  813. this.goodsList = [];
  814. this.activeCurrent = index;
  815. this.tempList = this.cloneData(this.copyList);
  816. this.splitData();
  817. },
  818. // 是否展示售罄
  819. isShowStock(goods) {
  820. return this.appSetting.is_show_stock === 1 && goods.goods_stock === 0 ? 1: 0;
  821. },
  822. // 是否展示购物按钮
  823. isShowBuyBtn(goods) {
  824. return this.showBuyBtn && goods.goods_stock !== 0 && goods.is_negotiable !== 1 ? 1 : 0;
  825. },
  826. // 是否展示会员价
  827. isShowMemPrice(goods) {
  828. return (goods.level_show === 1 || goods.level_show === 2) && goods.is_negotiable !== 1 ? 1 : 0;
  829. },
  830. // 是否展示超级会员价
  831. isShowVip(goods) {
  832. return goods.vip_card_appoint && goods.vip_card_appoint.discount && goods.is_negotiable !== 1 ? 1 : 0;
  833. },
  834. // 是否显示原价
  835. isShowOriginalPrice(goods) {
  836. return false
  837. //return this.isUnderLinePrice && goods.is_negotiable !== 1 ? 1 : 0;
  838. },
  839. // 购买按钮点击事件
  840. buyProduct(goods) {
  841. if(this.isBuy) {
  842. if (this.isShowAttr) {
  843. this.attrGoods.goods = goods;
  844. this.attrGoods.attrShow = Math.random();
  845. } else {
  846. uni.showLoading({
  847. text: '',
  848. mask: true
  849. });
  850. this.$request({
  851. url: this.$api.goods.attr,
  852. data: {
  853. id: goods.id,
  854. mch_id: goods.mch_id
  855. }
  856. }).then(e => {
  857. uni.hideLoading();
  858. if (e.code === 0) {
  859. let data = Object.assign(goods, e.data);
  860. this.$emit('buyProduct', {
  861. goods: data,
  862. attrShow: Math.random()
  863. });
  864. } else {
  865. uni.showToast({
  866. title: e.msg,
  867. icon: 'none'
  868. })
  869. }
  870. })
  871. }
  872. }else {
  873. this.router(goods);
  874. }
  875. },
  876. // 路由跳转
  877. router(goods) {
  878. // #ifdef MP-BAIDU
  879. uni.navigateTo({
  880. url: goods.page_url
  881. });
  882. // #endif
  883. // #ifndef MP-BAIDU
  884. if (goods.video_url && this.getVideo == 1 && !(goods.sign === 'lottery' || goods.sign === 'bargain' || goods.sign === 'wholesale')) {
  885. let id = goods.id;
  886. if (goods.sign === 'advance') {
  887. id = goods.goods_id;
  888. } else if (goods.sign === 'gift') {
  889. id = id + '&is_share=1';
  890. }
  891. uni.navigateTo({
  892. url: `/pages/goods/video?goods_id=${id}&sign=${goods.sign}`
  893. });
  894. } else {
  895. uni.navigateTo({
  896. url: goods.page_url
  897. });
  898. }
  899. // #endif
  900. },
  901. empty() {
  902. this.goodsList = [];
  903. }
  904. },
  905. watch: {
  906. catList: {
  907. handler(newValue) {
  908. if (!this.showCat) return;
  909. !this.$validation.array(newValue) || this.$validation.isEmpty(newValue) ? this.is_show_off = false : this.is_show_off = true;
  910. },
  911. deep: true,
  912. immediate: true
  913. },
  914. copyList: {
  915. handler(nVal, oVal) {
  916. if (this.pagination && !this.reset) {
  917. let startIndex = Array.isArray(oVal) && oVal.length > 0 ? oVal.length : 0;
  918. this.tempList = this.tempList.concat(this.cloneData(nVal.slice(startIndex)));
  919. } else {
  920. this.goodsList = [];
  921. this.tempList = this.cloneData(nVal);
  922. }
  923. this.splitData();
  924. },
  925. deep: true,
  926. immediate: true
  927. }
  928. },
  929. components: {
  930. appAttr
  931. }
  932. }
  933. </script>
  934. <style scoped lang="scss">
  935. .u-des-price {
  936. display: inline-block;
  937. font-size: 19upx;
  938. color: #ffffff;
  939. border-radius: 7upx;
  940. padding: 0upx 5upx;
  941. }
  942. .u-list {
  943. width: 750upx;
  944. overflow: hidden;
  945. }
  946. .u-scroll-view {
  947. white-space: nowrap;
  948. width: 750upx;
  949. height: 99upx;
  950. padding: 0 5upx;
  951. .u-current-round {
  952. height: 56upx;
  953. padding-left: 24upx;
  954. padding-right: 24upx;
  955. border-radius: 30upx;
  956. line-height: 56upx;
  957. margin: 21.5upx 24upx;
  958. }
  959. }
  960. .u-nav-item {
  961. display: inline-block;
  962. height: 97upx;
  963. line-height: 97upx;
  964. font-size: 26upx;
  965. margin: 0 44upx;
  966. white-space: nowrap;
  967. border-bottom: 1upx solid transparent;
  968. }
  969. .u-active-current-round {
  970. color: white;
  971. }
  972. .u-default-text {
  973. color: #666666;
  974. }
  975. .u-goods-list {
  976. padding: 0 #{5rpx};
  977. &.u-bottom-border {
  978. padding: 0;
  979. padding-top: 24upx;
  980. >.u-list-mode {
  981. padding: 16upx 24upx;
  982. margin-bottom: 0;
  983. border-radius: 0;
  984. border-bottom: 1upx solid #e2e2e2;
  985. &:last-of-type {
  986. border-bottom: 0;
  987. }
  988. }
  989. }
  990. }
  991. .u-swipe-left-right-list {
  992. padding: 24upx 0 0 24upx;
  993. }
  994. .u-is-border {
  995. border: 1upx solid #e2e2e2;
  996. }
  997. .u-white-back {
  998. background-color: #ffffff;
  999. }
  1000. %background-image {
  1001. background-repeat: no-repeat;
  1002. background-size: cover;
  1003. background-position: center;
  1004. }
  1005. .u-text-btn {
  1006. height: 48upx;
  1007. line-height: 48upx;
  1008. padding: 0 20upx;
  1009. font-size: 28upx;
  1010. color: #999;
  1011. font-size: #{24rpx};
  1012. }
  1013. .u-text-btn-radius {
  1014. border-radius: 24upx;
  1015. }
  1016. .u-text-btn-border {
  1017. border: 1upx solid;
  1018. }
  1019. .u-out-dialog {
  1020. position: absolute;
  1021. height: 100%;
  1022. z-index: 11;
  1023. top: 0;
  1024. left: 0;
  1025. background-color: rgba(0,0,0,.5);
  1026. }
  1027. .u-border-out-dialog {
  1028. position: absolute;
  1029. height: 100%;
  1030. z-index: 11;
  1031. top: 0;
  1032. left: 0;
  1033. background-color: rgba(0,0,0,.5);
  1034. }
  1035. .u-text-align {
  1036. text-align: center;
  1037. }
  1038. .u-goods-tag {
  1039. position: absolute;
  1040. left: 0;
  1041. top: 0;
  1042. z-index: 10;
  1043. width: 64upx;
  1044. height: 64upx;
  1045. }
  1046. .u-goods-tag-radius {
  1047. border-top-left-radius: 16upx;
  1048. }
  1049. .u-original-price {
  1050. color: #999999;
  1051. font-size: 22upx;
  1052. text-decoration: line-through;
  1053. }
  1054. .u-goods-sales {
  1055. color: #b5b5b5;
  1056. font-size: 24upx;
  1057. }
  1058. .u-cart-btn-icon {
  1059. width: 50upx;
  1060. height: 50upx;
  1061. @extend %background-image;
  1062. }
  1063. .u-cart-btn-icon-cart {
  1064. background-image: url('../../../static/image/icon/cats.png');
  1065. }
  1066. .u-cart-btn-icon-add {
  1067. background-image: url('../../../static/image/icon/add-to.png');
  1068. }
  1069. .u-goods-name {
  1070. color: #353535;
  1071. }
  1072. .u-original-margin {
  1073. margin-left: 10upx;
  1074. }
  1075. .u-price-margin {
  1076. margin-top: 5upx;
  1077. // width: 209rpx;
  1078. }
  1079. .u-list-mode {
  1080. margin-bottom: 32upx;
  1081. border-radius: 16upx;
  1082. .u-right {
  1083. height: 220upx;
  1084. padding: 28upx 24upx 15upx 20upx;
  1085. }
  1086. .u-left {
  1087. position: relative;
  1088. }
  1089. .u-out-dialog {
  1090. width: 220upx;
  1091. border-radius: 16upx;
  1092. }
  1093. .u-dialog-img {
  1094. border-radius: 16upx;
  1095. width: 220upx;
  1096. height: 220upx;
  1097. }
  1098. .u-goods-name {
  1099. font-size: 28upx;
  1100. line-height: 38upx;
  1101. }
  1102. .u-goods-price {
  1103. font-size: 30upx;
  1104. }
  1105. }
  1106. .u-swipe-left-right {
  1107. padding-bottom: 24upx;
  1108. white-space: nowrap;
  1109. .u-goods {
  1110. display: inline-block;
  1111. border-radius: 16upx;
  1112. padding-bottom: 16upx;
  1113. margin-right: 16upx;
  1114. }
  1115. .u-top {
  1116. position: relative;
  1117. margin-bottom: 8upx;
  1118. }
  1119. .u-out-dialog {
  1120. width: 200upx;
  1121. border-radius: 16upx 16upx 0 0;
  1122. overflow: hidden;
  1123. }
  1124. .u-dialog-img {
  1125. width: 200upx;
  1126. height: 200upx;
  1127. }
  1128. .u-bottom {
  1129. padding: 0 10upx;
  1130. }
  1131. .u-goods-name {
  1132. font-size: 23upx;
  1133. line-height: 33upx;
  1134. margin-bottom: 8upx;
  1135. padding: 0 10upx 0 10upx;
  1136. }
  1137. .u-goods-price {
  1138. font-size: 23upx;
  1139. }
  1140. .u-member-margin {
  1141. margin-bottom: 8upx;
  1142. }
  1143. .u-content-height {
  1144. width: 200upx;
  1145. height: calc(100% - 208upx);
  1146. }
  1147. }
  1148. .u-one-per-line {
  1149. margin-bottom: 24upx;
  1150. border-radius: 0 0 16upx 16upx;
  1151. .u-top {
  1152. position: relative;
  1153. width: 100%;
  1154. }
  1155. .u-out-dialog {
  1156. width: 100%;
  1157. }
  1158. .u-dialog-img {
  1159. width: 100%;
  1160. height: 100%;
  1161. }
  1162. .u-bottom {
  1163. padding: 0 24upx 21upx 24upx;
  1164. margin-top: 16upx;
  1165. }
  1166. .u-goods-name {
  1167. padding: 30upx 24upx 0 24upx;
  1168. font-size: 28upx;
  1169. line-height: 38upx;
  1170. }
  1171. .u-goods-price {
  1172. font-size: 28upx;
  1173. }
  1174. .u-member-margin {
  1175. margin-left: 10upx;
  1176. }
  1177. }
  1178. .u-one-line-two {
  1179. width: 360upx;
  1180. margin-bottom: 25upx;
  1181. border-radius: 16upx;
  1182. .u-top {
  1183. width: 360upx;
  1184. height: 200upx;
  1185. position: relative;
  1186. }
  1187. .u-out-dialog, .u-dialog-img {
  1188. width: 360upx;
  1189. height: 346upx;
  1190. border-radius: 16upx 16upx 0 0;
  1191. }
  1192. .u-border-out-dialog, .u-border-dialog-img {
  1193. width: 360upx;
  1194. height: 346upx;
  1195. border-radius: 16upx 16upx 0 0;
  1196. }
  1197. .u-bottom {
  1198. padding-bottom: 15upx;
  1199. }
  1200. .u-goods-name {
  1201. margin-top: 20upx;
  1202. font-size: 28upx;
  1203. padding: 0 24upx;
  1204. line-height: 38upx;
  1205. }
  1206. .u-price {
  1207. padding: 0 24upx;
  1208. }
  1209. .u-goods-price {
  1210. font-size: 28upx;
  1211. }
  1212. }
  1213. .u-one-line-three-list {
  1214. padding: 24upx 9upx 0 24upx;
  1215. }
  1216. .u-one-line-three {
  1217. width: 224upx;
  1218. margin:0 15upx 16upx 0;
  1219. border-radius: 16upx;
  1220. .u-top {
  1221. position: relative;
  1222. }
  1223. .u-top, .u-out-dialog, .u-dialog-img {
  1224. width: 224upx;
  1225. height: 224upx;
  1226. border-right: 16upx 16upx 0 0;
  1227. }
  1228. .u-goods-name {
  1229. font-size: 26upx;
  1230. margin-top: 10upx;
  1231. line-height: 36upx;
  1232. }
  1233. .u-bottom {
  1234. padding: 0 10upx 15upx 10upx;
  1235. }
  1236. .u-goods-price {
  1237. font-size: 25upx;
  1238. }
  1239. .u-cart-btn-icon {
  1240. width: 45upx;
  1241. height: 45upx;
  1242. }
  1243. .u-goods-sales {
  1244. font-size: 22upx;
  1245. }
  1246. }
  1247. .goods-rank{
  1248. display: flex;
  1249. align-items: center;
  1250. justify-content: center;
  1251. padding: 20rpx 30rpx;
  1252. margin-bottom: -20rpx;
  1253. .item{
  1254. flex: 1;
  1255. display: flex;
  1256. align-items: center;
  1257. justify-content: center;
  1258. &.active{
  1259. font-weight: 600;
  1260. font-size: 32rpx;
  1261. }
  1262. text{
  1263. font-size: 28rpx;
  1264. margin-right: 10rpx;
  1265. }
  1266. image{
  1267. width: 20rpx;
  1268. height: 30rpx;
  1269. }
  1270. }
  1271. }
  1272. </style>