collection.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. <template>
  2. <view class="collection-box">
  3. <global-loading />
  4. <view class="tabsbox">
  5. <u-tabs
  6. :list="collectionTypeList" bar-width="60" :bold="false" active-color="#333333"
  7. inactive-color="#CCCCCC"
  8. :is-scroll="false" :current="collectionTypeFlag" @change="collectionTypeActive"
  9. ></u-tabs>
  10. </view>
  11. <view v-if="collectionTypeFlag == 0">
  12. <view v-if="productCollect.length > 0">
  13. <view class="wid function-box">
  14. <view v-if="allCheckShow" class="finishbox" @click="finishClick">完成</view>
  15. <view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
  16. <image class="editicon" src="../../static/images/origin/collectionEditicon.png">
  17. </image>
  18. <text class="mar-left-10">编辑</text>
  19. </view>
  20. </view>
  21. <view class="swipe-box">
  22. <view v-for="(item, index) in productCollect" :key="item.collectId" class="actionBox" :index="index">
  23. <u-swipe-action
  24. ref="actionSwipe" :disabled="allCheckShow" :show="item.show" :auto-close="false"
  25. :options="options" @open="productOpen(index)" @click="productActionClick"
  26. >
  27. <!-- :disabled="allCheckShow" -->
  28. <view class="flex-item" @click.stop="toGoodsDetails(item.productId, item.shopId, item.skuId)">
  29. <view class="item wid flex-row-plus flex-display">
  30. <view v-show="allCheckShow" class="flex-items selctBtn">
  31. <image
  32. v-if="item.selected == 1" mode="aspectFill" src="../../static/images/origin/selectActive.png"
  33. class="cart-select-img" @click.stop="productItemSel(index, 0)"
  34. ></image>
  35. <image
  36. v-else mode="aspectFill" src="../../static/images/origin/selectEmpty.png"
  37. class="cart-select-img" @click.stop="productItemSel(index, 1)"
  38. ></image>
  39. </view>
  40. <view class="infoCent flex-items">
  41. <image class="product-img default-img" mode="aspectFill" :src="item.image" />
  42. <!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
  43. <view class="title-wrap mar-left-20 priceBox">
  44. <text class="title u-line-2 fs28 font-color-333">
  45. {{ item.productName }}
  46. </text>
  47. <view class="flex-items">
  48. <!-- <image v-if="item.activityType" class="iconImg mar-right-10"
  49. :src="imgs[item.activityType]"></image> -->
  50. <image
  51. v-if="item.activityType === 1" class="iconImg"
  52. src="../../static/images/origin/groupBuyIcon.png" alt="拼团icon"
  53. ></image>
  54. <image
  55. v-if="item.activityType === 2" class="iconImg"
  56. src="../../static/images/origin/spikeIcon.png" alt="秒杀活动"
  57. ></image>
  58. <image
  59. v-if="item.activityType === 3" class="iconImg discountIcon"
  60. src="../../static/images/origin/xianshizhekou.png" alt="限时折扣活动"
  61. ></image>
  62. <image
  63. v-if="item.activityType === 4" class="iconImg"
  64. src="../../static/images/origin/spikeIcon.png" alt="平台秒杀"
  65. ></image>
  66. <image
  67. v-if="item.activityType === 5" class="iconImg"
  68. src="../../static/images/origin/discountListIcon.png" alt="平台折扣"
  69. ></image>
  70. <image
  71. v-if="item.activityType === 9" class="iconImg"
  72. src="../../static/images/origin/memberCenterIcon.png" alt="会员价"
  73. ></image>
  74. <image
  75. v-if="item.activityType === 8" class="iconImg"
  76. src="../../static/images/origin/jierizhekou.png" alt="场景营销"
  77. ></image>
  78. <text class="fs40 font-color-C83732">¥</text>
  79. <text class="fs40 font-color-C83732 mar-right-20">{{ item.price }}</text>
  80. <text class="font-color-CCC discountsPriceLine fs24">
  81. ¥{{ item.originalPrice }}
  82. </text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </u-swipe-action>
  89. </view>
  90. </view>
  91. <view v-if="allCheckShow" class="pad-bot-140"></view>
  92. <view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
  93. <view class="left">
  94. <image
  95. v-if="isAllProCheck" mode="aspectFill" src="../../static/images/origin/selectActive.png"
  96. class="cart-select-img" @click="allProductSel(0)"
  97. ></image>
  98. <image
  99. v-else mode="aspectFill" src="../../static/images/origin/selectEmpty.png" class="cart-select-img"
  100. @click="allProductSel(1)"
  101. ></image>
  102. <text>全选</text>
  103. </view>
  104. <view class="right">
  105. <view class="btn-delete" @click="showCardModalPaoductDel">删除</view>
  106. </view>
  107. </view>
  108. <view v-if="allCheckShow" class="pad-bot-140"></view>
  109. </view>
  110. <view v-if="productCollect.length == 0 && proCollectShow" class="mar-top-60 empty-box">
  111. <image class="collect-empty" src="../../static/images/origin/collectEmpty.png"></image>
  112. <view class="tohome-box flex-items-plus">暂无收藏</view>
  113. </view>
  114. </view>
  115. <view v-if="collectionTypeFlag == 1">
  116. <view v-if="storeCollect.length > 0">
  117. <view v-if="allCheckShow" class="finishbox" @click="finishClick">完成</view>
  118. <view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
  119. <image class="editicon" src="../../static/images/origin/collectionEditicon.png">
  120. </image>
  121. <text class="mar-left-10">编辑</text>
  122. </view>
  123. <view class="swipe-box swipeBox">
  124. <view v-for="(item, index) in storeCollect" :key="item.collectId" class="shopBox" :index="index">
  125. <u-swipe-action
  126. ref="shopActionSwipe" :disabled="allCheckShow" :show="item.show" :options="options"
  127. @click="storeActionClick(index)" @open="storeOpen(index)"
  128. >
  129. <view class="item wid flex-row-plus flex-display">
  130. <view v-show="allCheckShow" class="selctBtn flex-items">
  131. <image
  132. v-if="item.selected == 1" mode="aspectFill" src="../../static/images/origin/selectActive.png"
  133. class="cart-select-img" @click.stop="storeItemSel(index, 0)"
  134. ></image>
  135. <image
  136. v-else mode="aspectFill" src="../../static/images/origin/selectEmpty.png" class="cart-select-img"
  137. @click.stop="storeItemSel(index, 1)"
  138. ></image>
  139. </view>
  140. <view class="infoCent">
  141. <view class="flex-row-plus flex-sp-between flex-items-plus wid">
  142. <view class="flex-items-plus flex-row pad-topbot-10">
  143. <image class="head-img" mode="aspectFill" :src="item.shopLogo" />
  144. <!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
  145. <view class="title-wrap mar-left-20">
  146. <text class="title u-line-2 shopName">{{ item.shopName }}</text>
  147. <text class="font-color-CCC fs24">{{ item.person }}人关注</text>
  148. </view>
  149. </view>
  150. <view class="toStore flex-items-plus fs24" @click="toStoreClick(item.shopId)">
  151. 进入店铺
  152. <image src="../../static/images/origin/arrowR.png"></image>
  153. </view>
  154. </view>
  155. <view v-if="item.productList.length > 0" class="shopImgBox">
  156. <view
  157. v-for="(sItem, sIndex) in item.productList" :key="sIndex" class="itemImgBox"
  158. @click.stop="goodsDateils(sItem.shopId, sItem.productId, sItem.skuId)"
  159. >
  160. <image :src="sItem.image" class="pic-img default-img"></image>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </u-swipe-action>
  166. </view>
  167. </view>
  168. <view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
  169. <view class="left">
  170. <image
  171. v-if="isAllStoreCheck" mode="aspectFill" src="../../static/images/origin/selectActive.png"
  172. class="cart-select-img" @click="allStoreSel(0)"
  173. ></image>
  174. <image
  175. v-else mode="aspectFill" src="../../static/images/origin/selectEmpty.png" class="cart-select-img"
  176. @click="allStoreSel(1)"
  177. ></image>
  178. <text>全选</text>
  179. </view>
  180. <view class="right">
  181. <view class="btn-delete" @click="showCardModalshopDel">删除</view>
  182. </view>
  183. </view>
  184. <view v-if="allCheckShow" class="pad-bot-140"></view>
  185. </view>
  186. <view v-if="storeCollect.length == 0 && storeCollectShow" class="mar-top-60 empty-box">
  187. <image class="collect-empty" src="../../static/images/origin/collectEmpty.png"></image>
  188. <view class="tohome-box flex-items-plus">暂无收藏</view>
  189. </view>
  190. </view>
  191. <!-- 删除确认弹窗 -->
  192. <TuiModal :show="cardModal" :custom="true" :fadein="true">
  193. <view class="Put-box1">
  194. <view class="text-align fs34 fs-bold">
  195. 温馨提示
  196. </view>
  197. <view v-if="paoductDelSubmit" class="mar-top-40 text-align">
  198. 是否删除该商品?
  199. </view>
  200. <view v-if="shopDelSubmit" class="mar-top-40 text-align">
  201. 是否删除该店铺?
  202. </view>
  203. <view class="flex-display flex-sp-between">
  204. <view v-if="paoductDelSubmit" class="btn submit" @click="paoductDel">确定</view>
  205. <view v-if="shopDelSubmit" class="btn submit" @click="shopDel">确定</view>
  206. </view>
  207. </view>
  208. <view v-if="cardModal" class="cancelDel" @click="cardModal = false">
  209. <image src="../../static/images/origin/cancelClose.png" mode=""></image>
  210. </view>
  211. </TuiModal>
  212. </view>
  213. </template>
  214. <script>
  215. import tuiModal from '@/components/modal/modal'
  216. const NET = require('../../utils/request')
  217. const API = require('../../config/api')
  218. export default {
  219. components: {
  220. TuiModal: tuiModal
  221. },
  222. data() {
  223. return {
  224. imgs: [
  225. '../../static/images/origin/groupBuyIcon.png',
  226. '../../static/images/origin/spikeIcon.png',
  227. '../../static/images/origin/discountListIcon.png',
  228. '../../static/images/origin/spikeIcon.png',
  229. '../../static/images/origin/discountListIcon.png'
  230. ],
  231. collectionTypeList: [{
  232. name: '商品'
  233. }, {
  234. name: '店铺'
  235. }],
  236. collectionTypeFlag: 0,
  237. disabled: false,
  238. btnWidth: 180,
  239. show: false,
  240. options: [ {
  241. text: ' ',
  242. style: {
  243. backgroundColor: '#F15C48'
  244. }
  245. } ],
  246. isAllProCheck: false,
  247. isAllStoreCheck: false,
  248. allCheckShow: false,
  249. productCollect: [],
  250. storeCollect: [],
  251. productPage: 1,
  252. productPageSize: 10,
  253. proloadingType: 0,
  254. storePage: 1,
  255. storePageSize: 10,
  256. storeloadingType: 0,
  257. storeCollectShow: false,
  258. proCollectShow: false,
  259. cardModal: false,
  260. paoductDelSubmit: false,
  261. shopDelSubmit: false,
  262. ids: null,
  263. currentIndex: null,
  264. currentType: null
  265. }
  266. },
  267. onLoad() {
  268. this.getProductCollect()
  269. },
  270. onReachBottom() {
  271. if (this.collectionTypeFlag == 0) {
  272. if (this.proloadingType == 1) {
  273. uni.stopPullDownRefresh()
  274. } else {
  275. this.productPage = this.productPage + 1
  276. this.getProductCollect()
  277. }
  278. } else if (this.collectionTypeFlag == 1) {
  279. if (this.storeloadingType == 1) {
  280. uni.stopPullDownRefresh()
  281. } else {
  282. this.storePage = this.storePage + 1
  283. this.getStoreCollect()
  284. }
  285. }
  286. },
  287. methods: {
  288. // 批量删除
  289. showCardModalPaoductDel() {
  290. let isShowProoductDelSubmit = false
  291. // 商品
  292. this.productCollect.forEach((value, index) => {
  293. if (value.selected == 1) {
  294. isShowProoductDelSubmit = true
  295. }
  296. })
  297. if (isShowProoductDelSubmit === true) {
  298. this.cardModal = true
  299. this.paoductDelSubmit = true
  300. this.shopDelSubmit = false
  301. } else {
  302. this.$u.toast(`请先选择要删除的收藏宝贝!`)
  303. }
  304. },
  305. paoductDel() {
  306. if (this.currentType === 1) {
  307. this.cancelCollect(this.ids)
  308. this.productCollect.splice(this.currentIndex, 1)
  309. } else {
  310. const ids = []
  311. this.productCollect.forEach((value, index) => {
  312. if (value.selected == 1) {
  313. ids.push(value.collectId)
  314. }
  315. })
  316. NET.request(API.deleteCollect, {
  317. ids
  318. }, 'POST').then((res) => {
  319. this.productCollect = []
  320. this.cardModal = false
  321. this.$u.toast(`删除成功`)
  322. this.productPage = 1
  323. this.getProductCollect()
  324. })
  325. .catch((res) => {
  326. this.cardModal = false
  327. this.$u.toast(`删除失败`)
  328. })
  329. }
  330. },
  331. showCardModalshopDel() {
  332. let isShowShopDelSubmit = false
  333. // 店铺
  334. this.storeCollect.forEach((value, index) => {
  335. if (value.selected == 1) {
  336. isShowShopDelSubmit = true
  337. }
  338. })
  339. if (isShowShopDelSubmit === true) {
  340. this.cardModal = true
  341. this.shopDelSubmit = true
  342. this.paoductDelSubmit = false
  343. } else {
  344. this.$u.toast(`请先选择要删除的收藏店铺!`)
  345. }
  346. },
  347. shopDel() {
  348. if (this.currentType === 2) {
  349. this.cancelCollect(this.ids)
  350. this.storeCollect.splice(this.currentIndex, 1)
  351. } else {
  352. const ids = []
  353. this.storeCollect.forEach((value, index) => {
  354. if (value.selected == 1) {
  355. ids.push(value.collectId)
  356. }
  357. })
  358. NET.request(API.deleteCollect, {
  359. ids
  360. }, 'POST').then((res) => {
  361. this.storeCollect = []
  362. this.cardModal = false
  363. this.$u.toast(`删除成功`)
  364. this.storePage = 1
  365. this.getStoreCollect()
  366. })
  367. .catch((res) => {
  368. this.cardModal = false
  369. this.$u.toast(`删除失败`)
  370. })
  371. }
  372. },
  373. // 去店铺
  374. toStoreClick(storeId) {
  375. uni.navigateTo({
  376. url: '../../pages_category_page1/store/index?storeId=' + storeId
  377. })
  378. },
  379. // 去商品详情
  380. toGoodsDetails(productId, shopId, skuId) {
  381. uni.navigateTo({
  382. url: '../../pages_category_page1/goodsModule/goodsDetails?productId=' + productId +
  383. '&shopId=' + shopId + '&skuId=' + skuId
  384. })
  385. },
  386. collectionTypeActive(index) {
  387. this.collectionTypeFlag = index
  388. if (index == 0) {
  389. this.productPage = 1
  390. this.productCollect = []
  391. this.proloadingType = 0
  392. this.getProductCollect()
  393. } else if (index == 1) {
  394. this.storePage = 1
  395. this.storeCollect = []
  396. this.storeloadingType = 0
  397. this.getStoreCollect()
  398. }
  399. },
  400. storeClick(index, index1) {
  401. if (index1 == 0) {
  402. this.cardModal = true
  403. this.shopDelSubmit = true
  404. this.ids = this.storeCollect[index].collectId
  405. this.currentIndex = index
  406. this.currentType = 2
  407. }
  408. },
  409. // 如果打开一个的时候,不需要关闭其他,则无需实现本方法
  410. productOpen(index) {
  411. // 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
  412. // 原本为'false',再次设置为'false'会无效
  413. this.productCollect[index].show = true
  414. // console.log(this.productCollect,index)
  415. this.productCollect.map((val, idx) => {
  416. if (index != idx) this.productCollect[idx].show = false
  417. })
  418. // 商品删除参数
  419. this.ids = this.productCollect[index].collectId
  420. this.currentIndex = index
  421. this.currentType = 1
  422. },
  423. // 打开删除层
  424. productActionClick() {
  425. this.cardModal = true
  426. this.paoductDelSubmit = true
  427. this.shopDelSubmit = false
  428. },
  429. storeOpen(index) {
  430. // 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
  431. // 原本为'false',再次设置为'false'会无效
  432. this.storeCollect[index].show = true
  433. this.storeCollect.map((val, idx) => {
  434. if (index != idx) this.storeCollect[idx].show = false
  435. })
  436. // 店铺删除参数
  437. this.ids = this.storeCollect[index].collectId
  438. this.currentIndex = index
  439. this.currentType = 2
  440. },
  441. // 打开删除层
  442. storeActionClick() {
  443. this.cardModal = true
  444. this.paoductDelSubmit = false
  445. this.shopDelSubmit = true
  446. },
  447. // 商品选中
  448. productItemSel(index, number) {
  449. this.productCollect[index].selected = number
  450. let proSelectNum = 0
  451. this.productCollect.forEach((value, index) => {
  452. if (this.productCollect[index].selected == 0) {
  453. this.isAllProCheck = false
  454. } else {
  455. proSelectNum++
  456. }
  457. })
  458. if (this.productCollect.length == proSelectNum) {
  459. this.isAllProCheck = true
  460. }
  461. },
  462. // 店铺选中
  463. storeItemSel(index, number) {
  464. this.storeCollect[index].selected = number
  465. let storeSelectNum = 0
  466. this.storeCollect.forEach((value, index) => {
  467. if (this.storeCollect[index].selected == 0) {
  468. this.isAllStoreCheck = false
  469. } else {
  470. storeSelectNum++
  471. }
  472. })
  473. if (this.storeCollect.length == storeSelectNum) {
  474. this.isAllStoreCheck = true
  475. }
  476. },
  477. // 全选
  478. allProductSel(type) {
  479. this.isAllProCheck = !this.isAllProCheck
  480. this.productCollect.forEach((value, index) => {
  481. this.productCollect[index].selected = type
  482. })
  483. },
  484. allStoreSel(type) {
  485. this.isAllStoreCheck = !this.isAllStoreCheck
  486. this.storeCollect.forEach((value, index) => {
  487. this.storeCollect[index].selected = type
  488. })
  489. },
  490. editClick() {
  491. this.allCheckShow = true
  492. const actionSwipe = this.$refs.actionSwipe
  493. const shopActionSwipe = this.$refs.shopActionSwipe
  494. if (actionSwipe) {
  495. actionSwipe.forEach((item) => item.close())
  496. }
  497. if (shopActionSwipe) {
  498. shopActionSwipe.forEach((item) => item.close())
  499. }
  500. },
  501. finishClick() {
  502. this.allCheckShow = false
  503. },
  504. // 收藏商品查询
  505. getProductCollect() {
  506. // uni.showLoading({
  507. // mask: true,
  508. // title: '加载中...'
  509. // })
  510. NET.request(
  511. API.getProductCollect, {
  512. page: this.productPage,
  513. pageSize: this.productPageSize
  514. },
  515. 'GET'
  516. ).then((res) => {
  517. uni.hideLoading()
  518. if (res.data.list.length == 0) {
  519. this.proCollectShow = true
  520. this.proloadingType = 1
  521. this.productPage = this.productPage
  522. } else {
  523. this.productCollect = this.productCollect.concat(res.data.list)
  524. this.productCollect.forEach((value, index) => {
  525. value.show = false
  526. value.selected = 0
  527. })
  528. }
  529. })
  530. .catch((res) => {
  531. uni.showToast({
  532. title: '收藏商品查询失败',
  533. icon: 'none'
  534. })
  535. })
  536. },
  537. // 收藏店铺查询
  538. getStoreCollect() {
  539. // console.log(111)
  540. // uni.showLoading({
  541. // mask: true,
  542. // title: '加载中...'
  543. // })
  544. NET.request(
  545. API.getStoreCollect, {
  546. page: this.storePage,
  547. pageSize: this.storePageSize
  548. },
  549. 'GET'
  550. ).then((res) => {
  551. uni.hideLoading()
  552. if (res.data.list.length == 0) {
  553. this.storeCollectShow = true
  554. this.storeloadingType = 1
  555. this.storePage = this.storePage
  556. }
  557. this.storeCollect = this.storeCollect.concat(res.data.list)
  558. this.storeCollect.forEach((value, index) => {
  559. value.show = false
  560. value.selected = 0
  561. })
  562. })
  563. .catch((res) => {
  564. uni.showToast({
  565. title: '失败',
  566. icon: 'none'
  567. })
  568. })
  569. },
  570. // 取消收藏
  571. cancelCollect(ids) {
  572. NET.request(API.cancelCollect, {
  573. ids: [ ids ]
  574. }, 'POST').then((res) => {
  575. this.$u.toast(`删除成功`)
  576. this.cardModal = false
  577. this.currentType = null
  578. this.currentIndex = null
  579. this.ids = null
  580. if (res.code == '200') {
  581. this.productCollect = []
  582. this.storeCollect = []
  583. this.getStoreCollect()
  584. this.getProductCollect()
  585. } else {
  586. this.$u.toast(res.message)
  587. }
  588. })
  589. .catch((res) => {
  590. uni.showToast({
  591. title: '失败',
  592. icon: 'none'
  593. })
  594. })
  595. },
  596. // 商品详情
  597. goodsDateils(shopId, productId, skuId) {
  598. uni.navigateTo({
  599. url: '/pages_category_page1/goodsModule/goodsDetails?shopId=' + shopId + '&productId=' +
  600. productId + '&skuId=' + skuId
  601. })
  602. }
  603. }
  604. }
  605. </script>
  606. <style lang="scss" scoped>
  607. .collection-box {
  608. .empty-box {
  609. display: flex;
  610. justify-content: center;
  611. flex-direction: column;
  612. align-items: center;
  613. .tohome-box {
  614. color: #999999;
  615. margin-top: 50rpx;
  616. }
  617. .collect-empty {
  618. margin-top: 30%;
  619. width: 198rpx;
  620. height: 183rpx;
  621. }
  622. }
  623. .function-box {
  624. background-color: #F7F7F7;
  625. }
  626. .tabsbox {
  627. margin-top: 4rpx;
  628. background-color: #FFFFFF;
  629. }
  630. .editicon-box {
  631. display: flex;
  632. justify-content: flex-end;
  633. position: relative;
  634. left: -30rpx;
  635. padding: 16rpx 0;
  636. }
  637. .finishbox {
  638. display: flex;
  639. justify-content: flex-end;
  640. position: relative;
  641. left: -30rpx;
  642. padding: 16rpx 0;
  643. }
  644. .editicon {
  645. width: 50rpx;
  646. height: 50rpx;
  647. }
  648. .swipe-box {
  649. padding: 0 20rpx;
  650. .actionBox {
  651. margin-bottom: 20rpx;
  652. }
  653. .item {
  654. display: flex;
  655. .infoCent {
  656. padding: 20rpx;
  657. }
  658. .selctBtn {
  659. background: #F7F7F7;
  660. }
  661. }
  662. .shopImgBox {
  663. display: flex;
  664. justify-content: end;
  665. margin-left: 90rpx;
  666. padding-bottom: 20rpx;
  667. margin-top: 20rpx;
  668. .itemImgBox {
  669. margin-right: 15rpx;
  670. margin-left: 5rpx;
  671. image {
  672. width: 120rpx;
  673. height: 120rpx;
  674. border: 2rpx solid #F3F4F5;
  675. }
  676. }
  677. }
  678. .product-img {
  679. width: 220rpx;
  680. flex: 0 0 220rpx;
  681. height: 220rpx;
  682. }
  683. .head-img {
  684. width: 80rpx;
  685. flex: 0 0 80rpx;
  686. height: 80rpx;
  687. border-radius: 50%;
  688. }
  689. .title {
  690. text-align: left;
  691. font-size: 28rpx;
  692. color: $u-content-color;
  693. height: 165rpx;
  694. padding-right: 20rpx;
  695. }
  696. .shopName {
  697. height: auto;
  698. overflow: hidden;
  699. white-space: nowrap;
  700. text-overflow: ellipsis;
  701. width: 340rpx;
  702. }
  703. .cart-select-img {
  704. width: 40upx;
  705. height: 40upx;
  706. margin: 0upx 30upx 0upx;
  707. box-sizing: border-box;
  708. }
  709. .toStore {
  710. width: 100px;
  711. color: #FFEBC4;
  712. padding: 0rpx 20rpx;
  713. height: 52rpx;
  714. background: #333333;
  715. margin-right: 15rpx;
  716. image {
  717. width: 10rpx;
  718. height: 18rpx;
  719. margin-left: 10rpx;
  720. }
  721. }
  722. .shopBox {
  723. margin-bottom: 20rpx;
  724. }
  725. }
  726. .allcheck-box {
  727. background-color: #FFFFFF;
  728. width: 100%;
  729. position: fixed;
  730. bottom: 0upx;
  731. .left {
  732. display: flex;
  733. flex-direction: row;
  734. align-items: center;
  735. font-size: 28upx;
  736. color: #666;
  737. .cart-select-img {
  738. width: 40upx;
  739. height: 40upx;
  740. margin: 30upx;
  741. box-sizing: border-box;
  742. }
  743. }
  744. .right {
  745. display: flex;
  746. flex-direction: row;
  747. align-items: center;
  748. box-sizing: border-box;
  749. }
  750. .btn-delete {
  751. width: 232upx;
  752. height: 104upx;
  753. line-height: 104upx;
  754. text-align: center;
  755. font-size: 28upx;
  756. color: #FFFFFF;
  757. background: #C83732;
  758. }
  759. }
  760. .Put-box1 {
  761. .btn {
  762. text-align: center;
  763. margin-top: 40rpx;
  764. border: 1px solid #333333;
  765. height: 80upx;
  766. line-height: 80upx;
  767. width: 100%;
  768. color: #333333;
  769. }
  770. .submit {
  771. background-color: #333333;
  772. color: #FFEBC4;
  773. }
  774. }
  775. .cancelDel {
  776. position: absolute;
  777. bottom: -50px;
  778. left: 45%;
  779. image {
  780. width: 60upx;
  781. height: 60upx;
  782. }
  783. }
  784. }
  785. .priceBox {
  786. .iconImg {
  787. width: 58rpx;
  788. height: 36rpx;
  789. margin-right: 10rpx;
  790. }
  791. .discountIcon {
  792. width: 100rpx;
  793. }
  794. }
  795. </style>
  796. <style scoped>
  797. .tabsbox /deep/ #u-tab-item-0 {
  798. position: relative;
  799. }
  800. .tabsbox /deep/ .u-tab-bar {
  801. background-color: #c5aa7b !important;
  802. }
  803. .tabsbox /deep/ #u-tab-item-0::before {
  804. content: '';
  805. width: 2rpx;
  806. height: 30rpx;
  807. display: block;
  808. background: #CCCCCC;
  809. position: absolute;
  810. right: 0;
  811. top: 20rpx;
  812. }
  813. .swipe-box /deep/ .u-swipe-del {
  814. align-items: center;
  815. justify-content: center;
  816. width: 160rpx !important;
  817. }
  818. .swipe-box /deep/ .u-btn-text {
  819. width: 60rpx;
  820. height: 60rpx;
  821. display: block;
  822. background: url("../../static/images/origin/delIcon.png") no-repeat center center;
  823. background-size: contain;
  824. }
  825. </style>
  826. <style>
  827. page {
  828. background-color: #F7F7F7;
  829. }
  830. </style>