taskdetail.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889
  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_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. }
  952. else if (that.account.length === 0) {
  953. uni.showModal({
  954. content: '请先绑定社媒账号',
  955. success: function(res) {
  956. if (res.confirm) {
  957. uni.navigateTo({
  958. url: '/pages/mycenter/myinformation/bindaccount?platform_id=' +
  959. that.information.project_platform
  960. });
  961. } else if (res.cancel) {
  962. console.log('用户点击取消');
  963. }
  964. }
  965. });
  966. } else {
  967. that.type = type
  968. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  969. that.$refs.popup.open(type)
  970. }
  971. },
  972. toggle1(type) {
  973. this.type1 = type
  974. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  975. this.$refs.popup1.open(type)
  976. },
  977. cancel() {
  978. this.$refs.popup1.close()
  979. },
  980. // 更新账号
  981. Reset() {
  982. console.log("Reset func running")
  983. uni.navigateTo({
  984. url: '/pages/mycenter/myinformation/bindaccount?platform_id=' + this
  985. .information
  986. .project_platform + '&account_id=' + this.account[0].account_id,
  987. success(res) {
  988. console.log(res);
  989. },
  990. fail(err) {
  991. console.log(err);
  992. }
  993. });
  994. },
  995. //进入信息确认页面
  996. determine() {
  997. console.log(this.strategy_id)
  998. if (this.strategy_id === 0 || this.strategy === null) {
  999. this.showWarning = true;
  1000. setTimeout(() => {
  1001. this.showWarning = false;
  1002. }, 2000)
  1003. return
  1004. }
  1005. let index = 0;
  1006. for (let i = 0; i < this.coop_choice.length; ++i) {
  1007. if (this.strategy_id === this.coop_choice[i].strategy_id) {
  1008. index = i
  1009. }
  1010. }
  1011. if (this.account[0].fans_count < this.strategy.followers_low) {
  1012. this.coop_choice[index].warningText = "粉丝量不符合报名条件"
  1013. this.coop_choice[index].showWarning = true;
  1014. this.hackReset = false;
  1015. this.hackReset = true;
  1016. setTimeout(() => {
  1017. this.coop_choice[index].showWarning = false;
  1018. this.hackReset = false;
  1019. this.hackReset = true;
  1020. }, 2000)
  1021. } else if (this.strategy.fee_form === 3 && (this.strategy.offer === 0 || this.strategy.offer === null)) {
  1022. this.coop_choice[index].warningText = "请填写自报价金额"
  1023. this.coop_choice[index].showWarning = true;
  1024. this.hackReset = false;
  1025. this.hackReset = true;
  1026. setTimeout(() => {
  1027. this.coop_choice[index].showWarning = false;
  1028. this.hackReset = false;
  1029. this.hackReset = true;
  1030. }, 2000)
  1031. } else {
  1032. this.$refs.popup.close()
  1033. this.strategy.offer = parseInt(this.strategy.offer)
  1034. this.strategy.showOffer = money(this.strategy.offer)
  1035. var data = {
  1036. projectid: this.projectid,
  1037. information: this.information,
  1038. account: this.account[0].account_id,
  1039. strategy: this.strategy,
  1040. },
  1041. data = JSON.stringify(data)
  1042. console.log("data")
  1043. console.log(data)
  1044. uni.navigateTo({
  1045. url: '/pages/tasksquare/information?textObj=' + encodeURIComponent(data)
  1046. });
  1047. }
  1048. },
  1049. beginCanvas() {
  1050. this.$refs.mosoweCanvasComponents.createCanvas();
  1051. },
  1052. _canvasImage(e) {
  1053. console.log("url", e)
  1054. this.canvasUrl = e;
  1055. },
  1056. // 保存图片
  1057. async saveImage() {
  1058. let {
  1059. canvasUrl
  1060. } = this
  1061. let res = await saveImageToPhotosAlbum(canvasUrl)
  1062. if (!res.success) return
  1063. showToast('保存成功')
  1064. this.$refs.popup2.close()
  1065. },
  1066. toggle2(type) {
  1067. if (this.canvasUrl !== '') {
  1068. this.type2 = type
  1069. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1070. this.$refs.popup2.open(type)
  1071. this.$refs.popup1.close()
  1072. } else {
  1073. this.beginCanvas()
  1074. this.type2 = type
  1075. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1076. this.$refs.popup2.open(type)
  1077. this.$refs.popup1.close()
  1078. }
  1079. }
  1080. }
  1081. };
  1082. </script>
  1083. <style>
  1084. /deep/ .share1 .uni-popup .uni-popup__wrapper {
  1085. width: 300px !important;
  1086. /* height: 500px !important; */
  1087. display: flex;
  1088. flex-direction: column;
  1089. align-items: center;
  1090. border-radius: 15rpx !important;
  1091. }
  1092. /deep/ .share.uni-popup .uni-popup__wrapper {
  1093. width: 70%;
  1094. border-radius: 15rpx;
  1095. }
  1096. </style>
  1097. <style lang="scss" scoped>
  1098. text {
  1099. font-size: 24rpx;
  1100. }
  1101. #coop_box {
  1102. // display: flex;
  1103. margin-top: 15rpx;
  1104. }
  1105. #coop_box .coop_box_btn {
  1106. display: flex;
  1107. flex-direction: column;
  1108. justify-content: center;
  1109. align-items: center;
  1110. // width: 700rpx;
  1111. background-color: #f4f4f4;
  1112. border-radius: 15rpx;
  1113. font-size: 30rpx;
  1114. text-align: center;
  1115. cursor: pointer;
  1116. margin: 40rpx 0;
  1117. padding: auto 10rpx;
  1118. }
  1119. .borderColor {
  1120. border: 2px solid #f7d43c !important;
  1121. }
  1122. .offer_input {
  1123. width: 120rpx;
  1124. border: 1px solid #cccccc;
  1125. }
  1126. .wvp {
  1127. color: #000;
  1128. margin: 0 5rpx;
  1129. }
  1130. .wvp1 {
  1131. padding: 0 30rpx;
  1132. border-radius: 10rpx;
  1133. margin: 0 10rpx;
  1134. background-color: #f2d22d;
  1135. border: 10rpx;
  1136. }
  1137. .my-canvas {
  1138. position: fixed;
  1139. top: -99999999999rpx;
  1140. left: -99999999999rpx;
  1141. z-index: -99999999999;
  1142. opacity: 0;
  1143. }
  1144. .poster {
  1145. width: 100vw;
  1146. height: 100vh;
  1147. display: flex;
  1148. flex-flow: column nowrap;
  1149. justify-content: center;
  1150. overflow: hidden;
  1151. }
  1152. .butmin {
  1153. width: 200rpx;
  1154. height: 65rpx;
  1155. background-color: #f2d22d;
  1156. border-radius: 20rpx;
  1157. font-size: 36rpx;
  1158. line-height: 2;
  1159. }
  1160. //视频轮播
  1161. .full {
  1162. position: relative;
  1163. .btns {
  1164. position: absolute;
  1165. background-color: rgba(255, 255, 255, 0.5);
  1166. z-index: 1;
  1167. left: 100rpx;
  1168. top: 50rpx;
  1169. right: 100rpx;
  1170. display: flex;
  1171. justify-content: space-around;
  1172. flex-wrap: wrap;
  1173. >view {
  1174. height: 60rpx;
  1175. line-height: 60rpx;
  1176. text-align: center;
  1177. padding: 0 20rpx;
  1178. }
  1179. &.full {
  1180. position: relative;
  1181. left: 0;
  1182. right: 0;
  1183. >view {
  1184. height: 60rpx;
  1185. line-height: 60rpx;
  1186. text-align: center;
  1187. padding: 0 20rpx;
  1188. background-color: rgba(0, 0, 0, 0.1);
  1189. margin-bottom: 10rpx;
  1190. }
  1191. }
  1192. }
  1193. }
  1194. //轮播图
  1195. page {
  1196. background-color: #fff;
  1197. }
  1198. .top-swiper {
  1199. margin-bottom: 30rpx;
  1200. .bg {
  1201. padding-top: var(--status-bar-height);
  1202. box-sizing: content-box;
  1203. width: 100%;
  1204. position: relative;
  1205. .image {
  1206. box-sizing: content-box;
  1207. position: absolute;
  1208. z-index: 1;
  1209. top: 0;
  1210. left: 0;
  1211. width: 100%;
  1212. height: 100%;
  1213. overflow: hidden;
  1214. &::after {
  1215. content: '';
  1216. position: absolute;
  1217. width: 100%;
  1218. height: 100%;
  1219. z-index: 1;
  1220. bottom: 0;
  1221. left: 0;
  1222. height: 65%;
  1223. background-image: linear-gradient(to bottom, transparent, #FFF);
  1224. }
  1225. >image {
  1226. position: absolute;
  1227. box-sizing: content-box;
  1228. padding: 60px;
  1229. top: 0;
  1230. left: 0;
  1231. width: 100%;
  1232. height: 80%;
  1233. top: -60px;
  1234. left: -60px;
  1235. filter: blur(50px);
  1236. }
  1237. }
  1238. }
  1239. .box {
  1240. padding-top: var(--status-bar-height);
  1241. box-sizing: content-box;
  1242. // position: absolute;
  1243. z-index: 5;
  1244. top: 0;
  1245. left: 0;
  1246. width: 100%;
  1247. height: auto;
  1248. }
  1249. .swiper {
  1250. height: 450rpx;
  1251. margin: 0 20rpx;
  1252. .le-img {
  1253. width: 100%;
  1254. height: 100%;
  1255. display: block;
  1256. transform: scale(0.8);
  1257. transition: transform 0.3s ease-in-out 0s;
  1258. border-radius: 4px;
  1259. &.le-active {
  1260. transform: scale(1);
  1261. }
  1262. }
  1263. }
  1264. }
  1265. //其他的
  1266. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  1267. border-radius: 20rpx !important;
  1268. padding: 8rpx 30rpx !important;
  1269. border: 0 !important;
  1270. }
  1271. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  1272. font-size: 24rpx;
  1273. color: #333333;
  1274. }
  1275. .butto {
  1276. text-align: center;
  1277. }
  1278. .option {
  1279. padding: 20rpx;
  1280. }
  1281. //轮播图
  1282. .uni-margin-wrap {
  1283. width: 690rpx;
  1284. width: 100%;
  1285. }
  1286. .swiper {
  1287. height: 750rpx;
  1288. display: flex;
  1289. justify-content: center;
  1290. }
  1291. .swiper-item {
  1292. display: block;
  1293. width: 100%;
  1294. height: 750rpx;
  1295. line-height: 750rpx;
  1296. text-align: center;
  1297. }
  1298. .swiper-list {
  1299. margin-bottom: 0;
  1300. }
  1301. .uni-common-mt {
  1302. margin-top: 60rpx;
  1303. position: relative;
  1304. }
  1305. .info {
  1306. position: absolute;
  1307. right: 20rpx;
  1308. }
  1309. .uni-padding-wrap {
  1310. width: 550rpx;
  1311. padding: 0 100rpx;
  1312. }
  1313. .Tasktext {
  1314. // padding-top: 5% ;
  1315. padding: 0 0 0 1%;
  1316. // height: 80rpx;
  1317. margin-top: 2%;
  1318. }
  1319. .Tasktext span {
  1320. color: #333333;
  1321. font-size: 100%;
  1322. font-weight: 550;
  1323. text-indent: 2em;
  1324. }
  1325. .Tasktext image {
  1326. vertical-align: middle;
  1327. width: 50rpx;
  1328. height: 50rpx;
  1329. display: inline-block;
  1330. padding-right: 14rpx;
  1331. }
  1332. .TitleText {
  1333. height: 30rpx;
  1334. background-color: #FDD442;
  1335. border-radius: 20rpx;
  1336. display: inline-block;
  1337. padding: 0rpx 20rpx 0rpx 20rpx;
  1338. line-height: 30rpx;
  1339. margin-right: 20rpx;
  1340. margin-top: 6%;
  1341. }
  1342. .TitleText p {
  1343. color: #C49A0A;
  1344. font-size: 50%;
  1345. }
  1346. .introduction {
  1347. width: 100%;
  1348. margin: 0 auto;
  1349. display: flex;
  1350. justify-content: space-around;
  1351. margin-top: 2%;
  1352. }
  1353. .rleft p {
  1354. font-size: 24rpx;
  1355. }
  1356. .rright p {
  1357. font-size: 24rpx;
  1358. }
  1359. .tasks {
  1360. width: 100%;
  1361. margin: 0 auto;
  1362. display: flex;
  1363. justify-content: space-around;
  1364. margin-top: 5%;
  1365. }
  1366. .title-left {
  1367. width: 6rpx;
  1368. height: 80rpx;
  1369. background: #E2E2E2;
  1370. display: inline-block;
  1371. border-radius: 1rpx;
  1372. margin-top: 4rpx;
  1373. vertical-align: top;
  1374. }
  1375. .tasksleft p {
  1376. font-size: 30rpx;
  1377. text-align: center;
  1378. }
  1379. .tasksright p {
  1380. font-size: 30rpx;
  1381. text-align: center;
  1382. }
  1383. .interval {
  1384. width: 100%;
  1385. height: 40rpx;
  1386. background-color: #E4E4E4;
  1387. margin-top: 5%;
  1388. }
  1389. .circularmark {
  1390. margin: 2% auto;
  1391. width: 26%;
  1392. padding: 10rpx;
  1393. background-color: #f2d22d;
  1394. border-radius: 10rpx;
  1395. position: relative;
  1396. }
  1397. .circularmark p {
  1398. font-size: 85%;
  1399. text-align: center;
  1400. font-weight: 800;
  1401. }
  1402. .circularmark image {
  1403. width: 60rpx;
  1404. height: 68rpx;
  1405. position: absolute;
  1406. top: -30%;
  1407. left: -10%;
  1408. }
  1409. .btnn {
  1410. background-color: #3296FA;
  1411. border-radius: 20rpx;
  1412. font-size: 25rpx;
  1413. line-height: 34rpx;
  1414. }
  1415. .markcontent {
  1416. // width: 100%;
  1417. // background-color: #E4E4E4;
  1418. margin: 0 30rpx;
  1419. border-radius: 20rpx;
  1420. padding-top: 2%;
  1421. padding-bottom: 2%;
  1422. }
  1423. .markcontent p {
  1424. font-size: 24rpx;
  1425. }
  1426. .markcontent span {
  1427. font-size: 24rpx;
  1428. // color: #333333;
  1429. // margin: 3% ;
  1430. }
  1431. .interval2 {
  1432. width: 100%;
  1433. height: 100rpx;
  1434. background-color: #E4E4E4;
  1435. margin-top: 5%;
  1436. }
  1437. .markcontent1 {
  1438. width: 100%;
  1439. border-radius: 20rpx;
  1440. padding-top: 2%;
  1441. padding-bottom: 2%;
  1442. }
  1443. .markcontent1 p {
  1444. font-size: 24rpx;
  1445. // color: #333333;
  1446. // margin: 3% ;
  1447. // text-indent: 2em;
  1448. }
  1449. .trademark {
  1450. width: 120rpx;
  1451. height: 120rpx;
  1452. border-radius: 50%;
  1453. background-color: #f2d22d;
  1454. margin: 0 auto;
  1455. }
  1456. .trademark image {
  1457. width: 100%;
  1458. height: 100%;
  1459. }
  1460. .diagram {
  1461. width: 100%;
  1462. // height: 1000rpx;
  1463. }
  1464. .diagram image {
  1465. width: 100%;
  1466. // height: 100% ;
  1467. }
  1468. .but1 {
  1469. width: 60%;
  1470. background-color: #f2d22d;
  1471. border-radius: 20rpx;
  1472. font-size: 36rpx;
  1473. line-height: 200%;
  1474. letter-spacing: 10rpx;
  1475. font-weight: 500;
  1476. height: 80%;
  1477. &.on {
  1478. background-color: #C0C0C0;
  1479. }
  1480. }
  1481. /** 必须提升样式优先权(!important) **/
  1482. button[disabled] {
  1483. width: 60%;
  1484. border-radius: 20rpx;
  1485. font-size: 36rpx;
  1486. line-height: 200%;
  1487. letter-spacing: 10rpx;
  1488. font-weight: 500;
  1489. height: 80%;
  1490. color: white !important;
  1491. background: #c4c1c1 !important;
  1492. }
  1493. .but2 {
  1494. width: 25%;
  1495. background-color: #FFFFFF;
  1496. border: 2rpx solid #f2d22d;
  1497. border-radius: 20rpx;
  1498. font-size: 36rpx;
  1499. line-height: 180%;
  1500. letter-spacing: 10rpx;
  1501. font-weight: 500;
  1502. position: relative;
  1503. text-indent: 0.5em;
  1504. height: 80%;
  1505. }
  1506. .but2 image {
  1507. width: 19%;
  1508. height: 56%;
  1509. position: absolute;
  1510. left: 9%;
  1511. top: 21%;
  1512. }
  1513. .signup {
  1514. box-shadow: 0rpx 5rpx 40rpx #ccc;
  1515. width: 100%;
  1516. position: fixed;
  1517. bottom: 0rpx;
  1518. display: flex;
  1519. height: 90rpx;
  1520. padding: 2% 0;
  1521. background-color: #FFFFFF;
  1522. }
  1523. .pick {
  1524. width: 50rpx;
  1525. height: 50rpx;
  1526. vertical-align: middle;
  1527. }
  1528. .nex {
  1529. width: 100rpx;
  1530. height: 20rpx;
  1531. vertical-align: middle;
  1532. }
  1533. .sampledrawing {
  1534. display: flex;
  1535. width: 96%;
  1536. margin: 0 auto 50rpx;
  1537. }
  1538. .samplecharacter {
  1539. flex: 1;
  1540. margin-top: 2%;
  1541. }
  1542. .samplecharacter p {
  1543. padding: 1%;
  1544. }
  1545. /deep/.uni-popup__content {
  1546. background-color: #4CD964;
  1547. border-radius: 20rpx !important;
  1548. }
  1549. /deep/.uni-popup__mask {
  1550. background: rgba(0, 0, 0, 0.5) !important;
  1551. }
  1552. .butto {
  1553. text-align: center;
  1554. }
  1555. /deep/ .mini-btn1 {
  1556. height: 75rpx;
  1557. width: 270rpx;
  1558. line-height: 70rpx;
  1559. margin: 10rpx 0;
  1560. font-size: 30rpx;
  1561. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  1562. border: 1rpx solid #f2d22d !important;
  1563. }
  1564. /deep/ .mini-btn2 {
  1565. height: 75rpx;
  1566. width: 350rpx;
  1567. line-height: 70rpx;
  1568. margin: 10rpx 0;
  1569. font-size: 30rpx;
  1570. background-color: #f2d22d;
  1571. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  1572. }
  1573. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag {
  1574. background-color: #FFFFFF !important;
  1575. box-shadow: 0rpx 0rpx 6rpx 0rpx #464100;
  1576. border-radius: 10rpx !important;
  1577. }
  1578. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  1579. background-color: #f2d22d !important;
  1580. }
  1581. /deep/.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked .checklist-text {
  1582. color: #333333 !important;
  1583. }
  1584. /deep/.buu .uni-data-checklist .checklist-group {
  1585. flex-direction: column !important;
  1586. }
  1587. .surplus p {
  1588. margin-bottom: 17%;
  1589. margin-top: 8%;
  1590. font-size: 80%;
  1591. }
  1592. .circular {
  1593. width: 120rpx;
  1594. height: 120rpx;
  1595. border-radius: 50%;
  1596. background-color: #28EA71;
  1597. margin: 0 auto;
  1598. }
  1599. .circular image {
  1600. width: 60%;
  1601. height: 60%;
  1602. padding: 20%;
  1603. }
  1604. .tii {
  1605. text-align: center;
  1606. font-size: 26rpx;
  1607. margin-top: 2%;
  1608. }
  1609. .tii2 {
  1610. text-align: center;
  1611. font-size: 26rpx;
  1612. margin-top: 2%;
  1613. background-color: #FFFFFF;
  1614. }
  1615. .errar {
  1616. background-color: #FFFFFF;
  1617. }
  1618. .sharepage {
  1619. width: 90%;
  1620. margin: 0 auto;
  1621. position: relative;
  1622. }
  1623. .Tasktext1 {
  1624. // padding-top: 5% ;
  1625. padding: 0 0 0 1%;
  1626. height: 80rpx;
  1627. margin-top: 7%;
  1628. text-align: center;
  1629. }
  1630. .Tasktext1 span {
  1631. color: #333333;
  1632. font-size: 100%;
  1633. font-weight: 550;
  1634. text-indent: 2em;
  1635. }
  1636. .Tasktext1 image {
  1637. vertical-align: middle;
  1638. width: 80rpx;
  1639. height: 80rpx;
  1640. display: inline-block;
  1641. padding-right: 14rpx;
  1642. }
  1643. .sharemap {
  1644. margin: 0 auto;
  1645. text-align: center;
  1646. margin-top: 5%;
  1647. }
  1648. .sharemap image {
  1649. width: 400rpx;
  1650. height: 400rpx;
  1651. }
  1652. .Tasktext2 {
  1653. // padding-top: 5% ;
  1654. padding: 0 0 0 1%;
  1655. // height: 80rpx;
  1656. margin-top: 2%;
  1657. // text-align: center;
  1658. }
  1659. .Tasktext2 span {
  1660. color: #333333;
  1661. font-size: 88%;
  1662. font-weight: 600;
  1663. text-indent: 2em;
  1664. }
  1665. .Tasktext2 image {
  1666. vertical-align: middle;
  1667. width: 30rpx;
  1668. height: 30rpx;
  1669. display: inline-block;
  1670. padding-right: 14rpx;
  1671. }
  1672. .textti p {
  1673. font-size: 60%;
  1674. color: #999999;
  1675. text-align: center;
  1676. }
  1677. .immg image {
  1678. width: 200rpx;
  1679. height: 200rpx;
  1680. }
  1681. .immg {
  1682. line-height: 150%;
  1683. }
  1684. .immg p {
  1685. color: #333333;
  1686. font-size: 90%;
  1687. font-weight: 600;
  1688. }
  1689. .warr p {
  1690. font-weight: 500;
  1691. font-size: 90%;
  1692. &.lor {
  1693. border-bottom: 2rpx solid #f2d22d;
  1694. }
  1695. }
  1696. .label {
  1697. // font-weight: 600;
  1698. width: 130rpx;
  1699. }
  1700. .tip_box {
  1701. position: fixed;
  1702. right: 0;
  1703. z-index: 9999;
  1704. display: flex;
  1705. justify-content: flex-end;
  1706. align-items: flex-end;
  1707. flex-direction: column;
  1708. margin-top: -40rpx;
  1709. .arrow {
  1710. width: 0;
  1711. height: 0;
  1712. border: 10rpx solid;
  1713. border-color: transparent;
  1714. }
  1715. .container {
  1716. display: flex;
  1717. align-items: center;
  1718. justify-content: center;
  1719. padding: 4rpx 10px;
  1720. .tips {
  1721. flex: 1;
  1722. }
  1723. }
  1724. }
  1725. .popup-content {
  1726. display: flex;
  1727. flex-direction: column;
  1728. align-items: center;
  1729. }
  1730. </style>