taskdetail.vue 47 KB

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