index.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  3. <tm-menubars title="详情" :shadow="0" :showback="true"></tm-menubars>
  4. <view class="C1b1b1b">
  5. <tm-swiper :list="swipList" :autoplay="true" :indicator-dots="true" height="288px" circular></tm-swiper>
  6. <view style="padding: 10px 20px;">
  7. <view class="del_title">
  8. <view>黑色手提包</view>
  9. <view class="de_tag">运动休闲</view>
  10. </view>
  11. <view style="display: flex;justify-content: space-between;">
  12. <view>
  13. <text class="sale_price">¥1299.00</text>
  14. <text class="original_price">原价:2088</text>
  15. </view>
  16. <view style="font-size: 14px;color:#ababab;">销量:42</view>
  17. </view>
  18. </view>
  19. </view>
  20. <div class="zhuti" style="padding-bottom:60px !important;">
  21. <tm-sheet class="kuang" style="padding-bottom: 30px !important;">
  22. <view style="width: 98%;margin:0 auto;margin-top:20px !important;position: relative;">
  23. <view style="padding: 10px 10px 0px;">
  24. <view class="line_bottom" style="font-size: 15px;">商品参数:</view>
  25. <view class="line_bottom">
  26. <view class="" v-for="(item,index) in showList" :key="index">
  27. <view class="line_my text-white" >
  28. <view style="width: 100px;">{{item}}:</view>
  29. <view >
  30. {{index==0?paramList.name:''}}
  31. {{index==1?paramList.style:''}}
  32. {{index==2?paramList.goodNo:''}}
  33. {{index==3?paramList.size:''}}
  34. {{index==4?paramList.artNo:''}}
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="" style="padding: 10px 0px 0px;">
  41. <text v-html="explain"></text>
  42. </view>
  43. </view>
  44. </tm-sheet>
  45. <view class="" style="text-align: center;margin: 20px 0;font-size: 15px;">
  46. - 猜你喜欢 -
  47. </view>
  48. <view style="width: 94%;margin:0 auto;" class="remen">
  49. <view v-for="(item,index) in listdata" class="round-5 contone mt-20" :class="index%2==0?'fl':'fr'"
  50. @click="goDetail(item.id)" style="background-color: #1B1B1B;">
  51. <image class="logo" :src="item.image" mode="widthFix"></image>
  52. <view class="pa-15 text-size-s">
  53. <view class="fr biaoqian">运动休闲</view>
  54. <view class="">
  55. <text class="text-size-lg">{{item.text}}</text>
  56. <view class="text-gray mt-6">销量:{{item.xiaol}}</view>
  57. </view>
  58. <view class="mt-2 flex-between flex-center">
  59. <view class="touxiang mt-30">
  60. <text class="text-white text-size-m text-weight-b">{{item.jiage}}</text>
  61. </view>
  62. <view>
  63. <image @click="jiarufuFun(item)" class="remenzan" src="/static/img/86.png"
  64. mode="widthFix"></image>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view style="clear: both;"></view>
  70. <view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()">
  71. <image src="/static/img/30.png" mode="widthFix"></image>
  72. <text class="text-size-s">下拉加载更多~</text>
  73. </view>
  74. </view>
  75. </div>
  76. <view class="bottom_btn">
  77. <view class="btn_col" style="background: #1c1c1c;" @click="goCollect">
  78. <image style="width: 18px;height: 16px;" src="/static/img/98.png" mode="widthFix"></image>
  79. <text style="margin-left: 10px;">收藏</text>
  80. </view>
  81. <view class="btn_gouwu" style="background:#303030;" @click="goBar">
  82. <image src="/static/img/97.png" mode="widthFix" style="width: 15px;height: 16px;"></image>
  83. <text style="margin-left: 10px;">添加购物车</text>
  84. </view>
  85. <view class="btn_buy" style="background: #0178fd;" @click="goBuy">立即购买</view>
  86. </view>
  87. <!-- 弹出层消息 -->
  88. <tm-message ref="toast"></tm-message>
  89. </view>
  90. </template>
  91. <script>
  92. import {
  93. myRequest
  94. } from '@/api/request.js'
  95. export default {
  96. data() {
  97. return {
  98. showList: ['名称', '款式', '商品编号', '尺寸', '货号'],
  99. xianshi: true,
  100. swipList: [{
  101. src: '../../static/img/99.png'
  102. }, {
  103. src: '../../static/img/99.png'
  104. },
  105. {
  106. src: '../../static/img/99.png'
  107. }
  108. ],
  109. // 参数列表
  110. paramList: {
  111. name: '黑色公文包',
  112. style: '黑色 QD2334664 L',
  113. goodNo: '19862088811',
  114. size: 'S/M/L',
  115. artNo: 'QD2334664'
  116. },
  117. // 说明
  118. explain: "<ul style='font-size: 14px;text-indent: 0.5em;'><li style='margin-bottom: 10px;'>划线价格,商品的专柜价、吊牌价、正品零售价、厂商指导价或该商品的曾经展示过的销售价等,并非原价,仅供参考。</li><li> 未划线价格,商品的实时标价,不因表述的差异改变性质。具体成交价格根据商品参加活动,或会员使用优惠券、积分等发生变化,最终以订单结算页价格为准。</li></ul>",
  119. listdata: []
  120. };
  121. },
  122. onLoad() {},
  123. created() {
  124. this.sys = uni.getSystemInfoSync();
  125. this.randouh()
  126. },
  127. methods: {
  128. jiarufuFun(){
  129. },
  130. goDetail(){
  131. },
  132. randouh() {
  133. let list2 = [],
  134. that = this;
  135. for (let i = 0; i < 8; i++) {
  136. list2.push({
  137. image: '../../static/img/90.png',
  138. text: '帽子',
  139. jiage: '¥ 359.00',
  140. xiaol: '128'
  141. })
  142. }
  143. this.listdata = this.listdata.concat(list2)
  144. console.log(this.listdata)
  145. },
  146. xiugaiFun() {
  147. this.xianshi = false;
  148. },
  149. gengmore() {
  150. this.randouh()
  151. },
  152. goCollect() {
  153. console.log('收藏');
  154. },
  155. goBar() {
  156. console.log('购物车');
  157. },
  158. goBuy() {
  159. console.log('购买');
  160. }
  161. },
  162. }
  163. </script>
  164. <style lang="scss">
  165. /deep/ .tm-menubars .body {
  166. background-color: #1b1b1b !important;
  167. }
  168. .del_title {
  169. display: flex;
  170. justify-content: space-between;
  171. margin: 0 0 15px;
  172. font-size: 16px;
  173. }
  174. .sale_price {
  175. color: #0E68CF;
  176. margin-right: 12px;
  177. font-weight: bold;
  178. font-size: 17px;
  179. }
  180. .de_tag {
  181. border-radius: 20px;
  182. background: rgba(156, 156, 156, 0.3);
  183. padding: 5px 14px;
  184. font-size: 13px;
  185. }
  186. .original_price {
  187. text-decoration: line-through;
  188. color: #ababab;
  189. font-size: 13px;
  190. }
  191. /deep/ .zhuti {
  192. padding: 0px 5px 10px;
  193. }
  194. /deep/ .kuang {
  195. margin: 0 !important;
  196. padding: 0px !important;
  197. }
  198. /deep/ .round-4 {
  199. border-radius: 0px !important;
  200. }
  201. .kuang .line_bottom {
  202. padding: 10px;
  203. border-bottom: 2px solid rgba(129, 129, 129, 0.2);
  204. }
  205. .line_my {
  206. margin: 10px 0;
  207. display: flex;
  208. font-size: 14px;
  209. }
  210. /deep/ .qiehuan1 .text-primary {
  211. color: white !important;
  212. }
  213. .touxiang {
  214. width: 100%;
  215. display: block;
  216. margin-top: 10px;
  217. }
  218. .xiugai image {
  219. width: 18px;
  220. vertical-align: middle;
  221. margin-right: 5px;
  222. }
  223. .xiugai text {
  224. vertical-align: middle;
  225. }
  226. .xiugai {
  227. position: absolute;
  228. right: 5px;
  229. top: 10px;
  230. }
  231. .you {
  232. border-radius: 10px;
  233. padding: 10px;
  234. width: 88%;
  235. margin: 0 auto;
  236. margin-top: 20px;
  237. }
  238. /deep/ .you .grey-darken-5 {
  239. background-color: #0d0d0d !important;
  240. padding: 0px !important;
  241. }
  242. /deep/ .you .text-red {
  243. color: white;
  244. }
  245. /deep/ .tan .active {
  246. background-color: #AAAAAA !important;
  247. }
  248. /deep/ .tan .tm-poups .grey-darken-5 {
  249. background-color: gray !important;
  250. }
  251. /deep/ .tan uni-input {
  252. text-align: right;
  253. }
  254. /deep/ .you .border-grey-darken-4-b-1 {
  255. border-bottom: solid 1px #313131 !important;
  256. }
  257. .yiguicla image {
  258. width: 95%;
  259. display: block;
  260. margin: 0 auto;
  261. margin-top: 5px;
  262. }
  263. .yiguicla {
  264. width: 30%;
  265. border-radius: 10px;
  266. }
  267. .sao {
  268. width: 88%;
  269. margin: 0 auto;
  270. margin-top: 40px;
  271. }
  272. /deep/ .mx-32 {
  273. margin: 0px !important;
  274. margin-top: 15px !important;
  275. }
  276. .bottom_btn {
  277. left: 0;
  278. bottom: 0;
  279. width: 100%;
  280. height: 50px;
  281. display: flex;
  282. position: fixed;
  283. font-size: 15px;
  284. justify-content: space-between;
  285. box-sizing: border-box;
  286. .btn_col,
  287. .btn_gouwu,
  288. .btn_buy {
  289. height: 100%;
  290. width: 33.3%;
  291. display: flex;
  292. align-items: center;
  293. justify-content: center;
  294. box-sizing: border-box;
  295. }
  296. }
  297. .logo {
  298. width: 100%;
  299. }
  300. .dingwei {
  301. width: 21%;
  302. margin-top: 3%;
  303. }
  304. .contone {
  305. width: 48%;
  306. }
  307. .remenzan {
  308. width: 18px !important;
  309. margin-top: 10px;
  310. }
  311. .more {
  312. text-align: center;
  313. }
  314. .more image {
  315. margin-right: 10px;
  316. vertical-align: middle;
  317. width: 30px;
  318. }
  319. .biaoqian{
  320. background: #303440;
  321. padding: 4px 15px;
  322. border-radius: 30px;
  323. }
  324. </style>