sectaskdetail1.vue 25 KB

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