taskdetail.vue 48 KB

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