selectiondetail.vue 59 KB

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