taskdetail.vue 50 KB

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