selectiondetail.vue 46 KB

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