taskdetail.vue 46 KB

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