taskdetail.vue 41 KB

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