index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. <template>
  2. <view class="collection-container">
  3. <JHeader title="我的收藏" width="50" height="50" style="padding: 24upx 0 0;"></JHeader>
  4. <view class="tabsbox">
  5. <tui-tabs
  6. style="width: 750upx;padding: 0 0upx 0 0upx;overflow: hidden;" :slider-width="60" :padding="0"
  7. item-width="375rpx" selected-color="#333333" bold slider-bg-color="#cccccc"
  8. :tabs="[{ name: '商品' }, { name: '店铺' }]" :current-tab="collectionTypeFlag"
  9. @change="collectionTypeActive"
  10. ></tui-tabs>
  11. </view>
  12. <view v-if="collectionTypeFlag == 0">
  13. <view v-if="productInfo.data.length > 0">
  14. <view class="wid function-box">
  15. <view v-if="allCheckShow" class="finishbox" @click="allCheckShow = false">完成</view>
  16. <view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
  17. <tui-icon name="edit" :size="40" unit="upx" color="#333333"></tui-icon>
  18. <text class="mar-left-10">编辑</text>
  19. </view>
  20. </view>
  21. <view class="swipe-box">
  22. <view v-for="(item, index) in productInfo.data" :key="item.collectId" class="actionBox">
  23. <tui-swipe-action
  24. :key="item.collectId" :params="{ index }" :open="item.show" :forbid="allCheckShow"
  25. :actions="options" :closable="false" @click="productActionClick"
  26. >
  27. <template #content>
  28. <view class="flex-item">
  29. <view class="item wid flex-row-plus flex-display">
  30. <view v-show="allCheckShow" class="flex-items selctBtn">
  31. <tui-icon
  32. v-if="item.selected == 1" name="circle-fill" :size="40" unit="upx"
  33. color="#c5aa7b"
  34. margin="0 30upx 0 0" @click="productItemSel(index, 0)"
  35. ></tui-icon>
  36. <tui-icon
  37. v-else name="circle" :size="40" unit="upx"
  38. color="#cccccc" margin="0 30upx 0 0"
  39. @click="productItemSel(index, 1)"
  40. ></tui-icon>
  41. </view>
  42. <view
  43. class="infoCent flex-items"
  44. @click.stop="go(`/another-tf/another-serve/goodsDetails/index?shopId=${item.shopId}&productId=${item.productId}&skuId=${item.skuId}`)"
  45. >
  46. <image class="product-img default-img" mode="aspectFill" :src="common.seamingImgUrl(item.image)" />
  47. <view class="title-wrap mar-left-20 priceBox">
  48. <text
  49. class="title fs28 font-color-333"
  50. style="overflow: hidden;word-break: break-all;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;"
  51. >
  52. {{ item.productName }}
  53. </text>
  54. <view class="flex-items">
  55. <ATFActivityImage :type="item.activityType"></ATFActivityImage>
  56. <text class="fs40 font-color-C83732">¥</text>
  57. <text class="fs40 font-color-C83732 mar-right-20">{{ item.price }}</text>
  58. <text class="font-color-CCC discountsPriceLine fs24">
  59. ¥{{ item.originalPrice }}
  60. </text>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. </tui-swipe-action>
  68. </view>
  69. </view>
  70. <view v-if="allCheckShow" class="pad-bot-140"></view>
  71. <view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
  72. <view class="left">
  73. <tui-icon
  74. v-if="isAllProCheck" name="circle-fill" :size="40" unit="upx"
  75. color="#c5aa7b" margin="0 30upx 0 0"
  76. @click="allProductSel(0)"
  77. ></tui-icon>
  78. <tui-icon
  79. v-else name="circle" :size="40" unit="upx"
  80. color="#cccccc" margin="0 30upx 0 0"
  81. @click="allProductSel(1)"
  82. ></tui-icon>
  83. <text>全选</text>
  84. </view>
  85. <view class="right">
  86. <view class="btn-delete" @click="showCardModalProductDel">删除</view>
  87. </view>
  88. </view>
  89. <view v-if="allCheckShow" class="pad-bot-140"></view>
  90. </view>
  91. <view style="padding-bottom: 45upx;">
  92. <LoadingMore
  93. :status="!productInfo.isEmpty && !productInfo.data.length
  94. ? 'loading' : !productInfo.isEmpty && productInfo.data.length && (productInfo.data.length >= productInfo.listTotal) ? 'no-more' : ''"
  95. >
  96. </LoadingMore>
  97. <tui-no-data v-if="productInfo.isEmpty" :fixed="false" style="margin-top: 60upx;">暂无收藏</tui-no-data>
  98. </view>
  99. </view>
  100. <view v-if="collectionTypeFlag == 1">
  101. <view v-if="storeInfo.data.length > 0">
  102. <view v-if="allCheckShow" class="finishbox" @click="allCheckShow = false">完成</view>
  103. <view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
  104. <tui-icon name="edit" :size="40" unit="upx" color="#333333"></tui-icon>
  105. <text class="mar-left-10">编辑</text>
  106. </view>
  107. <view class="swipe-box swipeBox">
  108. <view v-for="(item, index) in storeInfo.data" :key="item.collectId" class="shopBox" :index="index">
  109. <tui-swipe-action
  110. :key="item.collectId" :params="{ index }" :open="item.show" :forbid="allCheckShow"
  111. :actions="options" :closable="false" @click="storeActionClick"
  112. >
  113. <template #content>
  114. <view class="item wid flex-row-plus flex-display">
  115. <view v-show="allCheckShow" class="selctBtn flex-items">
  116. <tui-icon
  117. v-if="item.selected == 1" name="circle-fill" :size="40" unit="upx"
  118. color="#c5aa7b"
  119. margin="0 30upx 0 0" @click="storeItemSel(index, 0)"
  120. ></tui-icon>
  121. <tui-icon
  122. v-else name="circle" :size="40" unit="upx"
  123. color="#cccccc" margin="0 30upx 0 0"
  124. @click="storeItemSel(index, 1)"
  125. ></tui-icon>
  126. </view>
  127. <view class="infoCent">
  128. <view class="flex-row-plus flex-sp-between flex-items-plus wid">
  129. <view class="flex-items-plus flex-row pad-topbot-10">
  130. <image class="head-img" mode="aspectFill" :src="common.seamingImgUrl(item.shopLogo)" />
  131. <view class="title-wrap mar-left-20">
  132. <text
  133. class="title shopName"
  134. style="overflow: hidden;word-break: break-all;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;"
  135. >
  136. {{
  137. item.shopName }}
  138. </text>
  139. <text class="font-color-CCC fs24">{{ item.person }}人关注</text>
  140. </view>
  141. </view>
  142. <view
  143. class="toStore flex-items-plus fs24"
  144. @click="go(`/another-tf/another-user/shop/shop-detail?shopId=${item.shopId}`)"
  145. >
  146. 进入店铺 >
  147. </view>
  148. </view>
  149. <view v-if="item.productList.length > 0" class="shopImgBox">
  150. <view
  151. v-for="(sItem, sIndex) in item.productList" :key="sIndex" class="itemImgBox"
  152. @click.stop="go(`/another-tf/another-serve/goodsDetails/index?shopId=${sItem.shopId}&productId=${sItem.productId}&skuId=${sItem.skuId}`)"
  153. >
  154. <image :src="common.seamingImgUrl(sItem.image)" class="pic-img default-img"></image>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </template>
  160. </tui-swipe-action>
  161. </view>
  162. </view>
  163. <view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
  164. <view class="left">
  165. <tui-icon
  166. v-if="isAllStoreCheck" name="circle-fill" :size="40" unit="upx"
  167. color="#c5aa7b" margin="30upx"
  168. @click="allStoreSel(0)"
  169. ></tui-icon>
  170. <tui-icon
  171. v-else name="circle" :size="40" unit="upx"
  172. color="#cccccc" margin="30upx"
  173. @click="allStoreSel(1)"
  174. ></tui-icon>
  175. <text>全选</text>
  176. </view>
  177. <view class="right">
  178. <view class="btn-delete" @click="showCardModalshopDel">删除</view>
  179. </view>
  180. </view>
  181. <view v-if="allCheckShow" class="pad-bot-140"></view>
  182. </view>
  183. <view style="padding-bottom: 45upx;">
  184. <LoadingMore
  185. :status="!storeInfo.isEmpty && !storeInfo.data.length
  186. ? 'loading' : !storeInfo.isEmpty && storeInfo.data.length && (storeInfo.data.length >= storeInfo.listTotal) ? 'no-more' : ''"
  187. >
  188. </LoadingMore>
  189. <tui-no-data v-if="storeInfo.isEmpty" :fixed="false" style="margin-top: 60upx;">暂无收藏</tui-no-data>
  190. </view>
  191. </view>
  192. <!-- 删除确认弹窗 -->
  193. <tui-modal :show="delshow" :custom="true" :fadein="true">
  194. <view class="Put-box1">
  195. <view class="text-align fs34 fs-bold">
  196. 温馨提示
  197. </view>
  198. <view v-if="collectionTypeFlag === 0" class="mar-top-40 text-align">
  199. 是否删除该商品?
  200. </view>
  201. <view v-if="collectionTypeFlag === 1" class="mar-top-40 text-align">
  202. 是否删除该店铺?
  203. </view>
  204. <view class="flex-display flex-sp-between">
  205. <view v-if="collectionTypeFlag === 0" class="btn submit" @click="handleProductDel">确定</view>
  206. <view v-if="collectionTypeFlag === 1" class="btn submit" @click="handleShopDel">确定</view>
  207. </view>
  208. </view>
  209. <view v-if="delshow" class="cancelDel" @click="delshow = false">
  210. <tui-icon name="close" :size="60" unit="upx" color="#f0f0f0"></tui-icon>
  211. </view>
  212. </tui-modal>
  213. </view>
  214. </template>
  215. <script>
  216. import { deleteCollectToCollectApi, getAllProductCollectApi, getAllShopStoreCollectApi, updateCollectCancelApi } from '../../../api/anotherTFInterface'
  217. export default {
  218. name: 'Collection',
  219. data() {
  220. return {
  221. collectionTypeFlag: 0,
  222. options: [ {
  223. name: '删除',
  224. color: '#fff',
  225. fontsize: 32,
  226. width: 80,
  227. background: '#F15C48'
  228. } ],
  229. isAllProCheck: false,
  230. isAllStoreCheck: false,
  231. allCheckShow: false,
  232. delshow: false,
  233. deleteType: '',
  234. ids: null,
  235. productInfo: {
  236. query: {
  237. page: 1,
  238. pageSize: 10
  239. },
  240. data: [],
  241. listTotal: 0,
  242. isEmpty: false
  243. },
  244. storeInfo: {
  245. query: {
  246. page: 1,
  247. pageSize: 10
  248. },
  249. data: [],
  250. listTotal: 0, // 列表数据总数
  251. isEmpty: false // 列表是否为空
  252. }
  253. }
  254. },
  255. onShow() {
  256. if (this.collectionTypeFlag === 0) {
  257. this.productInfo.query.page = 1
  258. this.getProductCollectList()
  259. } else if (this.collectionTypeFlag === 1) {
  260. this.storeInfo.query.page = 1
  261. this.getStoreCollectList()
  262. }
  263. },
  264. methods: {
  265. collectionTypeActive(e) {
  266. this.collectionTypeFlag = e.index
  267. // 缓存每个tab里的数据
  268. if (this.collectionTypeFlag === 0) {
  269. } else if (this.collectionTypeFlag === 1) {
  270. if (!this.storeInfo.isEmpty && !this.storeInfo.data.length) this.getStoreCollectList()
  271. }
  272. // 每点一个tab就重新进行对它的请求
  273. // if (this.collectionTypeFlag === 0) {
  274. // this.productInfo.query.page = 1
  275. // this.productInfo.data = []
  276. // this.productInfo.listTotal = 0
  277. // this.productInfo.isEmpty = false
  278. // this.getProductCollectList()
  279. // } else if (this.collectionTypeFlag === 1) {
  280. // this.storeInfo.query.page = 1
  281. // this.storeInfo.data = []
  282. // this.storeInfo.listTotal = 0
  283. // this.storeInfo.isEmpty = false
  284. // this.getStoreCollectList()
  285. // }
  286. },
  287. // 收藏商品查询
  288. getProductCollectList(isLoadmore) {
  289. uni.showLoading()
  290. getAllProductCollectApi({ ...this.productInfo.query })
  291. .then((res) => {
  292. this.productInfo.listTotal = res.data.total
  293. if (isLoadmore) {
  294. this.productInfo.data.push(...res.data.list.map((i) => ({ ...i, show: false, selected: 0 })))
  295. } else {
  296. this.productInfo.data = res.data.list.map((i) => ({ ...i, show: false, selected: 0 }))
  297. }
  298. this.productInfo.isEmpty = this.productInfo.data.length === 0
  299. uni.hideLoading()
  300. })
  301. .catch(() => {
  302. uni.hideLoading()
  303. })
  304. },
  305. // 收藏店铺查询
  306. getStoreCollectList(isLoadmore) {
  307. uni.showLoading()
  308. getAllShopStoreCollectApi({ ...this.storeInfo.query })
  309. .then((res) => {
  310. this.storeInfo.listTotal = res.data.total
  311. if (isLoadmore) {
  312. this.storeInfo.data.push(...res.data.list.map((i) => ({ ...i, show: false, selected: 0 })))
  313. } else {
  314. this.storeInfo.data = res.data.list.map((i) => ({ ...i, show: false, selected: 0 }))
  315. }
  316. this.storeInfo.isEmpty = this.storeInfo.data.length === 0
  317. uni.hideLoading()
  318. })
  319. .catch(() => {
  320. uni.hideLoading()
  321. })
  322. },
  323. editClick() {
  324. this.allCheckShow = true
  325. this.productInfo.data = this.productInfo.data.map((item) => ({ ...item, show: false }))
  326. this.storeInfo.data = this.storeInfo.data.map((item) => ({ ...item, show: false }))
  327. },
  328. // 打开删除层
  329. productActionClick(e) {
  330. this.deleteType = 'one'
  331. this.delshow = true
  332. if (e.index == 0) {
  333. this.ids = this.productInfo.data[e.item.index].collectId
  334. }
  335. },
  336. storeActionClick(e) {
  337. this.deleteType = 'one'
  338. this.delshow = true
  339. if (e.index == 0) {
  340. this.ids = this.storeInfo.data[e.item.index].collectId
  341. }
  342. },
  343. handleProductDel() {
  344. if (this.deleteType === 'one') {
  345. uni.showLoading()
  346. updateCollectCancelApi({ ids: [ this.ids ] })
  347. .then((res) => {
  348. this.delshow = false
  349. this.ids = null
  350. uni.hideLoading()
  351. this.$showToast('删除成功')
  352. setTimeout(() => {
  353. this.productInfo.query.page = 1
  354. this.getProductCollectList()
  355. }, 2000)
  356. })
  357. .catch((e) => {
  358. uni.hideLoading()
  359. })
  360. } else {
  361. const tempArr = []
  362. this.productInfo.data.forEach((value, index) => {
  363. if (value.selected == 1) {
  364. tempArr.push(value.collectId)
  365. }
  366. })
  367. deleteCollectToCollectApi({ tempArr }).then((res) => {
  368. this.delshow = false
  369. uni.hideLoading()
  370. this.$showToast('删除成功')
  371. setTimeout(() => {
  372. this.productInfo.query.page = 1
  373. this.getProductCollectList()
  374. }, 2000)
  375. })
  376. .catch((res) => {
  377. this.delshow = false
  378. uni.hideLoading()
  379. })
  380. }
  381. },
  382. handleShopDel() {
  383. if (this.deleteType === 'one') {
  384. uni.showLoading()
  385. updateCollectCancelApi({ ids: [ this.ids ] })
  386. .then((res) => {
  387. this.delshow = false
  388. this.ids = null
  389. uni.hideLoading()
  390. this.$showToast('删除成功')
  391. setTimeout(() => {
  392. this.storeInfo.query.page = 1
  393. this.getStoreCollectList()
  394. }, 2000)
  395. })
  396. .catch((e) => {
  397. uni.hideLoading()
  398. })
  399. } else {
  400. uni.showLoading()
  401. const tempArr = []
  402. this.storeInfo.data.forEach((value, index) => {
  403. if (value.selected == 1) {
  404. tempArr.push(value.collectId)
  405. }
  406. })
  407. deleteCollectToCollectApi({ tempArr }).then((res) => {
  408. this.delshow = false
  409. uni.hideLoading()
  410. this.$showToast('删除成功')
  411. setTimeout(() => {
  412. this.storeInfo.query.page = 1
  413. this.getStoreCollectList()
  414. }, 2000)
  415. })
  416. .catch((res) => {
  417. this.delshow = false
  418. uni.hideLoading()
  419. })
  420. }
  421. },
  422. // 批量删除
  423. showCardModalProductDel() {
  424. let isShowProoductDelSubmit = false
  425. // 商品
  426. this.productInfo.data.forEach((value, index) => {
  427. if (value.selected == 1) {
  428. isShowProoductDelSubmit = true
  429. }
  430. })
  431. if (isShowProoductDelSubmit === true) {
  432. this.deleteType = 'quantity'
  433. this.delshow = true
  434. } else {
  435. this.$showToast('请先选择要删除的收藏宝贝!')
  436. }
  437. },
  438. showCardModalshopDel() {
  439. let isShowShopDelSubmit = false
  440. // 店铺
  441. this.storeInfo.data.forEach((value, index) => {
  442. if (value.selected == 1) {
  443. isShowShopDelSubmit = true
  444. }
  445. })
  446. if (isShowShopDelSubmit === true) {
  447. this.delshow = true
  448. } else {
  449. this.$showToast('请先选择要删除的收藏店铺!')
  450. }
  451. },
  452. // 商品选中
  453. productItemSel(index, state) {
  454. this.productInfo.data[index].selected = state
  455. let proSelectNum = 0
  456. this.productInfo.data.forEach((value, index) => {
  457. if (this.productInfo.data[index].selected == 0) {
  458. this.isAllProCheck = false
  459. } else {
  460. proSelectNum++
  461. }
  462. })
  463. if (this.productInfo.data.length == proSelectNum) {
  464. this.isAllProCheck = true
  465. }
  466. },
  467. // 店铺选中
  468. storeItemSel(index, state) {
  469. this.storeInfo.data[index].selected = state
  470. let storeSelectNum = 0
  471. this.storeInfo.data.forEach((value, index) => {
  472. if (this.storeInfo.data[index].selected == 0) {
  473. this.isAllStoreCheck = false
  474. } else {
  475. storeSelectNum++
  476. }
  477. })
  478. if (this.storeInfo.data.length == storeSelectNum) {
  479. this.isAllStoreCheck = true
  480. }
  481. },
  482. // 全选
  483. allProductSel(type) {
  484. this.isAllProCheck = !this.isAllProCheck
  485. this.productInfo.data.forEach((value, index) => {
  486. this.productInfo.data[index].selected = type
  487. })
  488. },
  489. allStoreSel(type) {
  490. this.isAllStoreCheck = !this.isAllStoreCheck
  491. this.storeInfo.data.forEach((value, index) => {
  492. this.storeInfo.data[index].selected = type
  493. })
  494. }
  495. },
  496. onReachBottom() {
  497. if (this.collectionTypeFlag === 0) {
  498. if (this.productInfo.data.length < this.productInfo.listTotal) {
  499. ++this.productInfo.query.page
  500. this.getProductCollectList(true)
  501. }
  502. } else if (this.collectionTypeFlag === 1) {
  503. if (this.storeInfo.data.length < this.storeInfo.listTotal) {
  504. ++this.storeInfo.query.page
  505. this.getStoreCollectList(true)
  506. }
  507. }
  508. }
  509. }
  510. </script>
  511. <style lang="less" scoped>
  512. .collection-container {
  513. min-height: 100vh;
  514. background-color: #F7F7F7;
  515. box-sizing: border-box;
  516. .function-box {
  517. background-color: #F7F7F7;
  518. }
  519. .tabsbox {
  520. margin-top: 4rpx;
  521. background-color: #FFFFFF;
  522. }
  523. .editicon-box {
  524. display: flex;
  525. justify-content: flex-end;
  526. position: relative;
  527. left: -30rpx;
  528. padding: 16rpx 0;
  529. }
  530. .finishbox {
  531. display: flex;
  532. justify-content: flex-end;
  533. position: relative;
  534. left: -30rpx;
  535. padding: 16rpx 0;
  536. }
  537. .swipe-box {
  538. padding: 0 20rpx;
  539. .actionBox {
  540. margin-bottom: 20rpx;
  541. }
  542. .item {
  543. display: flex;
  544. .infoCent {
  545. padding: 20rpx;
  546. }
  547. .selctBtn {
  548. background: #F7F7F7;
  549. }
  550. }
  551. .shopImgBox {
  552. display: flex;
  553. justify-content: end;
  554. margin-left: 90rpx;
  555. padding-bottom: 20rpx;
  556. margin-top: 20rpx;
  557. .itemImgBox {
  558. margin-right: 15rpx;
  559. margin-left: 5rpx;
  560. image {
  561. width: 120rpx;
  562. height: 120rpx;
  563. border: 2rpx solid #F3F4F5;
  564. }
  565. }
  566. }
  567. .product-img {
  568. width: 220rpx;
  569. flex: 0 0 220rpx;
  570. height: 220rpx;
  571. }
  572. .head-img {
  573. width: 80rpx;
  574. flex: 0 0 80rpx;
  575. height: 80rpx;
  576. border-radius: 50%;
  577. }
  578. .title {
  579. text-align: left;
  580. font-size: 28rpx;
  581. color: #606266;
  582. height: 165rpx;
  583. padding-right: 20rpx;
  584. }
  585. .shopName {
  586. height: auto;
  587. overflow: hidden;
  588. white-space: nowrap;
  589. text-overflow: ellipsis;
  590. width: 340rpx;
  591. }
  592. .toStore {
  593. width: 100px;
  594. color: #FFEBC4;
  595. padding: 0rpx 20rpx;
  596. height: 52rpx;
  597. background: #333333;
  598. margin-right: 15rpx;
  599. }
  600. .shopBox {
  601. margin-bottom: 20rpx;
  602. }
  603. }
  604. .allcheck-box {
  605. background-color: #FFFFFF;
  606. width: 100%;
  607. position: fixed;
  608. bottom: 0upx;
  609. .left {
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. font-size: 28upx;
  614. color: #666;
  615. }
  616. .right {
  617. display: flex;
  618. flex-direction: row;
  619. align-items: center;
  620. box-sizing: border-box;
  621. }
  622. .btn-delete {
  623. width: 232upx;
  624. height: 104upx;
  625. line-height: 104upx;
  626. text-align: center;
  627. font-size: 28upx;
  628. color: #FFFFFF;
  629. background: #C83732;
  630. }
  631. }
  632. .Put-box1 {
  633. .btn {
  634. text-align: center;
  635. margin-top: 40rpx;
  636. border: 1px solid #333333;
  637. height: 80upx;
  638. line-height: 80upx;
  639. width: 100%;
  640. color: #333333;
  641. }
  642. .submit {
  643. background-color: #333333;
  644. color: #FFEBC4;
  645. }
  646. }
  647. .cancelDel {
  648. position: absolute;
  649. bottom: -50px;
  650. left: 45%;
  651. }
  652. }
  653. </style>