specialTaskDetail.vue 39 KB

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