taskdetail.vue 41 KB

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