selectiondetail.vue 45 KB

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