selectiondetail.vue 62 KB

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