1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222 |
- <template>
- <view>
- <!-- 胶囊 -->
- <mvBar :mysNavConfig="mysNavConfig"></mvBar>
- <view :style="{marginTop:navH}"></view>
- <view v-if="!loading">
- <!-- 任务状态 -->
- <view style="padding-bottom: 30rpx;margin: 0 30rpx">
- <view style="display: flex;justify-content: center;font-size: 44rpx;padding-bottom: 20rpx;">
- <p>{{msg1}}</p>
- <view class="upload-btn" v-if="isShowUpload" @click="toUpload()" key="0">
- <image src="../../static/img/icon-upload.png" style="height: 40rpx;width: 40rpx;"></image>
- <p style="font-size: 28rpx;">快速上传</p>
- </view>
- </view>
- <view style="display: flex;justify-content: center;font-size: 24rpx;color: #999999;text-align:center">
- <p>{{msg2}}</p>
- </view>
- <view style="display: flex;justify-content: center;font-size: 24rpx;color: #999999;text-align:center"
- v-if="msg3 != ''">
- <p>{{msg3}}</p>
- </view>
- </view>
- <view style="display: flex;justify-content: center;align-items: center;"
- v-if="isShowUpload && !isSpecial && !isTimeOut" key="1">
- <image style="height: 60rpx;width: 60rpx;" src="../../static/img/icon-time.png"></image>
- <p style="font-size: 30rpx;color: #f2d241;">剩余时间:{{timeLeft}}</p>
- </view>
- <view style="display: flex;justify-content: center;align-items: center;"
- v-if="isShowUpload && !isSpecial && isTimeOut" key="2">
- <image style="height: 60rpx;width: 60rpx;" src="../../static/img/icon-time2.png"></image>
- <p style="font-size: 30rpx;color: #f70c0c;">超时:{{timeLeft}}</p>
- </view>
- <view class="address" v-if="!isSpecial">
- <view class="address_icon">
- <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_loc" mode="">
- </image>
- </view>
- <view style="width: 70%;">
- <view style="display: flex;">
- <p class='ipon' style="padding-right: 100rpx;">{{address.receiver_name}}</p>
- <p class='ipon'>{{address.phone_number}}</p>
- </view>
- <p class='ipon'>{{address.full_detail_addr}}</p>
- </view>
- <view class="address_edit" @click="editAddress()" v-if="task.task_stage < 4">
- <image :src="picture.icon_edit" mode="">
- </image>
- </view>
- </view>
- <view class="basicInfo">
- <image :src="product.PhotoUrl" style="width: 150rpx;height: 150rpx;" mode="">
- </image>
- <view class="basicInfo_txt">
- <p style="margin-bottom: 10rpx;font-size: 35rpx;">{{project.project_name}}</p>
- <p style="font-size: 30rpx;">商品价值:{{project.Product.showProductPrice}}元</p>
- </view>
- </view>
- <view class="keyInfo">
- <view style="margin-bottom: 40rpx;">
- <p style="font-size: 36rpx;">关键任务信息</p>
- </view>
- <view v-if="!isSpecial">
- <p style="margin-bottom: 10rpx;">合作方式</p>
- <p>粉丝量:{{strategy.show_followers_low}}-{{strategy.show_followers_up}}
-
- 稿费:{{strategy.fee_form_t}}
- </p>
- </view>
- <view class="line"></view>
- <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
- <p style="margin-bottom: 10rpx;">社媒平台:</p>
- <p>{{project.project_platform_t}}</p>
- </view>
- <view class="line"></view>
- <p style="margin-top: 10rpx;">任务要求</p>
- <view class="keyInfo_task">
- <view style="display: flex;align-items: center;margin: 10rpx 0;">
- <p>内容形式:</p>
- <p>{{project.content}}</p>
- </view>
- <view style="display: flex;align-items: center;margin: 10rpx 0;">
- <p>任务形式:</p>
- <p>{{project.project_form_t}}</p>
- </view>
- <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
- <p>商品描述:</p>
- <text>{{project.Product.ProductDetail}}</text>
- </view>
- <view style="margin-top: 20rpx;margin-bottom: 10rpx;">
- <p>任务详情:</p>
- <text>{{project.project_detail}}</text>
- </view>
- </view>
- </view>
- <view class="task-progress">
- <p style="font-size: 32rpx;">任务进度</p>
- <view class="task-progress-card" v-bind:style="task.task_stage == 1 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>报名信息</p>
- </view>
- <view class="tpc-txt2" @click="toApplyinfo()">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card"
- v-if="(task.task_stage >= 5 && task.task_stage <= 15) || ((task.task_stage === 16 || task.task_stage === 3) && task.logistics_status >= 2) && !isSpecial"
- v-bind:style="task.task_stage >= 5 && task.task_stage <= 6 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>物流信息</p>
- </view>
- <view class="tpc-txt2" @click="toLogisticsinfo()">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card"
- v-if="project.content_type == 2 && ((task.task_stage >= 7 && task.task_stage <= 15) || ((task.task_stage === 16 || task.task_stage === 3) && task.script_status == 5))"
- v-bind:style="task.task_stage >= 7 && task.task_stage <= 8 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>上传拍摄脚本</p>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 1">
- <p style="color: red;">待添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 2">
- <p style="color: #fff;">已添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 3">
- <p style="color: red;">待修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.script_status == 4">
- <p style="color: #fff;">已修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toScriptRecord()" v-if="task.script_status == 5">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card"
- v-if="(task.task_stage >= 9 && task.task_stage <= 15) || ((task.task_stage === 16 || task.task_stage === 3) && task.sketch_status == 5)"
- v-bind:style="task.task_stage >= 9 && task.task_stage <= 10 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>上传初稿</p>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.sketch_status == 1">
- <p style="color: red;">待添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.sketch_status == 2">
- <p style="color: #fff;">已添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.sketch_status == 3">
- <p style="color: red;">待修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.sketch_status == 4">
- <p style="color: #fff;">已修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toSketchRecord()" v-if="task.sketch_status == 5">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card"
- v-if="(task.task_stage >= 11 && task.task_stage <= 15) || ((task.task_stage === 16 || task.task_stage === 3) && task.link_status == 5)"
- v-bind:style="task.task_stage >= 11 && task.task_stage <= 12 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>上传链接</p>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.link_status == 1">
- <p style="color: red;">待添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.link_status == 2">
- <p style="color: #fff;">已添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.link_status == 3">
- <p style="color: red;">待修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.link_status == 4">
- <p style="color: #fff;">已修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toLinkRecord()" v-if="task.link_status == 5">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card"
- v-if="(task.task_stage >= 13 && task.task_stage <= 15) || ((task.task_stage === 16 || task.task_stage === 3) && task.data_status == 5)"
- v-bind:style="task.task_stage >= 13 && task.task_stage <= 14 ? 'background-color: #f2d241' : ''">
- <view class="tpc-txt1">
- <p>上传数据</p>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.data_status == 1">
- <p style="color: red;">待添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.data_status == 2">
- <p style="color: #fff;">已添加</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.data_status == 3">
- <p style="color: red;">待修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toUpload()" v-if="task.data_status == 4">
- <p style="color: #fff;">已修改</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- <view class="tpc-txt2" @click="toDataRecord()" v-if="task.data_status == 5">
- <p>查看</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-card" v-if="task.task_stage === 15" style="background-color: #f2d241">
- <view class="tpc-txt1">
- <p>已结案</p>
- </view>
- <view class="tpc-txt2" @click="toWithdraw()" v-if="!isSpecial">
- <p>前往提现</p>
- <image class="tpc-icon" :src="picture.icon_right"></image>
- </view>
- </view>
- <view class="task-progress-info">
- <view style="padding: 10rpx 0;">
- <span style="display: flex;align-items: center;">
- <p>任务ID:{{task.task_id}}</p>
- <image :src="picture.icon_copy" mode="" style="width: 40rpx;height: 40rpx;"
- @click="handleCopy()" />
- </span>
- </view>
- <view style="padding: 10rpx 0;">
- <p>报名时间:{{task.create_date}}</p>
- </view>
- <view v-if="task.task_stage > 1" style="padding: 10rpx 0;">
- <p>确认合作:{{task.select_date}}</p>
- </view>
- <view v-for="(item,index) in taskLogs" style="padding: 10rpx 0;">
- <p>{{item.content}}:{{item.log_at}}</p>
- </view>
- </view>
- </view>
- <view class="block"></view>
- <!-- <view class="submit" v-if="task.task_stage >= 7 && task.task_stage <= 14">
- <button type="default" class="submit_btn" @click="submit()" :disabled="isNotShowSubmit"
- v-bind:style="isNotShowSubmit ? '' : 'background-color: #f2d241'">
- 确认提交</button>
- </view> -->
- <view class="submit" v-if="task.task_stage === 15 && !isSpecial">
- <button type="default" class="submit_btn" @click="toWithdraw()">
- 前往提现</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- import region from '@/components/pca-code.json';
- import mvBar from "@/components/mys_navBar/mysNavBar";
- import {
- fansview,
- money
- } from '@/components/utils.js';
- export default {
- components: {
- mvBar
- },
- data() {
- return {
- navH: getApp().globalData.navHeight,
- isTimeOut: false,
- isNotShowSubmit: true,
- isShowUpload: false,
- loading: true,
- isSpecial: false,
- timeLeft: "",
- msg1: "",
- msg2: "",
- msg3: "",
- infoMsg1: [
- "等待企业确认合作",
- "恭喜任务申请成功!",
- "任务申请失败",
- "等待发货中",
- "商家已发货",
- "商品已签收",
- "等待上传拍摄脚本",
- "等待脚本审核",
- "等待上传初稿",
- "等待初稿审核",
- "等待上传链接",
- "等待链接审核",
- "等待上传作品数据",
- "等待数据审核",
- "已结案",
- "任务终止",
- ],
- infoMsg2: [
- "商家将在申请截止后5天内审核完毕",
- "请仔细查看任务要求和任务详情,开始执行任务吧!",
- "账号未达到入选标准,请小主尝试申请其他任务吧",
- "发货后可在任务进度中查看物流单号",
- "请在物流进度中查看物流单号/虚拟产品兑换码",
- "请在物流进度中查看物流单号/虚拟产品兑换码",
- "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
- "商家正在审核脚本,请耐心等待。",
- "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
- "商家正在审核初稿,请耐心等待。",
- "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
- "商家正在审核链接,请耐心等待。",
- "恭喜链接审核通过,请在作品发布7天后上传作品数据。",
- "商家正在审核数据,请耐心等待。",
- "本项目已结案,可申请佣金提现。",
- "长时间未上传,任务已终止。",
- ],
- infoMsg3: [
- "企业将在5个工作日内完成核对账号信息,请耐心等待",
- "请仔细查看任务要求和任务详情,开始执行任务吧!",
- "账号非企业定向邀请账号,请小主尝试申请其他任务吧",
- "发货后可在任务进度中查看物流单号",
- "请在物流进度中查看物流单号/虚拟产品兑换码",
- "请在物流进度中查看物流单号/虚拟产品兑换码",
- "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
- "请在任务进度中上传拍摄脚本,商家审核通过后再进行拍摄",
- "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
- "请在任务进度中上传图文/视频初稿,商家审核通过后再进行发布",
- "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
- "恭喜作品审核通过,请及时发布并在任务进度中上传发布链接。",
- "恭喜链接审核通过,请在作品发布7天后上传作品数据。",
- "恭喜链接审核通过,请在作品发布7天后上传作品数据。",
- "本项目已结案,可申请佣金提现。",
- "长时间未上传,任务已终止。",
- ],
- platform: [
- "红book",
- "抖音",
- "微博",
- "快手",
- "B站",
- "大众点评",
- "知乎",
- ],
- task: {},
- address: {},
- project: {},
- product: {},
- account: {},
- strategy: {},
- picture: {
- togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
- icon_copy: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-copy.png',
- icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png',
- icon_loc: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png',
- icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
- home8: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png',
- home10: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png',
- home11: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png',
- },
- task_type_info: ["实体商品寄拍", "虚拟产品测评", "线下探店打卡"],
- taskLogs: [],
- mysNavConfig: {
- isHome: false,
- /* 固定导航 */
- navFixed: true,
- /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
- navTitle: {
- text: "我的任务详情",
- color: "",
- fontSize: "32rpx", // px upx rpx
- fontWeight: "", // 100 - 700
- },
- btnType: "type2",
- onLeftClick: '',
- /* type2 按钮 */
- type2Config: {
- // 左图标
- leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png2.png",
- // 右图标
- rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png4.png",
- // 圆角
- radius: "40rpx",
- },
- },
- }
- },
- async onShow() {
- this.loading = true;
- uni.showLoading({
- title: '加载中'
- });
- await this.getTaskInfo();
- await this.getTaskLogs();
- if (!this.isSpecial) {
- this.getLeftTime();
- } else {
- this.loading = false;
- uni.hideLoading();
- }
- },
- onLoad(options) {
- this.taskId = options.taskId
- },
- methods: {
- handleCopy() {
- wx.setClipboardData({
- data: this.task.task_id.toString(),
- success: function(res) {
- console.log("复制成功");
- }
- });
- },
- async getLeftTime(value) {
- switch (this.task.task_stage) {
- case 7:
- // 首次提交
- if (this.task.script_status === 1 || this.task.script_status === 2) {
- let logistics = null;
- await this.$https.get('/youngee/c/t/g/get-task-logistics-info' +
- "?" +
- "task_id" +
- "=" +
- this.taskId
- ).then(res => {
- logistics = res.data.data
- })
- if (logistics.auto_script_break_at !== null && logistics.auto_script_break_at !== "") {
- this.timeLeft = this.thistime(logistics.auto_script_break_at)
- } else {
- // 为脚本违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 1,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- } else if (this.task.script_status === 3 || this.task.script_status === 4) {
- let scriptList = null;
- let script = null;
- await this.$https.get('/youngee/c/t/g/get-task-script' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- scriptList = res.data.data
- for (let i = 0; i < scriptList.length; ++i) {
- if (scriptList[i].is_review === 1) {
- script = scriptList[i]
- }
- }
- })
- if (script.auto_script_break_at !== null && script.auto_script_break_at !== "") {
- this.timeLeft = this.thistime(script.auto_script_break_at)
- } else {
- // 为脚本违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 2,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- this.msg1 = this.isTimeOut ? "脚本上传违约" : this.msg1
- break;
- case 9:
- // 首次提交
- if (this.task.sketch_status === 1 || this.task.sketch_status === 2) {
- if (this.project.content_type === 1) {
- let logistics = null;
- await this.$https.get('/youngee/c/t/g/get-task-logistics-info' +
- "?" +
- "task_id" +
- "=" +
- this.taskId
- ).then(res => {
- logistics = res.data.data
- })
- if (logistics.auto_sketch_break_at !== null && logistics.auto_sketch_break_at !== "") {
- this.timeLeft = this.thistime(logistics.auto_sketch_break_at)
- } else {
- // 为初稿违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 4,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- } else {
- let scriptList = null;
- await this.$https.get('/youngee/c/t/g/get-task-script' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- scriptList = res.data.data
- })
- for (let i = 0; i < scriptList.length; ++i) {
- if (scriptList[i].is_ok === 1) {
- if (scriptList[i].auto_sketch_break_at !== null && scriptList[i]
- .auto_sketch_break_at !== "") {
- this.timeLeft = this.thistime(scriptList[i].auto_sketch_break_at)
- } else {
- // 为初稿违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 3,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- }
- }
- } else if (this.task.sketch_status === 3 || this.task.sketch_status === 4) { //修改
- let sketchList = null;
- let sketch = null;
- await this.$https.get('/youngee/c/t/g/get-task-sketch' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- sketchList = res.data.data
- for (let i = 0; i < sketchList.length; ++i) {
- if (sketchList[i].is_review === 1) {
- sketch = sketchList[i]
- }
- }
- })
- if (sketch.auto_sketch_break_at !== null && sketch.auto_sketch_break_at !== "") {
- this.timeLeft = this.thistime(sketch.auto_sketch_break_at)
- } else {
- // 为脚本违约限制时间赋值并返回
- let type = this.project.content_type === 1 ? 6 : 5;
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: type,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- this.msg1 = this.isTimeOut ? "初稿上传违约" : this.msg1
- break;
- case 11:
- // 首次提交
- if (this.task.link_status === 1 || this.task.link_status === 2) {
- let sketchList = null;
- await this.$https.get('/youngee/c/t/g/get-task-sketch' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- sketchList = res.data.data
- })
- for (let i = 0; i < sketchList.length; ++i) {
- if (sketchList[i].is_ok === 1) {
- if (sketchList[i].auto_link_break_at !== null && sketchList[i]
- .auto_link_break_at !== "") {
- this.timeLeft = this.thistime(sketchList[i].auto_link_break_at)
- } else {
- // 为链接违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 7,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- }
- } else if (this.task.link_status === 3 || this.task.link_status === 4) {
- let linkList = null;
- let link = null;
- await this.$https.get('/youngee/c/t/g/get-task-link' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- linkList = res.data.data
- for (let i = 0; i < linkList.length; ++i) {
- if (linkList[i].is_review === 1) {
- link = linkList[i]
- }
- }
- })
- if (link.auto_link_break_at !== null && link.auto_link_break_at !== "") {
- this.timeLeft = this.thistime(link.auto_link_break_at)
- } else {
- // 为脚本违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 8,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- this.msg1 = this.isTimeOut ? "链接上传违约" : this.msg1
- break;
- case 13:
- // 首次提交
- if (this.task.data_status === 1 || this.task.data_status === 2) {
- let linkList = null;
- await this.$https.get('/youngee/c/t/g/get-task-link' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- linkList = res.data.data
- })
- for (let i = 0; i < linkList.length; ++i) {
- if (linkList[i].is_ok === 1) {
- if (linkList[i].auto_data_break_at !== null && linkList[i].auto_data_break_at !==
- "") {
- this.timeLeft = this.thistime(linkList[i].auto_data_break_at)
- } else {
- // 为数据违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 9,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- }
- } else if (this.task.data_status === 3 || this.task.data_status === 4) {
- let dataList = null;
- let data = null;
- await this.$https.get('/youngee/c/t/g/get-task-data' +
- "?" +
- "task_id" +
- "=" +
- this.taskId)
- .then(res => {
- dataList = res.data.data
- for (let i = 0; i < dataList.length; ++i) {
- if (dataList[i].is_review === 1) {
- data = dataList[i]
- }
- }
- })
- if (data.auto_data_break_at !== null && data.auto_data_break_at !== "") {
- this.timeLeft = this.thistime(data.auto_data_break_at)
- } else {
- // 为脚本违约限制时间赋值并返回
- await this.$https.post('/youngee/c/t/p/get-auto-time', {
- task_id: this.taskId,
- type: 10,
- }).then(res => {
- this.timeLeft = this.thistime(res.data.data)
- })
- }
- }
- this.msg1 = this.isTimeOut ? "数据上传违约" : this.msg1
- break;
- default:
- break;
- }
- this.loading = false;
- uni.hideLoading();
- },
- getTaskInfo() {
- return this.$https.get('/youngee/c/t/g/get-task-detail' +
- "?" +
- "task_id" +
- "=" +
- this.taskId
- ).then(res => {
- console.log(res)
- this.task = res.data.data.task_info
- this.address = JSON.parse(res.data.data.task_info.talent_post_addr_snap);
- let a = this.address.region_code.toString().slice(0, 2)
- let b = this.address.region_code.toString().slice(0, 4)
- let c = 0
- for (var i = 0; i < region.length; i++) {
- if (region[i].code == a) {
- a = region[i].name
- for (var j = 0; j < region[i].children.length; j++) {
- if (region[i].children[j].code == b) {
- b = region[i].children[j].name
- for (var o = 0; o < region[i].children[j].children.length; o++) {
- if (region[i].children[j].children[o].code == this.address
- .region_code) {
- c = region[i].children[j].children[o].name
- }
- }
- }
- }
- }
- }
- this.address.full_detail_addr = a + b + c + this.address.detail_addr
- this.account = JSON.parse(res.data.data.task_info.talent_platform_info_snap);
- this.account.show_fans_count = fansview(this.account.fans_count)
- this.project = res.data.data.project_detail
- this.project.Product = JSON.parse(res.data.data.project_detail.product_snap);
- this.project.Product.showProductPrice = money(this.project.Product.ProductPrice)
-
- let ProductPhoto = JSON.parse(res.data.data.project_detail.product_photo_snap);
- for (let j = 0; j < ProductPhoto.length; ++j) {
- if (ProductPhoto[j].Symbol == 1) {
- this.product = ProductPhoto[j]
- }
- }
- this.strategy = res.data.data.strategy
- this.isSpecial = this.project.project_type === 2 ? true : false;
- if (!this.isSpecial) {
- this.strategy.show_followers_low = fansview(this.strategy.followers_low)
- this.strategy.show_followers_up = fansview(this.strategy.followers_up)
- this.strategy.fee_form_t = this.strategy.fee_form === 1 ? '产品置换' : (this.strategy
- .fee_form ===
- 2 ?
- '固定稿费 ' +
- this.task.task_reward : '创作者自报价 ' + this.task.task_reward)
- }
- this.project.content = this.project.content_type === 1 ? "图文" : "视频" // 任务形式
- this.project.project_form_t = this.task_type_info[this.project.project_form - 1] // 任务类型
- this.project.project_platform_t = this.platform[this.project.project_platform - 1] // 社媒平台
- // 不同任务阶段提示消息
- this.msg1 = this.infoMsg1[this.task.task_stage - 1]
- this.msg2 = this.isSpecial ? this.infoMsg3[this.task.task_stage - 1] : this.infoMsg2[this.task
- .task_stage - 1]
- if (this.task.task_stage == 7) {
- this.msg3 = "延迟上传脚本,可能导致佣金扣除。"
- } else if (this.task.task_stage == 9) {
- this.msg3 = "延迟上传初稿,可能导致佣金扣除。"
- } else if (this.task.task_stage == 11) {
- this.msg3 = "延迟上传链接,可能导致佣金扣除。"
- } else if (this.task.task_stage == 13) {
- this.msg3 = "延迟上传数据,可能导致佣金扣除。"
- }
- // 判断是否显示快速上传按钮
- if (this.task.task_stage == 7 || this.task.task_stage == 9 || this.task.task_stage == 11 ||
- this.task.task_stage == 13) {
- this.isShowUpload = true
- } else {
- this.isShowUpload = false
- }
- // 判断确认提交按钮是否可用
- if (this.task.task_stage == 7 && (this.task.script_status == 2 || this.task.script_status ==
- 4)) {
- this.isNotShowSubmit = false
- }
- if (this.task.task_stage == 9 && (this.task.sketch_status == 2 || this.task.sketch_status ==
- 4)) {
- this.isNotShowSubmit = false
- }
- if (this.task.task_stage == 11 && (this.task.link_status == 2 || this.task.link_status == 4)) {
- this.isNotShowSubmit = false
- }
- if (this.task.task_stage == 13 && (this.task.data_status == 2 || this.task.data_status == 4)) {
- this.isNotShowSubmit = false
- }
- })
- },
- getTaskLogs() {
- return this.$https.get('/youngee/c/t/g/get-task-log' +
- "?" +
- "task_id" +
- "=" +
- this.taskId
- ).then(res => {
- this.taskLogs = res.data.data
- })
- },
- toUpload() {
- if (this.task.task_stage == 7 || this.task.task_stage == 8) { // 上传脚本
- var data = {
- taskId: this.task.task_id,
- scriptStatus: this.task.script_status
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/uploadscript?textObj=' + encodeURIComponent(data)
- });
- } else if (this.task.task_stage == 9 || this.task.task_stage == 10) { // 上传初稿
- var data = {
- taskId: this.task.task_id,
- sketchStatus: this.task.sketch_status
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/uploadsketch?textObj=' + encodeURIComponent(data)
- });
- } else if (this.task.task_stage == 11 || this.task.task_stage == 12) { // 上传链接
- var data = {
- taskId: this.task.task_id,
- linkStatus: this.task.link_status
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/uploadlink?textObj=' + encodeURIComponent(data)
- });
- } else if (this.task.task_stage == 13 || this.task.task_stage == 14) { // 上传数据
- var data = {
- taskId: this.task.task_id,
- dataStatus: this.task.data_status
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/uploaddata?textObj=' + encodeURIComponent(data)
- });
- }
- },
- toScriptRecord() {
- var data = {
- taskId: this.task.task_id,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/scriptrecord?textObj=' + encodeURIComponent(data)
- });
- },
- toSketchRecord() {
- var data = {
- taskId: this.task.task_id,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/sketchrecord?textObj=' + encodeURIComponent(data)
- });
- },
- toLinkRecord() {
- var data = {
- taskId: this.task.task_id,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/linkrecord?textObj=' + encodeURIComponent(data)
- });
- },
- toDataRecord() {
- var data = {
- taskId: this.task.task_id,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/datarecord?textObj=' + encodeURIComponent(data)
- });
- },
- toApplyinfo() {
- var data = {
- account: this.account,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/applyInformation?textObj=' + encodeURIComponent(data)
- });
- },
- toLogisticsinfo() {
- console.log(this.project.project_form)
- var data = {
- address: this.address,
- taskId: this.task.task_id,
- projectForm: this.project.project_form
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/deliveryInformation?textObj=' + encodeURIComponent(data)
- });
- },
- editAddress() {
- var data = {
- address: this.address,
- taskId: this.task.task_id,
- };
- data = JSON.stringify(data)
- uni.navigateTo({
- url: '/pages/workspace/editaddress?textObj=' + encodeURIComponent(data)
- });
- },
- // 计算结束时间
- thistime(val) {
- // 转换格式
- var beginTime = new Date(val.replace(/-/g, "/"));
- // 当前时间
- var thisTime = new Date();
- // 相减
- var dateMiss = beginTime.getTime() - thisTime.getTime();
- this.isTimeOut = dateMiss < 0 ? true : false
- dateMiss = dateMiss < 0 ? -dateMiss : dateMiss
- // 天数
- var day = Math.floor(dateMiss / (24 * 3600 * 1000));
- // 减去天数剩下的毫秒数
- var backOne = dateMiss % (24 * 3600 * 1000);
- // 小时数
- var hours = Math.floor(backOne / (3600 * 1000));
- // 减去小时数剩下的毫秒数
- var backHour = backOne % (3600 * 1000);
- // 分钟数
- var min = Math.floor(backHour / (60 * 1000));
- var deadline_time = day + '天' + hours + '时' + min + '分'
- return deadline_time
- },
- toWithdraw() {
- uni.navigateTo({
- url: '/pages/mycenter/myincome?showTab=1'
- });
- },
- submit() {
- if (this.task.task_stage == 7) { // 提交脚本
- let that = this
- uni.showModal({
- title: '提示',
- content: '提交后无法修改并进行审核,确认提交?',
- success: function(res) {
- if (res.confirm) {
- that.$https.get('/youngee/c/t/g/submit-task-script' +
- "?" +
- "task_id" +
- "=" +
- that.task.task_id)
- .then(res => {
- console.log(res)
- uni.navigateBack()
- })
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else if (this.task.task_stage == 9) { // 提交初稿
- let that = this
- uni.showModal({
- title: '提示',
- content: '提交后无法修改并进行审核,确认提交?',
- success: function(res) {
- if (res.confirm) {
- that.$https.get('/youngee/c/t/g/submit-task-sketch' +
- "?" +
- "task_id" +
- "=" +
- that.task.task_id)
- .then(res => {
- console.log(res)
- uni.navigateBack()
- })
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else if (this.task.task_stage == 11) { // 提交链接
- let that = this
- uni.showModal({
- title: '提示',
- content: '提交后无法修改并进行审核,确认提交?',
- success: function(res) {
- if (res.confirm) {
- that.$https.get('/youngee/c/t/g/submit-task-link' +
- "?" +
- "task_id" +
- "=" +
- that.task.task_id)
- .then(res => {
- console.log(res)
- uni.navigateBack()
- })
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else if (this.task.task_stage == 13) { // 提交数据
- let that = this
- uni.showModal({
- title: '提示',
- content: '提交后无法修改并进行审核,确认提交?',
- success: function(res) {
- if (res.confirm) {
- that.$https.get('/youngee/c/t/g/submit-task-data' +
- "?" +
- "task_id" +
- "=" +
- that.task.task_id)
- .then(res => {
- console.log(res)
- uni.navigateBack()
- })
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- text {
- font-size: 12px;
- }
- .basicInfo {
- display: flex;
- margin-top: 20rpx;
- padding: 20rpx 40rpx;
- background-color: #FFFFFF;
- .basicInfo_txt {
- margin-left: 40rpx;
- padding-top: 20rpx;
- }
- }
- .upload-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #f2d241;
- border-radius: 10rpx;
- padding: 5rpx;
- margin-left: 20rpx;
- cursor: pointer;
- }
- .address {
- display: flex;
- margin: 20rpx 0;
- // padding: 20rpx 20rpx;
- background-color: #FFFFFF;
- justify-content: space-around;
- align-items: center;
- .address_icon {
- width: 15%;
- vertical-align: middle;
- display: flex;
- justify-content: center;
- }
- .address_edit {
- width: 15%;
- }
- .address_edit image {
- vertical-align: middle;
- width: 50rpx;
- height: 50rpx;
- display: inline-block;
- padding-right: 14rpx;
- }
- .ipon {
- color: #333333;
- font-size: 30rpx;
- margin-bottom: 10rpx;
- }
- }
- .keyInfo {
- padding: 20rpx 20rpx;
- background-color: #FFFFFF;
- .keyInfo_task {
- // color: #999999;
- }
- }
- .keyInfo h3 {}
- .keyInfo p {
- font-size: 30rpx;
- }
- .account {
- display: flex;
- align-items: center;
- // justify-content: space-between;
- // width: 90%;
- margin: 20rpx 0;
- padding: 20rpx 20rpx;
- background-color: #FFFFFF;
- font-size: 35rpx;
- .account_txt {
- display: inline-block;
- padding: 0 0 0 1%;
- width: 400rpx;
- }
- .account_txt image {
- vertical-align: middle;
- width: 50rpx;
- height: 50rpx;
- display: inline-block;
- padding-right: 14rpx;
- }
- .account_fans {
- display: flex;
- width: 250rpx;
- }
- .account_fans p {
- display: inline-block;
- color: #333333;
- }
- .account_btn {}
- }
- .task-progress {
- padding: 20rpx;
- .task-progress-card {
- margin: 15rpx 0;
- display: flex;
- align-items: center;
- // margin: 20rpx;
- padding: 10rpx;
- font-size: 30rpx;
- border-radius: 10rpx;
- .tpc-txt1 {
- display: flex;
- justify-content: flex-start;
- // margin-left: 20rpx;
- }
- .tpc-txt2 {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- // margin-right: 20rpx;
- flex: 1;
- .tpc-icon {
- width: 30rpx;
- height: 30rpx;
- }
- }
- }
- .task-progress-info {
- padding: 10rpx;
- font-size: 30rpx;
- border-radius: 10rpx;
- background-color: #f2f2f2;
- }
- }
- .block {
- width: 100%;
- height: 100rpx;
- margin-top: 5%;
- }
- .submit {
- box-shadow: 0rpx 5rpx 40rpx #ccc;
- width: 100%;
- position: fixed;
- bottom: 0rpx;
- display: flex;
- height: 90rpx;
- padding-top: 2%;
- background-color: #FFFFFF;
- .submit_btn {
- width: 60%;
- background-color: #FCCF41;
- border-radius: 20rpx;
- font-size: 36rpx;
- line-height: 200%;
- letter-spacing: 10rpx;
- height: 80%;
- }
- }
- .line {
- border-bottom: 1rpx solid #d5d5d5;
- width: 98%;
- margin: 10rpx 1%;
- }
- </style>
|