taskdetail.vue 40 KB

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