goods_cate.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. <template>
  2. <view class='productSort'>
  3. <!-- #ifdef APP-PLUS -->
  4. <!-- 状态栏占位 -->
  5. <view class="status_bar"></view>
  6. <!-- #endif -->
  7. <!-- 商品搜索 -->
  8. <view class='header acea-row row-center-wrapper' style="margin-top: var(--status-bar-height)">
  9. <view class='acea-row row-between-wrapper input'>
  10. <!-- #ifdef MP -->
  11. <text class='iconfont icon-sousuo'></text>
  12. <!-- #endif -->
  13. <!-- #ifdef APP-PLUS -->
  14. <u-icon name="search"></u-icon>
  15. <!-- #endif -->
  16. <input type='text' placeholder='点击搜索商品信息' @confirm="searchSubmitValue" confirm-type='search'
  17. name="search" placeholder-class='placeholder' />
  18. </view>
  19. </view>
  20. <!-- 商品分类(左) -->
  21. <view class='aside' :style="{bottom: tabbarH + 'px',height: height + 'rpx'}">
  22. <scroll-view scroll-y="true" scroll-with-animation='true' style="height: 100%;">
  23. <view class='item acea-row row-center-wrapper' :class='index==navActive?"on":""'
  24. v-for="(item,index) in productList" :key="index" @click='tap(item.id,index,"b"+index)'>
  25. <text>{{item.name}}</text>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <!-- 商品分类(右) -->
  30. <view class='conter'>
  31. <scroll-view scroll-y="true" :style='"height:"+height+"rpx;margin-top: 96rpx;"'
  32. scroll-with-animation='true'>
  33. <view class='listw'>
  34. <view class='list acea-row'>
  35. <view class='list acea-row row-between-wrapper' :class='is_switch?"":"on"'>
  36. <view class='item' :class='is_switch?"":"on"' hover-class='none'
  37. v-for="(item,index) in goodsRightList" :key="index" @click="godDetail(item)">
  38. <view class='pictrue' :class='is_switch?"":"on"'>
  39. <image :src='item.picUrl' :class='is_switch?"":"on"'></image>
  40. </view>
  41. <view class='text' :class='is_switch?"":"on"'>
  42. <view class='name line1'>{{item.name}}</view>
  43. <view class='money font-color' :class='is_switch?"":"on"'> <text
  44. class='num'>¥{{ fen2yuan(item.price) }}</text>
  45. <view class="carnum num-dis row-left" v-if="item.selected_goods_num>0">
  46. <view class="item reduce"
  47. :class="attr.productSelect.cart_num <= 1 ? 'on' : ''"
  48. @click.stop="CartNumDes(item.id)">
  49. -
  50. </view>
  51. <view class='item num'>
  52. <input type="number" v-model="item.selected_goods_num"
  53. data-name="productSelect.cart_num"
  54. @input="bindCode(attr.productSelect.cart_num)" />
  55. </view>
  56. <view v-if="iSplus" class="item plus"
  57. :class="attr.productSelect.cart_num >= attr.productSelect.stock ? 'on' : ''"
  58. @click.stop="CartNumAdd(item.id)">
  59. +
  60. </view>
  61. <view v-else class='item plus' :class='(attr.productSelect.cart_num >= attr.productSelect.stock)
  62. || (attr.productSelect.cart_num >= attr.productSelect.limitCount)
  63. ? "on":""' @click.stop='CartNumAdd(item.id)'>+</view>
  64. </view>
  65. <view class="circle" v-else @click.stop="addGoods(item.skus[0].id,index)">+
  66. </view>
  67. </view>
  68. <view class='vip acea-row row-between-wrapper' :class='is_switch?"":"on"'>
  69. <view class='vip-money' v-if="item.vipPrice > 0">
  70. ¥{{ fen2yuan(item.price - item.vipPrice) }}
  71. <image src='../../static/images/vip.png'></image>
  72. </view>
  73. <view>已售 {{ item.salesCount || 0}} 库存{{item.stock}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view :style='"height:"+(height-300)+"rpx;"' v-if="number < 15" />
  81. </scroll-view>
  82. </view>
  83. <!-- 购物车 -->
  84. <!-- <view class='footer acea-row row-between-wrapper' >
  85. <view class="zz" @click="hideShoppingCar"></view>
  86. <view class='money acea-row row-middle' @click="showShoppingCar">
  87. <view>费用:¥{{ fen2yuan(0) }}</view>
  88. <form @submit="subOrder" report-submit='true'>
  89. <button class='placeOrder bg-color' formType="submit">立即下单</button>
  90. </form>
  91. </view>
  92. </view> -->
  93. <!-- 购物车列表 -->
  94. <!-- :style="{display: showCar ? 'flex' : 'none'}" -->
  95. <view class="cart-box" v-if="goodsRightList.length>0">
  96. <orderAddcart ref='orderAddcart' @showMask='isShowMask' @cartList="handleCartList"></orderAddcart>
  97. </view>
  98. <view class="zz" @click="hideShoppingCar" v-if="showMask"></view>
  99. </view>
  100. </template>
  101. <script>
  102. import * as CategoryApi from '@/api/product/category.js';
  103. import * as ProductSpuApi from '@/api/product/spu.js';
  104. import * as Util from '@/utils/util.js';
  105. import {
  106. toLogin
  107. } from '@/libs/login.js';
  108. import * as TradeCartApi from '@/api/trade/cart.js';
  109. import {
  110. mapGetters
  111. } from "vuex";
  112. import {
  113. goShopDetail
  114. } from '@/libs/order.js'
  115. import orderAddcart from '@/components/order_addcart';
  116. export default {
  117. data() {
  118. return {
  119. navlist: [],
  120. productList: [], // 商品分类,树形结构
  121. navActive: 0,
  122. number: "",
  123. height: 0,
  124. hightArr: [],
  125. toView: "",
  126. tabbarH: 0,
  127. limit: 10,
  128. page: 1,
  129. goodsRightList: [],
  130. cartList:[],
  131. //显示购物车
  132. showCar: false,
  133. showMask:false,
  134. is_switch:false,
  135. }
  136. },
  137. components: {
  138. orderAddcart
  139. },
  140. computed: mapGetters(['isLogin']),
  141. // onLoad(options) {
  142. // this.getAllCategory();
  143. // },
  144. onShow(){
  145. this.getAllCategory()
  146. },
  147. methods: {
  148. infoScroll: function() {
  149. let len = this.productList.length;
  150. let child = this.productList[len - 1] && this.productList[len - 1].child ? this.productList[len - 1]
  151. .child : [];
  152. this.number = child ? child.length : 0;
  153. // 设置商品列表高度
  154. let that = this;
  155. uni.getSystemInfo({
  156. success: function(res) {
  157. that.height = (res.windowHeight) * (750 / res.windowWidth) - 98;
  158. },
  159. });
  160. let hightArr = [];
  161. // for (let i = 0; i < len; i++) {
  162. // // 获取元素所在位置
  163. // let query = uni.createSelectorQuery().in(this);
  164. // let idView = "#b" + i;
  165. // query.select(idView).boundingClientRect();
  166. // query.exec(function(res) {
  167. // let top = res[0].top;
  168. // hightArr.push(top);
  169. // that.hightArr = hightArr
  170. // });
  171. // }
  172. },
  173. handleCartList(data){
  174. console.log(data,'datadtaa',this.goodsRightList)
  175. this.cartList=data
  176. this.goodsRightList.forEach(goodsItem => {
  177. data.forEach(item => {
  178. if (goodsItem.id === item.spu.id) {
  179. // 找到了匹配的数据,将 selected_goods_num 赋值为 data 中的 count
  180. goodsItem.selected_goods_num = item.count;
  181. // 在这里可以对找到的数据进行其他操作
  182. console.log('Matched item:', goodsItem);
  183. }
  184. });
  185. });
  186. },
  187. isShowMask(){
  188. this.showMask=true
  189. },
  190. tap: function(itemId, index, id) {
  191. console.log('点击了', itemId, id, index)
  192. this.toView = id;
  193. this.navActive = index;
  194. this.getGoodsList(itemId)
  195. },
  196. getGoodsList(id) {
  197. ProductSpuApi.getSpuPage({
  198. categoryId: id,
  199. pageNo: this.page,
  200. pageSize: this.limit
  201. }).then(res => {
  202. console.log(res, 77788999)
  203. this.goodsRightList = res.data.list.map(item => {
  204. return {
  205. ...item,
  206. selected_goods_num: 0
  207. }
  208. })
  209. })
  210. },
  211. getAllCategory: function() {
  212. console.log('这里执行了')
  213. CategoryApi.getCategoryList().then(res => {
  214. this.productList = Util.handleTree(res.data);
  215. console.log(this.productList, 'this.productList')
  216. this.getGoodsList(this.productList[0].id)
  217. setTimeout(() => {
  218. this.infoScroll();
  219. }, 500)
  220. })
  221. },
  222. scroll: function(e) {
  223. let scrollTop = e.detail.scrollTop;
  224. let scrollArr = this.hightArr;
  225. for (let i = 0; i < scrollArr.length; i++) {
  226. if (scrollTop >= 0 && scrollTop < scrollArr[1] - scrollArr[0]) {
  227. this.navActive = 0
  228. } else if (scrollTop >= scrollArr[i] - scrollArr[0] && scrollTop < scrollArr[i + 1] - scrollArr[
  229. 0]) {
  230. this.navActive = i
  231. } else if (scrollTop >= scrollArr[scrollArr.length - 1] - scrollArr[0]) {
  232. this.navActive = scrollArr.length - 1
  233. }
  234. }
  235. },
  236. searchSubmitValue: function(e) {
  237. if (this.$util.trim(e.detail.value).length > 0) {
  238. uni.navigateTo({
  239. url: '/pages/goods_list/index?searchValue=' + e.detail.value
  240. })
  241. } else {
  242. return this.$util.Tips({
  243. title: '请填写要搜索的产品信息'
  244. });
  245. }
  246. },
  247. fen2yuan(price) {
  248. return Util.fen2yuan(price)
  249. },
  250. // 去详情页
  251. godDetail(item) {
  252. goShopDetail(item, this.uid).then(res => {
  253. uni.navigateTo({
  254. url: `/pages/goods_details/index?id=${item.id}`
  255. })
  256. })
  257. },
  258. addGoods(id, index) {
  259. // 未登录,需要跳转
  260. if (!this.isLogin) {
  261. toLogin();
  262. return;
  263. }
  264. // // 库存不足
  265. // let sku = this.attr.productSelect;
  266. // if (sku.stock === 0) {
  267. // return that.$util.Tips({
  268. // title: "产品库存不足,请选择其它"
  269. // });
  270. // }
  271. // 添加购物车
  272. TradeCartApi.addCart({
  273. count: 1,
  274. skuId: id,
  275. }).then(res => {
  276. console.log('我进拉了', index, this.goodsRightList, )
  277. console.log(this.goodsRightList[index].selected_goods_num, 888)
  278. // this.$set(this.goodsRightList[index],'selected_goods_num')
  279. this.goodsRightList[index].selected_goods_num++
  280. // // 关闭 attr 组件
  281. // this.attr.cartAttr = false;
  282. // 提示成功
  283. this.$util.Tips({
  284. title: "添加购物车成功",
  285. success: () => {
  286. this.$refs.orderAddcart.getCartList()
  287. }
  288. });
  289. }).catch(res => {
  290. this.$util.Tips({
  291. title: res
  292. });
  293. });
  294. },
  295. CartNumDes: function(id) {
  296. console.log('我减少了',id,this.cartList)
  297. const index = this.cartList.findIndex(item => item.spu.id === id);
  298. this.$refs.orderAddcart.subCart(index)
  299. },
  300. CartNumAdd: function(id) {
  301. console.log('我增加了',id,this.cartList)
  302. const index = this.cartList.findIndex(item => item.spu.id === id);
  303. this.$refs.orderAddcart.addCart(index)
  304. },
  305. //显示购物车
  306. showShoppingCar(){
  307. // if(this.goodsTotalNumber == 0){
  308. // return;
  309. // }
  310. // this.footHeight = '100%';
  311. this.showCar = true;
  312. // this.carGoodsScrollTop = 0;
  313. },
  314. //隐藏购物车
  315. hideShoppingCar(){
  316. // this.footHeight = '0';
  317. this.$refs.orderAddcart.showCartList = false;
  318. this.showMask=false
  319. },
  320. }
  321. }
  322. </script>
  323. <style scoped lang="scss">
  324. .cart-box{
  325. display: flex;
  326. justify-content: flex-start;
  327. flex-flow: column;
  328. background: #ffffff;
  329. position: absolute;
  330. bottom: 0;
  331. z-index: 8;
  332. max-height: 66%;
  333. padding-bottom: 48px;
  334. border-top-left-radius: 16px;
  335. border-top-right-radius: 16px;
  336. overflow: hidden;
  337. width: 100%;
  338. border: 1rpx solid red;
  339. }
  340. .zz{
  341. position: absolute;
  342. top: 0;
  343. left: 0;
  344. right: 0;
  345. bottom: 0;
  346. background-color: rgba(0,0,0,.7);
  347. z-index: 1;
  348. }
  349. .productSort .header {
  350. width: 100%;
  351. height: 96rpx;
  352. background-color: #fff;
  353. position: fixed;
  354. left: 0;
  355. right: 0;
  356. top: 0;
  357. z-index: 9;
  358. border-bottom: 1rpx solid #f5f5f5;
  359. }
  360. .productSort .header .input {
  361. width: 700rpx;
  362. height: 60rpx;
  363. background-color: #f5f5f5;
  364. border-radius: 50rpx;
  365. box-sizing: border-box;
  366. padding: 0 25rpx;
  367. }
  368. .productSort .header .input .iconfont {
  369. font-size: 26rpx;
  370. color: #555;
  371. }
  372. .productSort .header .input .placeholder {
  373. color: #999;
  374. }
  375. .productSort .header .input input {
  376. font-size: 26rpx;
  377. height: 100%;
  378. width: 597rpx;
  379. }
  380. .productSort .aside {
  381. position: fixed;
  382. width: 180rpx;
  383. left: 0;
  384. top: 0;
  385. background-color: #f7f7f7;
  386. overflow-y: scroll;
  387. overflow-x: hidden;
  388. height: auto;
  389. margin-top: 96rpx;
  390. }
  391. .productSort .aside .item {
  392. height: 100rpx;
  393. width: 100%;
  394. font-size: 26rpx;
  395. color: #424242;
  396. }
  397. .productSort .aside .item.on {
  398. background-color: #fff;
  399. border-left: 4rpx solid #fc4141;
  400. width: 100%;
  401. text-align: center;
  402. color: #fc4141;
  403. font-weight: bold;
  404. }
  405. .productSort .conter {
  406. margin: 96rpx 0 0 180rpx;
  407. padding: 0 14rpx;
  408. background-color: #fff;
  409. }
  410. .productSort .conter .listw {
  411. // padding-top: 20rpx;
  412. }
  413. .productSort .conter .listw .title {
  414. height: 90rpx;
  415. }
  416. .productSort .conter .listw .title .line {
  417. width: 100rpx;
  418. height: 2rpx;
  419. background-color: #f0f0f0;
  420. }
  421. .productSort .conter .listw .title .name {
  422. font-size: 28rpx;
  423. color: #333;
  424. margin: 0 30rpx;
  425. font-weight: bold;
  426. }
  427. .productSort .conter .list {
  428. flex-wrap: wrap;
  429. }
  430. .productSort .conter .list .item {
  431. // width: 177rpx;
  432. // margin-top: 26rpx;
  433. }
  434. .productSort .conter .list .item .picture {
  435. width: 120rpx;
  436. height: 120rpx;
  437. border-radius: 50%;
  438. }
  439. .productSort .conter .list .item .picture image {
  440. width: 100%;
  441. height: 100%;
  442. border-radius: 50%;
  443. div {
  444. background-color: #f7f7f7;
  445. }
  446. }
  447. .productSort .conter .list .item .name {
  448. font-size: 24rpx;
  449. color: #333;
  450. height: 56rpx;
  451. line-height: 56rpx;
  452. width: 120rpx;
  453. text-align: center;
  454. }
  455. .productSort .conter .listw .list {
  456. padding: 0 30rpx;
  457. }
  458. .productSort .conter .listw .list.on {
  459. border-radius: 14rpx;
  460. margin-top: 0 !important;
  461. background-color: #fff;
  462. padding: 40rpx 0 0 0;
  463. // margin: 20rpx 0;
  464. // background-color: #fff;
  465. }
  466. .productSort .conter .listw .list .item {
  467. // width: 335rpx;
  468. background-color: #fff;
  469. border-radius: 14rpx;
  470. margin-bottom: 20rpx;
  471. }
  472. .productSort .conter .listw .list .item.on {
  473. width: 100%;
  474. display: flex;
  475. padding: 0 0 50rpx 24rpx;
  476. margin: 0;
  477. border-radius: 14rpx;
  478. }
  479. .productSort .conter .listw .list .item .pictrue {
  480. position: relative;
  481. width: 100%;
  482. height: 335rpx;
  483. }
  484. .productSort .conter .listw .list .item .pictrue.on {
  485. width: 180rpx;
  486. height: 180rpx;
  487. }
  488. .productSort .conter .listw .list .item .pictrue image {
  489. width: 100%;
  490. height: 100%;
  491. border-radius: 20rpx 20rpx 0 0;
  492. }
  493. .productSort .conter .listw .list .item .pictrue image.on {
  494. border-radius: 6rpx;
  495. }
  496. .productSort .conter .listw .list .item .text {
  497. padding: 18rpx 20rpx;
  498. font-size: 30rpx;
  499. color: #222;
  500. }
  501. .productSort .conter .listw .list .item .text.on {
  502. // width: 456rpx;
  503. flex: 1;
  504. padding: 0 0 0 20rpx;
  505. }
  506. .productSort .conter .listw .list .item .text .money {
  507. width: 100%;
  508. font-size: 26rpx;
  509. font-weight: bold;
  510. margin-top: 8rpx;
  511. display: flex;
  512. align-items: center;
  513. justify-content: space-between;
  514. }
  515. .productSort .conter .listw .list .item .text .money.on {
  516. margin-top: 50rpx;
  517. }
  518. .productSort .conter .listw .list .item .text .money .num {
  519. font-size: 28rpx;
  520. }
  521. .productSort .conter .listw .list .item .text .money .carnum {
  522. // height: 54rpx;
  523. margin-top: 24rpx;
  524. display: flex;
  525. }
  526. .productSort .conter .listw .list .item .text .money .carnum view {
  527. // border: 1px solid #a4a4a4;
  528. // width: 84rpx;
  529. text-align: center;
  530. height: 100%;
  531. line-height: 54rpx;
  532. color: #282828;
  533. font-size: 45rpx;
  534. margin-left: 10rpx;
  535. }
  536. .productSort .conter .listw .list .item .text .money .carnum .reduce {
  537. border-right: 0;
  538. border-radius: 6rpx 0 0 6rpx;
  539. line-height: 48rpx;
  540. }
  541. .productSort .conter .listw .list .item .text .money .carnum .reduce.on {
  542. // border-color: #e3e3e3;
  543. color: #DEDEDE;
  544. font-size: 44rpx;
  545. }
  546. .productSort .conter .listw .list .item .text .money .carnum .plus {
  547. border-left: 0;
  548. border-radius: 0 6rpx 6rpx 0;
  549. line-height: 46rpx;
  550. }
  551. .productSort .conter .listw .list .item .text .money .carnum .plus.on {
  552. border-color: #e3e3e3;
  553. color: #dedede;
  554. }
  555. .productSort .conter .listw .list .item .text .money .carnum .num {
  556. background: rgba(242, 242, 242, 1);
  557. color: #282828;
  558. font-size: 28rpx;
  559. border-radius: 12rpx;
  560. line-height: 29px;
  561. height: 54rpx;
  562. input {
  563. display: -webkit-inline-box;
  564. }
  565. }
  566. .productSort .conter .listw .list .item .text .money .circle {
  567. width: 40rpx;
  568. height: 40rpx;
  569. background-color: #E93323;
  570. border-radius: 50%;
  571. display: flex;
  572. justify-content: center;
  573. // align-items: center;
  574. color: white;
  575. font-size: 14px;
  576. }
  577. .productSort .conter .listw .list .item .text .vip {
  578. font-size: 22rpx;
  579. color: #aaa;
  580. margin-top: 7rpx;
  581. }
  582. .productSort .conter .listw .list .item .text .vip.on {
  583. margin-top: 12rpx;
  584. }
  585. .productSort .conter .listw .list .item .text .vip .vip-money {
  586. font-size: 24rpx;
  587. color: #282828;
  588. font-weight: bold;
  589. }
  590. .productSort .conter .listw .list .item .text .vip .vip-money image {
  591. width: 46rpx;
  592. height: 21rpx;
  593. margin-left: 4rpx;
  594. }
  595. .footer {
  596. z-index: 9;
  597. width: 100%;
  598. // height: 100rpx;
  599. // background-color: red;
  600. height: 100rpx;
  601. color: #fff;
  602. background-color: #313131;
  603. border-radius: 49rpx;
  604. position: fixed;
  605. padding: 0 24rpx;
  606. box-sizing: border-box;
  607. border-top: 1rpx solid #eee;
  608. // border-bottom: 1px solid #EEEEEE;
  609. /* #ifdef H5 */
  610. bottom: 98rpx;
  611. /* #endif */
  612. /* #ifdef MP */
  613. bottom: 0;
  614. /* #endif */
  615. /* #ifndef MP */
  616. // bottom: 98rpx;
  617. // bottom: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  618. // bottom: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  619. /* #endif */
  620. }
  621. .footer .checkAll {
  622. font-size: 28rpx;
  623. color: #282828;
  624. margin-left: 14rpx;
  625. }
  626. .footer .money {
  627. font-size: 30rpx;
  628. color: #fff;
  629. width: 100%;
  630. display: flex;
  631. justify-content: space-between;
  632. }
  633. .footer .zz{
  634. position: absolute;
  635. top: 0;
  636. left: 0;
  637. right: 0;
  638. bottom: 0;
  639. background-color: rgba(0,0,0,.7);
  640. z-index: 1;
  641. }
  642. .footer .placeOrder {
  643. color: #fff;
  644. font-size: 30rpx;
  645. width: 226rpx;
  646. height: 70rpx;
  647. border-radius: 50rpx;
  648. text-align: center;
  649. line-height: 70rpx;
  650. margin-left: 22rpx;
  651. background-color: #EC3534;
  652. }
  653. .footer .button .bnt {
  654. font-size: 28rpx;
  655. color: #999;
  656. border-radius: 50rpx;
  657. border: 1px solid #999;
  658. width: 160rpx;
  659. height: 60rpx;
  660. text-align: center;
  661. line-height: 60rpx;
  662. }
  663. .footer .button form~form {
  664. margin-left: 17rpx;
  665. }
  666. </style>