index.vue 24 KB

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