index.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109
  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. })
  445. this.isSell = true
  446. // }
  447. },
  448. sellProduct() {
  449. this.$http.post("/app/product/shelves", this.sellProducts)
  450. .then(res => {
  451. if (res.data.code == 200) {
  452. this.getProductList()
  453. this.getStatus()
  454. uni.showToast({
  455. title: '上架成功',
  456. duration: 2000,
  457. icon: 'none'
  458. });
  459. this.isSell = false
  460. this.sellProducts = []
  461. } else {
  462. uni.showToast({
  463. title: res.data.message,
  464. duration: 2000,
  465. icon: 'none'
  466. });
  467. this.isSell = false
  468. this.sellProducts = []
  469. }
  470. })
  471. },
  472. //跳转至选择检测站
  473. goSelect(item) {
  474. uni.navigateTo({
  475. // url: '/pages/product/checkMap'
  476. url: '/pages/product/checkTdMap'
  477. })
  478. },
  479. getStatus() {
  480. this.$http.get("/app/product/statusCount?merchantId=" + this.merchantId + '&isPlatform=' + this.tabIndex).then(
  481. res => {
  482. if (res.data.code == 200) {
  483. this.typeList = res.data.result
  484. }
  485. })
  486. }
  487. },
  488. mounted() {
  489. this.getProductList()
  490. this.getStatus()
  491. },
  492. onShow() {
  493. let that = this
  494. uni.getStorage({
  495. key: 'login_user_info',
  496. success: function (res) {
  497. that.merchantId = res.data.merchantId
  498. }
  499. })
  500. uni.removeStorage({
  501. key: 'smdate',
  502. });
  503. uni.removeStorage({
  504. key: 'group',
  505. });
  506. }
  507. }
  508. </script>
  509. <style lang="scss" scoped>
  510. .product {
  511. width: 100%;
  512. height: 100vh;
  513. display: flex;
  514. flex-direction: column;
  515. justify-content: space-between;
  516. background: #F7F8FC;
  517. .top {
  518. width: 100%;
  519. height: var(--status-bar-height);
  520. background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
  521. }
  522. .head {
  523. width: 100%;
  524. background: #ffffff;
  525. .handle {
  526. height: 112rpx;
  527. display: flex;
  528. justify-content: space-between;
  529. align-items: center;
  530. padding: 0px 24rpx;
  531. position: relative;
  532. background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
  533. .head_left {
  534. font-size: 40rpx;
  535. }
  536. .center {
  537. position: absolute;
  538. left: 50%;
  539. top: 50%;
  540. transform: translate(-50%, -50%);
  541. font-size: 36rpx;
  542. font-weight: 600;
  543. }
  544. .head_right {
  545. display: flex;
  546. justify-content: space-between;
  547. align-items: center;
  548. span {
  549. width: 40rpx;
  550. height: 40rpx;
  551. display: flex;
  552. justify-content: center;
  553. align-items: center;
  554. }
  555. .manage {
  556. // width: 150rpx;
  557. margin-left: 28rpx;
  558. }
  559. }
  560. }
  561. .search {
  562. width: 93%;
  563. height: 56rpx;
  564. background: #F7F8FC;
  565. border-radius: 12rpx;
  566. display: flex;
  567. align-items: center;
  568. justify-content: space-between;
  569. margin: 24rpx auto;
  570. font-size: 26rpx;
  571. padding: 13rpx 20rpx;
  572. span {
  573. margin-right: 15rpx;
  574. }
  575. input {
  576. flex: 1;
  577. font-size: 26rpx;
  578. }
  579. .search_btn {
  580. width: 72rpx;
  581. color: #333333;
  582. display: flex;
  583. align-items: center;
  584. justify-content: space-between;
  585. span {
  586. display: block;
  587. width: 1px;
  588. height: 26rpx;
  589. background-color: #eeeeee;
  590. }
  591. }
  592. }
  593. .type {
  594. display: flex;
  595. justify-content: space-between;
  596. background-color: #fff;
  597. padding: 8px 24rpx 16rpx;
  598. .type_item {
  599. height: 54rpx;
  600. display: flex;
  601. justify-content: center;
  602. align-items: center;
  603. font-size: 26rpx;
  604. color: #888888;
  605. position: relative;
  606. padding: 8rpx 12rpx;
  607. background: #F2F3F5;
  608. border-radius: 8rpx;
  609. }
  610. .active {
  611. color: #2D88F4;
  612. background: #ECF5FF;
  613. }
  614. }
  615. }
  616. .list {
  617. width: 100%;
  618. flex: 1;
  619. // padding: 0px 20rpx;
  620. overflow-y: auto;
  621. .product_item {
  622. width: 100%;
  623. background-color: #fff;
  624. border-radius: 20rpx;
  625. padding: 20rpx 40rpx;
  626. margin-top: 20rpx;
  627. .status {
  628. display: flex;
  629. align-items: center;
  630. position: relative;
  631. .round {
  632. display: flex;
  633. align-items: center;
  634. color: #49A03F;
  635. }
  636. .round::before {
  637. content: "";
  638. display: inline-block;
  639. width: 9rpx;
  640. height: 9rpx;
  641. background: #49A03F;
  642. border-radius: 50%;
  643. margin-right: 8rpx;
  644. }
  645. .no {
  646. color: #666666;
  647. }
  648. .no::before {
  649. content: "";
  650. display: inline-block;
  651. width: 9rpx;
  652. height: 9rpx;
  653. background: #666666;
  654. border-radius: 50%;
  655. margin-right: 8rpx;
  656. }
  657. .audit {
  658. display: flex;
  659. align-items: center;
  660. color: #596ABB;
  661. }
  662. .audit::before {
  663. content: "";
  664. display: inline-block;
  665. width: 9rpx;
  666. height: 9rpx;
  667. background: #596ABB;
  668. border-radius: 50%;
  669. margin-right: 8rpx;
  670. }
  671. .reject {
  672. display: flex;
  673. align-items: center;
  674. color: #F55D65;
  675. }
  676. .reject::before {
  677. content: "";
  678. display: inline-block;
  679. width: 9rpx;
  680. height: 9rpx;
  681. background: #F55D65;
  682. border-radius: 50%;
  683. margin-right: 8rpx;
  684. }
  685. .line {
  686. display: block;
  687. width: 1rpx;
  688. height: 20rpx;
  689. background: #d9d9d9;
  690. margin: 0 12rpx;
  691. }
  692. .error {
  693. position: absolute;
  694. top: 0;
  695. right: 0;
  696. width: 140rpx;
  697. height: 53rpx;
  698. border-radius: 4rpx;
  699. display: flex;
  700. align-items: center;
  701. justify-content: center;
  702. }
  703. .overtime {
  704. background: #FFF2E8;
  705. color: #FF7918;
  706. }
  707. .insufficient {
  708. background: #FFE8E8;
  709. color: #FF1818;
  710. }
  711. }
  712. .details {
  713. width: 100%;
  714. height: auto;
  715. min-height: 132rpx;
  716. height: 132rpx;
  717. display: flex;
  718. align-items: center;
  719. margin-top: 20rpx;
  720. .img {
  721. margin-right: 16rpx;
  722. border-radius: 12rpx;
  723. overflow: hidden;
  724. image {
  725. width: 132rpx;
  726. height: 132rpx;
  727. }
  728. }
  729. .data {
  730. flex: 1;
  731. height: 100%;
  732. display: flex;
  733. flex-direction: column;
  734. justify-content: space-between;
  735. font-weight: 600;
  736. font-style: 28rpx;
  737. position: relative;
  738. .repertory {
  739. font-size: 24rpx;
  740. display: flex;
  741. align-items: center;
  742. color: #666;
  743. font-weight: 400;
  744. span {
  745. // display: block;
  746. // width: 1rpx;
  747. // height: 20rpx;
  748. // background: #d9d9d9;
  749. margin-left: 12rpx;
  750. }
  751. }
  752. .price {
  753. display: flex;
  754. align-items: center;
  755. font-size: 30rpx;
  756. font-weight: 600;
  757. span {
  758. font-size: 26rpx;
  759. margin-left: 20rpx;
  760. font-weight: 400;
  761. }
  762. }
  763. image {
  764. position: absolute;
  765. top: 50%;
  766. right: 50rpx;
  767. transform: translateY(-50%);
  768. width: 50rpx;
  769. height: 50rpx;
  770. }
  771. }
  772. .tag {
  773. width: 40rpx;
  774. height: 40rpx;
  775. display: flex;
  776. flex-direction: column;
  777. align-items: center;
  778. image {
  779. width: 40rpx;
  780. height: 40rpx;
  781. }
  782. }
  783. }
  784. .btn_box {
  785. width: 100%;
  786. display: flex;
  787. justify-content: flex-end;
  788. align-items: center;
  789. margin-top: 20rpx;
  790. .delist {
  791. width: 100rpx;
  792. height: 50rpx;
  793. border-radius: 8rpx;
  794. border: 1px solid #CCCCCC;
  795. display: flex;
  796. justify-content: center;
  797. align-items: center;
  798. font-size: 26rpx;
  799. color: #666666;
  800. }
  801. .select {
  802. width: 178rpx;
  803. height: 50rpx;
  804. background: rgba(68, 154, 255, 0.05);
  805. border-radius: 8rpx;
  806. border: 1px solid #449AFF;
  807. font-size: 26rpx;
  808. color: #449AFF;
  809. text-align: center;
  810. line-height: 50rpx;
  811. margin-right: 20rpx;
  812. }
  813. .edit {
  814. margin-left: 20rpx;
  815. background: rgba(68, 154, 255, 0.05);
  816. border: 1px solid #449AFF;
  817. color: #449AFF;
  818. }
  819. }
  820. }
  821. }
  822. .creat {
  823. width: 100%;
  824. height: 100rpx;
  825. background-color: #fff;
  826. display: flex;
  827. justify-content: center;
  828. align-items: center;
  829. .btn {
  830. width: 672rpx;
  831. height: 76rpx;
  832. display: flex;
  833. justify-content: center;
  834. align-items: center;
  835. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  836. border-radius: 75rpx;
  837. font-size: 28rpx;
  838. color: #FFFFFF;
  839. image {
  840. width: 40rpx;
  841. height: 40rpx;
  842. margin-right: 10rpx;
  843. }
  844. }
  845. .operate {
  846. width: 100%;
  847. display: flex;
  848. justify-content: space-between;
  849. align-items: center;
  850. padding: 0px 20rpx;
  851. .delete {
  852. width: 205rpx;
  853. height: 76rpx;
  854. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  855. border-radius: 49rpx;
  856. font-size: 28rpx;
  857. color: #FFFFFF;
  858. display: flex;
  859. justify-content: center;
  860. align-items: center;
  861. margin-right: 24rpx;
  862. margin-left: 140rpx;
  863. }
  864. .delist {
  865. margin-left: 0rpx;
  866. background: linear-gradient(90deg, #FFA05B 0%, #FF7918 100%);
  867. }
  868. .all {
  869. width: 25%;
  870. // height: 60rpx;
  871. // border: 1px solid #999;
  872. display: flex;
  873. justify-content: center;
  874. align-items: center;
  875. image {
  876. width: 40rpx;
  877. height: 40rpx;
  878. margin-right: 10rpx;
  879. }
  880. }
  881. }
  882. }
  883. .popup {
  884. width: 100vw;
  885. height: 100vh;
  886. position: fixed;
  887. top: 0;
  888. left: 0;
  889. background: rgba(0, 0, 0, 0.4);
  890. display: flex;
  891. align-items: center;
  892. justify-content: center;
  893. .content {
  894. width: 570rpx;
  895. background: #FFFFFF;
  896. border-radius: 16rpx;
  897. padding: 0px 24rpx;
  898. padding-bottom: 16rpx;
  899. .title {
  900. width: 100%;
  901. height: 86rpx;
  902. font-size: 32rpx;
  903. color: #333333;
  904. font-weight: 600;
  905. border-bottom: 1px solid #EEEEEE;
  906. display: flex;
  907. align-items: center;
  908. justify-content: center;
  909. }
  910. .center {
  911. height: 190rpx;
  912. font-size: 30rpx;
  913. color: #333333;
  914. line-height: 35rpx;
  915. display: flex;
  916. flex-direction: column;
  917. align-items: center;
  918. justify-content: center;
  919. padding-top: 28rpx;
  920. border-bottom: 1px solid #EEEEEE;
  921. padding-bottom: 40rpx;
  922. margin-bottom: 16rpx;
  923. .error {
  924. text-align: center;
  925. }
  926. image {
  927. width: 100rpx;
  928. height: 100rpx;
  929. margin-bottom: 10rpx;
  930. }
  931. }
  932. .sub {
  933. width: 320rpx;
  934. height: 68rpx;
  935. border-radius: 66rpx;
  936. font-size: 28rpx;
  937. color: #FFFFFF;
  938. display: flex;
  939. align-items: center;
  940. justify-content: center;
  941. margin: 0rpx auto;
  942. .button {
  943. width: 320rpx;
  944. height: 68rpx;
  945. background: #449AFF;
  946. border-radius: 66rpx;
  947. display: flex;
  948. align-items: center;
  949. justify-content: center;
  950. }
  951. }
  952. .btn {
  953. width: 100%;
  954. height: 68rpx;
  955. border-radius: 66rpx;
  956. font-size: 28rpx;
  957. color: #FFFFFF;
  958. display: flex;
  959. align-items: center;
  960. justify-content: space-around;
  961. margin: 0rpx auto;
  962. .cancel {
  963. width: 241rpx;
  964. height: 68rpx;
  965. border-radius: 54rpx;
  966. display: flex;
  967. align-items: center;
  968. justify-content: center;
  969. border: 1px solid #cccccc;
  970. font-size: 28rpx;
  971. color: #999999;
  972. }
  973. .button {
  974. width: 241rpx;
  975. height: 68rpx;
  976. background: #449AFF;
  977. border-radius: 54rpx;
  978. display: flex;
  979. align-items: center;
  980. justify-content: center;
  981. }
  982. }
  983. .start {
  984. background: #53CC48;
  985. }
  986. .rest {
  987. background: #FF8024;
  988. }
  989. }
  990. }
  991. }
  992. .tab-container {
  993. display: flex;
  994. justify-content: space-around;
  995. .tab-item {
  996. position: relative;
  997. padding: 18rpx 0;
  998. cursor: pointer;
  999. color: #333;
  1000. font-weight: 400;
  1001. font-size: 28rpx;
  1002. }
  1003. .tab-item.active {
  1004. color: #449AFF;
  1005. font-weight: 600;
  1006. }
  1007. .tab-item.active::after {
  1008. content: '';
  1009. position: absolute;
  1010. bottom: -28px;
  1011. left: 35%;
  1012. width: 38rpx;
  1013. height: 100%;
  1014. background: url(/static/product/tab-act.png) no-repeat;
  1015. background-size: contain;
  1016. }
  1017. }
  1018. </style>