taskdetail.vue 40 KB

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