taskdetail.vue 42 KB

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