selectiondetail.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="" id="wrap0" v-show="!loading">
  7. <view class="home">
  8. <view class="uni-margin-wrap">
  9. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000"
  10. :duration="1000">
  11. <swiper-item v-for="item in carouselImages">
  12. <image :src="item.photo_url" mode="aspectFill" style="width: 100%;height: 100%;"
  13. @click="handlePreviewImage1(item.photo_url)" v-if="item.Symbol !== 3">
  14. </image>
  15. <video :src="item.photo_url" style="width: 100%;height: 100%;" v-if="item.Symbol === 3">
  16. </video>
  17. </swiper-item>
  18. </swiper>
  19. <view class="">
  20. <view class="Tasktext">
  21. <!-- <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/pingtai2.png" mode=""> -->
  22. <image :src="selection.PlatformInfo.platform_icon" mode="">
  23. </image>
  24. <!-- <span>PUYU朴郁小树茶冻干茶粉PUYU朴郁小树茶冻干茶粉</span> -->
  25. <span>{{selection.selection_name}}</span>
  26. </view>
  27. <view class="introduction">
  28. <view class="rleft">
  29. <!-- <p>余<span style="color: #c4c1c1;">123567</span>件</p> -->
  30. <p style="margin-left: 20rpx; color:#787474 ;">售价</p>
  31. </view>
  32. <view class="rright">
  33. <!-- <p>距离任务有效期还有<span style="color: #f70606;">1107</span>天</p> -->
  34. <p v-if="selection.remain_days <= 0 && selection.remain_hours <= 0"><span
  35. style="color: #f70606;">任务已结束</span></p>
  36. <!-- <p v-else>距离任务有效期还有<span style="color: #f70606;">{{selection.remain_days}}</span>天</p> -->
  37. <p v-else><span style="color: #999999;">距离任务结束还有</span><span
  38. style="color: #f70606;">{{ selection.remain_days }}<span
  39. style="color: #999999;">天</span>{{ selection.remain_hours }}<span
  40. style="color: #999999;">小时</span></span></p>
  41. </view>
  42. </view>
  43. <!-- 售价具体金额和总销量 -->
  44. <view class="introduction1">
  45. <view class="rleft1">
  46. <!-- <p>余<span style="color: #c4c1c1;">123567</span>件</p> -->
  47. <p style="color:#787474 ;">¥{{product.product_price}}</p>
  48. </view>
  49. <view class="rright1">
  50. <!-- <p>距离任务有效期还有<span style="color: #f70606;">1107</span>天</p> -->
  51. <p style="color:#c4c4c4 ;">近30日销量:{{product.sales_count}}</p>
  52. </view>
  53. </view>
  54. <!-- 重要信息展示 -->
  55. <view>
  56. <!-- 样机高佣和公开 两个有色框 -->
  57. <view class="importentInfo1">
  58. <!-- 高佣 这个margin带着整个有色边框一起移动-->
  59. <view style="display: flex; margin: 25rpx 20rpx;">
  60. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  61. <view style="display: flex; margin-top: 10rpx;">
  62. <view
  63. style="background-color: #e99d42; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  64. <p style="color: white;font-size: 25rpx;">样叽高佣</p>
  65. </view>
  66. <view style="margin-left: 25rpx;line-height: 40rpx">
  67. <p style="color: red;font-size: 25rpx;">
  68. 每单赚:{{selection.high_estimated_income}}¥
  69. (佣金比例:{{product.exclusive_commission}}%)</p>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 公开 这个margin带着整个有色边框一起移动-->
  74. <view style="display: flex; margin: 25rpx 20rpx;">
  75. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  76. <view style="display: flex;">
  77. <view
  78. style="background-color: #9a9a9a; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  79. <p style="color: white;font-size: 25rpx;">公开</p>
  80. </view>
  81. <view style="margin-left: 25rpx;line-height: 40rpx">
  82. <p style="color: #444d5e;font-size: 25rpx;">
  83. 每单赚:{{selection.normal_estimated_income}}¥
  84. (佣金比例:{{product.public_commission}}%)</p>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 悬赏任务 -->
  90. <view class="importentInfo2" v-if="selection.task_mode==1">
  91. <!-- 高佣 这个margin带着整个有色边框一起移动-->
  92. <view style="display: flex; margin: 25rpx 20rpx;">
  93. <!-- 与边框离开距离 这个margin仅带着内容移动 -->
  94. <view style="display: flex; margin-top: 10rpx;">
  95. <view
  96. style="background-color: #1f63ff; width: 140rpx; height: 45rpx; border-radius: 15rpx; line-height: 40rpx;text-align: center;">
  97. <p style="color: white;font-size: 25rpx;">悬赏任务</p>
  98. </view>
  99. <view style="margin-left: 25rpx;line-height: 45rpx">
  100. <p style="color: #444d5e;font-size: 25rpx;">
  101. 有效期内实际成交≥{{rewardStrategy.sale_actual}}单,额外奖励<span
  102. style="color: red;">¥{{rewardStrategy.per_reward}}</span>元
  103. </p>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- <view class="interval"></view> -->
  113. <view class="home" style="padding-top: 0;">
  114. <!-- <view>
  115. <view class="circularmark">
  116. <p>任务&领样形式</p>
  117. </view>
  118. <view class="markcontent">
  119. <p>任务形式:{{selection.show_task_mode}}</p>
  120. <p>领样形式:{{selection.show_sample_mode}}</p>
  121. </view>
  122. </view> -->
  123. <!-- 领样要求 -->
  124. <view class="" v-if="selection.sample_mode==1">
  125. <view class="circularmark">
  126. <p>领样要求</p>
  127. </view>
  128. <!-- 具体领样品要求(粉丝数量) -->
  129. <view class="markcontent">
  130. <view class="" v-for="item in freeStrategy">
  131. <p style="color: #9a9a9a ; margin-top: 20rpx; margin-bottom: 20rpx;">
  132. 粉丝量{{getFansLabel(item.fans_num)}},近30天橱窗销量≥{{item.sale_num}}单</p>
  133. </view>
  134. </view>
  135. <!-- 领样进度条 -->
  136. <view style="display: flex; justify-content: space-between;">
  137. <view style="font-size:22rpx;line-height:44rpx;margin-left: 27rpx;margin-right: 27rpx;">
  138. <p>样品余量:剩余<span style="color: red;">{{selection.remain_num}}</span>件</p>
  139. </view>
  140. <view style="width: 55%;margin: auto;">
  141. <liu-progressbar :progress="selection.sample_percent" color="#ffffff" :height="'40rpx'"
  142. dsColor="#e0e3ea" bgColor="#1f63ff" />
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 悬赏要求 -->
  147. <view class="" v-if="selection.task_mode==1">
  148. <view class="circularmark">
  149. <p>悬赏条件</p>
  150. </view>
  151. <view class="markcontent">
  152. <view class="">
  153. <p style="color: #9a9a9a ;">
  154. 任务有效期内实际成交≥{{rewardStrategy.sale_actual}}单,额外奖励¥{{rewardStrategy.per_reward}}元</p>
  155. </view>
  156. </view>
  157. <!-- 悬赏进度条 -->
  158. <view style="display: flex; justify-content: space-between;">
  159. <view style="font-size:22rpx;line-height:44rpx;margin-left: 27rpx;margin-right: 3rpx;">
  160. <p>悬赏奖金池:剩余<span style="color: red;">{{selection.remain_poll}}</span>¥</p>
  161. </view>
  162. <view style="width: 55%;margin: auto;">
  163. <liu-progressbar :progress="selection.reward_percent" color="#ffffff" :height="'40rpx'"
  164. dsColor="#e0e3ea" bgColor="#1f63ff" />
  165. </view>
  166. </view>
  167. </view>
  168. <!-- <view class="">
  169. <view class="circularmark">
  170. <p>任务要求</p>
  171. </view>
  172. <view class="markcontent">
  173. <p>内容形式:{{selection.show_content_type}}</p>
  174. <p>带货链接:{{product.product_url|ellipsis}}
  175. <image :src="picture.icon_copy" mode="" class="copy-img"
  176. @click="handleCopy(selection.product_url)" />
  177. </p>
  178. </view>
  179. </view> -->
  180. </view>
  181. <view class="" id="wrap1">
  182. <view class="home" style="padding-top: 0;">
  183. <view class="">
  184. <view class="circularmark">
  185. <p>卖点总结</p>
  186. </view>
  187. <view class="markcontent">
  188. <text class="wvp" style="margin: 10rpx 0;" decode="true" user-select="true">
  189. {{selection.detail}} </text>
  190. </view>
  191. </view>
  192. </view>
  193. </view>
  194. <view class="" id="wrap2">
  195. <view class="home" style="padding-top: 0;">
  196. <view class="">
  197. <view class="circularmark">
  198. <p>BRIEF</p>
  199. </view>
  200. <view class="markcontent1">
  201. <view v-if="hasNoProjectPhoto">
  202. <view class="diagram" style="font-size: 32rpx;margin: 0 30rpx;">
  203. <!-- 可上传任务的brief,word、pfd等等 -->
  204. <p>暂无详情说明</p>
  205. </view>
  206. </view>
  207. <view v-else>
  208. <view v-if="briefType == 'pdf'">
  209. <view class="diagram-pdf" v-for="item in briefFiles">
  210. <image :src="picture.icon_pdf"></image>
  211. <p>{{item.file_name}}</p>
  212. <button type="default"
  213. @tap="downloadFile(item.file_url, item.file_name)">点击下载</button>
  214. </view>
  215. </view>
  216. <view v-else-if="briefType == 'doc' || briefType == 'docx'">
  217. <view class="diagram-pdf" v-for="item in briefFiles">
  218. <image :src="picture.icon_word"></image>
  219. <p>{{item.file_name}}</p>
  220. <button type="default"
  221. @tap="downloadFile(item.file_url, item.file_name)">点击下载</button>
  222. </view>
  223. </view>
  224. <view v-else class="diagram" v-for="item in briefFiles">
  225. <image :src="item.file_url" mode="widthFix"></image>
  226. </view>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. </view>
  232. <view class="" id="wrap2">
  233. <view class="home" style="padding-top: 0;">
  234. <view class="">
  235. <view class="circularmark">
  236. <p>素材</p>
  237. </view>
  238. <view class="markcontent1">
  239. <view v-if="isPhoto == 0">
  240. <view class="diagram" style="font-size: 32rpx;margin: 0 30rpx;">
  241. <p>无</p>
  242. </view>
  243. </view>
  244. <view style="display:flex;justify-content: center;" v-if="isPhoto == 2">
  245. <!-- <video class="videos" :src="url" @error="ErrorCallback" controls> </video> -->
  246. <video class="videos" :src="exampleImgs[0].file_url" @error="ErrorCallback" controls>
  247. </video>
  248. </view>
  249. <view style="display:flex;justify-content: center;" v-if="isPhoto == 2">
  250. <view type="default" @click="downloadVideo(exampleImgs[0].file_url)">下载视频</view>
  251. </view>
  252. <view class="diagram" v-for="item in exampleImgs" v-if="isPhoto == 1">
  253. <image :src="item.file_url" mode="widthFix"></image>
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <view class="" id="wrap2">
  260. <view class="home" style="padding-top: 0;">
  261. <view class="">
  262. <view class="circularmark">
  263. <p>商品详情图</p>
  264. </view>
  265. <view class="markcontent1">
  266. <view v-if="hasNoProductPhoto">
  267. <view class="diagram" style="font-size: 32rpx;margin: 0 30rpx;">
  268. <p>无</p>
  269. </view>
  270. </view>
  271. <view class="diagram" v-for="item in carouselImages" v-else>
  272. <image :src="item.photo_url" mode="widthFix"></image>
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. <view class="interval2"></view>
  279. <view class="signup">
  280. <view style="display: flex;justify-content: space-between;align-items: center;">
  281. <view
  282. style="display: flex;flex-direction: column;justify-content: center;align-items: center;margin: 0 20rpx; "
  283. @click="toggle1('bottom')">
  284. <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_share2"></image>
  285. <p style="font-size: 28rpx;">分享</p>
  286. </view>
  287. <view
  288. style="display: flex;flex-direction: column;justify-content: center;align-items: center;margin: 0 20rpx; "
  289. @click="handleCopy(selection.product_url)">
  290. <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_copy2"></image>
  291. <p style="font-size: 28rpx;">带货链接</p>
  292. </view>
  293. </view>
  294. <!-- //添加橱窗 走添加橱窗流程 -->
  295. <view>
  296. <!-- <button type="default" class="but1" v-if="!isSign && !ddl" @click="addwindow">添加橱窗</button> -->
  297. <button type="default" class="but1" @click="addwindow">添加橱窗</button>
  298. <!-- <button type="default" class="but1" disabled v-if="isSign && !ddl">已报名</button> -->
  299. </view>
  300. <!-- //免费领样 判断是否有免费领样 -->
  301. <view v-if="selection.sample_mode==1">
  302. <button type="default" class="but1" :disabled="isDisabled" @click="submit()">{{buttonText}}</button>
  303. <!-- <button type="default" class="but1" :disabled="isDisabled"
  304. @click="submit()">666</button> -->
  305. </view>
  306. </view>
  307. <view>
  308. <!-- 底部普通弹窗 -->
  309. <uni-popup ref="popup1" background-color="#fff" @change="change" style="border-radius: 20rpx;">
  310. <view class="popup-content1" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  311. <view
  312. style="display: flex; justify-content: space-around; margin-top: 10% ;margin-bottom: 3% ;">
  313. <view>
  314. <button class="tii2" data-name="shareBtn" open-type="share">
  315. <view class="circular" style="margin-top: 10% ;">
  316. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/taskw.png"
  317. mode=""></image>
  318. </view>
  319. <p class="tii">发送给朋友</p>
  320. </button>
  321. </view>
  322. <view>
  323. <button class="tii2" @click="toggle2('center')">
  324. <view class="circular" style="margin-top: 10% ;">
  325. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/taske.png"
  326. mode=""></image>
  327. </view>
  328. <p class="tii">生成分享码</p>
  329. </button>
  330. </view>
  331. </view>
  332. <button type="default" class="errar" @click="cancel()">取消</button>
  333. </view>
  334. </uni-popup>
  335. </view>
  336. <uni-popup ref="popup2" class="share1" background-color="#fff" @change="change">
  337. <view class="popup-content">
  338. <image :src="canvasUrl" mode="widthFix" style="width: 300px;height: 420px;margin-top: 30rpx;">
  339. </image>
  340. <mosoweCanvas ref="mosoweCanvasComponents" @canvasImage="_canvasImage" :lists="lists" height="420"
  341. width="300" imgType="png" />
  342. <view class="" style="text-align: center;margin: 5% 0;">
  343. <button class="butmin" size="mini" @tap="saveImage">保存</button>
  344. </view>
  345. </view>
  346. </uni-popup>
  347. </view>
  348. </view>
  349. </template>
  350. <script>
  351. import mosoweCanvas from "@/components/mosowe-canvas-image/mosowe-canvas-image";
  352. import mvBar from "@/components/mys_navBar/mysNavBar";
  353. import zSwiper from '@/components/z-swiper/index.vue'; // npm安装
  354. import {
  355. getQueryString,
  356. fansview,
  357. money,
  358. getDaysBetweenDates,
  359. getDaysAndHoursBetweenDates
  360. } from '@/components/utils.js';
  361. import {
  362. saveImageToPhotosAlbum,
  363. showToast,
  364. downloadFile
  365. } from '@/uni_modules/sakura-canvas/js_sdk/util'
  366. export default {
  367. filters: {
  368. ellipsis(value) {
  369. if (!value) return "";
  370. if (value.length > 30) {
  371. return value.slice(0, 30) + "...";
  372. }
  373. return value;
  374. },
  375. },
  376. components: {
  377. mvBar,
  378. zSwiper,
  379. mosoweCanvas
  380. },
  381. data() {
  382. return {
  383. // nav
  384. navH: getApp().globalData.navHeight,
  385. picture: getApp().globalData.picture,
  386. mysNavConfig: {
  387. /* 占位开启 */
  388. // navPadding: true,
  389. /* 背景 */
  390. // bgColor: "#f8f8f8",
  391. /* 开启单页显示首页图标 */
  392. isHome: false,
  393. /* 固定导航 */
  394. navFixed: true,
  395. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  396. navTitle: {
  397. text: "任务详情",
  398. color: "",
  399. fontSize: "32rpx", // px upx rpx
  400. fontWeight: "", // 100 - 700
  401. },
  402. btnType: "type2",
  403. onLeftClick: '',
  404. /* type2 按钮 */
  405. type2Config: {
  406. // 左图标
  407. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png2.png",
  408. // 右图标
  409. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png4.png",
  410. // 圆角
  411. radius: "40rpx",
  412. },
  413. },
  414. isPhoto: 0,
  415. url: 'http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400',
  416. coopStrategy: "点击报名后显示",
  417. canvasUrl: '',
  418. hackReset: true,
  419. showWarning: false,
  420. arrowMargin: 0,
  421. cotainerMargin: 0,
  422. screenWidth: 0,
  423. ddl: false,
  424. loading: true,
  425. isSign: 0,
  426. strategy_id: 0,
  427. strategy: null,
  428. input_offer: 0.0,
  429. chooseBtn: 0,
  430. share: {
  431. title: "",
  432. path: '',
  433. imageUrl: '',
  434. desc: '',
  435. content: ''
  436. },
  437. mainPhoto: '',
  438. content_type_info: ["图文", "视频"],
  439. sample_mode_info: ["免费领样", "不提供样品"],
  440. task_mode_info: ["悬赏任务", "纯佣带货"],
  441. // 免费领养按钮条件
  442. buttonText: '免费领样',
  443. isDisabled: false,
  444. tabBarStyle: {},
  445. activeTab: 0,
  446. hei: '',
  447. hei1: '',
  448. topp0: '',
  449. topp1: '',
  450. topp2: '',
  451. scrollTop: '',
  452. activeColor: '#f2d22d',
  453. value: '',
  454. value1: '',
  455. coop_choice: [],
  456. type: 'center',
  457. type1: 'center',
  458. type2: 'center',
  459. item: {
  460. title: '0'
  461. },
  462. // 指示器样式
  463. mode: 'circle',
  464. indicatorPos: 'bottomCenter',
  465. carousel_images: ['https://img2.baidu.com/it/u=2141851239,1037607188&fm=26&fmt=auto&gp=0.jpg',
  466. 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  467. ],
  468. dotIndex: 0, //指示器索引
  469. dotFloatIndex: 0, //位置指示器索引
  470. // 视频轮播
  471. fullScreen: true,
  472. topFloat: true,
  473. fotterFloat: true,
  474. swiper: {
  475. margin: "150rpx",
  476. index: 0,
  477. list: [
  478. ]
  479. },
  480. tar: false,
  481. token: '',
  482. // 测试数据
  483. carouselImages: [{
  484. Symbol: 1,
  485. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/a69be940-e294-4dd4-9b09-d80274c75a15.png'
  486. },
  487. {
  488. Symbol: 2,
  489. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/e1a40241-a566-4227-9b3c-afefe88f4b69.png'
  490. },
  491. {
  492. Symbol: 2,
  493. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/deb21a8b-1517-4352-823b-b70e0cd6883d.png'
  494. },
  495. ],
  496. productUrl: 'https://haohuo.jinritemai.com/views/product/detail?id=3519429421675223776&origin_type=604',
  497. productDetail: 'puyu朴郁小树茶是朴郁公司的一款茶饮,采用先进的冻干粉末技术,将红茶/绿茶精华萃取并制作成冻干茶粉。外包装申请了国家专利,一花一树造型更符合时下追求品味的年轻人的审美。本品获得2021年国家创新美食银奖。',
  498. projectPhoto: [{
  499. Symbol: 1,
  500. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/a69be940-e294-4dd4-9b09-d80274c75a15.png'
  501. },
  502. {
  503. Symbol: 2,
  504. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/e1a40241-a566-4227-9b3c-afefe88f4b69.png'
  505. },
  506. {
  507. Symbol: 2,
  508. photo_url: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/deb21a8b-1517-4352-823b-b70e0cd6883d.png'
  509. },
  510. ],
  511. options: [{
  512. value: '1',
  513. label: '所有人均可领取'
  514. },
  515. {
  516. value: '2',
  517. label: '1w下'
  518. },
  519. {
  520. value: '3',
  521. label: '1w-10w'
  522. },
  523. {
  524. value: '4',
  525. label: '10w-100w'
  526. },
  527. {
  528. value: '5',
  529. label: '100w-500w'
  530. },
  531. {
  532. value: '6',
  533. label: '500w-1000w'
  534. },
  535. {
  536. value: '7',
  537. label: '1000w以上'
  538. },
  539. ],
  540. // 数据
  541. suc_flag: 0, //0表示access_token失效
  542. condition_flag: 0, //0表示未达到领样条件
  543. kuaishouFansNum: 0, //判断是否满足领样条件时调用得到的粉丝数
  544. saleNum_30: 0,
  545. qrcode: '',
  546. selectionId: '',
  547. kuaishou_productId: '',
  548. talent: {},
  549. account: [],
  550. selection: {},
  551. product: {},
  552. younggeeProductPhoto: {},
  553. productPhoto: [],
  554. freeStrategy: [],
  555. rewardStrategy: [],
  556. briefFiles: [],
  557. exampleImgs: [],
  558. hasNoProductPhoto: true,
  559. hasNoProjectPhoto: true,
  560. briefType: "",
  561. youngLeadTeamId: "",
  562. youngTeamId: "",
  563. };
  564. },
  565. onShareAppMessage(res) {
  566. return {
  567. title: this.share.title,
  568. path: 'page_selectionsquare/selectiondetail/selectiondetail?id=' + this.selectionId,
  569. imageUrl: this.share.imageUrl,
  570. desc: '',
  571. content: '',
  572. success(res) {
  573. uni.showToast({
  574. title: '分享成功'
  575. })
  576. },
  577. fail(res) {
  578. uni.showToast({
  579. title: '分享失败',
  580. icon: 'none'
  581. })
  582. }
  583. }
  584. },
  585. computed: {
  586. lists: {
  587. get() {
  588. let tmplist = [
  589. // 大图
  590. {
  591. type: 'image',
  592. content: this.mainPhoto,
  593. width: 300,
  594. height: 320,
  595. x: 0,
  596. y: 0,
  597. },
  598. // 标题
  599. {
  600. type: 'text',
  601. content: this.selection.selection_name,
  602. color: '#333333',
  603. weight: 'bold',
  604. size: '12px',
  605. width: 200,
  606. height: 20,
  607. x: 20,
  608. y: 340,
  609. },
  610. // 文案1
  611. {
  612. type: 'text',
  613. content: "样品数量:" + this.selection.sample_num,
  614. color: '#333333',
  615. size: '10px',
  616. width: 60,
  617. height: 20,
  618. x: 20,
  619. y: 370,
  620. },
  621. // 文案2
  622. {
  623. type: 'text',
  624. content: "扫码立即报名",
  625. color: '#333333',
  626. size: '10px',
  627. width: 60,
  628. height: 20,
  629. x: 110,
  630. y: 370,
  631. },
  632. {
  633. type: 'text',
  634. content: "发布任务请登录",
  635. color: '#333333',
  636. size: '10px',
  637. width: 70,
  638. height: 20,
  639. x: 20,
  640. y: 400,
  641. },
  642. {
  643. type: 'text',
  644. content: "www.younggee.com",
  645. color: '#333333',
  646. size: '10px',
  647. // style: 'italic',
  648. width: 60,
  649. height: 20,
  650. x: 90,
  651. y: 400,
  652. },
  653. // 二维码
  654. {
  655. type: 'qr',
  656. content: this.qrcode,
  657. projectid: this.selectionId,
  658. width: 80,
  659. height: 80,
  660. x: 215,
  661. y: 325,
  662. },
  663. ]
  664. return tmplist
  665. },
  666. set() {}
  667. }
  668. },
  669. async created() {
  670. console.log("进入create")
  671. },
  672. async onShow() {
  673. console.log("进入onshow")
  674. // 判断登录
  675. await this.isLogin();
  676. if (this.token === '') {
  677. uni.showModal({
  678. content: '请先登录',
  679. success: function(res) {
  680. if (res.confirm) {
  681. uni.navigateTo({
  682. url: '/pages/login/login'
  683. });
  684. } else if (res.cancel) {
  685. uni.navigateBack();
  686. }
  687. }
  688. });
  689. } else {
  690. this.loading = true;
  691. uni.showLoading({
  692. title: '加载中'
  693. });
  694. this.getLeadTeam();
  695. this.getTalentInfo();
  696. await this.getSelectionDetail();
  697. await this.getTalentAccountInfo();
  698. if (this.account.length != 0) {
  699. await this.isSignUp();
  700. await this.checkToken()
  701. //token没有过期
  702. if (this.suc_flag == 1) {
  703. await this.checkSampleCondition()
  704. }
  705. }
  706. await this.handleButtonText();
  707. this.loading = false;
  708. uni.hideLoading();
  709. }
  710. },
  711. // options是上一个页面传递的数据
  712. onLoad(options) {
  713. console.log("onLoad加载********** *")
  714. console.log("options:----->", options)
  715. this.selectionId = options.id
  716. this.productId = options.pid
  717. // const scene = decodeURIComponent(options.scene);
  718. // console.log("scene: ", scene)
  719. // if (scene != "undefined") {
  720. // this.selectionId = scene;
  721. // } else {
  722. // this.selectionId = options.id
  723. // this.productId = options.pid
  724. // }
  725. this.share.path = 'https://younggee.com/wxapp/taskdetail?action=taskdetail&id=' + this.selectionId
  726. console.log("share path: ", this.share.path)
  727. this.postlist()
  728. },
  729. onReady() { // 注意:想要拿到元素实例,需要在实例已经挂载到页面上才可以
  730. this.init();
  731. },
  732. methods: {
  733. //走到这一步的token必然有效
  734. getFansNum() {
  735. return this.$https.get('/youngee/c/t/g/get-kuaishou-fans-num')
  736. .then(res => {
  737. console.log("get-kuaishou-fans-num------", res); // 这行会输出响应对象到控制台
  738. this.kuaishouFansNum = res.data.data.fan
  739. })
  740. },
  741. get30daysSaleNum() {
  742. return this.$https.get('/youngee/c/t/g/query-sales-for30-days')
  743. .then(res => {
  744. console.log("query-sales-for30-days------", res); // 这行会输出响应对象到控制台
  745. this.saleNum_30 = res.data.data
  746. })
  747. },
  748. handleButtonText() {
  749. console.log('into handleButtonText,this.isSign--->', this.isSign)
  750. // 领样条件判断
  751. if (this.selection.sample_mode === 3) {
  752. // 未开放免费领样
  753. this.buttonText = '';
  754. this.isDisabled = true;
  755. } else if (this.selection.sample_mode === 1) {
  756. // 开放免费领样
  757. if (this.ddl) {
  758. // 任务已结束
  759. this.buttonText = '任务结束';
  760. this.isDisabled = true;
  761. } else if (this.selection.remain_num === 0) {
  762. // 样品库存不足
  763. this.buttonText = '免费领样';
  764. this.isDisabled = true;
  765. } else if (this.isSign === 1) {
  766. //4. 若开放免费领样,但已经申请过,则按钮文字为“已申请”且置灰不可点击
  767. //特殊情况:如果查到了数据,并且sectask的sample_mode也为1,说明是真申请过了
  768. console.log("come in")
  769. this.buttonText = '已申请';
  770. this.isDisabled = true;
  771. } else {
  772. //不满足领取条件
  773. //授权过期
  774. console.log("按钮可点击")
  775. }
  776. } else {
  777. console.log("sample_mode不可为2")
  778. }
  779. },
  780. getFansLabel(fansNum) {
  781. //// 在 options 数组中查找 value 属性等于 fansNum.toString() 的对象 fansNum在表中为int类型
  782. const option = this.options.find(o => o.value === fansNum.toString());
  783. // 如果找到这样的对象,则返回其 label 属性值,否则返回 fansNum
  784. return option ? option.label : fansNum;
  785. },
  786. handleCopy(content) {
  787. wx.setClipboardData({
  788. data: content,
  789. success: function(res) {
  790. console.log("复制成功");
  791. }
  792. });
  793. },
  794. handlePreviewImage1(item) {
  795. var urls = [];
  796. this.carouselImages.forEach(function(image) {
  797. urls.push(image.photo_url);
  798. });
  799. wx.previewImage({
  800. current: item, // 当前显示图片的http链接
  801. urls: urls
  802. })
  803. },
  804. init() {
  805. let rect = uni.getMenuButtonBoundingClientRect();
  806. let screenWidth = uni.getSystemInfoSync().screenWidth;
  807. this.arrowMargin = rect.width * 0.75 + 4;
  808. this.cotainerMargin = screenWidth - rect.right;
  809. },
  810. // 判断登陆是否过期
  811. isLogin() {
  812. return this.$https.get('/youngee/c/t/g/is-login')
  813. .then(res => {
  814. console.log('进入详情页,判断是否登录res:****** ', res)
  815. if (res.data.code === 403) {
  816. // 登陆已失效
  817. this.token = ""
  818. } else {
  819. this.token = uni.getStorageSync('token')
  820. }
  821. })
  822. },
  823. postlist() {
  824. // uni.showModal({
  825. // content: "项目id为:"+this.projectid,
  826. // })
  827. this.$https.post('/youngee/c/p/get-qrcode', {
  828. scene: this.selectionId,
  829. page: 'page_selectionsquare/selectiondetail/selectiondetail',
  830. // scene: this.taskid,
  831. // page: 'pages/task/taskdetails',
  832. })
  833. .then(res => {
  834. console.log(res)
  835. this.qrcode = 'data:image/png;base64,' + res.data.data;
  836. })
  837. },
  838. getLeadTeam() {
  839. this.$https.get('/youngee/c/t/g/get-lead-young-team-id' +
  840. "?" +
  841. "project_type=2" +
  842. "&selection_id" +
  843. "=" +
  844. this.selectionId
  845. ).then(res => {
  846. if (res.data.code === 0) {
  847. if (res.data.data.num != 0) {
  848. this.youngLeadTeamId = res.data.data.team_id
  849. }
  850. }
  851. })
  852. },
  853. getSelectionDetail() {
  854. console.log('into getSelectionDetail')
  855. return this.$https.get('/youngee/c/t/g/get-selection-detail' +
  856. "?" +
  857. "selectionid" +
  858. "=" +
  859. this.selectionId +
  860. "&" +
  861. "productid" +
  862. "=" +
  863. this.productId
  864. ).then(res => {
  865. if (res.data.code === 0) {
  866. this.selection = res.data.data
  867. console.log("this.selection---->", this.selection)
  868. this.product = this.selection.YounggeeProduct[0]
  869. this.younggeeProductPhoto = this.selection.YounggeeProductPhoto
  870. this.freeStrategy = this.selection.FreeStrategy
  871. if (this.selection.RewardStrategy[0] != null) {
  872. this.rewardStrategy = this.selection.RewardStrategy[0]
  873. }
  874. // if (this.selection.reward_condition === "")
  875. // this.selection.reward_condition = "无"
  876. this.share.title = this.selection.selection_name
  877. // 提取分享图、主图、轮播图
  878. this.carouselImages = []
  879. for (let i = 0; i < this.younggeeProductPhoto.length; i++) {
  880. if (this.younggeeProductPhoto[i].Symbol === 1) {
  881. this.mainPhoto = this.younggeeProductPhoto[i].photo_url
  882. this.share.imageUrl = this.mainPhoto
  883. }
  884. if (this.younggeeProductPhoto[i].Symbol !== 3) {
  885. this.carouselImages.push(this.younggeeProductPhoto[i])
  886. }
  887. }
  888. console.log("carouselImages----->", this.carouselImages)
  889. this.hasNoProductPhoto = this.carouselImages.length === 0 ? true : false;
  890. // brief、素材图
  891. console.table(this.selection.SelectionBrief)
  892. this.hasNoProjectPhoto = this.selection.SelectionBrief === null ? true : false;
  893. if (!this.hasNoProjectPhoto) {
  894. for (let i = 0; i < this.selection.SelectionBrief.length; ++i) {
  895. let url = this.selection.SelectionBrief[i].file_url
  896. this.briefType = url.split('.').pop()
  897. }
  898. }
  899. this.briefFiles = this.selection.SelectionBrief
  900. this.exampleImgs = this.selection.SelectionExample
  901. if (this.exampleImgs !== null) {
  902. for (let i = 0; i < this.exampleImgs.length; i++) {
  903. if (this.exampleImgs[i].file_url.endsWith("jpg") || this.exampleImgs[i].file_url
  904. .endsWith("png")) {
  905. this.isPhoto = 1
  906. } else {
  907. this.isPhoto = 2
  908. }
  909. }
  910. } else {
  911. this.isPhoto = 0
  912. }
  913. //样品总数量进度条
  914. //动态绑定属性
  915. this.selection.high_estimated_income = this.product.exclusive_commission * this.product
  916. .product_price / 100
  917. this.selection.normal_estimated_income = this.product.public_commission * this.product
  918. .product_price / 100
  919. //领样进度
  920. this.selection.sample_percent = (this.selection.remain_num / this.selection.sample_num) *
  921. 100
  922. //悬赏进度
  923. this.selection.remain_poll=this.rewardStrategy.reward-this.selection.settlement_amount
  924. this.selection.reward_percent = (this.selection.remain_poll / this.rewardStrategy
  925. .reward) *
  926. 100
  927. // this.selection.task_reward=this.selection.task_reward
  928. console.log("this.selection----->", this.selection)
  929. // 判断任务是否已结束
  930. var timeNow = new Date()
  931. var ddl = new Date(this.selection.task_ddl.replace(/-/g, "/"));
  932. // this.selection.remain_days = getDaysBetweenDates(timeNow, ddl)
  933. var diff = getDaysAndHoursBetweenDates(timeNow, ddl);
  934. this.selection.remain_days = diff.days;
  935. this.selection.remain_hours = diff.hours;
  936. //判断任务是否结束
  937. this.ddl = (this.selection.remain_days <= 0 && this.selection.remain_hours <= 0) ? true :
  938. false
  939. }
  940. })
  941. },
  942. // 达人信息
  943. getTalentInfo() {
  944. return this.$https.get('/youngee/c/t/g/get-talent-info')
  945. .then(res => {
  946. this.talent = res.data.data
  947. console.log("this.talent---->", this.talent)
  948. })
  949. },
  950. //账号信息
  951. getTalentAccountInfo() {
  952. return this.$https.get('/youngee/c/t/g/get-talent-account-kuaishou')
  953. .then(res => {
  954. var accounts = res.data.data
  955. this.account = []
  956. // -3表示未绑定任何平台
  957. if (res.data.code != -3) {
  958. for (var i = 0; i < accounts.length; i++) {
  959. console.log("kuaishouaccount数组——————: ", accounts[i])
  960. // 此带货商品的平台与用户绑定的三方平台一致,才会加入到this.account中
  961. if (this.selection.platform === accounts[i].platform_id) {
  962. this.account.push(accounts[i])
  963. }
  964. }
  965. }
  966. })
  967. // console.log("account数组——————: ",res)
  968. },
  969. isSignUp() {
  970. console.log("into isSignUp")
  971. return this.$https.get('/youngee/c/t/g/is-sign-up-sec-task' +
  972. "?" +
  973. "selection_id" +
  974. "=" +
  975. this.selectionId)
  976. .then(res => {
  977. let task;
  978. if (res.data.code === 0) {
  979. this.isSign = res.data.data.is_sign;
  980. console.log("is-sign-up-sec-task--->", this.isSign)
  981. task = res.data.data.sec_task_info
  982. if (this.isSign === 1) {
  983. this.youngLeadTeamId = task.lead_team_id
  984. this.youngTeamId = task.team_id
  985. }
  986. }
  987. })
  988. },
  989. checkToken() {
  990. //进入页面就发送一个请求,看是否过期
  991. return this.$https.get('/youngee/c/t/g/check-token-exp')
  992. .then(res => {
  993. console.log("checkToken___", res)
  994. if (res.data.code == -2) {
  995. this.suc_flag = 0
  996. } else {
  997. this.suc_flag = 1
  998. }
  999. })
  1000. },
  1001. onPageScroll(res) {
  1002. uni.$emit('onPageScroll', res.scrollTop);
  1003. this.scrollTop = res.scrollTop;
  1004. // console.log(res.scrollTop);
  1005. if (res.scrollTop <= this.topp1 - this.hei1) {
  1006. // console.log(0)
  1007. this.activeTab = 0
  1008. }
  1009. if (res.scrollTop > this.topp1 - this.hei1 && res.scrollTop < this.topp2 - this.hei1) {
  1010. // console.log(1)
  1011. this.activeTab = 1
  1012. }
  1013. if (res.scrollTop > this.topp2 - this.hei1) {
  1014. // console.log(2)
  1015. this.activeTab = 2
  1016. }
  1017. },
  1018. //获取节点离顶部高度
  1019. getInfo() {
  1020. const query = uni.createSelectorQuery().in(this);
  1021. query.select('#wrap0').boundingClientRect(data => {
  1022. this.topp0 = data.top
  1023. }).exec();
  1024. query.select('#wrap1').boundingClientRect(data => {
  1025. this.topp1 = data.top
  1026. }).exec();
  1027. query.select('#wrap2').boundingClientRect(data => {
  1028. this.topp2 = data.top
  1029. // console.log(this.topp2)
  1030. }).exec();
  1031. query.select('#wap').boundingClientRect(data => {
  1032. // console.log(data)
  1033. this.hei = data.height
  1034. this.tabBarStyle = {
  1035. height: data.height + data.height + 'px',
  1036. width: '100% ',
  1037. }
  1038. }).exec();
  1039. query.select('#wa').boundingClientRect(data => {
  1040. // console.log(data)
  1041. this.hei1 = data.height
  1042. }).exec();
  1043. },
  1044. //视频轮播
  1045. effect3dMarginMethed() {
  1046. this.effect3dMargin++
  1047. },
  1048. //swiper滑动事件
  1049. swiperChange: function(e) {
  1050. this.swiper.index = e.detail.current;
  1051. },
  1052. //底部弹出层
  1053. change(e) {
  1054. console.log('当前模式:' + e.type + ',状态:' + e.show);
  1055. },
  1056. // 添加橱窗
  1057. addwindow() {
  1058. console.log('ino addwindow')
  1059. let that = this
  1060. //1.账号绑定情况
  1061. if (that.account.length === 0) {
  1062. uni.showModal({
  1063. content: '您尚未绑定快手账号,请绑定快手账号后重试',
  1064. confirmText: '去绑定',
  1065. success: function(res) {
  1066. if (res.confirm) {
  1067. //绑定快手平台
  1068. if (that.selection.platform == 4) {
  1069. uni.navigateTo({
  1070. url: '/page_mycenter/bindaccounts/kuaishoubind'
  1071. });
  1072. } else {
  1073. uni.navigateTo({
  1074. url: '/page_mycenter/myinformation/bindaccount?platform_id=' +
  1075. that.selection.platform
  1076. });
  1077. };
  1078. } else if (res.cancel) {
  1079. console.log('用户点击取消');
  1080. }
  1081. }
  1082. });
  1083. } else if (that.suc_flag == 0) {
  1084. //2.token无效情况
  1085. uni.showModal({
  1086. content: '您快手账号授权已过期,请刷新快手账号授权后重试',
  1087. confirmText: '去刷新',
  1088. success: function(res) {
  1089. if (res.confirm) {
  1090. //刷新快手平台
  1091. if (that.selection.platform == 4) {
  1092. uni.navigateTo({
  1093. url: '/page_mycenter/bindaccounts/kuaishoubind'
  1094. });
  1095. } else {
  1096. uni.navigateTo({
  1097. url: '/page_mycenter/myinformation/bindaccount?platform_id=' +
  1098. that.selection.platform
  1099. });
  1100. };
  1101. } else if (res.cancel) {
  1102. console.log('用户点击取消');
  1103. }
  1104. }
  1105. })
  1106. //token有效
  1107. } else {
  1108. console.log("api----", this.product.kuaishou_product_id)
  1109. //调用加入橱窗api
  1110. this.$https.get('/youngee/c/t/g/add-window' +
  1111. "?" +
  1112. "product_id" +
  1113. "=" +
  1114. this.product.kuaishou_product_id
  1115. ).then(res => {
  1116. console.log("add window res****", res)
  1117. //未开通
  1118. let api_result = res.data.data.data[0]
  1119. if (api_result.result == 1800533) {
  1120. uni.showModal({
  1121. content: '选品不存在或已下线', // 这里设置弹窗的内容
  1122. showCancel: false, // 不显示取消按钮
  1123. confirmText: '知道了', // 设置确认按钮的文本
  1124. success: function(res) {
  1125. if (res.confirm) {
  1126. console.log('用户点击知道了');
  1127. }
  1128. }
  1129. });
  1130. } else if (api_result.result == 1800550) {
  1131. uni.showModal({
  1132. content: '您未开通快手橱窗,请开通后重试', // 这里设置弹窗的内容
  1133. showCancel: false, // 不显示取消按钮
  1134. confirmText: '知道了', // 设置确认按钮的文本
  1135. success: function(res) {
  1136. if (res.confirm) {
  1137. console.log('用户点击知道了');
  1138. }
  1139. }
  1140. });
  1141. } else {
  1142. uni.showModal({
  1143. content: '添加橱窗成功,已创建带货任务!', // 这里设置弹窗的内容
  1144. showCancel: false, // 不显示取消按钮
  1145. confirmText: '知道了', // 设置确认按钮的文本
  1146. success: function(res) {
  1147. if (res.confirm) {
  1148. console.log('用户点击知道了');
  1149. }
  1150. }
  1151. });
  1152. //添加到seltask带货任务中
  1153. console.log("提交报名")
  1154. // 直接报名
  1155. console.log("********", this.selection.product_id)
  1156. console.log("this.kuaishouFansNum********111", this.kuaishouFansNum)
  1157. console.log("this.saleNum_30********111", this.saleNum_30)
  1158. this.$https.post('/youngee/c/t/p/sign-up-sec-task-from-window', {
  1159. selection_id: this.selection.selection_id,
  1160. product_id: this.selection.product_id,
  1161. //新增
  1162. saleNum: this.saleNum_30,
  1163. fans: this.kuaishouFansNum,
  1164. }).then(res => {
  1165. console.log("addwindow succuss",res)
  1166. })
  1167. }
  1168. })
  1169. }
  1170. },
  1171. // 免费领样
  1172. submit(type) {
  1173. // this在页面刚展示时,已经被赋值了必要的信息
  1174. let that = this;
  1175. //绑定收获地址,这样详情页就不用考虑没有地址的情况了
  1176. if (that.talent.is_bind_location === 0) {
  1177. // 前往个人信息绑定三合一界面
  1178. uni.showModal({
  1179. content: '请先绑定个人信息',
  1180. success: function(res) {
  1181. if (res.confirm) {
  1182. if (that.account.length === 0) {
  1183. uni.navigateTo({
  1184. url: '/page_tasksquare/bindinfo?platform_id=' + that
  1185. .selection.platform
  1186. })
  1187. } else {
  1188. uni.navigateTo({
  1189. url: '/page_tasksquare/bindinfo?platform_id=' +
  1190. that.selection.platform +
  1191. '&account_id=' +
  1192. that.account[0].account_id
  1193. })
  1194. };
  1195. } else if (res.cancel) {
  1196. console.log('用户点击取消');
  1197. }
  1198. }
  1199. });
  1200. } else if (that.account.length === 0) {
  1201. uni.showModal({
  1202. content: '您尚未绑定快手账号,请绑定快手账号后重试',
  1203. confirmText: '去绑定',
  1204. success: function(res) {
  1205. if (res.confirm) {
  1206. // 绑定快手平台
  1207. if (that.selection.platform == 4) {
  1208. uni.navigateTo({
  1209. url: '/page_mycenter/bindaccounts/kuaishoubind'
  1210. });
  1211. } else {
  1212. uni.navigateTo({
  1213. url: '/page_mycenter/myinformation/bindaccount?platform_id=' +
  1214. that.selection.platform
  1215. });
  1216. }
  1217. } else if (res.cancel) {
  1218. console.log('用户点击取消');
  1219. }
  1220. }
  1221. });
  1222. } else if (this.suc_flag == 0) {
  1223. // token无效情况
  1224. uni.showModal({
  1225. content: '您快手账号授权已过期,请刷新快手账号授权后重试',
  1226. confirmText: '去刷新',
  1227. success: function(res) {
  1228. if (res.confirm) {
  1229. // 刷新快手平台
  1230. if (that.selection.platform == 4) {
  1231. uni.navigateTo({
  1232. url: '/page_mycenter/bindaccounts/kuaishoubind'
  1233. });
  1234. } else {
  1235. uni.navigateTo({
  1236. url: '/page_mycenter/myinformation/bindaccount?platform_id=' +
  1237. that.selection.platform
  1238. });
  1239. }
  1240. } else if (res.cancel) {
  1241. console.log('用户点击取消');
  1242. }
  1243. }
  1244. });
  1245. //token有效
  1246. } else if (this.condition_flag == 0) {
  1247. // 未到达领样条件
  1248. uni.showModal({
  1249. content: '您的账号暂未达到领样要求,若在快手平台已达标,请刷新快手账号授权后重试', // 这里设置弹窗的内容
  1250. showCancel: false, // 不显示取消按钮
  1251. confirmText: '知道了', // 设置确认按钮的文本
  1252. success: function(res) {
  1253. if (res.confirm) {
  1254. console.log('用户点击知道了');
  1255. }
  1256. }
  1257. });
  1258. } else {
  1259. // 达到领样条件 ,进入信息确认页
  1260. var data = {
  1261. selectionId: this.selectionId,
  1262. selection: this.selection,
  1263. youngTeamId: this.youngTeamId,
  1264. youngLeadTeamId: this.youngLeadTeamId,
  1265. saleNum_30: this.saleNum_30,
  1266. fansNum: this.kuaishouFansNum,
  1267. };
  1268. data = JSON.stringify(data);
  1269. // console.log("此页面传递给信息确认页的信息: ", data);
  1270. uni.navigateTo({
  1271. url: '/page_selectionsquare/selectiondetail/information?textObj=' +
  1272. encodeURIComponent(data)
  1273. });
  1274. }
  1275. },
  1276. async checkSampleCondition() {
  1277. //获取粉丝数, 获取30天销量
  1278. await this.getFansNum()
  1279. await this.get30daysSaleNum()
  1280. console.log("get30daysSaleNum()", this.saleNum_30)
  1281. console.log("after this.getFansNum()", this.kuaishouFansNum)
  1282. // 将区间映射到最小粉丝数
  1283. //声明对象,声明键和值
  1284. const fansCountRanges = {
  1285. 1: 0,
  1286. 2: 0,
  1287. 3: 10000,
  1288. 4: 100000,
  1289. 5: 1000000,
  1290. 6: 5000000,
  1291. 7: 10000000 // 对于 1000w以上, 设置一个大的默认值,比如无穷大
  1292. };
  1293. for (let strategy of this.freeStrategy) {
  1294. console.log("strategy", strategy)
  1295. let requiredFans = fansCountRanges[strategy.fans_num];
  1296. console.log("this.kuaishouFansNum", this.kuaishouFansNum)
  1297. console.log("requiredFans", requiredFans)
  1298. console.log("this.saleNum_30", this.saleNum_30)
  1299. console.log("strategy.sale_num", strategy.sale_num)
  1300. if (this.kuaishouFansNum >= requiredFans && this.saleNum_30 >= strategy.sale_num) {
  1301. console.log("条件满足")
  1302. this.condition_flag = 1;
  1303. return;
  1304. }
  1305. }
  1306. this.condition_flag = 0;
  1307. },
  1308. // 下载视频
  1309. downloadVideo(url) {
  1310. // 自定义 文件名称
  1311. let fileName = new Date().valueOf();
  1312. const task = uni.downloadFile({
  1313. url: url,
  1314. filePath: wx.env.USER_DATA_PATH + '/' + fileName + '.mp4', // 拼接本地文件路径
  1315. success: (res) => {
  1316. let filePath = res.filePath
  1317. uni.saveVideoToPhotosAlbum({
  1318. filePath,
  1319. success: (res) => {
  1320. uni.showToast({
  1321. title: '下载成功',
  1322. icon: 'success',
  1323. })
  1324. let fileMgr = wx.getFileSystemManager();
  1325. // 删除本地文件
  1326. fileMgr.unlink({
  1327. filePath: wx.env.USER_DATA_PATH + '/' +
  1328. fileName +
  1329. '.mp4',
  1330. success: function(r) {
  1331. console.log(
  1332. 'unlink-getFileSystemManager'
  1333. )
  1334. console.log(r)
  1335. },
  1336. })
  1337. },
  1338. complete(res) {
  1339. console.log('saveVideoToPhotosAlbum-complete')
  1340. console.log(res)
  1341. }
  1342. })
  1343. },
  1344. complete(res) {
  1345. console.log('downloadFiledownloadFiledownloadFiledownloadFiledownloadFile')
  1346. console.log(res)
  1347. uni.hideLoading()
  1348. }
  1349. })
  1350. task.onProgressUpdate(this.onProgress)
  1351. },
  1352. // 提示下载进度
  1353. onProgress(res) {
  1354. uni.showToast({
  1355. icon: 'loading',
  1356. mask: true,
  1357. title: res.progress + "%"
  1358. })
  1359. },
  1360. toggle1(type) {
  1361. // if (this.youngLeadTeamId === "") {
  1362. // this.$https.post('/youngee/c/t/p/add-young-team', {
  1363. // selection_id: this.selectionId,
  1364. // project_type: 2,
  1365. // })
  1366. // .then(res => {
  1367. // console.log(res)
  1368. // this.youngLeadTeamId = res.data.data;
  1369. // })
  1370. // }
  1371. this.type1 = type
  1372. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1373. this.$refs.popup1.open(type)
  1374. },
  1375. cancel() {
  1376. this.$refs.popup1.close()
  1377. },
  1378. // 更新账号
  1379. Reset() {
  1380. console.log("Reset func running")
  1381. uni.navigateTo({
  1382. url: '/pages/mycenter/myinformation/bindaccount?platform_id=' + this
  1383. .information
  1384. .project_platform + '&account_id=' + this.account[0].account_id,
  1385. success(res) {
  1386. console.log(res);
  1387. },
  1388. fail(err) {
  1389. console.log(err);
  1390. }
  1391. });
  1392. },
  1393. beginCanvas() {
  1394. this.$refs.mosoweCanvasComponents.createCanvas();
  1395. },
  1396. _canvasImage(e) {
  1397. console.log("url", e)
  1398. this.canvasUrl = e;
  1399. },
  1400. // 保存图片
  1401. async saveImage() {
  1402. let {
  1403. canvasUrl
  1404. } = this
  1405. let res = await saveImageToPhotosAlbum(canvasUrl)
  1406. if (!res.success) return
  1407. showToast('保存成功')
  1408. this.$refs.popup2.close()
  1409. },
  1410. toggle2(type) {
  1411. if (this.canvasUrl !== '') {
  1412. this.type2 = type
  1413. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1414. this.$refs.popup2.open(type)
  1415. this.$refs.popup1.close()
  1416. } else {
  1417. this.beginCanvas()
  1418. this.type2 = type
  1419. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  1420. this.$refs.popup2.open(type)
  1421. this.$refs.popup1.close()
  1422. }
  1423. },
  1424. deletContract() {
  1425. try {
  1426. let file = wx.getFileSystemManager();
  1427. file.readdir({
  1428. dirPath: `${wx.env.USER_DATA_PATH}`,
  1429. success: res => {
  1430. console.log(res);
  1431. if (res.files.length > 2) {
  1432. file.unlink({
  1433. filePath: `${wx.env.USER_DATA_PATH}/${res.files[0]}`,
  1434. complete: res => {
  1435. }
  1436. })
  1437. }
  1438. }
  1439. })
  1440. } catch (error) {
  1441. }
  1442. },
  1443. downloadFile(url, file) {
  1444. let that = this
  1445. console.log(url, file)
  1446. // const fileName = url.split('/').pop()
  1447. const newPath = `${wx.env.USER_DATA_PATH}/${file}`;
  1448. that.deletContract();
  1449. wx.showLoading({
  1450. title: '正在打开',
  1451. mask: true
  1452. })
  1453. wx.downloadFile({
  1454. url: url,
  1455. filePath: newPath,
  1456. header: {},
  1457. success: function(res) {
  1458. var filePath = res.filePath;
  1459. console.log(filePath);
  1460. wx.openDocument({
  1461. filePath: filePath,
  1462. showMenu: true,
  1463. success: function(res) {
  1464. console.log('打开文档成功')
  1465. wx.hideLoading()
  1466. },
  1467. fail: function(res) {
  1468. console.log(res);
  1469. wx.hideLoading()
  1470. },
  1471. complete: function(res) {
  1472. console.log(res);
  1473. }
  1474. })
  1475. },
  1476. fail: function(res) {
  1477. console.log('文件下载失败');
  1478. console.log(res)
  1479. },
  1480. complete: function(res) {},
  1481. })
  1482. },
  1483. }
  1484. };
  1485. </script>
  1486. <style>
  1487. /deep/ .share1 .uni-popup .uni-popup__wrapper {
  1488. width: 300px !important;
  1489. /* height: 500px !important; */
  1490. display: flex;
  1491. flex-direction: column;
  1492. align-items: center;
  1493. border-radius: 15rpx !important;
  1494. }
  1495. /deep/ .share.uni-popup .uni-popup__wrapper {
  1496. width: 70%;
  1497. border-radius: 15rpx;
  1498. }
  1499. </style>
  1500. <style lang="scss" scoped>
  1501. text {
  1502. font-size: 24rpx;
  1503. }
  1504. #coop_box {
  1505. // display: flex;
  1506. margin-top: 15rpx;
  1507. }
  1508. #coop_box .coop_box_btn {
  1509. display: flex;
  1510. flex-direction: column;
  1511. justify-content: center;
  1512. align-items: center;
  1513. // width: 700rpx;
  1514. background-color: #f4f4f4;
  1515. border-radius: 15rpx;
  1516. font-size: 30rpx;
  1517. text-align: center;
  1518. cursor: pointer;
  1519. margin: 40rpx 0;
  1520. padding: auto 10rpx;
  1521. }
  1522. .borderColor {
  1523. border: 2px solid #f7d43c !important;
  1524. }
  1525. .offer_input {
  1526. width: 120rpx;
  1527. border: 1px solid #cccccc;
  1528. }
  1529. .wvp {
  1530. color: #000;
  1531. margin: 0 5rpx;
  1532. }
  1533. .wvp1 {
  1534. padding: 0 30rpx;
  1535. border-radius: 10rpx;
  1536. margin: 0 10rpx;
  1537. background-color: #f2d22d;
  1538. border: 10rpx;
  1539. }
  1540. .my-canvas {
  1541. position: fixed;
  1542. top: -99999999999rpx;
  1543. left: -99999999999rpx;
  1544. z-index: -99999999999;
  1545. opacity: 0;
  1546. }
  1547. .poster {
  1548. width: 100vw;
  1549. height: 100vh;
  1550. display: flex;
  1551. flex-flow: column nowrap;
  1552. justify-content: center;
  1553. overflow: hidden;
  1554. }
  1555. .butmin {
  1556. width: 200rpx;
  1557. height: 65rpx;
  1558. background-color: #f2d22d;
  1559. border-radius: 20rpx;
  1560. font-size: 36rpx;
  1561. line-height: 2;
  1562. }
  1563. //视频轮播
  1564. .full {
  1565. position: relative;
  1566. .btns {
  1567. position: absolute;
  1568. background-color: rgba(255, 255, 255, 0.5);
  1569. z-index: 1;
  1570. left: 100rpx;
  1571. top: 50rpx;
  1572. right: 100rpx;
  1573. display: flex;
  1574. justify-content: space-around;
  1575. flex-wrap: wrap;
  1576. >view {
  1577. height: 60rpx;
  1578. line-height: 60rpx;
  1579. text-align: center;
  1580. padding: 0 20rpx;
  1581. }
  1582. &.full {
  1583. position: relative;
  1584. left: 0;
  1585. right: 0;
  1586. >view {
  1587. height: 60rpx;
  1588. line-height: 60rpx;
  1589. text-align: center;
  1590. padding: 0 20rpx;
  1591. background-color: rgba(0, 0, 0, 0.1);
  1592. margin-bottom: 10rpx;
  1593. }
  1594. }
  1595. }
  1596. }
  1597. //轮播图
  1598. page {
  1599. background-color: #fff;
  1600. }
  1601. .top-swiper {
  1602. margin-bottom: 30rpx;
  1603. .bg {
  1604. padding-top: var(--status-bar-height);
  1605. box-sizing: content-box;
  1606. width: 100%;
  1607. position: relative;
  1608. .image {
  1609. box-sizing: content-box;
  1610. position: absolute;
  1611. z-index: 1;
  1612. top: 0;
  1613. left: 0;
  1614. width: 100%;
  1615. height: 100%;
  1616. overflow: hidden;
  1617. &::after {
  1618. content: '';
  1619. position: absolute;
  1620. width: 100%;
  1621. height: 100%;
  1622. z-index: 1;
  1623. bottom: 0;
  1624. left: 0;
  1625. height: 65%;
  1626. background-image: linear-gradient(to bottom, transparent, #FFF);
  1627. }
  1628. >image {
  1629. position: absolute;
  1630. box-sizing: content-box;
  1631. padding: 60px;
  1632. top: 0;
  1633. left: 0;
  1634. width: 100%;
  1635. height: 80%;
  1636. top: -60px;
  1637. left: -60px;
  1638. filter: blur(50px);
  1639. }
  1640. }
  1641. }
  1642. .box {
  1643. padding-top: var(--status-bar-height);
  1644. box-sizing: content-box;
  1645. // position: absolute;
  1646. z-index: 5;
  1647. top: 0;
  1648. left: 0;
  1649. width: 100%;
  1650. height: auto;
  1651. }
  1652. .swiper {
  1653. height: 450rpx;
  1654. margin: 0 20rpx;
  1655. .le-img {
  1656. width: 100%;
  1657. height: 100%;
  1658. display: block;
  1659. transform: scale(0.8);
  1660. transition: transform 0.3s ease-in-out 0s;
  1661. border-radius: 4px;
  1662. &.le-active {
  1663. transform: scale(1);
  1664. }
  1665. }
  1666. }
  1667. }
  1668. //其他的
  1669. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  1670. border-radius: 20rpx !important;
  1671. padding: 8rpx 30rpx !important;
  1672. border: 0 !important;
  1673. }
  1674. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  1675. font-size: 24rpx;
  1676. color: #333333;
  1677. }
  1678. .butto {
  1679. text-align: center;
  1680. }
  1681. .option {
  1682. padding: 20rpx;
  1683. }
  1684. //轮播图
  1685. .uni-margin-wrap {
  1686. width: 690rpx;
  1687. width: 100%;
  1688. }
  1689. .swiper {
  1690. height: 750rpx;
  1691. display: flex;
  1692. justify-content: center;
  1693. }
  1694. .swiper-item {
  1695. display: block;
  1696. width: 100%;
  1697. height: 750rpx;
  1698. line-height: 750rpx;
  1699. text-align: center;
  1700. }
  1701. .swiper-list {
  1702. margin-bottom: 0;
  1703. }
  1704. .uni-common-mt {
  1705. margin-top: 60rpx;
  1706. position: relative;
  1707. }
  1708. .info {
  1709. position: absolute;
  1710. right: 20rpx;
  1711. }
  1712. .uni-padding-wrap {
  1713. width: 550rpx;
  1714. padding: 0 100rpx;
  1715. }
  1716. .Tasktext {
  1717. // padding-top: 5% ;
  1718. padding: 0 0 0 1%;
  1719. // height: 80rpx;
  1720. margin-top: 2%;
  1721. }
  1722. .Tasktext span {
  1723. color: #333333;
  1724. font-size: 100%;
  1725. font-weight: 550;
  1726. text-indent: 2em;
  1727. }
  1728. .Tasktext image {
  1729. vertical-align: middle;
  1730. width: 50rpx;
  1731. height: 50rpx;
  1732. display: inline-block;
  1733. padding-right: 14rpx;
  1734. }
  1735. .TitleText {
  1736. height: 30rpx;
  1737. background-color: #FDD442;
  1738. border-radius: 20rpx;
  1739. display: inline-block;
  1740. padding: 0rpx 20rpx 0rpx 20rpx;
  1741. line-height: 30rpx;
  1742. margin-right: 20rpx;
  1743. margin-top: 6%;
  1744. }
  1745. .TitleText p {
  1746. color: #C49A0A;
  1747. font-size: 50%;
  1748. }
  1749. .introduction {
  1750. width: 90%;
  1751. margin: 0 auto;
  1752. display: flex;
  1753. justify-content: space-between;
  1754. margin-top: 2%;
  1755. }
  1756. .introduction1 {
  1757. width: 90%;
  1758. margin: 0 auto;
  1759. display: flex;
  1760. justify-content: space-between;
  1761. margin-top: 2%;
  1762. }
  1763. .rleft p {
  1764. font-size: 24rpx;
  1765. }
  1766. .rright p {
  1767. font-size: 24rpx;
  1768. }
  1769. .rleft1 p {
  1770. font-size: 30rpx;
  1771. }
  1772. .rright1 p {
  1773. font-size: 24rpx;
  1774. line-height: 45rpx
  1775. }
  1776. .importentInfo1 {
  1777. margin: 25rpx 11rpx;
  1778. background-color: #fbedd9;
  1779. border-radius: 8px;
  1780. width: 700rpx;
  1781. height: 130rpx;
  1782. }
  1783. .importentInfo2 {
  1784. margin: 2rpx 11rpx;
  1785. background-color: #bbd0ff;
  1786. border-radius: 8px;
  1787. width: 700rpx;
  1788. height: 65rpx;
  1789. }
  1790. .projectinfo {
  1791. margin: 30rpx 0;
  1792. display: flex;
  1793. justify-content: space-around;
  1794. }
  1795. .projectinfotxt {
  1796. display: flex;
  1797. flex-direction: column;
  1798. align-items: center;
  1799. justify-content: center;
  1800. }
  1801. .projectinfotxt p {
  1802. color: #767272;
  1803. font-size: 32rpx;
  1804. margin: 5rpx 0;
  1805. }
  1806. .interval {
  1807. width: 100%;
  1808. height: 40rpx;
  1809. background-color: #E4E4E4;
  1810. margin-top: 5%;
  1811. }
  1812. .circularmark {
  1813. // display: inline-block;
  1814. width: 250rpx;
  1815. margin: 10rpx auto;
  1816. padding: 10rpx;
  1817. background-color: #f2d22d;
  1818. border-radius: 10rpx;
  1819. position: relative;
  1820. margin-top: 30rpx;
  1821. }
  1822. .circularmark p {
  1823. font-size: 85%;
  1824. text-align: center;
  1825. font-weight: 800;
  1826. }
  1827. .circularmark image {
  1828. width: 60rpx;
  1829. height: 68rpx;
  1830. position: absolute;
  1831. top: -30%;
  1832. left: -10%;
  1833. }
  1834. .btnn {
  1835. background-color: #3296FA;
  1836. border-radius: 20rpx;
  1837. font-size: 25rpx;
  1838. line-height: 34rpx;
  1839. }
  1840. .markcontent {
  1841. // width: 100%;
  1842. // background-color: #E4E4E4;
  1843. margin: 0 30rpx;
  1844. border-radius: 20rpx;
  1845. padding-top: 2%;
  1846. padding-bottom: 2%;
  1847. }
  1848. .markcontent p {
  1849. font-size: 24rpx;
  1850. margin: 10rpx 0;
  1851. }
  1852. .markcontent span {
  1853. font-size: 24rpx;
  1854. // color: #333333;
  1855. // margin: 3% ;
  1856. }
  1857. .getsamcondi {
  1858. display: flex;
  1859. justify-content: space-between;
  1860. align-items: center;
  1861. }
  1862. .interval2 {
  1863. width: 100%;
  1864. height: 100rpx;
  1865. background-color: #E4E4E4;
  1866. margin-top: 5%;
  1867. }
  1868. .markcontent1 {
  1869. width: 100%;
  1870. border-radius: 20rpx;
  1871. padding-top: 2%;
  1872. padding-bottom: 2%;
  1873. }
  1874. .markcontent1 p {
  1875. font-size: 24rpx;
  1876. // color: #333333;
  1877. // margin: 3% ;
  1878. // text-indent: 2em;
  1879. }
  1880. .trademark {
  1881. width: 120rpx;
  1882. height: 120rpx;
  1883. border-radius: 50%;
  1884. background-color: #f2d22d;
  1885. margin: 0 auto;
  1886. }
  1887. .trademark image {
  1888. width: 100%;
  1889. height: 100%;
  1890. }
  1891. .diagram {
  1892. width: 100%;
  1893. // height: 1000rpx;
  1894. }
  1895. .diagram image {
  1896. width: 100%;
  1897. // height: 100% ;
  1898. }
  1899. .diagram-pdf {
  1900. padding: 0 20rpx;
  1901. width: 100%;
  1902. height: 100rpx;
  1903. display: flex;
  1904. align-items: center;
  1905. justify-content: space-between;
  1906. }
  1907. .diagram-pdf image {
  1908. width: 60rpx;
  1909. height: 60rpx;
  1910. }
  1911. .diagram-pdf p {
  1912. width: 50%;
  1913. font-size: 32rpx;
  1914. }
  1915. .diagram-pdf button {
  1916. background-color: #FFFFFF;
  1917. border: 2rpx solid #f2d22d;
  1918. border-radius: 20rpx;
  1919. font-size: 32rpx;
  1920. // letter-spacing: 5rpx;
  1921. font-weight: 500;
  1922. position: relative;
  1923. }
  1924. .but1 {
  1925. width: 220rpx;
  1926. background-color: #f2d22d;
  1927. border-radius: 20rpx;
  1928. font-size: 32rpx;
  1929. line-height: 200%;
  1930. // letter-spacing: 10rpx;
  1931. font-weight: 500;
  1932. height: 80%;
  1933. // padding: 0 50rpx;
  1934. &.on {
  1935. background-color: #C0C0C0;
  1936. }
  1937. }
  1938. .but5 {
  1939. background-color: #f2d22d;
  1940. border-radius: 20rpx;
  1941. font-size: 32rpx;
  1942. line-height: 200%;
  1943. letter-spacing: 10rpx;
  1944. font-weight: 500;
  1945. height: 80%;
  1946. text-align: center;
  1947. padding: 0 10rpx;
  1948. &.on {
  1949. background-color: #C0C0C0;
  1950. }
  1951. }
  1952. /** 必须提升样式优先权(!important) **/
  1953. button[disabled] {
  1954. // width: 60%;
  1955. border-radius: 20rpx;
  1956. font-size: 36rpx;
  1957. line-height: 200%;
  1958. // letter-spacing: 10rpx;
  1959. font-weight: 500;
  1960. height: 80%;
  1961. color: white !important;
  1962. background: #c4c1c1 !important;
  1963. }
  1964. .but2 {
  1965. // width: 25%;
  1966. background-color: #FFFFFF;
  1967. border: 2rpx solid #f2d22d;
  1968. border-radius: 20rpx;
  1969. font-size: 36rpx;
  1970. line-height: 180%;
  1971. // letter-spacing: 10rpx;
  1972. font-weight: 500;
  1973. position: relative;
  1974. // text-indent: 0.5em;
  1975. height: 80%;
  1976. }
  1977. .but2 image {
  1978. width: 19%;
  1979. height: 56%;
  1980. position: absolute;
  1981. left: 9%;
  1982. top: 21%;
  1983. }
  1984. .signup {
  1985. box-shadow: 0rpx 5rpx 40rpx #ccc;
  1986. width: 100%;
  1987. position: fixed;
  1988. height: 90rpx;
  1989. padding: 2% 0;
  1990. background-color: #ffffff;
  1991. bottom: 0rpx;
  1992. display: flex;
  1993. justify-content: space-around;
  1994. align-items: center;
  1995. }
  1996. .pick {
  1997. width: 50rpx;
  1998. height: 50rpx;
  1999. vertical-align: middle;
  2000. }
  2001. .nex {
  2002. width: 100rpx;
  2003. height: 20rpx;
  2004. vertical-align: middle;
  2005. }
  2006. .sampledrawing {
  2007. display: flex;
  2008. width: 96%;
  2009. margin: 0 auto 50rpx;
  2010. }
  2011. .samplecharacter {
  2012. flex: 1;
  2013. margin-top: 2%;
  2014. }
  2015. .samplecharacter p {
  2016. padding: 1%;
  2017. }
  2018. /deep/.uni-popup__content {
  2019. background-color: #4CD964;
  2020. border-radius: 20rpx !important;
  2021. }
  2022. /deep/.uni-popup__mask {
  2023. background: rgba(0, 0, 0, 0.5) !important;
  2024. }
  2025. .butto {
  2026. text-align: center;
  2027. }
  2028. /deep/ .mini-btn1 {
  2029. height: 75rpx;
  2030. width: 270rpx;
  2031. line-height: 70rpx;
  2032. margin: 10rpx 0;
  2033. font-size: 30rpx;
  2034. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  2035. border: 1rpx solid #f2d22d !important;
  2036. }
  2037. /deep/ .mini-btn2 {
  2038. height: 75rpx;
  2039. width: 350rpx;
  2040. line-height: 70rpx;
  2041. margin: 10rpx 0;
  2042. font-size: 30rpx;
  2043. background-color: #f2d22d;
  2044. // box-shadow: 0rpx 0rpx 0rpx 5rpx #f2d22d;
  2045. }
  2046. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag {
  2047. background-color: #FFFFFF !important;
  2048. box-shadow: 0rpx 0rpx 6rpx 0rpx #464100;
  2049. border-radius: 10rpx !important;
  2050. }
  2051. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  2052. background-color: #f2d22d !important;
  2053. }
  2054. /deep/.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked .checklist-text {
  2055. color: #333333 !important;
  2056. }
  2057. /deep/.buu .uni-data-checklist .checklist-group {
  2058. flex-direction: column !important;
  2059. }
  2060. .surplus p {
  2061. margin-bottom: 17%;
  2062. margin-top: 8%;
  2063. font-size: 80%;
  2064. }
  2065. .circular {
  2066. width: 120rpx;
  2067. height: 120rpx;
  2068. border-radius: 50%;
  2069. background-color: #28EA71;
  2070. margin: 0 auto;
  2071. }
  2072. .circular image {
  2073. width: 60%;
  2074. height: 60%;
  2075. padding: 20%;
  2076. }
  2077. .tii {
  2078. text-align: center;
  2079. font-size: 26rpx;
  2080. margin-top: 2%;
  2081. }
  2082. .tii2 {
  2083. text-align: center;
  2084. font-size: 26rpx;
  2085. margin-top: 2%;
  2086. background-color: #FFFFFF;
  2087. }
  2088. .errar {
  2089. background-color: #FFFFFF;
  2090. }
  2091. .sharepage {
  2092. width: 90%;
  2093. margin: 0 auto;
  2094. position: relative;
  2095. }
  2096. .Tasktext1 {
  2097. // padding-top: 5% ;
  2098. padding: 0 0 0 1%;
  2099. height: 80rpx;
  2100. margin-top: 7%;
  2101. text-align: center;
  2102. }
  2103. .Tasktext1 span {
  2104. color: #333333;
  2105. font-size: 100%;
  2106. font-weight: 550;
  2107. text-indent: 2em;
  2108. }
  2109. .Tasktext1 image {
  2110. vertical-align: middle;
  2111. width: 80rpx;
  2112. height: 80rpx;
  2113. display: inline-block;
  2114. padding-right: 14rpx;
  2115. }
  2116. .sharemap {
  2117. margin: 0 auto;
  2118. text-align: center;
  2119. margin-top: 5%;
  2120. }
  2121. .sharemap image {
  2122. width: 400rpx;
  2123. height: 400rpx;
  2124. }
  2125. .Tasktext2 {
  2126. // padding-top: 5% ;
  2127. padding: 0 0 0 1%;
  2128. // height: 80rpx;
  2129. margin-top: 2%;
  2130. // text-align: center;
  2131. }
  2132. .Tasktext2 span {
  2133. color: #333333;
  2134. font-size: 88%;
  2135. font-weight: 600;
  2136. text-indent: 2em;
  2137. }
  2138. .Tasktext2 image {
  2139. vertical-align: middle;
  2140. width: 30rpx;
  2141. height: 30rpx;
  2142. display: inline-block;
  2143. padding-right: 14rpx;
  2144. }
  2145. .textti p {
  2146. font-size: 60%;
  2147. color: #999999;
  2148. text-align: center;
  2149. }
  2150. .immg image {
  2151. width: 200rpx;
  2152. height: 200rpx;
  2153. }
  2154. .immg {
  2155. line-height: 150%;
  2156. }
  2157. .immg p {
  2158. color: #333333;
  2159. font-size: 90%;
  2160. font-weight: 600;
  2161. }
  2162. .warr p {
  2163. font-weight: 500;
  2164. font-size: 90%;
  2165. &.lor {
  2166. border-bottom: 2rpx solid #f2d22d;
  2167. }
  2168. }
  2169. .tip_box {
  2170. position: fixed;
  2171. right: 0;
  2172. z-index: 9999;
  2173. display: flex;
  2174. justify-content: flex-end;
  2175. align-items: flex-end;
  2176. flex-direction: column;
  2177. margin-top: -40rpx;
  2178. .arrow {
  2179. width: 0;
  2180. height: 0;
  2181. border: 10rpx solid;
  2182. border-color: transparent;
  2183. }
  2184. .container {
  2185. display: flex;
  2186. align-items: center;
  2187. justify-content: center;
  2188. padding: 4rpx 10px;
  2189. .tips {
  2190. flex: 1;
  2191. }
  2192. }
  2193. }
  2194. .popup-content {
  2195. display: flex;
  2196. flex-direction: column;
  2197. align-items: center;
  2198. }
  2199. </style>