taskdetail.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. <template>
  2. <view>
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view style="margin-top: 160rpx;"></view>
  6. <view v-if="loading">
  7. <view style="display: flex;justify-content: center;font-size: 50rpx;">
  8. <p>加载中</p>
  9. </view>
  10. </view>
  11. <view v-if="!loading">
  12. <!-- 任务状态 -->
  13. <view style="padding-bottom: 30rpx;">
  14. <view style="display: flex;justify-content: center;font-size: 44rpx;padding-bottom: 20rpx;">
  15. <p>{{msg1}}</p>
  16. <view class="upload-btn" v-if="showUpload" @click="toUpload()">
  17. <image src="../../static/img/icon-upload.png" style="height: 40rpx;width: 40rpx;"></image>
  18. <p style="font-size: 32rpx;">快速上传</p>
  19. </view>
  20. </view>
  21. <view style="display: flex;justify-content: center;font-size: 30rpx;">
  22. <p>{{msg2}}</p>
  23. </view>
  24. <view style="display: flex;justify-content: center;font-size: 30rpx;" v-if="msg3 != ''">
  25. <p>{{msg3}}</p>
  26. </view>
  27. </view>
  28. <view style="display: flex;justify-content: center;align-items: center;">
  29. <image style="height: 60rpx;width: 60rpx;" src="../../static/img/icon-time.png"></image>
  30. <p style="font-size: 30rpx;color: #f2d241;">剩余时间:{{timeLeft}}</p>
  31. </view>
  32. <view class="address">
  33. <view class="address_icon">
  34. <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_loc" mode="">
  35. </image>
  36. </view>
  37. <view style="width: 70%;">
  38. <view style="display: flex;">
  39. <p class='ipon' style="padding-right: 100rpx;">{{address.receiver_name}}</p>
  40. <p class='ipon'>{{address.phone_number}}</p>
  41. </view>
  42. <p class='ipon'>{{address.detail_addr}}</p>
  43. </view>
  44. <view class="address_edit" @click="editAddress()">
  45. <image :src="picture.icon_edit" mode="">
  46. </image>
  47. </view>
  48. </view>
  49. <view class="basicInfo">
  50. <image :src="product.photo_url" style="width: 150rpx;height: 150rpx;" mode="">
  51. </image>
  52. <view class="basicInfo_txt">
  53. <p style="margin-bottom: 10rpx;font-size: 35rpx;font-weight: 550;">{{project.project_name}}</p>
  54. <p style="font-size: 30rpx;">商品价值:{{project.Product.product_price}}</p>
  55. </view>
  56. </view>
  57. <view class="keyInfo">
  58. <view style="margin-bottom: 40rpx;">
  59. <p style="font-size: 36rpx;font-weight: 550;">关键任务信息</p>
  60. </view>
  61. <view>
  62. <p style="font-weight: 600;margin-bottom: 10rpx;">合作方式</p>
  63. <p>粉丝量:{{strategy.followers_low}}-{{strategy.followers_up}}
  64. &nbsp;&nbsp;
  65. 稿费:{{strategy.fee_form_t}}
  66. </p>
  67. </view>
  68. <view class="line"></view>
  69. <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
  70. <p style="font-weight: 600;margin-bottom: 10rpx;">社媒平台:</p>
  71. <p>{{project.project_platform_t}}</p>
  72. </view>
  73. <view class="line"></view>
  74. <p style="font-weight: 600;margin-top: 10rpx;">任务要求</p>
  75. <view class="keyInfo_task">
  76. <view style="display: flex;align-items: center;margin: 10rpx 0;">
  77. <p>内容形式:</p>
  78. <p>{{project.content}}</p>
  79. </view>
  80. <view style="display: flex;align-items: center;margin: 10rpx 0;">
  81. <p>任务形式:</p>
  82. <p>{{project.project_form_t}}</p>
  83. </view>
  84. <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
  85. <p>商品描述:</p>
  86. <p> {{project.Product.product_detail}}
  87. </p>
  88. </view>
  89. <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
  90. <p>任务详情:</p>
  91. <p> {{project.project_detail}} </p>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="task-progress">
  96. <p style="font-size: 32rpx;font-weight: 600;">任务进度</p>
  97. <view class="task-progress-card" v-bind:style="task.task_stage == 1 ? 'background-color: #f2d241' : ''">
  98. <view class="tpc-txt1">
  99. <p>报名信息</p>
  100. </view>
  101. <view class="tpc-txt2" @click="toApplyinfo()">
  102. <p>查看</p>
  103. <image class="tpc-icon" :src="picture.icon_right"></image>
  104. </view>
  105. </view>
  106. <view class="task-progress-card" v-if="task.task_stage >= 6" v-bind:style="task.task_stage == 6 ? 'background-color: #f2d241' : ''">
  107. <view class="tpc-txt1">
  108. <p>物流信息</p>
  109. </view>
  110. <view class="tpc-txt2" @click="toLogisticsinfo()">
  111. <p>查看</p>
  112. <image class="tpc-icon" :src="picture.icon_right"></image>
  113. </view>
  114. </view>
  115. <view class="task-progress-card" v-if="task.task_stage >= 8" v-bind:style="task.task_stage == 8 ? 'background-color: #f2d241' : ''">
  116. <view class="tpc-txt1">
  117. <p>上传拍摄脚本</p>
  118. </view>
  119. <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 1">
  120. <p style="color: red;">待添加</p>
  121. <image class="tpc-icon" :src="picture.icon_right"></image>
  122. </view>
  123. <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 2">
  124. <p style="color: #fff;">已添加</p>
  125. <image class="tpc-icon" :src="picture.icon_right"></image>
  126. </view>
  127. <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 3">
  128. <p style="color: red;">待修改</p>
  129. <image class="tpc-icon" :src="picture.icon_right"></image>
  130. </view>
  131. <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 4">
  132. <p style="color: #fff;">已修改</p>
  133. <image class="tpc-icon" :src="picture.icon_right"></image>
  134. </view>
  135. <view class="tpc-txt2" @click="toRecord()" v-if="task.script_status == 5">
  136. <p>查看</p>
  137. <image class="tpc-icon" :src="picture.icon_right"></image>
  138. </view>
  139. </view>
  140. <view class="task-progress-info">
  141. <view style="padding: 10rpx 0;">
  142. <p>任务id:{{task.task_id}}</p>
  143. </view>
  144. <view style="padding: 10rpx 0;">
  145. <p>报名时间:{{task.create_date}}</p>
  146. </view>
  147. <view v-if="task.task_stage > 1" style="padding: 10rpx 0;">
  148. <p>确认合作:{{task.select_date}}</p>
  149. </view>
  150. <view v-if="task.task_stage > 5" style="padding: 10rpx 0;">
  151. <p>发货时间:{{task.delivery_date}}</p>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="block"></view>
  156. <view class="submit" v-if="false">
  157. <button type="default" class="submit_btn" @click="submit()"> 确认提交</button>
  158. </view>
  159. </view>
  160. </view>
  161. </template>
  162. <script>
  163. import mvBar from "@/components/mys_navBar/mysNavBar";
  164. export default {
  165. components: {
  166. mvBar
  167. },
  168. data() {
  169. return {
  170. showUpload: false,
  171. loading: true,
  172. timeLeft: "3天5小时28分",
  173. msg1: "",
  174. msg2: "",
  175. msg3: "",
  176. infoMsg1: [
  177. "等待企业确认合作",
  178. "等待企业确认合作",
  179. "恭喜任务申请成功!",
  180. "任务申请失败",
  181. "等待发货中",
  182. "商家已发货",
  183. "等待上传拍摄脚本",
  184. "等待上传拍摄脚本",
  185. "等待上传拍摄脚本",
  186. "等待上传拍摄脚本",
  187. "等待上传初稿",
  188. "等待上传初稿",
  189. "等待上传初稿",
  190. "等待上传链接",
  191. "等待上传链接",
  192. "等待上传链接",
  193. "等待上传作品数据",
  194. "等待上传作品数据",
  195. "已结案",
  196. "任务终止",
  197. "任务终止",
  198. ],
  199. infoMsg2: [
  200. "商家将在申请截止后5天内审核完毕",
  201. "商家将在申请截止后5天内审核完毕",
  202. "请仔细查看任务要求和任务详情,开始执行任务吧!",
  203. "账号未达到入选标准,请小主尝试申请其他任务吧!",
  204. "发货后可在任务进度中查看物流单号",
  205. "请在物流进度中查看物流单号/虚拟产品兑换码",
  206. "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
  207. "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
  208. "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
  209. "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
  210. "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
  211. "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
  212. "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
  213. "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
  214. "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
  215. "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
  216. "恭喜链接审核通过,请在作品发布7天后上传作品数据。",
  217. "恭喜链接审核通过,请在作品发布7天后上传作品数据。",
  218. "本项目已结案,可申请佣金提现。",
  219. "长时间未上传,任务已终止。",
  220. "长时间未上传,任务已终止。",
  221. ],
  222. platform: [
  223. "小红书",
  224. "抖音",
  225. "微博",
  226. "快手",
  227. "B站",
  228. "大众点评",
  229. "知乎",
  230. ],
  231. task: {},
  232. address: {},
  233. project: {},
  234. product: {},
  235. account: {},
  236. strategy: {},
  237. picture: {
  238. togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
  239. icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png',
  240. icon_loc: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png',
  241. icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
  242. home8: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png',
  243. home10: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png',
  244. home11: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png',
  245. },
  246. task_type_info: ["实体商品寄拍", "虚拟产品测评", "线下探店打卡", "素材微原创"],
  247. mysNavConfig: {
  248. isHome: false,
  249. /* 固定导航 */
  250. navFixed: true,
  251. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  252. navTitle: {
  253. text: "信息确认",
  254. color: "",
  255. fontSize: "32rpx", // px upx rpx
  256. fontWeight: "", // 100 - 700
  257. },
  258. btnType: "type2",
  259. onLeftClick: '',
  260. /* type2 按钮 */
  261. type2Config: {
  262. // 左图标
  263. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png2.png",
  264. // 右图标
  265. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png4.png",
  266. // 圆角
  267. radius: "40rpx",
  268. },
  269. },
  270. }
  271. },
  272. onShow(){
  273. uni.showLoading({
  274. title: '加载中'
  275. });
  276. console.log("onLoad run")
  277. this.getTaskInfo()
  278. },
  279. onLoad(options) {
  280. this.taskId = options.taskId
  281. },
  282. methods: {
  283. getTaskInfo() {
  284. this.$https.get('/youngee/c/t/g/get-task-detail' +
  285. "?" +
  286. "task_id" +
  287. "=" +
  288. this.taskId
  289. ).then(res => {
  290. console.log(res)
  291. this.task = res.data.data.task_info
  292. this.address = JSON.parse(res.data.data.task_info.talent_post_addr_snap);
  293. this.account = JSON.parse(res.data.data.task_info.talent_platform_info_snap);
  294. this.project = res.data.data.project_detail
  295. this.product = res.data.data.product_photo
  296. this.strategy = res.data.data.strategy
  297. this.strategy.fee_form_t = this.strategy.fee_form == 1 ? '产品置换' : (this.strategy.fee_form ==
  298. 2 ?
  299. '固定稿费 ' +
  300. this.task.task_reward : '创作者自报价 ' + this.task.task_reward)
  301. // 任务形式
  302. if (this.project.content_type == 1) this.project.content = "图文"
  303. else if (this.project.content_type == 2) this.project.content = "视频"
  304. // 任务类型
  305. this.project.project_form_t = this.task_type_info[this.project.project_form - 1]
  306. // 社媒平台
  307. this.project.project_platform_t = this.platform[this.project.project_platform - 1]
  308. console.log("社媒平台:", this.project.project_platform_t)
  309. // 不同任务阶段提示消息
  310. this.msg1 = this.infoMsg1[this.task.task_stage - 1]
  311. this.msg2 = this.infoMsg2[this.task.task_stage - 1]
  312. if (this.task.task_stage >= 8 && this.task.task_stage <= 10) {
  313. this.msg3 = "延迟上传脚本,可能导致佣金扣除。"
  314. } else if (this.task.task_stage >= 11 && this.task.task_stage <= 13) {
  315. this.msg3 = "延迟上传初稿,可能导致佣金扣除。"
  316. } else if (this.task.task_stage >= 14 && this.task.task_stage <= 16) {
  317. this.msg3 = "延迟上传链接,可能导致佣金扣除。"
  318. } else if (this.task.task_stage >= 17 && this.task.task_stage <= 18) {
  319. this.msg3 = "延迟上传作品数据,可能导致佣金扣除。"
  320. }
  321. if(this.task.task_stage == 8 || this.task.task_stage == 11 || this.task.task_stage == 14 || this.task.task_stage == 17){
  322. this.showUpload = true
  323. }
  324. this.loading = false;
  325. uni.hideLoading();
  326. })
  327. },
  328. toUpload(){
  329. var data = {
  330. taskId: this.task.task_id,
  331. scriptStatus: this.task.script_status
  332. };
  333. data = JSON.stringify(data)
  334. if(this.task.task_stage == 8){ // 上传脚本
  335. uni.navigateTo({
  336. url: '/pages/workspace/uploadscript?textObj=' + encodeURIComponent(data)
  337. });
  338. }
  339. },
  340. toRecord() {
  341. var data = {
  342. taskId: this.task.task_id,
  343. };
  344. data = JSON.stringify(data)
  345. uni.navigateTo({
  346. url: '/pages/workspace/scriptrecord?textObj=' + encodeURIComponent(data)
  347. });
  348. },
  349. toApplyinfo() {
  350. var data = {
  351. account: this.account,
  352. };
  353. data = JSON.stringify(data)
  354. uni.navigateTo({
  355. url: '/pages/workspace/applyInformation?textObj=' + encodeURIComponent(data)
  356. });
  357. },
  358. toLogisticsinfo() {
  359. console.log(this.project.project_form)
  360. var data = {
  361. address: this.address,
  362. taskId: this.task.task_id,
  363. projectForm: this.project.project_form
  364. };
  365. data = JSON.stringify(data)
  366. uni.navigateTo({
  367. url: '/pages/workspace/deliveryInformation?textObj=' + encodeURIComponent(data)
  368. });
  369. },
  370. }
  371. }
  372. </script>
  373. <style lang="scss" scoped>
  374. .basicInfo {
  375. display: flex;
  376. margin-top: 20rpx;
  377. padding: 20rpx 40rpx;
  378. background-color: #FFFFFF;
  379. .basicInfo_txt {
  380. margin-left: 40rpx;
  381. padding-top: 20rpx;
  382. }
  383. }
  384. .upload-btn {
  385. display: flex;
  386. background-color: #f2d241;
  387. border-radius: 10rpx;
  388. padding: 5rpx;
  389. margin-left: 20rpx;
  390. cursor: pointer;
  391. }
  392. .address {
  393. display: flex;
  394. margin: 20rpx 0;
  395. // padding: 20rpx 20rpx;
  396. background-color: #FFFFFF;
  397. justify-content: space-around;
  398. align-items: center;
  399. .address_icon {
  400. width: 15%;
  401. vertical-align: middle;
  402. display: flex;
  403. justify-content: center;
  404. }
  405. .address_edit {
  406. width: 15%;
  407. }
  408. .address_edit image {
  409. vertical-align: middle;
  410. width: 50rpx;
  411. height: 50rpx;
  412. display: inline-block;
  413. padding-right: 14rpx;
  414. }
  415. .ipon {
  416. color: #333333;
  417. font-size: 30rpx;
  418. font-weight: 500;
  419. margin-bottom: 10rpx;
  420. }
  421. }
  422. .keyInfo {
  423. padding: 20rpx 20rpx;
  424. background-color: #FFFFFF;
  425. .keyInfo_task {
  426. color: #999999;
  427. }
  428. }
  429. .keyInfo h3 {
  430. font-weight: 600;
  431. }
  432. .keyInfo p {
  433. font-size: 30rpx;
  434. }
  435. .account {
  436. display: flex;
  437. align-items: center;
  438. // justify-content: space-between;
  439. // width: 90%;
  440. margin: 20rpx 0;
  441. padding: 20rpx 20rpx;
  442. background-color: #FFFFFF;
  443. font-size: 35rpx;
  444. .account_txt {
  445. display: inline-block;
  446. padding: 0 0 0 1%;
  447. width: 400rpx;
  448. }
  449. .account_txt image {
  450. vertical-align: middle;
  451. width: 50rpx;
  452. height: 50rpx;
  453. display: inline-block;
  454. padding-right: 14rpx;
  455. }
  456. .account_fans {
  457. display: flex;
  458. width: 250rpx;
  459. }
  460. .account_fans p {
  461. display: inline-block;
  462. color: #333333;
  463. font-weight: 550;
  464. }
  465. .account_btn {}
  466. }
  467. .task-progress {
  468. padding: 20rpx;
  469. .task-progress-card {
  470. margin: 15rpx 0;
  471. display: flex;
  472. align-items: center;
  473. // margin: 20rpx;
  474. padding: 10rpx;
  475. font-size: 30rpx;
  476. border-radius: 10rpx;
  477. .tpc-txt1 {
  478. display: flex;
  479. justify-content: flex-start;
  480. // margin-left: 20rpx;
  481. }
  482. .tpc-txt2 {
  483. display: flex;
  484. align-items: center;
  485. justify-content: flex-end;
  486. // margin-right: 20rpx;
  487. flex: 1;
  488. .tpc-icon {
  489. width: 30rpx;
  490. height: 30rpx;
  491. }
  492. }
  493. }
  494. .task-progress-info {
  495. padding: 10rpx;
  496. font-size: 30rpx;
  497. border-radius: 10rpx;
  498. background-color: #f2f2f2;
  499. }
  500. }
  501. .block {
  502. width: 100%;
  503. height: 100rpx;
  504. margin-top: 5%;
  505. }
  506. .submit {
  507. box-shadow: 0rpx 5rpx 40rpx #ccc;
  508. width: 100%;
  509. position: fixed;
  510. bottom: 0rpx;
  511. display: flex;
  512. height: 90rpx;
  513. padding-top: 2%;
  514. background-color: #FFFFFF;
  515. .submit_btn {
  516. width: 60%;
  517. background-color: #FCCF41;
  518. border-radius: 20rpx;
  519. font-size: 36rpx;
  520. line-height: 200%;
  521. letter-spacing: 10rpx;
  522. font-weight: 500;
  523. height: 80%;
  524. }
  525. }
  526. .line {
  527. border-bottom: 1rpx solid #d5d5d5;
  528. width: 98%;
  529. margin: 10rpx 1%;
  530. }
  531. </style>