index.vue 24 KB

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