workspace.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <template>
  2. <view>
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{paddingTop:navH}" style="background-color: #fff;"></view>
  6. <view class="menu-head">
  7. <view class="menu" style="padding-bottom: 10rpx;">
  8. <view class="menu-item" @click="toShowSec()">
  9. <view class="menu-item-p">
  10. <p v-bind:class="showSec?'lor':'unlor'">带货</p>
  11. </view>
  12. <!-- <span class="point" v-if="showPoint2" key="1"></span> -->
  13. </view>
  14. <view class="menu-item" @click="toShowTask()">
  15. <view class="menu-item-p">
  16. <p v-bind:class="showTask?'lor':'unlor'">种草</p>
  17. </view>
  18. <!-- <span class="point" v-if="showPoint1" key="0"></span> -->
  19. </view>
  20. </view>
  21. <view class="menu" v-if="showTask">
  22. <view class="menu-item" @click="toShow(index)" v-for="(item,index) in taskTabList">
  23. <view class="menu-item-p">
  24. <p v-bind:class="showList[index]?'lor':'unlor'">{{item}}</p>
  25. </view>
  26. <span class="point" v-if="showPoint[index]" :key="index"></span>
  27. </view>
  28. </view>
  29. <view class="menu" v-if="showSec">
  30. <view class="menu-item" @click="toShow(4)">
  31. <view class="menu-item-p">
  32. <p v-bind:class="showList[4]?'lor':'unlor'">待交作业</p>
  33. </view>
  34. <span class="point" v-if="showPoint[4]" key="0"></span>
  35. </view>
  36. <view class="menu-item">
  37. <view class="menu-item-p">
  38. <p style="color: #fff;">待传初稿</p>
  39. </view>
  40. </view>
  41. <view class="menu-item">
  42. <view class="menu-item-p">
  43. <p style="color: #fff;">待传链接</p>
  44. </view>
  45. </view>
  46. <view class="menu-item">
  47. <view class="menu-item-p">
  48. <p style="color: #fff;">待传数据</p>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="home" v-if="showList[0] && !loading">
  54. <view class="task" v-for="item in taskLists[0]" @click="toTaskDetail(item)">
  55. <view class="task-card">
  56. <view class="task-head">
  57. <view class="task-head-account">
  58. <image class="platform-img" :src="item.platform_icon_url"></image>
  59. <p>{{item.platform_nick_name}}</p>
  60. </view>
  61. <view class="task-head-status">
  62. <p>{{item.task_stage_txt}}</p>
  63. </view>
  64. </view>
  65. <view class="task-info">
  66. <view class="task-info-left">
  67. <image class="project-img" :src="item.product_img_url"></image>
  68. <view class="task-info-txt">
  69. <p style="color: #000;font-size: 32rpx;">{{item.project_name}}</p>
  70. <p style="color: #F0D232;" v-if="!item.time_out">上传截止时间:{{item.upload_ddl}}</p>
  71. <p style="color: #f70c0c;" v-else>超时:{{item.upload_ddl}}</p>
  72. <p>预计违约扣款金额:¥{{item.show_cut_payment}}</p>
  73. <p>预计收益:¥{{item.show_task_reward}}</p>
  74. </view>
  75. </view>
  76. <view class="task-info-right" v-if="item.isShowModify">
  77. <image src="../../static/img/icon-edit.png" style="height: 60rpx;width: 60rpx;"></image>
  78. <p style="font-size: 32rpx;color: #ffcb41;font-weight: 600">改</p>
  79. </view>
  80. </view>
  81. <view style="text-align: right;" v-if="item.task_stage > 6">
  82. <p style="display: inline-block;">实际收益:¥{{item.show_real_reward}}</p>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="home" v-if="showList[1] && !loading">
  88. <view class="task" v-for="item in taskLists[1]" @click="toTaskDetail(item)">
  89. <view class="task-card">
  90. <view class="task-head">
  91. <view class="task-head-account">
  92. <image class="platform-img" :src="item.platform_icon_url"></image>
  93. <p>{{item.platform_nick_name}}</p>
  94. </view>
  95. <view class="task-head-status">
  96. <p>{{item.task_stage_txt}}</p>
  97. </view>
  98. </view>
  99. <view class="task-info">
  100. <view class="task-info-left">
  101. <image class="project-img" :src="item.product_img_url"></image>
  102. <view class="task-info-txt">
  103. <p style="color: #000;font-size: 32rpx;">{{item.project_name}}</p>
  104. <p style="color: #F0D232;" v-if="!item.time_out">上传截止时间:{{item.upload_ddl}}</p>
  105. <p style="color: #f70c0c;" v-else>超时:{{item.upload_ddl}}</p>
  106. <p>预计违约扣款金额:¥{{item.show_cut_payment}}</p>
  107. <p>预计收益:¥{{item.show_task_reward}}</p>
  108. </view>
  109. </view>
  110. <view class="task-info-right" v-if="item.isShowModify">
  111. <image src="../../static/img/icon-edit.png" style="height: 60rpx;width: 60rpx;"></image>
  112. <p style="font-size: 32rpx;color: #ffcb41;font-weight: 600">改</p>
  113. </view>
  114. </view>
  115. <view style="text-align: right;" v-if="item.task_stage > 6">
  116. <p style="display: inline-block;">实际收益:¥{{item.show_real_reward}}</p>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="home" v-if="showList[2] && !loading">
  122. <view class="task" v-for="item in taskLists[2]" @click="toTaskDetail(item)">
  123. <view class="task-card">
  124. <view class="task-head">
  125. <view class="task-head-account">
  126. <image class="platform-img" :src="item.platform_icon_url"></image>
  127. <p>{{item.platform_nick_name}}</p>
  128. </view>
  129. <view class="task-head-status">
  130. <p>{{item.task_stage_txt}}</p>
  131. </view>
  132. </view>
  133. <view class="task-info">
  134. <view class="task-info-left">
  135. <image class="project-img" :src="item.product_img_url"></image>
  136. <view class="task-info-txt">
  137. <p style="color: #000;font-size: 32rpx;">{{item.project_name}}</p>
  138. <p style="color: #F0D232;" v-if="!item.time_out">上传截止时间:{{item.upload_ddl}}</p>
  139. <p style="color: #f70c0c;" v-else>超时:{{item.upload_ddl}}</p>
  140. <p>预计违约扣款金额:¥{{item.show_cut_payment}}</p>
  141. <p>预计收益:¥{{item.show_task_reward}}</p>
  142. </view>
  143. </view>
  144. <view class="task-info-right" v-if="item.isShowModify">
  145. <image src="../../static/img/icon-edit.png" style="height: 60rpx;width: 60rpx;"></image>
  146. <p style="font-size: 32rpx;color: #ffcb41;font-weight: 600">改</p>
  147. </view>
  148. </view>
  149. <view style="text-align: right;" v-if="item.task_stage > 6">
  150. <p style="display: inline-block;">实际收益:¥{{item.show_real_reward}}</p>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="home" v-if="showList[3] && !loading">
  156. <view class="task" v-for="item in taskLists[3]" @click="toTaskDetail(item)">
  157. <view class="task-card">
  158. <view class="task-head">
  159. <view class="task-head-account">
  160. <image class="platform-img" :src="item.platform_icon_url"></image>
  161. <p>{{item.platform_nick_name}}</p>
  162. </view>
  163. <view class="task-head-status">
  164. <p>{{item.task_stage_txt}}</p>
  165. </view>
  166. </view>
  167. <view class="task-info">
  168. <view class="task-info-left">
  169. <image class="project-img" :src="item.product_img_url"></image>
  170. <view class="task-info-txt">
  171. <p style="color: #000;font-size: 32rpx;">{{item.project_name}}</p>
  172. <p style="color: #F0D232;" v-if="!item.time_out">上传截止时间:{{item.upload_ddl}}</p>
  173. <p style="color: #f70c0c;" v-else>超时:{{item.upload_ddl}}</p>
  174. <p v-if="item.fee_form != 1">预计违约扣款金额:¥{{item.show_cut_payment}}</p>
  175. <p>预计收益:¥{{item.show_task_reward}}</p>
  176. </view>
  177. </view>
  178. <view class="task-info-right" v-if="item.isShowModify">
  179. <image src="../../static/img/icon-edit.png" style="height: 60rpx;width: 60rpx;"></image>
  180. <p style="font-size: 32rpx;color: #ffcb41;font-weight: 600">改</p>
  181. </view>
  182. </view>
  183. <view style="text-align: right;" v-if="item.task_stage > 6">
  184. <p style="display: inline-block;">实际收益:¥{{item.show_real_reward}}</p>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. <view class="home" v-if="showList[4] && !loading">
  190. <view class="task" v-for="item in taskLists[4]">
  191. <view class="task-card">
  192. <view class="task-head" @click="toSecTaskDetail(item)">
  193. <view class="task-head-account">
  194. <image class="platform-img" :src="item.platform_icon_url"></image>
  195. <p>{{item.platform_nick_name}}</p>
  196. </view>
  197. <view class="task-head-status">
  198. <p>{{item.task_stage_txt}}</p>
  199. </view>
  200. </view>
  201. <view class="task-info" @click="toSecTaskDetail(item)">
  202. <view class="task-info-left">
  203. <image class="project-img" :src="item.product_img_url"></image>
  204. <view class="task-info-txt">
  205. <p style="color: #000;font-size: 32rpx;">{{item.selection_name}}</p>
  206. <p v-if="item.sample_mode === 2">预计样品返现金额:¥{{item.show_payment}}</p>
  207. <p>预计收益:¥{{item.show_task_reward}}</p>
  208. </view>
  209. </view>
  210. <view class="task-info-right" v-if="item.isShowModify" @click="toSecTaskDetail(item)">
  211. <image src="../../static/img/icon-edit.png" style="height: 60rpx;width: 60rpx;"></image>
  212. <p style="font-size: 32rpx;color: #ffcb41;font-weight: 600">改</p>
  213. </view>
  214. </view>
  215. <view style="display: flex;justify-content: flex-end;margin-right: 10rpx;" >
  216. <button type="default" class="but2" @click="toLogisticDetail(item.task_id)" v-if="item.task_stage > 7">
  217. 查看物流
  218. </button>
  219. <button type="default" class="but2" @click="handleCopy(item.product_url)">
  220. 复制带货链接
  221. </button>
  222. <p style="display: inline-block;" v-if="item.task_stage > 5">实际收益:¥{{item.show_real_reward}}</p>
  223. </view>
  224. </view>
  225. </view>
  226. </view>
  227. <view style="height: 100rpx;"></view>
  228. </view>
  229. </template>
  230. <script>
  231. import mvBar from "@/components/mys_navBar/mysNavBar";
  232. import {
  233. fansview,
  234. money
  235. } from '@/components/utils.js';
  236. export default {
  237. components: {
  238. mvBar,
  239. },
  240. data() {
  241. return {
  242. navH: getApp().globalData.navHeight,
  243. loading: true,
  244. showPoint: [false, false, false, false, false],
  245. showTask: false,
  246. showSec: true,
  247. showList: [
  248. false, false, false, false, true
  249. ],
  250. taskLists: [
  251. [],
  252. [],
  253. [],
  254. [],
  255. []
  256. ],
  257. taskTabList: [
  258. "待传脚本",
  259. "待传初稿",
  260. "待传链接",
  261. "待传数据"
  262. ],
  263. secTaskTabList: [
  264. "待传作业"
  265. ],
  266. taskStageList: [],
  267. secTaskStageList: [],
  268. mysNavConfig: {
  269. /* 开启单页显示首页图标 */
  270. isHome: true,
  271. /* 固定导航 */
  272. navFixed: true,
  273. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  274. navTitle: {
  275. text: "工作台",
  276. color: "",
  277. fontSize: "32rpx", // px upx rpx
  278. fontWeight: "normal", // 100 - 700
  279. },
  280. },
  281. list: [{
  282. account: {
  283. platform: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/lQLPDhrXwll1_MsjI7CSK_6e62AG2AGOvh1HgAcA_35_35.png",
  284. nickname: "丸子在成都",
  285. },
  286. status: "待确认",
  287. mainphoto: "https://static1.paizi.com/uploadfile/2018/1013/20181013013207465.png",
  288. taskname: "醉码头火锅太古里店",
  289. }, {
  290. account: {
  291. platform: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/pingtai2.png",
  292. nickname: "成都的一颗丸子",
  293. },
  294. status: "待确认",
  295. mainphoto: "https://tse1-mm.cn.bing.net/th/id/R-C.978cb3a3b27875a0cc9d78a254b30b8f?rik=yrP2kNCtfQYEgQ&riu=http%3a%2f%2fnews.southcn.com%2fgd%2fcontent%2fimages%2fattachement%2fpng%2fsite4%2f20190917%2feca86b61fd551eeb23c507.png&ehk=xuWbgLrNmyhNJaByMZPJrX81PrzXrLHqHM%2fdYatFhrs%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1",
  296. taskname: "奥运吉祥物冰墩墩盲盒",
  297. }],
  298. }
  299. },
  300. async onShow() {
  301. this.token = uni.getStorageSync('token')
  302. await this.$https.get('/youngee/c/t/g/is-login')
  303. .then(res => {
  304. if (res.data.code == 403) {
  305. this.token = ""
  306. uni.clearStorage();
  307. }
  308. });
  309. if (this.token === '') {
  310. uni.showModal({
  311. content: '请先登录',
  312. success: function(res) {
  313. if (res.confirm) {
  314. uni.navigateTo({
  315. url: '/pages/login/login'
  316. });
  317. } else if (res.cancel) {
  318. uni.switchTab({
  319. url: '/pages/tasksquare/tasksquare'
  320. });
  321. }
  322. }
  323. });
  324. }
  325. let curTab = 0
  326. this.showList.forEach(async function(item, index) {
  327. if (item === true) {
  328. curTab = index
  329. }
  330. });
  331. await this.getInfoList()
  332. if (parseInt(curTab) < 4) {
  333. this.getTaskList(parseInt(curTab));
  334. } else {
  335. this.getSecTaskList(parseInt(curTab));
  336. }
  337. },
  338. methods: {
  339. handleCopy(content) {
  340. wx.setClipboardData({
  341. data: content,
  342. success: function(res) {
  343. console.log("复制成功");
  344. }
  345. });
  346. },
  347. toLogisticDetail(secTaskId) {
  348. var data = {
  349. taskId: secTaskId,
  350. };
  351. data = JSON.stringify(data)
  352. uni.navigateTo({
  353. url: '/page_workspace/selection/logistics/logisticsdetail?textObj=' + encodeURIComponent(data)
  354. });
  355. },
  356. getInfoList() {
  357. return this.$http.get('/youngee/c/g/get-info-tables')
  358. .then(res => {
  359. if (res.data.code == 0) {
  360. this.taskStageList = res.data.data.TaskStage
  361. this.secTaskStageList = res.data.data.SecTaskStage
  362. }
  363. })
  364. },
  365. toShowTask() {
  366. this.showTask = true;
  367. this.showSec = false;
  368. this.toShow(0)
  369. },
  370. toShowSec() {
  371. this.showTask = false;
  372. this.showSec = true;
  373. this.toShow(4)
  374. },
  375. toShow(value) {
  376. let that = this
  377. this.showList.forEach(function(item, index) {
  378. if (index == value) {
  379. that.showList[index] = true
  380. } else {
  381. that.showList[index] = false
  382. }
  383. })
  384. if (value < 4) {
  385. this.getTaskList(value);
  386. } else {
  387. this.getSecTaskList(value);
  388. }
  389. },
  390. toTaskDetail(item) {
  391. uni.navigateTo({
  392. url: '/page_workspace/task/taskdetail?taskId=' + item.task_id,
  393. success(res) {},
  394. fail(err) {}
  395. });
  396. },
  397. toSecTaskDetail(item) {
  398. uni.navigateTo({
  399. url: '/page_workspace/selection/sectaskdetail?taskId=' + item.task_id,
  400. success(res) {},
  401. fail(err) {}
  402. });
  403. },
  404. async getTaskList(value) {
  405. let that = this
  406. this.loading = true
  407. uni.showLoading({
  408. title: '加载中'
  409. });
  410. await this.$https.get('/youngee/c/t/g/get-task-exe-num')
  411. .then(res => {
  412. if (res.data.data != null) {
  413. let nums = res.data.data
  414. this.showPoint.forEach(function(item, index) {
  415. that.showPoint[index] = false
  416. })
  417. for (let i = 0; i < nums.length; ++i) {
  418. if (nums[i].task_stage == 7 && nums[i]["COUNT(*)"] != 0) {
  419. this.showPoint[0] = true
  420. }
  421. if (nums[i].task_stage == 9 && nums[i]["COUNT(*)"] != 0) {
  422. this.showPoint[1] = true
  423. }
  424. if (nums[i].task_stage == 11 && nums[i]["COUNT(*)"] != 0) {
  425. this.showPoint[2] = true
  426. }
  427. if (nums[i].task_stage == 13 && nums[i]["COUNT(*)"] != 0) {
  428. this.showPoint[3] = true
  429. }
  430. }
  431. }
  432. });
  433. var taskList = [];
  434. await this.$https.get('/youngee/c/t/g/get-task-exe-list' +
  435. "?" +
  436. "taskStage" +
  437. "=" +
  438. value).then(res => {
  439. taskList = res.data.data
  440. if (taskList != null) {
  441. for (let i = 0; i < taskList.length; ++i) {
  442. // 主图
  443. let productPhoto = JSON.parse(taskList[i].product_photo_snap);
  444. for (let j = 0; j < productPhoto.length; j++) {
  445. if (productPhoto[j].Symbol == 1) {
  446. taskList[i].product_img_url = productPhoto[j].PhotoUrl
  447. }
  448. }
  449. // 带货链接
  450. taskList[i].product_url = product.product_url
  451. // 待修改标识
  452. if ((taskList[i].task_stage == 7 && taskList[i].script_status == 3) ||
  453. (taskList[i].task_stage == 9 && taskList[i].sketch_status == 3) ||
  454. (taskList[i].task_stage == 11 && taskList[i].link_status == 3) ||
  455. (taskList[i].task_stage == 13 && taskList[i].data_status == 3)) {
  456. taskList[i].isShowModify = true
  457. } else {
  458. taskList[i].isShowModify = false
  459. }
  460. // 任务阶段展示文字
  461. taskList[i].task_stage_txt = this.taskStageList[taskList[i].task_stage - 1]
  462. .task_stage
  463. // 任务收益
  464. taskList[i].real_reward = taskList[i].task_reward * (100 - taskList[i]
  465. .break_rate) / 100
  466. taskList[i].cut_payment = taskList[i].task_reward - taskList[i].real_reward
  467. taskList[i].show_task_reward = money(taskList[i].task_reward)
  468. taskList[i].show_real_reward = money(taskList[i].real_reward)
  469. taskList[i].show_cut_payment = money(taskList[i].cut_payment)
  470. // 截止时间
  471. let ddl = this.thistime(taskList[i].cur_break_at)
  472. console.log("isTimeOut", ddl.isTimeOut)
  473. console.log("ddl", ddl.deadline_time)
  474. taskList[i].time_out = ddl.isTimeOut
  475. taskList[i].upload_ddl = ddl.isTimeOut ? ddl.deadline_time : taskList[i]
  476. .cur_break_at.replace(/-/g,
  477. "/").slice(0, -3)
  478. }
  479. }
  480. this.taskLists[value] = taskList
  481. })
  482. uni.hideLoading();
  483. this.loading = false
  484. },
  485. async getSecTaskList(value) {
  486. this.loading = true
  487. uni.showLoading({
  488. title: '加载中'
  489. });
  490. var taskList = [];
  491. await this.$https.get('/youngee/c/t/g/get-exe-sec-task-list' +
  492. "?" +
  493. "taskStage" +
  494. "=" +
  495. value).then(res => {
  496. taskList = res.data.data
  497. if (taskList != null) {
  498. for (let i = 0; i < taskList.length; ++i) {
  499. // 主图
  500. let productPhoto = JSON.parse(taskList[i].product_photo_snap);
  501. for (let j = 0; j < productPhoto.length; j++) {
  502. if (productPhoto[j].Symbol == 1) {
  503. taskList[i].product_img_url = productPhoto[j].PhotoUrl
  504. }
  505. }
  506. // 待修改标识
  507. if (taskList[i].task_stage == 8 && taskList[i].assignment_status == 3) {
  508. taskList[i].isShowModify = true
  509. } else {
  510. taskList[i].isShowModify = false
  511. }
  512. // 任务阶段展示文字
  513. taskList[i].task_stage_txt = this.secTaskStageList[taskList[i].task_stage - 1]
  514. .task_stage
  515. // 任务收益
  516. taskList[i].real_reward = taskList[i].task_reward
  517. taskList[i].show_task_reward = money(taskList[i].task_reward)
  518. taskList[i].show_real_reward = money(taskList[i].real_reward)
  519. taskList[i].show_payment = money(taskList[i].talent_payment)
  520. }
  521. }
  522. this.taskLists[value] = taskList;
  523. })
  524. uni.hideLoading();
  525. this.loading = false
  526. },
  527. // 计算结束时间
  528. thistime(val) {
  529. // 转换格式
  530. var beginTime = new Date(val.replace(/-/g, "/"));
  531. // 当前时间
  532. var thisTime = new Date();
  533. // 相减
  534. var dateMiss = beginTime.getTime() - thisTime.getTime();
  535. let isTimeOut = dateMiss < 0 ? true : false
  536. dateMiss = dateMiss < 0 ? -dateMiss : dateMiss
  537. // 天数
  538. var day = Math.floor(dateMiss / (24 * 3600 * 1000));
  539. // 减去天数剩下的毫秒数
  540. var backOne = dateMiss % (24 * 3600 * 1000);
  541. // 小时数
  542. var hours = Math.floor(backOne / (3600 * 1000));
  543. // 减去小时数剩下的毫秒数
  544. var backHour = backOne % (3600 * 1000);
  545. // 分钟数
  546. var min = Math.floor(backHour / (60 * 1000));
  547. var deadline_time = day + '天' + hours + '时' + min + '分'
  548. var result = {
  549. isTimeOut: isTimeOut,
  550. deadline_time: deadline_time
  551. }
  552. return result
  553. },
  554. }
  555. }
  556. </script>
  557. <style lang="scss" scoped>
  558. view {
  559. font-size: 14px;
  560. line-height: inherit;
  561. }
  562. .menu-head {
  563. // padding-top: 20rpx;
  564. background-color: #fff;
  565. position: fixed;
  566. width: 100%;
  567. }
  568. .menu {
  569. border-bottom: #FCCF41;
  570. background-color: #FFFFFF;
  571. justify-content: space-around;
  572. height: 60rpx;
  573. width: 100%;
  574. padding-bottom: 40rpx;
  575. display: flex;
  576. z-index: 10;
  577. }
  578. .menu-item {
  579. display: flex;
  580. }
  581. .menu-item-p p {
  582. font-weight: 600;
  583. &.lor {
  584. border-bottom: 5rpx solid #F0D232;
  585. color: #F0D232;
  586. padding-bottom: 15rpx;
  587. }
  588. &.unlor {
  589. border-bottom: 5rpx solid #fff;
  590. color: #81838f;
  591. padding-bottom: 15rpx;
  592. }
  593. }
  594. .home {
  595. margin-top: 180rpx;
  596. }
  597. .task-card {
  598. margin: 10rpx 0;
  599. // border-bottom: 1rpx #d7d7d7 solid;
  600. .task-head {
  601. display: flex;
  602. justify-content: space-between;
  603. align-items: center;
  604. padding: 10rpx 20rpx;
  605. .task-head-account {
  606. display: flex;
  607. }
  608. .platform-img {
  609. width: 40rpx;
  610. height: 40rpx;
  611. margin-right: 10rpx;
  612. background-color: #F0D232;
  613. }
  614. .task-head-status p {
  615. color: red;
  616. }
  617. }
  618. .task-info {
  619. display: flex;
  620. justify-content: space-between;
  621. padding: 10rpx 20rpx;
  622. .task-info-left {
  623. display: flex;
  624. // align-items: center;
  625. .project-img {
  626. height: 120rpx;
  627. width: 120rpx;
  628. // background-color: #b3c96b;
  629. }
  630. .task-info-txt {
  631. margin-left: 10rpx;
  632. }
  633. .task-info-txt p {
  634. font-size: 24rpx;
  635. color: #85859d;
  636. margin-bottom: 10rpx;
  637. }
  638. }
  639. .task-info-right {
  640. width: 100rpx;
  641. height: 100rpx;
  642. border-radius: 50%;
  643. border: #ffcb41 2rpx solid;
  644. display: flex;
  645. align-items: center;
  646. justify-content: center;
  647. }
  648. .task-info-right p {
  649. font-size: 24rpx;
  650. }
  651. }
  652. }
  653. // .task {
  654. // margin-bottom: 20rpx;
  655. // border-bottom: 1rpx #d7d7d7 solid;
  656. // .task-head {
  657. // display: flex;
  658. // justify-content: space-between;
  659. // align-items: center;
  660. // padding: 10rpx 20rpx;
  661. // .task-head-account {
  662. // display: flex;
  663. // }
  664. // .task-head-status {
  665. // color: red;
  666. // }
  667. // }
  668. // .task-info {
  669. // display: flex;
  670. // align-items: center;
  671. // justify-content: space-between;
  672. // padding: 10rpx 20rpx;
  673. // .task-info-left {
  674. // display: flex;
  675. // align-items: center;
  676. // }
  677. // .task-info-right {
  678. // width: 100rpx;
  679. // height: 100rpx;
  680. // border-radius: 50%;
  681. // border: #ffcb41 2rpx solid;
  682. // display: flex;
  683. // align-items: center;
  684. // justify-content: center;
  685. // }
  686. // }
  687. // }
  688. .line {
  689. border-bottom: 1rpx #AAAAAA solid;
  690. }
  691. .menu-point {
  692. position: relative;
  693. left: 30rpx;
  694. top: 20rpx;
  695. }
  696. .point {
  697. width: 20rpx;
  698. height: 20rpx;
  699. background: red;
  700. border-radius: 50%;
  701. }
  702. .but2 {
  703. background-color: #FFFFFF;
  704. border: 1rpx solid #f2d22d;
  705. border-radius: 20rpx;
  706. font-size: 28rpx;
  707. line-height: 180%;
  708. font-weight: 500;
  709. position: relative;
  710. height: 80%;
  711. margin: 0;
  712. }
  713. </style>