index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990
  1. <template>
  2. <view class="product">
  3. <view class="top"></view>
  4. <view class="head">
  5. <view class="handle">
  6. <view class="head_left">
  7. <span class="cuIcon-back" @click="back"></span>
  8. </view>
  9. <span class="center">商品管理</span>
  10. <view class="head_right">
  11. <!-- <span class="cuIcon-search" @click="goSearch"></span> -->
  12. <view class="manage" @click="manage">
  13. {{isManage?'退出管理':'管理'}}
  14. </view>
  15. </view>
  16. </view>
  17. <div class="tab-container">
  18. <div class="tab-item" :class="tabIndex == 1?'active':''" @click="tabIndex=1;productName='';productStatus=0;getProductList();getStatus()">品牌标品</div>
  19. <div class="tab-item" :class="tabIndex == 0?'active':''" @click="tabIndex=0;productName='';productStatus=0;getProductList();getStatus()">自有商品</div>
  20. </div>
  21. <view class="search">
  22. <span class="cuIcon-search"></span>
  23. <!-- <input @blur="InputBlur" :adjust-position="false" type="text" placeholder="请输入关键词" confirm-type="search"> -->
  24. <u-input v-model="productName" />
  25. </input>
  26. <view class="search_btn" @click.stop="getProductList()">
  27. <span></span>搜索
  28. </view>
  29. </view>
  30. <view class="type">
  31. <view class="type_item" :class="currentIndex == index?'active':''" v-for="(item,index) in typeList" :key="index"
  32. @click="selectType(item,index)">
  33. {{item.statusName}}({{item.number}})
  34. <span class="line" v-if="currentIndex == index"></span>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="list">
  39. <view class="product_item" v-for="(item,index) in productList" :key="index" @click="goDetails(item)">
  40. <view class="status">
  41. <span class="round" v-if="item.productStatus =='1'">售卖中</span>
  42. <span class="round no" v-if="item.productStatus =='0'" style="color:#666666 ;">未上架</span>
  43. <span class="audit " v-if="item.productStatus =='2'" style="color:#596ABB ;">审核中</span>
  44. <span class="reject " v-if="item.productStatus =='3'" style="color:#F55D65 ;">未通过</span>
  45. <span class="line"></span>
  46. <span v-if="item.saleStartDate">{{item.saleStartDate.slice(0,10)}}-{{item.saleEndDate.slice(0,10)}}</span>
  47. <view class="error insufficient" v-if="item.sellingOvertime && item.stockQuantity ==0">
  48. 库存不足
  49. </view>
  50. <view class="error overtime" v-if="item.sellingOvertime && item.stockQuantity >0">
  51. 售卖超时
  52. </view>
  53. <!-- <span>已售:{{item.num}}</span>
  54. <span>库存:{{item.inventory}}</span> -->
  55. </view>
  56. <view class="details">
  57. <view class="img">
  58. <image :src="item.productImage" mode=""></image>
  59. </view>
  60. <view class="data">
  61. <span>{{item.productName}}</span>
  62. <!-- <span>售卖时间:{{item.time}}</span> -->
  63. <view class="repertory">库存:{{item.stockQuantity}} <span></span> 销量:{{item.soldQuantity}}</view>
  64. <view class="price">
  65. <span style="font-size: 22rpx;margin: 0px;">¥</span>{{item.soldPrice}}
  66. <span style="color:#999 ;font-size: 22rpx; text-decoration: line-through;">¥{{item.price}}</span>
  67. </view>
  68. <image src="/static/product/ticket.png" mode="" class="ticket" v-if="item.isRights == 1"></image>
  69. </view>
  70. <view class="tag" v-if="isManage" @click.stop="select(item)">
  71. <!-- <span>组合套餐</span> -->
  72. <!-- <span class="frame"></span> -->
  73. <image src="/static/product/select.png" mode="" v-if="item.select"></image>
  74. <image src="/static/product/round.png" mode="" v-else></image>
  75. </view>
  76. </view>
  77. <view class="btn_box">
  78. <view class="delist" @click.stop="sell(item)" v-if="item.productStatus==0">
  79. 上架
  80. </view>
  81. <view class="delist select" @click.stop="goSelect(item)" style="margin-left: 20rpx;" v-if="item.categoryId.includes('1909434886438043649')">
  82. 选择检测站
  83. </view>
  84. <view class="delist" @click.stop="delist(item)" v-if="item.productStatus==1">
  85. 下架
  86. </view>
  87. <!-- 年审代办 商品不能编辑 categoryId==‘1909434886438043649’ -->
  88. <view class="edit delist" @click.stop="edit(item)" v-if="item.categoryId !== '1909434886438043649'">
  89. 编辑
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="creat">
  95. <view class="operate" v-if="isManage">
  96. <view class="all" @click="allSelect">
  97. <image src="/static/product/select.png" mode="" v-if="isAll"></image>
  98. <image src="/static/product/round.png" mode="" v-else></image>
  99. 全选
  100. </view>
  101. <view class="delete" @click="remove">删除</view>
  102. <view class="delete delist" @click="deletes(1)" v-if="currentIndex == 0">上架</view>
  103. <view class="delete delist" @click="deletes(0)" v-else>下架</view>
  104. </view>
  105. <view class="btn" @click="creatProduct" v-else-if="tabIndex==0">
  106. <image src="/static/product/product.png" mode=""></image>
  107. 创建自有商品
  108. </view>
  109. <view class="btn" @click="creatStandard" v-else-if="tabIndex==1">
  110. <image src="/static/product/standard.png" mode=""></image>
  111. 添加品牌标品
  112. </view>
  113. </view>
  114. <view class="popup" v-if="isDelete">
  115. <view class="content">
  116. <view class="title">
  117. <span>删除商品</span>
  118. </view>
  119. <view class="center">
  120. <image src="/static/index/close.png" mode="" v-if="canBeDelete"></image>
  121. <image src="/static/product/error.png" mode="" v-else></image>
  122. <view class="error" v-if="canBeDelete">
  123. 确定要删除?
  124. </view>
  125. <view class="error" v-else>
  126. 当前门店还存在有效服务券<br />
  127. <span style="margin-top: 12rpx;">暂时无法关闭门店</span>
  128. </view>
  129. </view>
  130. <view class="sub" @click="isSuccess = false">
  131. <view class="button">
  132. 确定
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. data() {
  142. return {
  143. isManage: false,
  144. currentIndex: 0,
  145. productStatus: 0, //商品状态,默认1售卖中,0未上架,2审核中,3未通过
  146. isAll: false,
  147. isDelete: false,
  148. canBeDelete: true,
  149. productName: '',
  150. typeList: [{
  151. type: '待上架',
  152. productStatus: 0
  153. },
  154. {
  155. type: '售卖中',
  156. productStatus: 1
  157. },
  158. {
  159. type: '审核中',
  160. productStatus: 2
  161. },
  162. {
  163. type: '未通过',
  164. productStatus: 3
  165. }
  166. ],
  167. productList: [],
  168. merchantId: '',
  169. productHandleList: [],
  170. tabIndex:1
  171. }
  172. },
  173. methods: {
  174. //返回
  175. back() {
  176. uni.switchTab({
  177. url: '/pages/index/index'
  178. })
  179. },
  180. handleClear() {
  181. this.getProductList()
  182. // 这里可以添加其他逻辑
  183. },
  184. //切换分类
  185. selectType(item, index) {
  186. if (!this.isManage) {
  187. this.currentIndex = index
  188. this.productStatus = item.code
  189. this.getProductList()
  190. }
  191. },
  192. //是否管理商品
  193. manage() {
  194. this.isManage = !this.isManage
  195. this.isAll = true
  196. this.allSelect()
  197. },
  198. // 跳转至搜索页面
  199. goSearch() {
  200. uni.navigateTo({
  201. url: '/pages/product/search'
  202. })
  203. },
  204. //跳转至详情
  205. goDetails(item) {
  206. uni.navigateTo({
  207. url: '/pages/product/details?productId=' + item.productId
  208. })
  209. },
  210. //跳转至创建商品
  211. creatProduct() {
  212. uni.navigateTo({
  213. url: '/pages/product/creatProduct'
  214. })
  215. },
  216. //跳转至品牌标品
  217. creatStandard() {
  218. uni.navigateTo({
  219. url: '/pages/product/creatStandard'
  220. })
  221. },
  222. //编辑
  223. edit(item) {
  224. uni.navigateTo({
  225. url: '/pages/product/creatProduct?productId=' + item.productId+'&tabIndex='+this.tabIndex
  226. })
  227. },
  228. select(item) {
  229. item.select = !item.select
  230. this.productHandleList.push(item.productId)
  231. },
  232. //批量上下架status:0下级。1上架
  233. deletes(status) {
  234. let shelves = []
  235. this.productList.forEach(item => {
  236. shelves.push({
  237. productId: item.productId,
  238. productStatus: status
  239. })
  240. })
  241. let that = this
  242. uni.showModal({
  243. title: this.productStatus==0?'确定上架商品?':'确定下架商品?',
  244. success: function(res) {
  245. if (res.confirm) {
  246. that.$http.post("/app/product/shelves", shelves)
  247. .then(res => {
  248. if (res.data.code == 200) {
  249. uni.showToast({
  250. title: this.productStatus==0?'上架成功':'下架成功',
  251. duration: 2000,
  252. icon: 'none'
  253. });
  254. that.$router.go(0)
  255. that.isManage = false
  256. that.isAll = false
  257. }
  258. })
  259. } else if (res.cancel) {
  260. console.log('用户点击取消');
  261. that.isAll = false
  262. that.allSelect()
  263. }
  264. }
  265. });
  266. },
  267. //批量删除
  268. remove() {
  269. this.productList.forEach((item => {
  270. this.productHandleList.push(item.productId)
  271. }))
  272. let ids = this.productHandleList.join(',')
  273. console.log(ids)
  274. let that = this
  275. uni.showModal({
  276. title: '确定删除商品?',
  277. success: function(res) {
  278. if (res.confirm) {
  279. that.$http.get("/app/product/deleteBatch?ids=" + ids, )
  280. .then(res => {
  281. if (res.data.code == 200) {
  282. console.log(res)
  283. uni.showToast({
  284. title: '删除成功',
  285. duration: 2000,
  286. icon: 'none'
  287. });
  288. that.$router.go(0)
  289. that.isManage = false
  290. that.isAll = false
  291. }
  292. })
  293. } else if (res.cancel) {
  294. console.log('用户点击取消');
  295. }
  296. }
  297. });
  298. },
  299. //全选
  300. allSelect() {
  301. if (this.isAll) {
  302. this.isAll = false
  303. this.productList.forEach(item => {
  304. item.select = false
  305. })
  306. } else {
  307. this.isAll = true
  308. this.productList.forEach(item => {
  309. item.select = true
  310. })
  311. }
  312. },
  313. getProductList() {
  314. this.$http.get("/app/product/list?merchantId=" + this.merchantId + "&productStatus=" + this.productStatus +
  315. '&productName=' + this.productName +'&isPlatform='+this.tabIndex, )
  316. .then(res => {
  317. if (res.data.code == 200) {
  318. res.data.result.records.forEach((item) => {
  319. item.select = false;
  320. })
  321. this.productList = res.data.result.records
  322. }
  323. })
  324. },
  325. // getStandardList() {
  326. // this.$http.get("/app/product/purveyor/list?merchantId=" + this.merchantId + "&productStatus=" + this.productStatus +
  327. // '&productName=' + this.productName, )
  328. // .then(res => {
  329. // if (res.data.code == 200) {
  330. // res.data.result.records.forEach((item) => {
  331. // item.select = false;
  332. // })
  333. // this.productList = res.data.result.records
  334. // }
  335. // })
  336. // },
  337. delist(item) {
  338. let shelves = []
  339. shelves.push({
  340. productId: item.productId,
  341. productStatus: 0
  342. })
  343. let that = this
  344. uni.showModal({
  345. title: '确定下架商品',
  346. success: function(res) {
  347. if (res.confirm) {
  348. that.$http.post("/app/product/shelves", shelves)
  349. .then(res => {
  350. if (res.data.code == 200) {
  351. that.getProductList()
  352. that.getStatus()
  353. uni.showToast({
  354. title: '下架成功',
  355. duration: 2000,
  356. icon: 'none'
  357. });
  358. }
  359. })
  360. } else if (res.cancel) {
  361. console.log('用户点击取消');
  362. }
  363. }
  364. });
  365. },
  366. //上架
  367. sell(item) {
  368. console.log(item)
  369. let shelves = []
  370. shelves.push({
  371. productId: item.productId,
  372. productStatus: 1
  373. })
  374. let that = this
  375. uni.showModal({
  376. title: '确定上架商品?',
  377. success: function(res) {
  378. if (res.confirm) {
  379. that.$http.post("/app/product/shelves", shelves)
  380. .then(res => {
  381. if (res.data.code == 200) {
  382. that.getProductList()
  383. that.getStatus()
  384. uni.showToast({
  385. title: '上架成功',
  386. duration: 2000,
  387. icon: 'none'
  388. });
  389. }
  390. })
  391. } else if (res.cancel) {
  392. console.log('用户点击取消');
  393. }
  394. }
  395. });
  396. },
  397. //跳转至选择检测站
  398. goSelect(item){
  399. uni.navigateTo({
  400. url:'/pages/product/checkMap'
  401. })
  402. },
  403. getStatus() {
  404. this.$http.get("/app/product/statusCount?merchantId=" + this.merchantId+'&isPlatform='+this.tabIndex ).then(res => {
  405. if (res.data.code == 200) {
  406. this.typeList = res.data.result
  407. }
  408. })
  409. }
  410. },
  411. mounted() {
  412. this.getProductList()
  413. this.getStatus()
  414. },
  415. onShow() {
  416. let that = this
  417. uni.getStorage({
  418. key: 'login_user_info',
  419. success: function(res) {
  420. that.merchantId = res.data.merchantId
  421. }
  422. })
  423. uni.removeStorage({
  424. key: 'smdate',
  425. });
  426. uni.removeStorage({
  427. key: 'group',
  428. });
  429. }
  430. }
  431. </script>
  432. <style lang="scss" scoped>
  433. .product {
  434. width: 100%;
  435. height: 100vh;
  436. display: flex;
  437. flex-direction: column;
  438. justify-content: space-between;
  439. background: #F7F8FC;
  440. .top {
  441. width: 100%;
  442. height: var(--status-bar-height);
  443. background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
  444. }
  445. .head {
  446. width: 100%;
  447. background: #ffffff;
  448. .handle {
  449. height: 112rpx;
  450. display: flex;
  451. justify-content: space-between;
  452. align-items: center;
  453. padding: 0px 24rpx;
  454. position: relative;
  455. background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
  456. .head_left {
  457. font-size: 40rpx;
  458. }
  459. .center {
  460. position: absolute;
  461. left: 50%;
  462. top: 50%;
  463. transform: translate(-50%, -50%);
  464. font-size: 36rpx;
  465. font-weight: 600;
  466. }
  467. .head_right {
  468. display: flex;
  469. justify-content: space-between;
  470. align-items: center;
  471. span {
  472. width: 40rpx;
  473. height: 40rpx;
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. }
  478. .manage {
  479. // width: 150rpx;
  480. margin-left: 28rpx;
  481. }
  482. }
  483. }
  484. .search {
  485. width: 93%;
  486. height: 56rpx;
  487. background: #F7F8FC;
  488. border-radius: 12rpx;
  489. display: flex;
  490. align-items: center;
  491. justify-content: space-between;
  492. margin: 24rpx auto;
  493. font-size: 26rpx;
  494. padding: 13rpx 20rpx;
  495. span {
  496. margin-right: 15rpx;
  497. }
  498. input {
  499. flex: 1;
  500. font-size: 26rpx;
  501. }
  502. .search_btn {
  503. width: 72rpx;
  504. color: #333333;
  505. display: flex;
  506. align-items: center;
  507. justify-content: space-between;
  508. span {
  509. display: block;
  510. width: 1px;
  511. height: 26rpx;
  512. background-color: #eeeeee;
  513. }
  514. }
  515. }
  516. .type {
  517. display: flex;
  518. justify-content: space-between;
  519. background-color: #fff;
  520. padding: 8px 24rpx 16rpx;
  521. .type_item {
  522. height: 54rpx;
  523. display: flex;
  524. justify-content: center;
  525. align-items: center;
  526. font-size: 26rpx;
  527. color: #888888;
  528. position: relative;
  529. padding: 8rpx 12rpx;
  530. background: #F2F3F5;
  531. border-radius: 8rpx;
  532. }
  533. .active {
  534. color: #2D88F4;
  535. background: #ECF5FF;
  536. }
  537. }
  538. }
  539. .list {
  540. width: 100%;
  541. flex: 1;
  542. // padding: 0px 20rpx;
  543. overflow-y: auto;
  544. .product_item {
  545. width: 100%;
  546. background-color: #fff;
  547. border-radius: 20rpx;
  548. padding: 20rpx 40rpx;
  549. margin-top: 20rpx;
  550. .status {
  551. display: flex;
  552. align-items: center;
  553. position: relative;
  554. .round {
  555. display: flex;
  556. align-items: center;
  557. color: #49A03F;
  558. }
  559. .round::before {
  560. content: "";
  561. display: inline-block;
  562. width: 9rpx;
  563. height: 9rpx;
  564. background: #49A03F;
  565. border-radius: 50%;
  566. margin-right: 8rpx;
  567. }
  568. .no {
  569. color: #666666;
  570. }
  571. .no::before {
  572. content: "";
  573. display: inline-block;
  574. width: 9rpx;
  575. height: 9rpx;
  576. background: #666666;
  577. border-radius: 50%;
  578. margin-right: 8rpx;
  579. }
  580. .audit {
  581. display: flex;
  582. align-items: center;
  583. color: #596ABB;
  584. }
  585. .audit::before {
  586. content: "";
  587. display: inline-block;
  588. width: 9rpx;
  589. height: 9rpx;
  590. background: #596ABB;
  591. border-radius: 50%;
  592. margin-right: 8rpx;
  593. }
  594. .reject {
  595. display: flex;
  596. align-items: center;
  597. color: #F55D65;
  598. }
  599. .reject::before {
  600. content: "";
  601. display: inline-block;
  602. width: 9rpx;
  603. height: 9rpx;
  604. background: #F55D65;
  605. border-radius: 50%;
  606. margin-right: 8rpx;
  607. }
  608. .line {
  609. display: block;
  610. width: 1rpx;
  611. height: 20rpx;
  612. background: #d9d9d9;
  613. margin: 0 12rpx;
  614. }
  615. .error {
  616. position: absolute;
  617. top: 0;
  618. right: 0;
  619. width: 140rpx;
  620. height: 53rpx;
  621. border-radius: 4rpx;
  622. display: flex;
  623. align-items: center;
  624. justify-content: center;
  625. }
  626. .overtime {
  627. background: #FFF2E8;
  628. color: #FF7918;
  629. }
  630. .insufficient {
  631. background: #FFE8E8;
  632. color: #FF1818;
  633. }
  634. }
  635. .details {
  636. width: 100%;
  637. height: auto;
  638. min-height: 132rpx;
  639. height: 132rpx;
  640. display: flex;
  641. align-items: center;
  642. margin-top: 20rpx;
  643. .img {
  644. margin-right: 16rpx;
  645. border-radius: 12rpx;
  646. overflow: hidden;
  647. image {
  648. width: 132rpx;
  649. height: 132rpx;
  650. }
  651. }
  652. .data {
  653. flex: 1;
  654. height: 100%;
  655. display: flex;
  656. flex-direction: column;
  657. justify-content: space-between;
  658. font-weight: 600;
  659. font-style: 28rpx;
  660. position: relative;
  661. .repertory {
  662. font-size: 24rpx;
  663. display: flex;
  664. align-items: center;
  665. color: #666;
  666. font-weight: 400;
  667. span {
  668. display: block;
  669. width: 1rpx;
  670. height: 20rpx;
  671. background: #d9d9d9;
  672. margin: 0 12rpx;
  673. }
  674. }
  675. .price {
  676. display: flex;
  677. align-items: center;
  678. font-size: 30rpx;
  679. font-weight: 600;
  680. span {
  681. font-size: 26rpx;
  682. margin-left: 20rpx;
  683. font-weight: 400;
  684. }
  685. }
  686. image{
  687. position: absolute;
  688. top: 50%;
  689. right: 50rpx;
  690. transform: translateY(-50%);
  691. width: 50rpx;
  692. height: 50rpx;
  693. }
  694. }
  695. .tag {
  696. width: 40rpx;
  697. height: 40rpx;
  698. display: flex;
  699. flex-direction: column;
  700. align-items: center;
  701. image {
  702. width: 40rpx;
  703. height: 40rpx;
  704. }
  705. }
  706. }
  707. .btn_box {
  708. width: 100%;
  709. display: flex;
  710. justify-content: flex-end;
  711. align-items: center;
  712. margin-top: 20rpx;
  713. .delist {
  714. width: 100rpx;
  715. height: 50rpx;
  716. border-radius: 8rpx;
  717. border: 1px solid #CCCCCC;
  718. display: flex;
  719. justify-content: center;
  720. align-items: center;
  721. font-size: 26rpx;
  722. color: #666666;
  723. }
  724. .select{
  725. width: 178rpx;
  726. height: 50rpx;
  727. background: rgba(68,154,255,0.05);
  728. border-radius: 8rpx;
  729. border: 1px solid #449AFF;
  730. font-size: 26rpx;
  731. color: #449AFF;
  732. text-align: center;
  733. line-height: 50rpx;
  734. margin-right: 20rpx;
  735. }
  736. .edit {
  737. margin-left: 20rpx;
  738. background: rgba(68, 154, 255, 0.05);
  739. border: 1px solid #449AFF;
  740. color: #449AFF;
  741. }
  742. }
  743. }
  744. }
  745. .creat {
  746. width: 100%;
  747. height: 100rpx;
  748. background-color: #fff;
  749. display: flex;
  750. justify-content: center;
  751. align-items: center;
  752. .btn {
  753. width: 672rpx;
  754. height: 76rpx;
  755. display: flex;
  756. justify-content: center;
  757. align-items: center;
  758. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  759. border-radius: 75rpx;
  760. font-size: 28rpx;
  761. color: #FFFFFF;
  762. image {
  763. width: 40rpx;
  764. height: 40rpx;
  765. margin-right: 10rpx;
  766. }
  767. }
  768. .operate {
  769. width: 100%;
  770. display: flex;
  771. // justify-content: space-between;
  772. align-items: center;
  773. padding: 0px 20rpx;
  774. .delete {
  775. width: 205rpx;
  776. height: 76rpx;
  777. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  778. border-radius: 49rpx;
  779. font-size: 28rpx;
  780. color: #FFFFFF;
  781. display: flex;
  782. justify-content: center;
  783. align-items: center;
  784. margin-right: 24rpx;
  785. margin-left: 140rpx;
  786. }
  787. .delist {
  788. margin-left: 0rpx;
  789. background: linear-gradient(90deg, #FFA05B 0%, #FF7918 100%);
  790. }
  791. .all {
  792. width: 25%;
  793. // height: 60rpx;
  794. // border: 1px solid #999;
  795. display: flex;
  796. justify-content: center;
  797. align-items: center;
  798. image {
  799. width: 40rpx;
  800. height: 40rpx;
  801. margin-right: 10rpx;
  802. }
  803. }
  804. }
  805. }
  806. .popup {
  807. width: 100vw;
  808. height: 100vh;
  809. position: fixed;
  810. top: 0;
  811. left: 0;
  812. background: rgba(0, 0, 0, 0.4);
  813. display: flex;
  814. align-items: center;
  815. justify-content: center;
  816. .content {
  817. width: 570rpx;
  818. background: #FFFFFF;
  819. border-radius: 16rpx;
  820. padding: 0px 24rpx;
  821. padding-bottom: 16rpx;
  822. .title {
  823. width: 100%;
  824. height: 86rpx;
  825. font-size: 32rpx;
  826. color: #333333;
  827. font-weight: 600;
  828. border-bottom: 1px solid #EEEEEE;
  829. display: flex;
  830. align-items: center;
  831. justify-content: center;
  832. }
  833. .center {
  834. font-size: 30rpx;
  835. color: #333333;
  836. line-height: 35rpx;
  837. display: flex;
  838. flex-direction: column;
  839. align-items: center;
  840. justify-content: center;
  841. padding-top: 28rpx;
  842. border-bottom: 1px solid #EEEEEE;
  843. padding-bottom: 40rpx;
  844. margin-bottom: 16rpx;
  845. .error {
  846. text-align: center;
  847. }
  848. image {
  849. width: 100rpx;
  850. height: 100rpx;
  851. margin-bottom: 10rpx;
  852. }
  853. }
  854. .sub {
  855. width: 320rpx;
  856. height: 68rpx;
  857. border-radius: 66rpx;
  858. font-size: 28rpx;
  859. color: #FFFFFF;
  860. display: flex;
  861. align-items: center;
  862. justify-content: center;
  863. margin: 0rpx auto;
  864. .button {
  865. width: 320rpx;
  866. height: 68rpx;
  867. background: #449AFF;
  868. border-radius: 66rpx;
  869. display: flex;
  870. align-items: center;
  871. justify-content: center;
  872. }
  873. }
  874. .start {
  875. background: #53CC48;
  876. }
  877. .rest {
  878. background: #FF8024;
  879. }
  880. }
  881. }
  882. }
  883. .tab-container {
  884. display: flex;
  885. justify-content: space-around;
  886. .tab-item {
  887. position: relative;
  888. padding: 18rpx 0;
  889. cursor: pointer;
  890. color: #333;
  891. font-weight: 400;
  892. font-size: 28rpx;
  893. }
  894. .tab-item.active {
  895. color: #449AFF;
  896. font-weight: 600;
  897. }
  898. .tab-item.active::after {
  899. content: '';
  900. position: absolute;
  901. bottom: -28px;
  902. left: 35%;
  903. width: 38rpx;
  904. height: 100%;
  905. background: url(/static/product/tab-act.png) no-repeat;
  906. background-size: contain;
  907. }
  908. }
  909. </style>