selectiondetail.vue 45 KB

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