selectiondetail.vue 53 KB

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