taskdetail.vue 44 KB

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