sectaskdetail1.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
  1. <template>
  2. <view>
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view v-if="!loading">
  7. <!-- 基本信息卡片 -->
  8. <view class="basicInfo">
  9. <view class="tpc-txt1">
  10. <image :src="product.PhotoUrl" style="width: 150rpx;height: 150rpx;" mode="">
  11. </image>
  12. <view class="basicInfo_txt">
  13. <view class="" style="display: flex;">
  14. <image class="platform-img" :src="project.PlatformInfo.platform_icon"></image>
  15. <p style="font-size: 28rpx; line-height: 28rpx;color: black;">
  16. {{project.selection_name}}
  17. </p>
  18. </view>
  19. <p>售价:¥{{product.product_price}}
  20. <!-- <p>距离任务有效期还有<span style="color: #f70606;">1107</span>天</p> -->
  21. <p v-if="project.remain_days <= 0 && project.remain_hours <= 0"><span
  22. style="color: #f70606 ;">任务已结束</span></p>
  23. <!-- <p v-else>距离任务有效期还有<span style="color: #f70606;">{{selection.remain_days}}</span>天</p> -->
  24. <p v-else><span style="color: #999999;">距离任务结束还有</span><span
  25. style="color: #f70606;">{{ project.remain_days }}<span
  26. style="color: #999999 ;">天</span>{{ project.remain_hours }}<span
  27. style="color: #999999 ;">小时</span></span></p>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 重要信息展示 -->
  32. <view>
  33. <!-- 样机高佣和公开 两个有色框 -->
  34. <view class="importentInfo1">
  35. <!-- 高佣 这个margin带着整个有色边框一起移动-->
  36. <view style="display: flex; margin: 25rpx 20rpx;">
  37. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  38. <view style="display: flex; margin-top: 10rpx;">
  39. <view
  40. style="background-color: #e99d42; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  41. <p style="color: white;font-size: 25rpx;">样叽高佣</p>
  42. </view>
  43. <view style="margin-left: 25rpx;line-height: 40rpx">
  44. <p style="color: red;font-size: 25rpx;">
  45. 每单赚:{{product.commission_price}}¥
  46. (佣金比例:{{product.exclusive_commission}}%)</p>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 公开 这个margin带着整个有色边框一起移动-->
  51. <view style="display: flex; margin: 25rpx 20rpx;">
  52. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  53. <view style="display: flex;">
  54. <view
  55. style="background-color: #9a9a9a; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  56. <p style="color: white;font-size: 25rpx;">公开</p>
  57. </view>
  58. <view style="margin-left: 25rpx;line-height: 40rpx">
  59. <p style="color: #444d5e;font-size: 25rpx;">
  60. 每单赚:{{project.normal_estimated_income}}¥
  61. (佣金比例:{{product.public_commission}}%)</p>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 悬赏任务 -->
  67. <view class="importentInfo2" v-if="project.task_mode==1">
  68. <!-- 高佣 这个margin带着整个有色边框一起移动-->
  69. <view style="display: flex; margin: 25rpx 20rpx;">
  70. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  71. <view style="display: flex; margin-top: 10rpx;">
  72. <view
  73. style="background-color: #1f63ff; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  74. <p style="color: white;font-size: 25rpx;">悬赏任务</p>
  75. </view>
  76. <view style="margin-left: 25rpx;line-height: 45rpx">
  77. <p style="color: #444d5e;font-size: 25rpx;">
  78. 有效期内实际成交≥{{project.RewardStrategy[0].sale_actual}}单,额外奖励<span
  79. style="color: red;">¥{{project.RewardStrategy[0].per_reward}}</span>元
  80. </p>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 平台icon和用户基本信息 -->
  87. <view class="card" style="margin-top: 2%;" @click="accountdetail()">
  88. <view class="Tasktext">
  89. <image :src="project.PlatformInfo.platform_icon" mode=""></image>
  90. <span>{{account.nick_name}}</span>
  91. </view>
  92. <view class="dou">
  93. <p style="padding-right: 20rpx;color:#A8A8A8;">粉丝数</p>
  94. <p>{{account.fan}}</p>
  95. </view>
  96. <view class="clickkk">
  97. <image :src="togoimg" mode="" style="width: 16rpx;height: 30rpx;"></image>
  98. </view>
  99. </view>
  100. <!-- 免费领样 -->
  101. <view v-if="project.sample_mode==1" style="padding: 10rpx 20rpx;font-size: 25rpx;" class="freeSample">
  102. <span style="font-weight: bold; ">免费领样</span>
  103. <p>领样状态:todo</p>
  104. <view class="logisInfo">
  105. <p>物流信息:todo</p>
  106. <view class="task-info-right">
  107. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png"
  108. style="height: 30rpx;width: 30rpx;"></image>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 带货信息 -->
  113. <view style="padding: 10rpx 20rpx;font-size: 25rpx;" class="saleInfo">
  114. <span style="font-weight: bold; ">带货信息</span>
  115. <p>全部销售额/有效销售额:¥todo/¥{{sale_actual*product.product_price}}</p>
  116. <p>全部销售量/有效销售量:todo/{{sale_actual}}单</p>
  117. <p>全部佣金/有效佣金:todo/¥{{sale_actual*product.product_price}}</p>
  118. <p>退款销售额/退款单数:todo</p>
  119. <p>退款佣金/退款率:todo</p>
  120. </view>
  121. <!-- 悬赏奖金 -->
  122. <view style="padding: 10rpx 20rpx;font-size: 25rpx;" class="rewardInfo">
  123. <span style="font-weight: bold; ">悬赏奖金</span>
  124. <view style="display: flex;">
  125. <p>悬赏奖金池总额/悬赏奖金池余额: {{all_poll}}/{{remain_poll}}</p>
  126. <image :src="remain_poll_flag===0 ? commission_fail : commission_suc" mode=""
  127. style="height: 45rpx; width: 45rpx;padding-left: 20rpx;"></image>
  128. </view>
  129. <view style="display: flex;">
  130. <p>悬赏销售量/有效销售量:{{project.RewardStrategy[0].sale_actual}}单/{{sale_actual}}单</p>
  131. <image :src="sale_actual_flag===0 ? commission_fail : commission_suc" mode=""
  132. style="height: 45rpx; width: 45rpx;padding-left: 20rpx;"></image>
  133. </view>
  134. </view>
  135. <!-- 上传截图 -->
  136. <view style="height: 150rpx;" v-if="conditionFit == 1 ">
  137. <button class="btn1" :disabled="uploaded" @click="toUpload()">
  138. {{ uploaded ? '销量截图已上传' : '上传销量截图领悬赏' }}</button>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import region from '@/components/pca-code.json';
  145. import mvBar from "@/components/mys_navBar/mysNavBar";
  146. import {
  147. fansview,
  148. money,
  149. getDaysAndHoursBetweenDates
  150. } from '@/components/utils.js';
  151. export default {
  152. components: {
  153. mvBar
  154. },
  155. data() {
  156. return {
  157. navH: getApp().globalData.navHeight,
  158. picture: getApp().globalData.picture,
  159. mysNavConfig: {
  160. isHome: false,
  161. /* 固定导航 */
  162. navFixed: true,
  163. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  164. navTitle: {
  165. text: "带货任务详情",
  166. color: "",
  167. fontSize: "32rpx", // px upx rpx
  168. fontWeight: "", // 100 - 700
  169. },
  170. btnType: "type2",
  171. onLeftClick: '',
  172. /* type2 按钮 */
  173. type2Config: {
  174. // 左图标
  175. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png2.png",
  176. // 右图标
  177. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png4.png",
  178. // 圆角
  179. radius: "40rpx",
  180. },
  181. },
  182. infoMsg1: [
  183. "等待企业确认合作",
  184. "等待企业确认合作",
  185. "等待企业确认合作",
  186. "恭喜任务申请成功!",
  187. "任务申请失败",
  188. "等待发货中",
  189. "商家已发货",
  190. "等待上传作业",
  191. "待结算",
  192. "已结案",
  193. ],
  194. infoMsg2: [
  195. "商家将在申请截止后5天内审核完毕",
  196. "商家将在申请截止后5天内审核完毕",
  197. "商家将在申请截止后5天内审核完毕",
  198. "请仔细查看任务要求和任务详情,开始执行任务吧!",
  199. "未达到领样标准,请小主尝试申请其他任务吧",
  200. "发货后可在任务进度中查看物流单号",
  201. "请在任务进度中查看物流单号",
  202. "请仔细查看任务要求,根据要求完成作业,截止时间前上传作业提交后可领取相应的悬赏及返现",
  203. "作业提交成功,请等待商家结算。",
  204. "本任务已结案,可前往任务大厅查看报名其他任务。",
  205. ],
  206. task_type_info: ["实体商品寄拍", "虚拟产品测评", "线下探店打卡"],
  207. togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
  208. isTimeOut: false,
  209. isNotShowSubmit: true,
  210. isShowUpload: false,
  211. uploaded: false,
  212. loading: true,
  213. timeLeft: "",
  214. msg1: "",
  215. msg2: "",
  216. taskId: '',
  217. task: {},
  218. address: {},
  219. project: {},
  220. product: {},
  221. account: {},
  222. strategy: {},
  223. taskLogs: [],
  224. infoTables: [],
  225. withdrawStatus: 1,
  226. all_poll: 0, //总金额
  227. remain_poll: 0, //悬赏池剩余金额
  228. sale_actual: 0, //达人的有效销量
  229. conditionFit: 0, //条件满足(1)则展示按钮
  230. sale_actual_flag: 0, //实际销量是否达成
  231. remain_poll_flag: 0, //奖金池是否足够
  232. commission_suc: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/commission_suc.png",
  233. commission_fail: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/commission_fail.png",
  234. }
  235. },
  236. async onShow() {
  237. this.loading = true;
  238. uni.showLoading({
  239. title: '加载中'
  240. });
  241. await this.getTaskInfo();
  242. // await this.getTaskLogs();
  243. await this.getInfoTables();
  244. await this.getTalentAccountInfo();
  245. await this.checkConditionFit();
  246. this.loading = false;
  247. uni.hideLoading();
  248. },
  249. onLoad(options) {
  250. console.log("options上一页传来", options)
  251. this.taskId = options.taskId
  252. // this.isuploaded = options
  253. },
  254. methods: {
  255. handleCopy(text) {
  256. wx.setClipboardData({
  257. data: text.toString(),
  258. success: function(res) {
  259. console.log("复制成功");
  260. }
  261. });
  262. },
  263. checkConditionFit() {
  264. if(this.remain_poll > this.project.RewardStrategy[0].per_reward){
  265. this.remain_poll_flag=1
  266. }
  267. if(this.sale_actual >= this.project.RewardStrategy[0].sale_actual){
  268. this.sale_actual_flag=1
  269. }
  270. if (this.remain_poll > this.project.RewardStrategy[0].per_reward && this.sale_actual >= this.project
  271. .RewardStrategy[0].sale_actual) {
  272. this.conditionFit = 1
  273. } else {
  274. this.conditionFit = 0
  275. }
  276. },
  277. // 默认信息表
  278. getInfoTables() {
  279. return this.$https.get('/youngee/c/g/get-info-tables')
  280. .then(res => {
  281. console.log("get-info-tables----", res.data.data.ThirdPlatform)
  282. this.infoTables = res.data.data.ThirdPlatform
  283. })
  284. },
  285. //账号信息
  286. getTalentAccountInfo() {
  287. return this.$https.get('/youngee/c/t/g/get-talent-account-kuaishou')
  288. .then(res => {
  289. console.log("sssss", res)
  290. this.account = res.data.data[0]
  291. console.log("sssss", this.account)
  292. })
  293. // console.log("account数组——————: ",res)
  294. },
  295. // 前往账号详情
  296. accountdetail() {
  297. uni.navigateTo({
  298. url: '/page_mycenter/bindaccounts/kuaishoubind'
  299. });
  300. },
  301. getTaskInfo() {
  302. return this.$https.get('/youngee/c/t/g/get-sec-task-detail' +
  303. "?" +
  304. "task_id" +
  305. "=" +
  306. this.taskId
  307. ).then(res => {
  308. console.log("get-sec-task-detail--res--->", res.data.data)
  309. if (res.data.code != 0) {
  310. return
  311. }
  312. const data = res.data.data
  313. this.task = data.sec_task_info
  314. this.withdrawStatus = data.withdraw_status
  315. // 选品项目信息
  316. this.project = data.selection_detail
  317. //悬赏数据
  318. if (this.project.task_mode == 1) {
  319. //总额
  320. this.all_poll = this.project.RewardStrategy[0].reward
  321. //已经结算
  322. this.settlement_poll = this.project.settlement_amount
  323. //悬赏余额
  324. this.remain_poll = this.all_poll - this.settlement_poll
  325. //实际销量
  326. this.sale_actual = data.sec_task_info.sale_actual
  327. }
  328. // 地址解析
  329. // this.address = JSON.parse(this.task.talent_post_addr_snap);
  330. // let a = this.address.region_code.toString().slice(0, 2)
  331. // let b = this.address.region_code.toString().slice(0, 4)
  332. // let c = 0
  333. // for (var i = 0; i < region.length; i++) {
  334. // if (region[i].code == a) {
  335. // a = region[i].name
  336. // for (var j = 0; j < region[i].children.length; j++) {
  337. // if (region[i].children[j].code == b) {
  338. // b = region[i].children[j].name
  339. // for (var o = 0; o < region[i].children[j].children.length; o++) {
  340. // if (region[i].children[j].children[o].code == this.address
  341. // .region_code) {
  342. // c = region[i].children[j].children[o].name
  343. // }
  344. // }
  345. // }
  346. // }
  347. // }
  348. // }
  349. // this.address.full_detail_addr = a + b + c + this.address.detail_addr
  350. // 账号信息
  351. this.account = JSON.parse(this.task.talent_platform_info_snap);
  352. this.account.show_fans_count = fansview(this.account.fans_count)
  353. console.log("icon_url", this.project.PlatformInfo.platform_icon)
  354. this.project.ProductPhoto = this.project.YounggeeProductPhoto
  355. this.product = this.project.YounggeeProduct[0]
  356. // this.project.project_form = this.project.Product.ProductType === 14 ? 3 : 1
  357. if (this.project.ProductPhoto != null) {
  358. let ProductPhoto = this.project.ProductPhoto
  359. for (let j = 0; j < ProductPhoto.length; ++j) {
  360. if (ProductPhoto[j].symbol == 1) {
  361. this.product.PhotoUrl = ProductPhoto[j].photo_url
  362. }
  363. }
  364. }
  365. // 判断任务是否已结束
  366. var timeNow = new Date()
  367. var ddl = new Date(this.project.task_ddl.replace(/-/g, "/"));
  368. // this.selection.remain_days = getDaysBetweenDates(timeNow, ddl)
  369. var diff = getDaysAndHoursBetweenDates(timeNow, ddl);
  370. this.project.remain_days = diff.days;
  371. this.project.remain_hours = diff.hours;
  372. //判断任务是否结束
  373. this.ddl = (this.project.remain_days <= 0 && this.project.remain_hours <= 0) ? true :
  374. false
  375. //高佣和普通的每单赚
  376. this.project.high_estimated_income = this.product.exclusive_commission * this.product
  377. .product_price / 100
  378. this.project.normal_estimated_income = this.product.public_commission * this.product
  379. .product_price / 100
  380. // this.project.show_task_reward = money(this.project.task_reward)
  381. // this.project.show_estimated_cost = money(this.project.estimated_cost)
  382. // 判断是否显示快速上传按钮
  383. if (this.task.task_stage == 8) {
  384. this.isShowUpload = true
  385. } else {
  386. this.isShowUpload = false
  387. }
  388. //判断提交截图按钮是否可用
  389. if(this.task.assignment_status==2){
  390. this.uploaded=true //截图已上传
  391. }else{
  392. this.uploaded=false //截图未上传
  393. }
  394. // 不同任务阶段提示消息
  395. this.msg1 = this.infoMsg1[this.task.task_stage - 1]
  396. this.msg2 = this.isSpecial ? this.infoMsg3[this.task.task_stage - 1] : this.infoMsg2[this.task
  397. .task_stage - 1]
  398. })
  399. },
  400. // getTaskLogs() {
  401. // return this.$https.get('/youngee/c/t/g/get-task-log' +
  402. // "?" +
  403. // "task_id" +
  404. // "=" +
  405. // this.taskId
  406. // ).then(res => {
  407. // this.taskLogs = res.data.data
  408. // console.log("task-log--》",this.taskLogs)
  409. // if(this.taskLogs==null){
  410. // console.log("这个task无历史数据")
  411. // }else if(this.taskLogs.length!==0){
  412. // this.uploaded=true
  413. // }
  414. // })
  415. // },
  416. toUpload() {
  417. var data = {
  418. taskId: this.taskId,
  419. assignmentStatus: this.task.assignment_status //作业上传状态
  420. };
  421. data = JSON.stringify(data)
  422. uni.navigateTo({
  423. url: '/page_workspace/selection/assignment/upload1?textObj=' + encodeURIComponent(data)
  424. });
  425. },
  426. toScriptRecord() {
  427. var data = {
  428. taskId: this.task.task_id,
  429. };
  430. data = JSON.stringify(data)
  431. uni.navigateTo({
  432. url: '/page_workspace/task/record/scriptrecord?textObj=' + encodeURIComponent(data)
  433. });
  434. },
  435. toTaskDeatail() {
  436. uni.navigateTo({
  437. url: '/page_selectionsquare/selectiondetail/selectiondetail?id=' + this.project.selection_id
  438. });
  439. },
  440. toApplyinfo() {
  441. var data = {
  442. account: this.account,
  443. };
  444. data = JSON.stringify(data)
  445. uni.navigateTo({
  446. url: '/page_workspace/task/information/applyInformation?textObj=' + encodeURIComponent(data)
  447. });
  448. },
  449. toLogisticsinfo() {
  450. // var data = {
  451. // address: this.address,
  452. // taskId: this.task.task_id,
  453. // projectForm: this.project.project_form
  454. // };
  455. // data = JSON.stringify(data)
  456. // uni.navigateTo({
  457. // url: '/page_workspace/task/information/deliveryInformation?textObj=' + encodeURIComponent(data)
  458. // });
  459. var data = {
  460. taskId: this.task.task_id,
  461. };
  462. data = JSON.stringify(data)
  463. uni.navigateTo({
  464. url: '/page_workspace/selection/logistics/logisticsdetail?textObj=' + encodeURIComponent(data)
  465. });
  466. },
  467. editAddress() {
  468. var data = {
  469. address: this.address,
  470. taskId: this.task.task_id,
  471. };
  472. data = JSON.stringify(data)
  473. uni.navigateTo({
  474. url: '/page_workspace/task/editaddress?textObj=' + encodeURIComponent(data)
  475. });
  476. },
  477. // 计算结束时间
  478. thistime(val) {
  479. // 转换格式
  480. var beginTime = new Date(val.replace(/-/g, "/"));
  481. // 当前时间
  482. var thisTime = new Date();
  483. // 相减
  484. var dateMiss = beginTime.getTime() - thisTime.getTime();
  485. this.isTimeOut = dateMiss < 0 ? true : false
  486. dateMiss = dateMiss < 0 ? -dateMiss : dateMiss
  487. // 天数
  488. var day = Math.floor(dateMiss / (24 * 3600 * 1000));
  489. // 减去天数剩下的毫秒数
  490. var backOne = dateMiss % (24 * 3600 * 1000);
  491. // 小时数
  492. var hours = Math.floor(backOne / (3600 * 1000));
  493. // 减去小时数剩下的毫秒数
  494. var backHour = backOne % (3600 * 1000);
  495. // 分钟数
  496. var min = Math.floor(backHour / (60 * 1000));
  497. var deadline_time = day + '天' + hours + '时' + min + '分'
  498. return deadline_time
  499. },
  500. toWithdraw() {
  501. uni.navigateTo({
  502. url: '/pages/mycenter/myincome?showTab=1'
  503. });
  504. },
  505. submit() {
  506. if (this.task.task_stage == 7) { // 提交脚本
  507. let that = this
  508. uni.showModal({
  509. title: '提示',
  510. content: '提交后无法修改并进行审核,确认提交?',
  511. success: function(res) {
  512. if (res.confirm) {
  513. that.$https.get('/youngee/c/t/g/submit-task-script' +
  514. "?" +
  515. "task_id" +
  516. "=" +
  517. that.task.task_id)
  518. .then(res => {
  519. console.log(res)
  520. uni.navigateBack()
  521. })
  522. } else if (res.cancel) {
  523. console.log('用户点击取消');
  524. }
  525. }
  526. });
  527. } else if (this.task.task_stage == 9) { // 提交初稿
  528. let that = this
  529. uni.showModal({
  530. title: '提示',
  531. content: '提交后无法修改并进行审核,确认提交?',
  532. success: function(res) {
  533. if (res.confirm) {
  534. that.$https.get('/youngee/c/t/g/submit-task-sketch' +
  535. "?" +
  536. "task_id" +
  537. "=" +
  538. that.task.task_id)
  539. .then(res => {
  540. console.log(res)
  541. uni.navigateBack()
  542. })
  543. } else if (res.cancel) {
  544. console.log('用户点击取消');
  545. }
  546. }
  547. });
  548. } else if (this.task.task_stage == 11) { // 提交链接
  549. let that = this
  550. uni.showModal({
  551. title: '提示',
  552. content: '提交后无法修改并进行审核,确认提交?',
  553. success: function(res) {
  554. if (res.confirm) {
  555. that.$https.get('/youngee/c/t/g/submit-task-link' +
  556. "?" +
  557. "task_id" +
  558. "=" +
  559. that.task.task_id)
  560. .then(res => {
  561. console.log(res)
  562. uni.navigateBack()
  563. })
  564. } else if (res.cancel) {
  565. console.log('用户点击取消');
  566. }
  567. }
  568. });
  569. } else if (this.task.task_stage == 13) { // 提交数据
  570. let that = this
  571. uni.showModal({
  572. title: '提示',
  573. content: '提交后无法修改并进行审核,确认提交?',
  574. success: function(res) {
  575. if (res.confirm) {
  576. that.$https.get('/youngee/c/t/g/submit-task-data' +
  577. "?" +
  578. "task_id" +
  579. "=" +
  580. that.task.task_id)
  581. .then(res => {
  582. console.log(res)
  583. uni.navigateBack()
  584. })
  585. } else if (res.cancel) {
  586. console.log('用户点击取消');
  587. }
  588. }
  589. });
  590. }
  591. }
  592. }
  593. }
  594. </script>
  595. <style lang="scss" scoped>
  596. text {
  597. font-size: 12px;
  598. }
  599. .importentInfo1 {
  600. margin: 25rpx 11rpx;
  601. background-color: #fbedd9;
  602. border-radius: 8px;
  603. width: 700rpx;
  604. height: 130rpx;
  605. }
  606. .importentInfo2 {
  607. margin: 2rpx 11rpx;
  608. background-color: #bbd0ff;
  609. border-radius: 8px;
  610. width: 700rpx;
  611. height: 65rpx;
  612. }
  613. .card {
  614. display: flex;
  615. align-items: center;
  616. // justify-content: space-between;
  617. width: 88%;
  618. padding: 24rpx;
  619. margin-top: 30rpx;
  620. border-radius: 10rpx;
  621. background-color: #ffffff;
  622. margin: 0 auto;
  623. box-shadow: 0px 0px 10rpx 2rpx #F4F4F4;
  624. }
  625. .Tasktext {
  626. display: inline-block;
  627. padding: 0 0 0 1%;
  628. width: 400rpx;
  629. }
  630. .Tasktext span {
  631. color: #333333;
  632. font-weight: 550;
  633. text-indent: 2em;
  634. font-size: 30rpx;
  635. }
  636. .Tasktext image {
  637. vertical-align: middle;
  638. width: 50rpx;
  639. height: 50rpx;
  640. display: inline-block;
  641. padding-right: 14rpx;
  642. }
  643. .dou {
  644. display: flex;
  645. width: 250rpx;
  646. }
  647. .dou p {
  648. display: inline-block;
  649. font-size: 30rpx;
  650. color: #333333;
  651. font-weight: 550;
  652. }
  653. .dou span {
  654. font-size: 24rpx;
  655. color: #666666;
  656. }
  657. .freeSample p {
  658. padding: 10rpx 20rpx;
  659. font-size: 20rpx;
  660. margin-top: 5rpx;
  661. color: #999999;
  662. }
  663. .saleInfo p {
  664. padding: 10rpx 20rpx;
  665. font-size: 20rpx;
  666. margin-top: 2rpx;
  667. color: #999999;
  668. }
  669. .rewardInfo p {
  670. padding: 10rpx 20rpx;
  671. font-size: 20rpx;
  672. margin-top: 2rpx;
  673. color: #999999;
  674. }
  675. .logisInfo {
  676. display: flex;
  677. justify-content: space-between;
  678. }
  679. .btn1 {
  680. margin: 30rpx;
  681. font-size: 30rpx;
  682. color: white;
  683. width: 500rpx;
  684. background-color: #F0D232;
  685. border: none;
  686. border-radius: 18rpx;
  687. }
  688. .task-info-right {
  689. // width: 100rpx;
  690. // height: 100rpx;
  691. border-radius: 50%;
  692. // border: #ffcb41 2rpx solid;
  693. display: flex;
  694. align-items: center;
  695. justify-content: center;
  696. }
  697. .basicInfo {
  698. display: flex;
  699. align-items: center;
  700. // justify-content: center;
  701. margin-top: 20rpx;
  702. margin-left: 20rpx;
  703. padding: 20rpx;
  704. font-size: 30rpx;
  705. background-color: #FFFFFF;
  706. .basicInfo_txt {
  707. margin-left: 40rpx;
  708. margin-top: 20rpx;
  709. // padding-top: 20rpx;
  710. }
  711. .platform-img {
  712. width: 30rpx;
  713. height: 30rpx;
  714. margin-right: 10rpx;
  715. }
  716. .tpc-txt1 {
  717. display: flex;
  718. justify-content: flex-start;
  719. // margin-left: 20rpx;
  720. }
  721. .tpc-txt2 {
  722. display: flex;
  723. align-items: center;
  724. justify-content: flex-end;
  725. padding-right: 10rpx;
  726. // margin-right: 20rpx;
  727. flex: 1;
  728. .tpc-icon {
  729. width: 30rpx;
  730. height: 30rpx;
  731. }
  732. }
  733. }
  734. .upload-btn {
  735. display: flex;
  736. align-items: center;
  737. justify-content: center;
  738. background-color: #f2d241;
  739. border-radius: 10rpx;
  740. padding: 5rpx;
  741. margin-left: 20rpx;
  742. cursor: pointer;
  743. }
  744. .address {
  745. display: flex;
  746. margin: 20rpx 0;
  747. // padding: 20rpx 20rpx;
  748. background-color: #FFFFFF;
  749. justify-content: space-around;
  750. align-items: center;
  751. .address_icon {
  752. width: 15%;
  753. vertical-align: middle;
  754. display: flex;
  755. justify-content: center;
  756. }
  757. .address_edit {
  758. width: 15%;
  759. }
  760. .address_edit image {
  761. vertical-align: middle;
  762. width: 50rpx;
  763. height: 50rpx;
  764. display: inline-block;
  765. padding-right: 14rpx;
  766. }
  767. .ipon {
  768. color: #333333;
  769. font-size: 30rpx;
  770. margin-bottom: 10rpx;
  771. }
  772. }
  773. .keyInfo {
  774. padding: 20rpx 20rpx;
  775. background-color: #FFFFFF;
  776. .keyInfo_task {
  777. // color: #999999;
  778. }
  779. }
  780. .keyInfo h3 {}
  781. .keyInfo p {
  782. font-size: 30rpx;
  783. }
  784. .account {
  785. display: flex;
  786. align-items: center;
  787. // justify-content: space-between;
  788. // width: 90%;
  789. margin: 20rpx 0;
  790. padding: 20rpx 20rpx;
  791. background-color: #FFFFFF;
  792. font-size: 35rpx;
  793. .account_txt {
  794. display: inline-block;
  795. padding: 0 0 0 1%;
  796. width: 400rpx;
  797. }
  798. .account_txt image {
  799. vertical-align: middle;
  800. width: 50rpx;
  801. height: 50rpx;
  802. display: inline-block;
  803. padding-right: 14rpx;
  804. }
  805. .account_fans {
  806. display: flex;
  807. width: 250rpx;
  808. }
  809. .account_fans p {
  810. display: inline-block;
  811. color: #333333;
  812. }
  813. .account_btn {}
  814. }
  815. .task-progress {
  816. padding: 20rpx;
  817. .task-progress-card {
  818. margin: 15rpx 0;
  819. display: flex;
  820. align-items: center;
  821. // margin: 20rpx;
  822. padding: 10rpx;
  823. font-size: 30rpx;
  824. border-radius: 10rpx;
  825. .tpc-txt1 {
  826. display: flex;
  827. justify-content: flex-start;
  828. // margin-left: 20rpx;
  829. }
  830. .tpc-txt2 {
  831. display: flex;
  832. align-items: center;
  833. justify-content: flex-end;
  834. // margin-right: 20rpx;
  835. flex: 1;
  836. .tpc-icon {
  837. width: 30rpx;
  838. height: 30rpx;
  839. }
  840. }
  841. }
  842. .task-progress-info {
  843. padding: 10rpx;
  844. font-size: 30rpx;
  845. border-radius: 10rpx;
  846. background-color: #f2f2f2;
  847. }
  848. }
  849. .block {
  850. width: 100%;
  851. height: 100rpx;
  852. margin-top: 5%;
  853. }
  854. .submit {
  855. box-shadow: 0rpx 5rpx 40rpx #ccc;
  856. width: 100%;
  857. position: fixed;
  858. bottom: 0rpx;
  859. display: flex;
  860. height: 90rpx;
  861. padding-top: 2%;
  862. background-color: #FFFFFF;
  863. .submit_btn {
  864. width: 60%;
  865. background-color: #FCCF41;
  866. border-radius: 20rpx;
  867. font-size: 36rpx;
  868. line-height: 200%;
  869. letter-spacing: 10rpx;
  870. height: 80%;
  871. }
  872. }
  873. .line {
  874. border-bottom: 1rpx solid #d5d5d5;
  875. width: 98%;
  876. margin: 10rpx 1%;
  877. }
  878. .pipline {
  879. display: flex;
  880. align-items: center;
  881. justify-content: center;
  882. margin: 20rpx;
  883. // border: #FCCF41 1rpx dashed;
  884. }
  885. .pipline image {
  886. /* width: 600rpx; */
  887. height: 150rpx;
  888. }
  889. </style>