selectiondetail.vue 59 KB

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