taskdetail.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="" id="wrap0" v-show="!loading">
  7. <view class="home">
  8. <view class="uni-margin-wrap">
  9. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000"
  10. :duration="1000">
  11. <swiper-item v-for="item in information.Product.ProductPhoto">
  12. <image :src="item.PhotoUrl" mode="aspectFill" style="width: 100%;height: 100%;"
  13. @click="handlePreviewImage1(item.PhotoUrl)" v-if="item.Symbol !== 3">
  14. </image>
  15. <video :src="item.PhotoUrl" style="width: 100%;height: 100%;" v-if="item.Symbol === 3">
  16. </video>
  17. </swiper-item>
  18. </swiper>
  19. <view class="">
  20. <view class="Tasktext">
  21. <image :src="information.PlatformInfo.platform_icon" mode=""></image>
  22. <span>{{information.project_name}}</span>
  23. </view>
  24. <view class="introduction">
  25. <view class="rleft">
  26. <p>商品价值:{{information.Product.ProductPrice}}元</p>
  27. </view>
  28. <view class="rright">
  29. <p>申请截止时间:{{information.recruit_ddl}}</p>
  30. </view>
  31. </view>
  32. <view class="tasks">
  33. <view class="tasksleft">
  34. <p><span style="color: #FDD442;font-size: 50rpx ;">{{information.taskNum}}</span>
  35. </p>
  36. <p style="font-weight: 600;">任务数量</p>
  37. </view>
  38. <view class="title-left"></view>
  39. <view class="tasksright">
  40. <p><span style="color: #FDD442;font-size: 50rpx ;">{{information.apply_num}}</span>
  41. </p>
  42. <p style="font-weight: 600;">报名人数</p>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- <view class="interval"></view> -->
  49. <view class="home" style="padding-top: 0;">
  50. <view class="">
  51. <view class="circularmark">
  52. <p>任务奖励</p>
  53. </view>
  54. <view class="markcontent">
  55. <view style="display: flex;margin: 10rpx 0;">
  56. <p class="label">商品价值:</p>
  57. <p class="wvp" style="padding: 0;">{{information.Product.ProductPrice}}元</p>
  58. </view>
  59. <view style="display: flex;;margin: 10rpx 0;">
  60. <p class="label">商品链接:</p>
  61. <span style="display: flex;align-items: center;"
  62. v-if="information.Product.ProductUrl === ''">
  63. <p class="wvp" style="padding: 0;">无</p>
  64. </span>
  65. <span style="display: flex;align-items: center;"
  66. v-if="information.Product.ProductUrl !== ''">
  67. <p class="wvp" style="padding: 0;">{{information.Product.ProductUrl|ellipsis}}</p>
  68. <image :src="picture.icon_copy" mode="" style="width: 40rpx;height: 40rpx;"
  69. @click="handleCopy(information.Product.ProductUrl)" />
  70. </span>
  71. </view>
  72. <view style="display: flex;margin: 10rpx 0;">
  73. <p class="label">合作佣金:</p>
  74. <view>
  75. <p style="color: red;">{{coopStrategy}}</p>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="">
  81. <view class="circularmark">
  82. <p>账号要求</p>
  83. </view>
  84. <view class="markcontent">
  85. <view style="display: flex;margin: 10rpx 0;">
  86. <p class="label">社媒平台:</p>
  87. <p class="wvp">{{information.PlatformInfo.platform_name}}</p>
  88. </view>
  89. <view style="display: flex;margin: 10rpx 0;">
  90. <p class="label">任务形式:</p>
  91. <p class="wvp">{{information.project_form}}</p>
  92. </view>
  93. <view style="display: flex;margin: 10rpx 0;">
  94. <p class="label">创作者类型: </p>
  95. <p class="wvp1" v-for="(item,index) in information.talent_type">{{item}}</p>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="" id="wrap1">
  101. <view class="home" style="padding-top: 0;">
  102. <view class="">
  103. <view class="circularmark">
  104. <p>任务要求</p>
  105. </view>
  106. <view class="markcontent">
  107. <view style="display: flex;margin: 10rpx 0;">
  108. <p class="wvp" style="margin: 10rpx 0;">内容形式:</p>
  109. <p class="wvp" style="margin: 10rpx 0;">{{information.content}}</p>
  110. </view>
  111. <p class="wvp" style="margin: 10rpx 0;">商品描述:</p>
  112. <text class="wvp" style="margin: 10rpx 0;" decode="true" user-select="true">
  113. {{information.Product.ProductDetail}} </text>
  114. </p>
  115. <p class="wvp" style="margin: 10rpx 0;">任务详情:</p>
  116. <text class="wvp" style="margin: 10rpx 0;" decode="true" user-select="true">
  117. {{information.project_detail}} </text>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="" id="wrap2">
  123. <view class="home" style="padding-top: 0;">
  124. <view class="">
  125. <view class="circularmark">
  126. <p>BRIEF</p>
  127. </view>
  128. <view class="markcontent1">
  129. <view v-if="hasNoProjectPhoto">
  130. <view class="diagram" style="font-size: 30rpx;margin: 0 30rpx;">
  131. <p>暂无详情说明</p>
  132. </view>
  133. </view>
  134. <view v-else>
  135. <!-- <view class="diagram-pdf" v-for="item in information.ProjectPhoto">
  136. <image :src="picture.icon_pdf"></image>
  137. <p>测试文件测试文件测试文件测试文件.pdf</p>
  138. <button type="default"
  139. @tap="downloadFile('https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/用于确定预计到达时间的方法和设备.pdf', '测试文件.pdf')">点击下载</button>
  140. </view>
  141. <view class="diagram-pdf" v-for="item in information.ProjectPhoto">
  142. <image :src="picture.icon_word"></image>
  143. <p>测试文件测试文件测试文件测试文件.docx</p>
  144. <button type="default"
  145. @tap="downloadFile('https://horastar.obs.cn-east-3.myhuaweicloud.com:443/backstage_upload/22120379.docx', '测试文件测试文件测试文件测试文件.docx')">点击下载</button>
  146. </view> -->
  147. <view class="diagram-pdf" v-for="item in information.ProjectPhoto"
  148. v-if="briefType == 'pdf'">
  149. <image :src="picture.icon_pdf"></image>
  150. <p>item.file_name</p>
  151. <button type="default"
  152. @tap="downloadFile(item.photo_url, item.file_name)">点击下载</button>
  153. </view>
  154. <view class="diagram-pdf" v-for="item in information.ProjectPhoto"
  155. v-else-if="briefType == 'doc' || briefType == 'docx'">
  156. <image :src="picture.icon_word"></image>
  157. <p>item.file_name</p>
  158. <button type="default"
  159. @tap="downloadFile(item.photo_url, item.file_name)">点击下载</button>
  160. </view>
  161. <view class="diagram" v-for="item in information.ProjectPhoto" v-else>
  162. <image :src="item.photo_url" mode="widthFix"></image>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. <view class="interval2"></view>
  169. </view>
  170. <view class="signup">
  171. <button type="default" class="but1" :loading="loading" :class="{'on':item.title === '1',}"
  172. @click="toggle('bottom')" v-if="isSign===0 && ddl === 0">
  173. 立即报名</button>
  174. <button type="default" class="but1" disabled v-if="isSign===1 && ddl === 0"> 已报名 </button>
  175. <button type="default" class="but1" disabled v-if="ddl===1"> 报名结束 </button>
  176. <button type="default" class="but2" @click="toggle1('bottom')">
  177. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task8.png" mode=""></image>
  178. 分享
  179. </button>
  180. </view>
  181. <view>
  182. <!-- 底部普通弹窗 -->
  183. <uni-popup ref="popup" background-color="#fff" @change="change" style="border-radius: 20rpx;">
  184. <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  185. <view class="">
  186. <view class="sampledrawing">
  187. <image :src="img" style="width: 250rpx;height: 235rpx;margin-top: -9%;margin-left: -3%;"
  188. mode="">
  189. </image>
  190. <view class="samplecharacter">
  191. <p>{{information.project_name}}</p>
  192. </view>
  193. </view>
  194. <!-- 商品价值及任务形式 -->
  195. <view
  196. style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 50rpx;">
  197. <view style="font-size: 30rpx;">
  198. <p>商品价值:{{information.Product.ProductPrice}}元</p>
  199. </view>
  200. <view style="margin-right: 20rpx;font-size: 30rpx;">
  201. <p>任务形式:{{information.project_form}}</p>
  202. </view>
  203. </view>
  204. <view class="">
  205. <!-- <h3>产品规格</h3> -->
  206. <view class="">
  207. <uni-data-checkbox mode="tag" v-model="value" :localdata="sex">
  208. </uni-data-checkbox>
  209. </view>
  210. </view>
  211. <view class="" style=";margin-bottom: 50rpx; ">
  212. <p style="font-size: 30rpx;">合作选择(平台账号不达标不能选择)</p>
  213. <view class="tip_box" style="margin-top: 0;" v-if="showWarning">
  214. <view class="container"
  215. style="margin-right: 300rpx;background-color: #f24632;border-radius: 10rpx">
  216. <view class="tips">
  217. <p style="font-size: 24rpx;color: #fff">请选择合作方式</p>
  218. </view>
  219. </view>
  220. </view>
  221. <view id="coop_box" v-if="hackReset">
  222. <view v-for="item in coop_choice" :key="item.strategy_id">
  223. <view class="coop_box_btn"
  224. :class="strategy_id===item.strategy_id?'borderColor':''"
  225. @click="handleCoopClick(item)">
  226. <p>粉丝量:{{item.show_followers_low}}-{{item.show_followers_up}}</p>
  227. <view style="display: flex;align-items: center;justify-content: center;">
  228. <p>稿费:{{item.fee_form_t}}</p>
  229. <view v-if="item.fee_form===3">
  230. <input class="offer_input" type="number" placeholder="请输入"
  231. v-model="item.offer" />
  232. </view>
  233. <view v-if="item.fee_form===3">
  234. <p>元</p>
  235. </view>
  236. </view>
  237. </view>
  238. <view class="tip_box" v-if="item.showWarning">
  239. <view class="container"
  240. style="margin-right: 200rpx;background-color: #f24632;border-radius: 10rpx">
  241. <view class="tips">
  242. <p style="font-size: 24rpx;color: #fff">
  243. {{item.warningText}}
  244. </p>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. </view>
  251. <view class="butto">
  252. <button class="mini-btn1" size="mini" @tap="Reset"
  253. style="background-color: #FFFFFF;margin-right: 50rpx;">更新账号信息</button>
  254. <button class="mini-btn2" size="mini" @tap="determine"
  255. style="background-color: #f2d22d;">立即报名</button>
  256. </view>
  257. </view>
  258. </view>
  259. </uni-popup>
  260. </view>
  261. <view>
  262. <!-- 底部普通弹窗 -->
  263. <uni-popup ref="popup1" background-color="#fff" @change="change" style="border-radius: 20rpx;">
  264. <view class="popup-content1" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  265. <view
  266. style="display: flex; justify-content: space-around; margin-top: 10% ;margin-bottom: 3% ;">
  267. <view>
  268. <button class="tii2" data-name="shareBtn" open-type="share">
  269. <view class="circular" style="margin-top: 10% ;">
  270. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/taskw.png"
  271. mode=""></image>
  272. </view>
  273. <p class="tii">发送给朋友</p>
  274. </button>
  275. </view>
  276. <view>
  277. <button class="tii2" @click="toggle2('center')">
  278. <view class="circular" style="margin-top: 10% ;">
  279. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/taske.png"
  280. mode=""></image>
  281. </view>
  282. <p class="tii">生成分享码</p>
  283. </button>
  284. </view>
  285. </view>
  286. <button type="default" class="errar" @click="cancel()">取消</button>
  287. </view>
  288. </uni-popup>
  289. </view>
  290. <uni-popup ref="popup2" class="share1" background-color="#fff" @change="change">
  291. <view class="popup-content">
  292. <image :src="canvasUrl" mode="widthFix" style="width: 300px;height: 420px;margin-top: 30rpx;">
  293. </image>
  294. <mosoweCanvas ref="mosoweCanvasComponents" @canvasImage="_canvasImage" :lists="lists" height="420"
  295. width="300" imgType="png" />
  296. <view class="" style="text-align: center;margin: 5% 0;">
  297. <button class="butmin" size="mini" @tap="saveImage">保存</button>
  298. </view>
  299. </view>
  300. </uni-popup>
  301. </view>
  302. </view>
  303. </template>
  304. <script>
  305. import mosoweCanvas from "@/components/mosowe-canvas-image/mosowe-canvas-image";
  306. import mvBar from "@/components/mys_navBar/mysNavBar";
  307. import zSwiper from '@/components/z-swiper/index.vue'; // npm安装
  308. import {
  309. getQueryString,
  310. fansview,
  311. money
  312. } from '@/components/utils.js';
  313. import {
  314. saveImageToPhotosAlbum,
  315. showToast,
  316. // downloadFile
  317. } from '@/uni_modules/sakura-canvas/js_sdk/util'
  318. export default {
  319. filters: {
  320. ellipsis(value) {
  321. if (!value) return "";
  322. if (value.length > 30) {
  323. return value.slice(0, 30) + "...";
  324. }
  325. return value;
  326. },
  327. },
  328. components: {
  329. mvBar,
  330. zSwiper,
  331. mosoweCanvas
  332. },
  333. data() {
  334. return {
  335. coopStrategy: "点击报名后显示",
  336. navH: getApp().globalData.navHeight,
  337. canvasUrl: '',
  338. hackReset: true,
  339. showWarning: false,
  340. arrowMargin: 0,
  341. cotainerMargin: 0,
  342. screenWidth: 0,
  343. hasNoProjectPhoto: false,
  344. briefType: '',
  345. picture: {
  346. icon_copy: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-copy.png',
  347. icon_word: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-word.png',
  348. icon_pdf: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-pdf.png',
  349. },
  350. ddl: "",
  351. loading: true,
  352. isSign: 0,
  353. strategy_id: 0,
  354. strategy: null,
  355. input_offer: 0.0,
  356. chooseBtn: 0,
  357. share: {
  358. title: "",
  359. path: '',
  360. imageUrl: '',
  361. desc: '',
  362. content: ''
  363. },
  364. poster: {},
  365. posterImg: '',
  366. canvasId: 'myCanvas',
  367. img: '',
  368. younggee_logo: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/younggee_logo.png",
  369. task_type_info: ["实体商品寄拍", "虚拟产品测评", "线下探店打卡"],
  370. talent_type_info: ["不限", "美妆", "美食", "生活", "时尚", "测评", "旅行", "汽车", "萌宠", "游戏", "音乐", "舞蹈", "房产", "情感",
  371. "三农",
  372. "园艺", "随拍", "图文控", "二次元", "母婴亲子", "颜值达人", "剧情搞笑", "运动健身", "家居家装", "科技数码", "教育培训", "才艺技能", "艺术文化",
  373. "财经投资",
  374. ],
  375. product_types: [{
  376. value: 1,
  377. label: '3C及电器'
  378. },
  379. {
  380. value: 2,
  381. label: '食品饮料'
  382. },
  383. {
  384. value: 3,
  385. label: '服装配饰'
  386. },
  387. {
  388. value: 4,
  389. label: '医疗'
  390. },
  391. {
  392. value: 5,
  393. label: '房地产'
  394. },
  395. {
  396. value: 6,
  397. label: '家居建材'
  398. },
  399. {
  400. value: 7,
  401. label: '教育培训'
  402. },
  403. {
  404. value: 8,
  405. label: '出行旅游'
  406. },
  407. {
  408. value: 9,
  409. label: '游戏'
  410. },
  411. {
  412. value: 10,
  413. label: '互联网平台'
  414. },
  415. {
  416. value: 11,
  417. label: '汽车'
  418. },
  419. {
  420. value: 12,
  421. label: '文体娱乐'
  422. },
  423. {
  424. value: 13,
  425. label: '影视传媒'
  426. },
  427. {
  428. value: 14,
  429. label: '线下店铺'
  430. },
  431. {
  432. value: 15,
  433. label: '软件服务'
  434. },
  435. {
  436. value: 16,
  437. label: '美妆'
  438. },
  439. {
  440. value: 17,
  441. label: '母婴宠物'
  442. },
  443. {
  444. value: 18,
  445. label: '日化'
  446. },
  447. {
  448. value: 19,
  449. label: '其他'
  450. }
  451. ],
  452. title: '[东鑫记港式茶餐厅]南京东路|魔都新晋爆款茶餐厅来袭!99元抢门',
  453. price: '',
  454. tips: '识别二维码\n立即申请任务',
  455. head: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task15.png',
  456. big: '',
  457. tabBarStyle: {},
  458. activeTab: 0,
  459. hei: '',
  460. hei1: '',
  461. topp0: '',
  462. topp1: '',
  463. topp2: '',
  464. scrollTop: '',
  465. activeColor: '#f2d22d',
  466. value: '',
  467. value1: '',
  468. sex: [],
  469. coop_choice: [],
  470. type: 'center',
  471. type1: 'center',
  472. type2: 'center',
  473. item: {
  474. title: '0'
  475. },
  476. // 视频轮播
  477. fullScreen: true,
  478. topFloat: true,
  479. fotterFloat: true,
  480. // 指示器样式
  481. mode: 'circle',
  482. indicatorPos: 'bottomCenter',
  483. carousel_images: ['https://img2.baidu.com/it/u=2141851239,1037607188&fm=26&fmt=auto&gp=0.jpg',
  484. 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  485. ],
  486. dotIndex: 0, //指示器索引
  487. dotFloatIndex: 0, //位置指示器索引
  488. //轮播图
  489. swiper: {
  490. margin: "150rpx",
  491. index: 0,
  492. list: [
  493. ]
  494. },
  495. tar: false,
  496. mysNavConfig: {
  497. /* 占位开启 */
  498. // navPadding: true,
  499. /* 背景 */
  500. // bgColor: "#f8f8f8",
  501. /* 开启单页显示首页图标 */
  502. isHome: false,
  503. /* 固定导航 */
  504. navFixed: true,
  505. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  506. navTitle: {
  507. text: "任务详情",
  508. color: "",
  509. fontSize: "32rpx", // px upx rpx
  510. fontWeight: "", // 100 - 700
  511. },
  512. btnType: "type2",
  513. onLeftClick: '',
  514. /* type2 按钮 */
  515. type2Config: {
  516. // 左图标
  517. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png2.png",
  518. // 右图标
  519. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png4.png",
  520. // 圆角
  521. radius: "40rpx",
  522. },
  523. },
  524. projectid: '',
  525. talent: {},
  526. account: [],
  527. information: {},
  528. zhanghaocode: '',
  529. product_detail_images: [],
  530. codeImg: '',
  531. queryAll: '',
  532. token: '',
  533. };
  534. },
  535. onShareAppMessage(res) {
  536. return {
  537. title: this.share.title,
  538. path: 'pages/tasksquare/taskdetail?id=' + this.projectid,
  539. imageUrl: this.share.imageUrl,
  540. desc: '',
  541. content: '',
  542. success(res) {
  543. uni.showToast({
  544. title: '分享成功'
  545. })
  546. },
  547. fail(res) {
  548. uni.showToast({
  549. title: '分享失败',
  550. icon: 'none'
  551. })
  552. }
  553. }
  554. },
  555. computed: {
  556. lists: {
  557. get() {
  558. let tmplist = [
  559. // 大图
  560. {
  561. type: 'image',
  562. content: this.img,
  563. width: 300,
  564. height: 320,
  565. x: 0,
  566. y: 0,
  567. },
  568. // 标题
  569. {
  570. type: 'text',
  571. content: this.title,
  572. color: '#333333',
  573. weight: 'bold',
  574. size: '12px',
  575. width: 200,
  576. height: 20,
  577. x: 20,
  578. y: 340,
  579. },
  580. // 文案1
  581. {
  582. type: 'text',
  583. content: "招募人数:" + this.information.taskNum,
  584. color: '#333333',
  585. size: '10px',
  586. width: 60,
  587. height: 20,
  588. x: 20,
  589. y: 370,
  590. },
  591. // 文案2
  592. {
  593. type: 'text',
  594. content: "扫码立即报名",
  595. color: '#333333',
  596. size: '10px',
  597. width: 60,
  598. height: 20,
  599. x: 110,
  600. y: 370,
  601. },
  602. // logo
  603. // {
  604. // type: 'image',
  605. // content: this.younggee_logo,
  606. // width: 120,
  607. // height: 50,
  608. // x: 10,
  609. // y: 370,
  610. // },
  611. // 文案3
  612. {
  613. type: 'text',
  614. content: "发布任务请登录",
  615. color: '#333333',
  616. size: '10px',
  617. width: 70,
  618. height: 20,
  619. x: 20,
  620. y: 400,
  621. },
  622. {
  623. type: 'text',
  624. content: "www.younggee.com",
  625. color: '#333333',
  626. size: '10px',
  627. // style: 'italic',
  628. width: 60,
  629. height: 20,
  630. x: 90,
  631. y: 400,
  632. },
  633. // 二维码
  634. {
  635. type: 'qr',
  636. content: this.head,
  637. projectid: this.projectid,
  638. width: 80,
  639. height: 80,
  640. x: 215,
  641. y: 325,
  642. },
  643. ]
  644. return tmplist
  645. },
  646. set() {}
  647. }
  648. },
  649. async created() {},
  650. async onShow() {
  651. // 判断登录
  652. await this.isLogin();
  653. if (this.token === '') {
  654. uni.showModal({
  655. content: '请先登录',
  656. success: function(res) {
  657. if (res.confirm) {
  658. uni.navigateTo({
  659. url: '/pages/login/login'
  660. });
  661. } else if (res.cancel) {
  662. uni.navigateBack();
  663. }
  664. }
  665. });
  666. } else {
  667. this.loading = true;
  668. uni.showLoading({
  669. title: '加载中'
  670. });
  671. this.getTalentInfo();
  672. await this.getProjectDetail();
  673. await this.getTalentAccountInfo();
  674. if (this.account.length != 0) {
  675. await this.isSignUp();
  676. }
  677. this.loading = false;
  678. uni.hideLoading();
  679. }
  680. },
  681. onLoad(options) {
  682. // if (options.q) {
  683. // let queryAll = decodeURIComponent(options.q);
  684. // this.projectid = getQueryString(queryAll, 'id')
  685. // } else {
  686. // this.projectid = options.id
  687. // }
  688. console.log(options)
  689. const scene = decodeURIComponent(options.scene);
  690. if (scene != "undefined") {
  691. this.projectid = scene;
  692. } else {
  693. this.projectid = options.id
  694. }
  695. this.share.path = 'https://younggee.com/wxapp/taskdetail?action=taskdetail&id=' + this.projectid
  696. console.log("share path: ", this.share.path)
  697. this.postlist()
  698. },
  699. onReady() { // 注意:想要拿到元素实例,需要在实例已经挂载到页面上才可以
  700. this.init();
  701. },
  702. methods: {
  703. handleCopy(content) {
  704. wx.setClipboardData({
  705. data: content,
  706. success: function(res) {
  707. console.log("复制成功");
  708. }
  709. });
  710. },
  711. postlist() {
  712. // uni.showModal({
  713. // content: "项目id为:"+this.projectid,
  714. // })
  715. this.$https.post('/youngee/c/p/get-qrcode', {
  716. scene: this.projectid,
  717. page: 'pages/tasksquare/taskdetail',
  718. // scene: this.taskid,
  719. // page: 'pages/task/taskdetails',
  720. })
  721. .then(res => {
  722. console.log(res)
  723. this.head = 'data:image/png;base64,' + res.data.data;
  724. })
  725. },
  726. init() {
  727. let rect = uni.getMenuButtonBoundingClientRect();
  728. let screenWidth = uni.getSystemInfoSync().screenWidth;
  729. this.arrowMargin = rect.width * 0.75 + 4;
  730. this.cotainerMargin = screenWidth - rect.right;
  731. },
  732. // 判断登陆是否过期
  733. isLogin() {
  734. return this.$https.get('/youngee/c/t/g/is-login')
  735. .then(res => {
  736. if (res.data.code === 403) {
  737. // 登陆已失效
  738. this.token = ""
  739. } else {
  740. this.token = uni.getStorageSync('token')
  741. }
  742. })
  743. },
  744. handlePreviewImage1(item) {
  745. console.log("image src: ", item)
  746. let that = this
  747. wx.previewImage({
  748. current: item, // 当前显示图片的http链接
  749. urls: that.carousel_images // 需要预览的图片http链接列表
  750. })
  751. },
  752. handleCoopClick(value) {
  753. if (this.account[0].fans_count < value.followers_low) {
  754. for (let i = 0; i < this.coop_choice.length; ++i) {
  755. if (value.strategy_id === this.coop_choice[i].strategy_id) {
  756. this.coop_choice[i].showWarning = true;
  757. this.hackReset = false;
  758. this.hackReset = true;
  759. this.coop_choice[i].warningText = "不符合报名条件";
  760. setTimeout(() => {
  761. this.coop_choice[i].showWarning = false;
  762. this.hackReset = false;
  763. this.hackReset = true;
  764. }, 2000)
  765. }
  766. }
  767. } else {
  768. this.strategy_id = value.strategy_id;
  769. this.strategy = value;
  770. }
  771. },
  772. getProjectDetail() {
  773. return this.$https.get('/youngee/c/t/g/get-project-detail' +
  774. "?" +
  775. "projectid" +
  776. "=" +
  777. this.projectid
  778. ).then(res => {
  779. if (res.data.code === 0) {
  780. console.log("res: ", res)
  781. this.information = res.data.data
  782. this.hasNoProjectPhoto = this.information.ProjectPhoto === null ? true : false;
  783. if (!this.hasNoProjectPhoto) {
  784. for (let i = 0; i < this.information.ProjectPhoto.length; ++i) {
  785. let url = this.information.ProjectPhoto[i].photo_url
  786. this.briefType = url.split('.').pop()
  787. }
  788. }
  789. this.information.Product = JSON.parse(res.data.data.product_snap);
  790. this.information.Product.ProductPhoto = JSON.parse(res.data.data.product_photo_snap);
  791. this.information.Product.ProductPrice = money(this.information.Product.ProductPrice)
  792. // 分享图里的
  793. for (let i = 0; i < this.information.Product.ProductPhoto.length; i++) {
  794. if (this.information.Product.ProductPhoto[i].Symbol === 1) {
  795. this.img = this.information.Product.ProductPhoto[i].PhotoUrl
  796. this.share.imageUrl = this.information.Product.ProductPhoto[i].PhotoUrl
  797. }
  798. }
  799. this.title = this.information.project_name
  800. this.share.title = this.information.project_name
  801. this.price = this.information.Product.ProductPrice
  802. this.information.Product.ProductType = this.product_types[parseInt(this.information
  803. .Product
  804. .ProductType) - 1].label
  805. // 轮播图、详情图
  806. this.carousel_images = []
  807. // this.product_detail_images = []
  808. for (let i = 0; i < this.information.Product.ProductPhoto.length; i++) {
  809. if (this.information.Product.ProductPhoto[i].Symbol != 3) {
  810. this.carousel_images.push(this.information.Product.ProductPhoto[i].PhotoUrl)
  811. }
  812. }
  813. // 任务数量
  814. this.information.taskNum = 0
  815. for (let j = 0; j < this.information.RecruitStrategy.length; j++) {
  816. this.information.taskNum = Number(this.information.taskNum) + Number(this
  817. .information
  818. .RecruitStrategy[j]
  819. .recruit_number)
  820. }
  821. // 任务类型
  822. this.information.project_form = this.task_type_info[this.information.project_form - 1]
  823. // 创作者类型
  824. let arr = JSON.parse(this.information.talent_type)
  825. console.log("创作者类型:", arr)
  826. this.information.talent_type = []
  827. // if (arr.length === 0) this.information.talent_type.push("不限")
  828. for (var j = 0; j < arr.length; ++j) {
  829. this.information.talent_type.push(this.talent_type_info[arr[j]])
  830. }
  831. // 粉丝数要求
  832. this.information.Numfensi = []
  833. for (let i = 0; i < this.information.RecruitStrategy.length; ++i) {
  834. let fensi = this.information.RecruitStrategy[i].followers_low + ' - ' + this
  835. .information
  836. .RecruitStrategy[i].followers_up
  837. this.information.Numfensi.push(fensi)
  838. }
  839. // 任务形式
  840. if (this.information.content_type === 1) this.information.content = "图文"
  841. else if (this.information.content_type === 2) this.information.content = "视频"
  842. // 判断是否已报名结束
  843. var newdate = new Date()
  844. var endTime = new Date(this.information.recruit_ddl.replace(
  845. /-/g, "/"));
  846. this.ddl = endTime - newdate < 0 || this.information.project_status > 4 ? 1 : 0
  847. // 报名截止日期
  848. this.information.recruit_ddl = this.information.recruit_ddl.substr(0, 10);
  849. // 合作选择
  850. this.coop_choice = this.information.RecruitStrategy
  851. for (let i = 0; i < this.coop_choice.length; ++i) {
  852. this.coop_choice[i].showWarning = false
  853. this.coop_choice[i].warningText = "不符合报名条件"
  854. this.coop_choice[i].offer = null
  855. this.coop_choice[i].show_followers_low = fansview(this.coop_choice[i].followers_low)
  856. this.coop_choice[i].show_followers_up = fansview(this.coop_choice[i].followers_up)
  857. let fee_form = this.coop_choice[i].fee_form
  858. this.coop_choice[i].fee_form_t = fee_form === 1 ? '产品置换' : (fee_form === 2 ? '固定稿费' +
  859. money(this.coop_choice[i].t_offer) + '元' :
  860. '创作者自报价')
  861. }
  862. }
  863. })
  864. },
  865. // 达人信息
  866. getTalentInfo() {
  867. return this.$https.get('/youngee/c/t/g/get-talent-info')
  868. .then(res => {
  869. this.talent = res.data.data
  870. })
  871. },
  872. //账号信息
  873. getTalentAccountInfo() {
  874. return this.$https.get('/youngee/c/t/g/get-talent-account')
  875. .then(res => {
  876. var accounts = res.data.data
  877. this.account = []
  878. if (res.data.code != -3) {
  879. for (var i = 0; i < accounts.length; i++) {
  880. if (this.information.project_platform === accounts[i].platform_id) {
  881. this.account.push(accounts[i])
  882. }
  883. }
  884. }
  885. })
  886. },
  887. isSignUp() {
  888. return this.$https.get('/youngee/c/t/g/is-sign-up-task' +
  889. "?" +
  890. "project_id" +
  891. "=" +
  892. this.projectid)
  893. .then(res => {
  894. console.log(res);
  895. let task;
  896. if (res.data.code === 0) {
  897. this.isSign = res.data.data.is_sign;
  898. task = res.data.data.task_info
  899. }
  900. if (this.isSign) {
  901. for (let i = 0; i < this.coop_choice.length; ++i) {
  902. if (this.coop_choice[i].strategy_id === task.strategy_id) {
  903. let fee_form = this.coop_choice[i].fee_form
  904. this.coopStrategy = fee_form === 1 ? '产品置换' : (fee_form === 2 ? '固定稿费' +
  905. money(task.task_reward) + '元' :
  906. '创作者自报价' + money(task.task_reward) + '元')
  907. }
  908. }
  909. }
  910. })
  911. },
  912. onPageScroll(res) {
  913. uni.$emit('onPageScroll', res.scrollTop);
  914. this.scrollTop = res.scrollTop;
  915. // console.log(res.scrollTop);
  916. if (res.scrollTop <= this.topp1 - this.hei1) {
  917. // console.log(0)
  918. this.activeTab = 0
  919. }
  920. if (res.scrollTop > this.topp1 - this.hei1 && res.scrollTop < this.topp2 - this.hei1) {
  921. // console.log(1)
  922. this.activeTab = 1
  923. }
  924. if (res.scrollTop > this.topp2 - this.hei1) {
  925. // console.log(2)
  926. this.activeTab = 2
  927. }
  928. },
  929. //获取节点离顶部高度
  930. getInfo() {
  931. const query = uni.createSelectorQuery().in(this);
  932. query.select('#wrap0').boundingClientRect(data => {
  933. this.topp0 = data.top
  934. }).exec();
  935. query.select('#wrap1').boundingClientRect(data => {
  936. this.topp1 = data.top
  937. }).exec();
  938. query.select('#wrap2').boundingClientRect(data => {
  939. this.topp2 = data.top
  940. // console.log(this.topp2)
  941. }).exec();
  942. query.select('#wap').boundingClientRect(data => {
  943. // console.log(data)
  944. this.hei = data.height
  945. this.tabBarStyle = {
  946. height: data.height + data.height + 'px',
  947. width: '100% ',
  948. }
  949. }).exec();
  950. query.select('#wa').boundingClientRect(data => {
  951. // console.log(data)
  952. this.hei1 = data.height
  953. }).exec();
  954. },
  955. //视频轮播
  956. effect3dMarginMethed() {
  957. this.effect3dMargin++
  958. },
  959. //swiper滑动事件
  960. swiperChange: function(e) {
  961. this.swiper.index = e.detail.current;
  962. },
  963. //底部弹出层
  964. change(e) {
  965. console.log('当前模式:' + e.type + ',状态:' + e.show);
  966. },
  967. toggle(type) {
  968. let that = this
  969. if (that.talent.is_bind_location === 0) {
  970. // 前往个人信息绑定三合一界面
  971. uni.showModal({
  972. content: '请先绑定个人信息',
  973. success: function(res) {
  974. if (res.confirm) {
  975. if (that.account.length === 0) {
  976. uni.navigateTo({
  977. url: '/pages/tasksquare/bindinfo?platform_id=' + that
  978. .information.project_platform
  979. })
  980. } else {
  981. uni.navigateTo({
  982. url: '/pages/tasksquare/bindinfo?platform_id=' +
  983. that.information.project_platform +
  984. '&account_id=' +
  985. that.account[0].account_id
  986. })
  987. };
  988. } else if (res.cancel) {
  989. console.log('用户点击取消');
  990. }
  991. }
  992. });
  993. } else if (that.account.length === 0) {
  994. uni.showModal({
  995. content: '请先绑定社媒账号',
  996. success: function(res) {
  997. if (res.confirm) {
  998. uni.navigateTo({
  999. url: '/pages/mycenter/myinformation/bindaccount?platform_id=' +
  1000. that.information.project_platform
  1001. });
  1002. } else if (res.cancel) {
  1003. console.log('用户点击取消');
  1004. }
  1005. }
  1006. });
  1007. } else {
  1008. that.type = type
  1009. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1010. that.$refs.popup.open(type)
  1011. }
  1012. },
  1013. toggle1(type) {
  1014. this.type1 = type
  1015. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1016. this.$refs.popup1.open(type)
  1017. },
  1018. cancel() {
  1019. this.$refs.popup1.close()
  1020. },
  1021. // 更新账号
  1022. Reset() {
  1023. console.log("Reset func running")
  1024. uni.navigateTo({
  1025. url: '/pages/mycenter/myinformation/bindaccount?platform_id=' + this
  1026. .information
  1027. .project_platform + '&account_id=' + this.account[0].account_id,
  1028. success(res) {
  1029. console.log(res);
  1030. },
  1031. fail(err) {
  1032. console.log(err);
  1033. }
  1034. });
  1035. },
  1036. //进入信息确认页面
  1037. determine() {
  1038. console.log(this.strategy_id)
  1039. if (this.strategy_id === 0 || this.strategy === null) {
  1040. this.showWarning = true;
  1041. setTimeout(() => {
  1042. this.showWarning = false;
  1043. }, 2000)
  1044. return
  1045. }
  1046. let index = 0;
  1047. for (let i = 0; i < this.coop_choice.length; ++i) {
  1048. if (this.strategy_id === this.coop_choice[i].strategy_id) {
  1049. index = i
  1050. }
  1051. }
  1052. if (this.account[0].fans_count < this.strategy.followers_low) {
  1053. this.coop_choice[index].warningText = "粉丝量不符合报名条件"
  1054. this.coop_choice[index].showWarning = true;
  1055. this.hackReset = false;
  1056. this.hackReset = true;
  1057. setTimeout(() => {
  1058. this.coop_choice[index].showWarning = false;
  1059. this.hackReset = false;
  1060. this.hackReset = true;
  1061. }, 2000)
  1062. } else if (this.strategy.fee_form === 3 && (this.strategy.offer === 0 || this.strategy.offer === null)) {
  1063. this.coop_choice[index].warningText = "请填写自报价金额"
  1064. this.coop_choice[index].showWarning = true;
  1065. this.hackReset = false;
  1066. this.hackReset = true;
  1067. setTimeout(() => {
  1068. this.coop_choice[index].showWarning = false;
  1069. this.hackReset = false;
  1070. this.hackReset = true;
  1071. }, 2000)
  1072. } else {
  1073. this.$refs.popup.close()
  1074. this.strategy.offer = parseInt(this.strategy.offer)
  1075. this.strategy.showOffer = money(this.strategy.offer)
  1076. var data = {
  1077. projectid: this.projectid,
  1078. information: this.information,
  1079. account: this.account[0].account_id,
  1080. strategy: this.strategy,
  1081. },
  1082. data = JSON.stringify(data)
  1083. console.log("data")
  1084. console.log(data)
  1085. uni.navigateTo({
  1086. url: '/pages/tasksquare/information?textObj=' + encodeURIComponent(data)
  1087. });
  1088. }
  1089. },
  1090. beginCanvas() {
  1091. this.$refs.mosoweCanvasComponents.createCanvas();
  1092. },
  1093. _canvasImage(e) {
  1094. console.log("url", e)
  1095. this.canvasUrl = e;
  1096. },
  1097. // 保存图片
  1098. async saveImage() {
  1099. let {
  1100. canvasUrl
  1101. } = this
  1102. let res = await saveImageToPhotosAlbum(canvasUrl)
  1103. if (!res.success) return
  1104. showToast('保存成功')
  1105. this.$refs.popup2.close()
  1106. },
  1107. toggle2(type) {
  1108. if (this.canvasUrl !== '') {
  1109. this.type2 = type
  1110. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1111. this.$refs.popup2.open(type)
  1112. this.$refs.popup1.close()
  1113. } else {
  1114. this.beginCanvas()
  1115. this.type2 = type
  1116. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1117. this.$refs.popup2.open(type)
  1118. this.$refs.popup1.close()
  1119. }
  1120. },
  1121. deletContract() {
  1122. try {
  1123. let file = wx.getFileSystemManager();
  1124. file.readdir({
  1125. dirPath: `${wx.env.USER_DATA_PATH}`,
  1126. success: res => {
  1127. console.log(res);
  1128. if (res.files.length > 2) {
  1129. file.unlink({
  1130. filePath: `${wx.env.USER_DATA_PATH}/${res.files[0]}`,
  1131. complete: res => {
  1132. }
  1133. })
  1134. }
  1135. }
  1136. })
  1137. } catch (error) {
  1138. }
  1139. },
  1140. downloadFile(url, file) {
  1141. let that = this
  1142. console.log(url, file)
  1143. // const fileName = url.split('/').pop()
  1144. const newPath = `${wx.env.USER_DATA_PATH}/${file}`;
  1145. that.deletContract();
  1146. wx.showLoading({
  1147. title: '正在打开',
  1148. mask: true
  1149. })
  1150. wx.downloadFile({
  1151. url: url,
  1152. filePath: newPath,
  1153. header: {},
  1154. success: function(res) {
  1155. var filePath = res.filePath;
  1156. console.log(filePath);
  1157. wx.openDocument({
  1158. filePath: filePath,
  1159. showMenu: true,
  1160. success: function(res) {
  1161. console.log('打开文档成功')
  1162. wx.hideLoading()
  1163. },
  1164. fail: function(res) {
  1165. console.log(res);
  1166. wx.hideLoading()
  1167. },
  1168. complete: function(res) {
  1169. console.log(res);
  1170. }
  1171. })
  1172. },
  1173. fail: function(res) {
  1174. console.log('文件下载失败');
  1175. console.log(res)
  1176. },
  1177. complete: function(res) {},
  1178. })
  1179. },
  1180. }
  1181. };
  1182. </script>
  1183. <style>
  1184. /deep/ .share1 .uni-popup .uni-popup__wrapper {
  1185. width: 300px !important;
  1186. /* height: 500px !important; */
  1187. display: flex;
  1188. flex-direction: column;
  1189. align-items: center;
  1190. border-radius: 15rpx !important;
  1191. }
  1192. /deep/ .share.uni-popup .uni-popup__wrapper {
  1193. width: 70%;
  1194. border-radius: 15rpx;
  1195. }
  1196. </style>
  1197. <style lang="scss" scoped>
  1198. text {
  1199. font-size: 24rpx;
  1200. }
  1201. #coop_box {
  1202. // display: flex;
  1203. margin-top: 15rpx;
  1204. }
  1205. #coop_box .coop_box_btn {
  1206. display: flex;
  1207. flex-direction: column;
  1208. justify-content: center;
  1209. align-items: center;
  1210. // width: 700rpx;
  1211. background-color: #f4f4f4;
  1212. border-radius: 15rpx;
  1213. font-size: 30rpx;
  1214. text-align: center;
  1215. cursor: pointer;
  1216. margin: 40rpx 0;
  1217. padding: auto 10rpx;
  1218. }
  1219. .borderColor {
  1220. border: 2px solid #f7d43c !important;
  1221. }
  1222. .offer_input {
  1223. width: 120rpx;
  1224. border: 1px solid #cccccc;
  1225. }
  1226. .wvp {
  1227. color: #000;
  1228. margin: 0 5rpx;
  1229. }
  1230. .wvp1 {
  1231. padding: 0 30rpx;
  1232. border-radius: 10rpx;
  1233. margin: 0 10rpx;
  1234. background-color: #f2d22d;
  1235. border: 10rpx;
  1236. }
  1237. .my-canvas {
  1238. position: fixed;
  1239. top: -99999999999rpx;
  1240. left: -99999999999rpx;
  1241. z-index: -99999999999;
  1242. opacity: 0;
  1243. }
  1244. .poster {
  1245. width: 100vw;
  1246. height: 100vh;
  1247. display: flex;
  1248. flex-flow: column nowrap;
  1249. justify-content: center;
  1250. overflow: hidden;
  1251. }
  1252. .butmin {
  1253. width: 200rpx;
  1254. height: 65rpx;
  1255. background-color: #f2d22d;
  1256. border-radius: 20rpx;
  1257. font-size: 36rpx;
  1258. line-height: 2;
  1259. }
  1260. //视频轮播
  1261. .full {
  1262. position: relative;
  1263. .btns {
  1264. position: absolute;
  1265. background-color: rgba(255, 255, 255, 0.5);
  1266. z-index: 1;
  1267. left: 100rpx;
  1268. top: 50rpx;
  1269. right: 100rpx;
  1270. display: flex;
  1271. justify-content: space-around;
  1272. flex-wrap: wrap;
  1273. >view {
  1274. height: 60rpx;
  1275. line-height: 60rpx;
  1276. text-align: center;
  1277. padding: 0 20rpx;
  1278. }
  1279. &.full {
  1280. position: relative;
  1281. left: 0;
  1282. right: 0;
  1283. >view {
  1284. height: 60rpx;
  1285. line-height: 60rpx;
  1286. text-align: center;
  1287. padding: 0 20rpx;
  1288. background-color: rgba(0, 0, 0, 0.1);
  1289. margin-bottom: 10rpx;
  1290. }
  1291. }
  1292. }
  1293. }
  1294. //轮播图
  1295. page {
  1296. background-color: #fff;
  1297. }
  1298. .top-swiper {
  1299. margin-bottom: 30rpx;
  1300. .bg {
  1301. padding-top: var(--status-bar-height);
  1302. box-sizing: content-box;
  1303. width: 100%;
  1304. position: relative;
  1305. .image {
  1306. box-sizing: content-box;
  1307. position: absolute;
  1308. z-index: 1;
  1309. top: 0;
  1310. left: 0;
  1311. width: 100%;
  1312. height: 100%;
  1313. overflow: hidden;
  1314. &::after {
  1315. content: '';
  1316. position: absolute;
  1317. width: 100%;
  1318. height: 100%;
  1319. z-index: 1;
  1320. bottom: 0;
  1321. left: 0;
  1322. height: 65%;
  1323. background-image: linear-gradient(to bottom, transparent, #FFF);
  1324. }
  1325. >image {
  1326. position: absolute;
  1327. box-sizing: content-box;
  1328. padding: 60px;
  1329. top: 0;
  1330. left: 0;
  1331. width: 100%;
  1332. height: 80%;
  1333. top: -60px;
  1334. left: -60px;
  1335. filter: blur(50px);
  1336. }
  1337. }
  1338. }
  1339. .box {
  1340. padding-top: var(--status-bar-height);
  1341. box-sizing: content-box;
  1342. // position: absolute;
  1343. z-index: 5;
  1344. top: 0;
  1345. left: 0;
  1346. width: 100%;
  1347. height: auto;
  1348. }
  1349. .swiper {
  1350. height: 450rpx;
  1351. margin: 0 20rpx;
  1352. .le-img {
  1353. width: 100%;
  1354. height: 100%;
  1355. display: block;
  1356. transform: scale(0.8);
  1357. transition: transform 0.3s ease-in-out 0s;
  1358. border-radius: 4px;
  1359. &.le-active {
  1360. transform: scale(1);
  1361. }
  1362. }
  1363. }
  1364. }
  1365. //其他的
  1366. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  1367. border-radius: 20rpx !important;
  1368. padding: 8rpx 30rpx !important;
  1369. border: 0 !important;
  1370. }
  1371. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  1372. font-size: 24rpx;
  1373. color: #333333;
  1374. }
  1375. .butto {
  1376. text-align: center;
  1377. }
  1378. .option {
  1379. padding: 20rpx;
  1380. }
  1381. //轮播图
  1382. .uni-margin-wrap {
  1383. width: 690rpx;
  1384. width: 100%;
  1385. }
  1386. .swiper {
  1387. height: 750rpx;
  1388. display: flex;
  1389. justify-content: center;
  1390. }
  1391. .swiper-item {
  1392. display: block;
  1393. width: 100%;
  1394. height: 750rpx;
  1395. line-height: 750rpx;
  1396. text-align: center;
  1397. }
  1398. .swiper-list {
  1399. margin-bottom: 0;
  1400. }
  1401. .uni-common-mt {
  1402. margin-top: 60rpx;
  1403. position: relative;
  1404. }
  1405. .info {
  1406. position: absolute;
  1407. right: 20rpx;
  1408. }
  1409. .uni-padding-wrap {
  1410. width: 550rpx;
  1411. padding: 0 100rpx;
  1412. }
  1413. .Tasktext {
  1414. // padding-top: 5% ;
  1415. padding: 0 0 0 1%;
  1416. // height: 80rpx;
  1417. margin-top: 2%;
  1418. }
  1419. .Tasktext span {
  1420. color: #333333;
  1421. font-size: 100%;
  1422. font-weight: 550;
  1423. text-indent: 2em;
  1424. }
  1425. .Tasktext image {
  1426. vertical-align: middle;
  1427. width: 50rpx;
  1428. height: 50rpx;
  1429. display: inline-block;
  1430. padding-right: 14rpx;
  1431. }
  1432. .TitleText {
  1433. height: 30rpx;
  1434. background-color: #FDD442;
  1435. border-radius: 20rpx;
  1436. display: inline-block;
  1437. padding: 0rpx 20rpx 0rpx 20rpx;
  1438. line-height: 30rpx;
  1439. margin-right: 20rpx;
  1440. margin-top: 6%;
  1441. }
  1442. .TitleText p {
  1443. color: #C49A0A;
  1444. font-size: 50%;
  1445. }
  1446. .introduction {
  1447. width: 100%;
  1448. margin: 0 auto;
  1449. display: flex;
  1450. justify-content: space-around;
  1451. margin-top: 2%;
  1452. }
  1453. .rleft p {
  1454. font-size: 24rpx;
  1455. }
  1456. .rright p {
  1457. font-size: 24rpx;
  1458. }
  1459. .tasks {
  1460. width: 100%;
  1461. margin: 0 auto;
  1462. display: flex;
  1463. justify-content: space-around;
  1464. margin-top: 5%;
  1465. }
  1466. .title-left {
  1467. width: 6rpx;
  1468. height: 80rpx;
  1469. background: #E2E2E2;
  1470. display: inline-block;
  1471. border-radius: 1rpx;
  1472. margin-top: 4rpx;
  1473. vertical-align: top;
  1474. }
  1475. .tasksleft p {
  1476. font-size: 30rpx;
  1477. text-align: center;
  1478. }
  1479. .tasksright p {
  1480. font-size: 30rpx;
  1481. text-align: center;
  1482. }
  1483. .interval {
  1484. width: 100%;
  1485. height: 40rpx;
  1486. background-color: #E4E4E4;
  1487. margin-top: 5%;
  1488. }
  1489. .circularmark {
  1490. margin: 2% auto;
  1491. width: 26%;
  1492. padding: 10rpx;
  1493. background-color: #f2d22d;
  1494. border-radius: 10rpx;
  1495. position: relative;
  1496. }
  1497. .circularmark p {
  1498. font-size: 85%;
  1499. text-align: center;
  1500. font-weight: 800;
  1501. }
  1502. .circularmark image {
  1503. width: 60rpx;
  1504. height: 68rpx;
  1505. position: absolute;
  1506. top: -30%;
  1507. left: -10%;
  1508. }
  1509. .btnn {
  1510. background-color: #3296FA;
  1511. border-radius: 20rpx;
  1512. font-size: 25rpx;
  1513. line-height: 34rpx;
  1514. }
  1515. .markcontent {
  1516. // width: 100%;
  1517. // background-color: #E4E4E4;
  1518. margin: 0 30rpx;
  1519. border-radius: 20rpx;
  1520. padding-top: 2%;
  1521. padding-bottom: 2%;
  1522. }
  1523. .markcontent p {
  1524. font-size: 24rpx;
  1525. }
  1526. .markcontent span {
  1527. font-size: 24rpx;
  1528. // color: #333333;
  1529. // margin: 3% ;
  1530. }
  1531. .interval2 {
  1532. width: 100%;
  1533. height: 100rpx;
  1534. background-color: #E4E4E4;
  1535. margin-top: 5%;
  1536. }
  1537. .markcontent1 {
  1538. width: 100%;
  1539. border-radius: 20rpx;
  1540. padding-top: 2%;
  1541. padding-bottom: 2%;
  1542. }
  1543. .markcontent1 p {
  1544. font-size: 24rpx;
  1545. // color: #333333;
  1546. // margin: 3% ;
  1547. // text-indent: 2em;
  1548. }
  1549. .trademark {
  1550. width: 120rpx;
  1551. height: 120rpx;
  1552. border-radius: 50%;
  1553. background-color: #f2d22d;
  1554. margin: 0 auto;
  1555. }
  1556. .trademark image {
  1557. width: 100%;
  1558. height: 100%;
  1559. }
  1560. .diagram {
  1561. width: 100%;
  1562. // height: 1000rpx;
  1563. }
  1564. .diagram image {
  1565. width: 100%;
  1566. // height: 100% ;
  1567. }
  1568. .diagram-pdf {
  1569. padding: 0 20rpx;
  1570. width: 100%;
  1571. height: 100rpx;
  1572. display: flex;
  1573. align-items: center;
  1574. justify-content: space-between;
  1575. }
  1576. .diagram-pdf image {
  1577. width: 60rpx;
  1578. height: 60rpx;
  1579. }
  1580. .diagram-pdf p {
  1581. width: 50%;
  1582. font-size: 32rpx;
  1583. }
  1584. .diagram-pdf button {
  1585. background-color: #FFFFFF;
  1586. border: 2rpx solid #f2d22d;
  1587. border-radius: 20rpx;
  1588. font-size: 32rpx;
  1589. // letter-spacing: 5rpx;
  1590. font-weight: 500;
  1591. position: relative;
  1592. }
  1593. .but1 {
  1594. width: 60%;
  1595. background-color: #f2d22d;
  1596. border-radius: 20rpx;
  1597. font-size: 36rpx;
  1598. line-height: 200%;
  1599. letter-spacing: 10rpx;
  1600. font-weight: 500;
  1601. height: 80%;
  1602. &.on {
  1603. background-color: #C0C0C0;
  1604. }
  1605. }
  1606. /** 必须提升样式优先权(!important) **/
  1607. button[disabled] {
  1608. width: 60%;
  1609. border-radius: 20rpx;
  1610. font-size: 36rpx;
  1611. line-height: 200%;
  1612. letter-spacing: 10rpx;
  1613. font-weight: 500;
  1614. height: 80%;
  1615. color: white !important;
  1616. background: #c4c1c1 !important;
  1617. }
  1618. .but2 {
  1619. width: 25%;
  1620. background-color: #FFFFFF;
  1621. border: 2rpx solid #f2d22d;
  1622. border-radius: 20rpx;
  1623. font-size: 36rpx;
  1624. line-height: 180%;
  1625. letter-spacing: 10rpx;
  1626. font-weight: 500;
  1627. position: relative;
  1628. text-indent: 0.5em;
  1629. height: 80%;
  1630. }
  1631. .but2 image {
  1632. width: 19%;
  1633. height: 56%;
  1634. position: absolute;
  1635. left: 9%;
  1636. top: 21%;
  1637. }
  1638. .signup {
  1639. box-shadow: 0rpx 5rpx 40rpx #ccc;
  1640. width: 100%;
  1641. position: fixed;
  1642. bottom: 0rpx;
  1643. display: flex;
  1644. height: 90rpx;
  1645. padding: 2% 0;
  1646. background-color: #FFFFFF;
  1647. }
  1648. .pick {
  1649. width: 50rpx;
  1650. height: 50rpx;
  1651. vertical-align: middle;
  1652. }
  1653. .nex {
  1654. width: 100rpx;
  1655. height: 20rpx;
  1656. vertical-align: middle;
  1657. }
  1658. .sampledrawing {
  1659. display: flex;
  1660. width: 96%;
  1661. margin: 0 auto 50rpx;
  1662. }
  1663. .samplecharacter {
  1664. flex: 1;
  1665. margin-top: 2%;
  1666. }
  1667. .samplecharacter p {
  1668. padding: 1%;
  1669. }
  1670. /deep/.uni-popup__content {
  1671. background-color: #4CD964;
  1672. border-radius: 20rpx !important;
  1673. }
  1674. /deep/.uni-popup__mask {
  1675. background: rgba(0, 0, 0, 0.5) !important;
  1676. }
  1677. .butto {
  1678. text-align: center;
  1679. }
  1680. /deep/ .mini-btn1 {
  1681. height: 75rpx;
  1682. width: 270rpx;
  1683. line-height: 70rpx;
  1684. margin: 10rpx 0;
  1685. font-size: 30rpx;
  1686. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  1687. border: 1rpx solid #f2d22d !important;
  1688. }
  1689. /deep/ .mini-btn2 {
  1690. height: 75rpx;
  1691. width: 350rpx;
  1692. line-height: 70rpx;
  1693. margin: 10rpx 0;
  1694. font-size: 30rpx;
  1695. background-color: #f2d22d;
  1696. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  1697. }
  1698. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag {
  1699. background-color: #FFFFFF !important;
  1700. box-shadow: 0rpx 0rpx 6rpx 0rpx #464100;
  1701. border-radius: 10rpx !important;
  1702. }
  1703. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  1704. background-color: #f2d22d !important;
  1705. }
  1706. /deep/.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked .checklist-text {
  1707. color: #333333 !important;
  1708. }
  1709. /deep/.buu .uni-data-checklist .checklist-group {
  1710. flex-direction: column !important;
  1711. }
  1712. .surplus p {
  1713. margin-bottom: 17%;
  1714. margin-top: 8%;
  1715. font-size: 80%;
  1716. }
  1717. .circular {
  1718. width: 120rpx;
  1719. height: 120rpx;
  1720. border-radius: 50%;
  1721. background-color: #28EA71;
  1722. margin: 0 auto;
  1723. }
  1724. .circular image {
  1725. width: 60%;
  1726. height: 60%;
  1727. padding: 20%;
  1728. }
  1729. .tii {
  1730. text-align: center;
  1731. font-size: 26rpx;
  1732. margin-top: 2%;
  1733. }
  1734. .tii2 {
  1735. text-align: center;
  1736. font-size: 26rpx;
  1737. margin-top: 2%;
  1738. background-color: #FFFFFF;
  1739. }
  1740. .errar {
  1741. background-color: #FFFFFF;
  1742. }
  1743. .sharepage {
  1744. width: 90%;
  1745. margin: 0 auto;
  1746. position: relative;
  1747. }
  1748. .Tasktext1 {
  1749. // padding-top: 5% ;
  1750. padding: 0 0 0 1%;
  1751. height: 80rpx;
  1752. margin-top: 7%;
  1753. text-align: center;
  1754. }
  1755. .Tasktext1 span {
  1756. color: #333333;
  1757. font-size: 100%;
  1758. font-weight: 550;
  1759. text-indent: 2em;
  1760. }
  1761. .Tasktext1 image {
  1762. vertical-align: middle;
  1763. width: 80rpx;
  1764. height: 80rpx;
  1765. display: inline-block;
  1766. padding-right: 14rpx;
  1767. }
  1768. .sharemap {
  1769. margin: 0 auto;
  1770. text-align: center;
  1771. margin-top: 5%;
  1772. }
  1773. .sharemap image {
  1774. width: 400rpx;
  1775. height: 400rpx;
  1776. }
  1777. .Tasktext2 {
  1778. // padding-top: 5% ;
  1779. padding: 0 0 0 1%;
  1780. // height: 80rpx;
  1781. margin-top: 2%;
  1782. // text-align: center;
  1783. }
  1784. .Tasktext2 span {
  1785. color: #333333;
  1786. font-size: 88%;
  1787. font-weight: 600;
  1788. text-indent: 2em;
  1789. }
  1790. .Tasktext2 image {
  1791. vertical-align: middle;
  1792. width: 30rpx;
  1793. height: 30rpx;
  1794. display: inline-block;
  1795. padding-right: 14rpx;
  1796. }
  1797. .textti p {
  1798. font-size: 60%;
  1799. color: #999999;
  1800. text-align: center;
  1801. }
  1802. .immg image {
  1803. width: 200rpx;
  1804. height: 200rpx;
  1805. }
  1806. .immg {
  1807. line-height: 150%;
  1808. }
  1809. .immg p {
  1810. color: #333333;
  1811. font-size: 90%;
  1812. font-weight: 600;
  1813. }
  1814. .warr p {
  1815. font-weight: 500;
  1816. font-size: 90%;
  1817. &.lor {
  1818. border-bottom: 2rpx solid #f2d22d;
  1819. }
  1820. }
  1821. .label {
  1822. // font-weight: 600;
  1823. width: 130rpx;
  1824. }
  1825. .tip_box {
  1826. position: fixed;
  1827. right: 0;
  1828. z-index: 9999;
  1829. display: flex;
  1830. justify-content: flex-end;
  1831. align-items: flex-end;
  1832. flex-direction: column;
  1833. margin-top: -40rpx;
  1834. .arrow {
  1835. width: 0;
  1836. height: 0;
  1837. border: 10rpx solid;
  1838. border-color: transparent;
  1839. }
  1840. .container {
  1841. display: flex;
  1842. align-items: center;
  1843. justify-content: center;
  1844. padding: 4rpx 10px;
  1845. .tips {
  1846. flex: 1;
  1847. }
  1848. }
  1849. }
  1850. .popup-content {
  1851. display: flex;
  1852. flex-direction: column;
  1853. align-items: center;
  1854. }
  1855. </style>