index.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574
  1. <template>
  2. <view>
  3. <ujp-navbar title="包月卡购买" :show="false" ></ujp-navbar>
  4. <!-- 头部图片 -->
  5. <view class="background">
  6. <view class="banner">
  7. <u-swiper bg-color="#fff"
  8. :img-mode="'scaleToFill'" height="240"
  9. :list="bannerList" @click="clickBanner" :name="'picUrl'" >
  10. </u-swiper>
  11. <!-- <img :src="indexLogo?indexLogo:'static/img/banner1.jpg'" alt="">
  12. -->
  13. </view>
  14. <!-- 选项列表 -->
  15. <view class="option-list">
  16. <view class="list-item" @click="getScanCode">
  17. <view class="icon iconfont" style="background: linear-gradient(45deg,#00B962,#5FE4A6);">
  18. &#xe61a;
  19. </view>
  20. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  21. 扫码充电
  22. </view>
  23. </view>
  24. <view class="list-item" @click="fastRecharge">
  25. <view class="icon iconfont" style="background: linear-gradient(45deg,#23AD9B,#4BD2C0);">
  26. &#xe629;
  27. </view>
  28. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  29. 快速充值
  30. </view>
  31. </view>
  32. <view class="list-item" @click="chargingRecord">
  33. <view class="icon iconfont" style="background: linear-gradient(45deg,#407DE4,#6FA5FF );">
  34. &#xe625;
  35. </view>
  36. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  37. 充电记录
  38. </view>
  39. </view>
  40. <view class="list-item" @click="toSearchPile">
  41. <view class="icon iconfont" style="background: linear-gradient(45deg,#6366FF,#9D9FFF);">
  42. &#xe622;
  43. </view>
  44. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  45. 附近站点
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 充值活动 -->
  50. <view class=" top-up" v-if="activityList.length > 0 && !activityListShow">
  51. <view class="card-box">
  52. <view class="card" v-for="(item,index) in activityList" :key="item.id"
  53. @click="rechargeActivity(item)">
  54. <img :src="item.picUrl" alt="">
  55. </view>
  56. </view>
  57. </view>
  58. <u-modal v-model="showOss" class="showOss"
  59. :show-title="false" :show-confirm-button="false" >
  60. <view class="slot-content">
  61. <u-image width="250px" style="margin: auto;"
  62. mode="widthFix"
  63. :src="showOssImg"></u-image>
  64. <u-image width="36px" style="margin: auto;"
  65. mode="widthFix" @click="showOss=false"
  66. src="../../assets/img/if-close-line-circled.png"></u-image>
  67. </view>
  68. </u-modal>
  69. <!-- 模式选择 -->
  70. <u-mask :show="show">
  71. <view class="wrap">
  72. <view class="shema" @tap.stop>
  73. <view class="title">
  74. 设置浏览模式
  75. </view>
  76. <view class="">
  77. <u-radio-group v-model="value">
  78. <u-radio v-for="(item, index) in list" :key="index" :name="item.name" :disabled="item.disabled" active-color="#00B962">
  79. {{item.name}}
  80. <p v-if="item.name == '长辈模式'">字体更大 看的清楚</p>
  81. <p v-if="item.name == '标准模式'">信息丰富 功能全面</p>
  82. </u-radio>
  83. </u-radio-group>
  84. </view>
  85. <view class="hint">可在 {{""}}我的-设置 {{""}}页面中切换</view>
  86. <view class="btn-box">
  87. <u-button class="choice-btn" type="success" shape="circle" @click="elderClick">我选好了</u-button>
  88. </view>
  89. </view>
  90. </view>
  91. </u-mask>
  92. <!-- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  93. <view class="img-box">
  94. <view class="img-1" v-for="(item,index) in activityList" :key="item.id"
  95. @click="rechargeActivity(item)">
  96. <img :src="item.picUrl" alt="">
  97. </view>
  98. </view> -->
  99. </view>
  100. <!-- 最新活动 -->
  101. <view class=" top-up" v-if="activityList.length > 0 && activityListShow">
  102. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  103. <view class="img-box2">
  104. <view class="left-image" :style="{backgroundImage: 'url(' + activityDateList.picUrl + ')'}" @click="rechargeActivity(activityDateList)">
  105. <p>{{activityDateList.name}}</p>
  106. <view class="time-activities">
  107. 距活动结束仅剩 <text class="time">{{description}}</text>
  108. </view>
  109. </view>
  110. <view class="right-image">
  111. <img class="margin-bottom" v-for="(item,index) in activityList" :key="item.id"
  112. @click="rechargeActivity(item)" :src="item.narrowUrl" alt="">
  113. <!-- <img class="margin-bottom" src="../../assets/img/topup2.png" alt="" @click="rechargeActivity(0)">
  114. <img class="margin-bottom" src="../../assets/img/topup3.png" alt="" @click="rechargeActivity(1)"> -->
  115. </view>
  116. </view>
  117. </view>
  118. <!-- <template v-if="message == 'getLocation:ok' && stationList.length != 0 && chargeList.length == 0">
  119. <view class=" top-up" >
  120. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>附近站点
  121. <view class="pack-up" v-show="!listShow" @click="listShow=true" >
  122. 收起<text class="iconfont">&#xe607;</text>
  123. </view>
  124. <view class="pack-up" v-if="listShow" @click="listShow=false" >
  125. 展开<text class="iconfont">&#xe62c;</text>
  126. </view>
  127. </view>
  128. </view> -->
  129. <!-- 附近站点 -->
  130. <!-- <view class="station" v-for="(stationData,i) in stationList" :key="i"
  131. v-show="!listShow||i==0"
  132. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  133. <view class="text">
  134. <view class="station-title">
  135. <text class="title-left" v-if="stationData.type == '1'" :style="elderStatus ? 'font-size: 14px;background-color: #9D9FFF;' : 'background-color: #9D9FFF;'">快充</text>
  136. <text class="title-left" v-if="stationData.type == '2'" :style="elderStatus ? 'font-size: 14px;background-color: #00B962;' : 'background-color: #00B962;'">慢充</text>
  137. <text class="title-left" v-if="stationData.type == '1,2'" :style="elderStatus ? 'font-size: 14px;background-color: #00BAC8;' : 'background-color: #00BAC8;'">快/慢</text>
  138. <text class="title-right oldTextjp" oldstyle="font-size: 20px;">{{stationData.name}}</text>
  139. </view>
  140. <view class="station-price">
  141. <view class="flex">
  142. <view class="price-left">{{stationData.costPrice.toFixed(2)}}</view>
  143. <view class="price-right">
  144. 元/度 起
  145. </view>
  146. </view>
  147. <view class="count-left">
  148. <span class="oldTextjp2 free-conut" oldstyle="font-size: 16px;" >空闲{{stationData.availableNum}}/</span>
  149. <span class="oldTextjp" oldstyle="font-size: 16px;">总数{{stationData.totalNum}}</span>
  150. </view>
  151. </view>
  152. <view class="park">
  153. <view class="flex" v-if="stationData.parkingDescription">
  154. <view class="park-p">p</view>
  155. <view class="park-text oldTextjp2" oldstyle="font-size: 14px;" >{{stationData.parkingDescription}}</view>
  156. </view>
  157. <view class="count-right oldTextjp" oldstyle="font-size: 16px;">
  158. <text class="iconfont" style="color: #00B962;">&#xe615;</text>
  159. {{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </template> -->
  165. <!-- 附近站点改版 -->
  166. <template v-if="message == 'getLocation:ok' && stationList.length != 0 && chargeList.length == 0">
  167. <view class=" top-up" >
  168. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>附近站点
  169. <view class="pack-up" v-show="!listShow" @click="listShow=true" >
  170. 收起<text class="iconfont">&#xe607;</text>
  171. </view>
  172. <view class="pack-up" v-if="listShow" @click="listShow=false" >
  173. 展开<text class="iconfont">&#xe62c;</text>
  174. </view>
  175. </view>
  176. </view>
  177. <!-- 附近站点 -->
  178. <view class="station" v-for="(stationData,i) in stationList" :key="i"
  179. v-show="!listShow||i==0"
  180. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  181. <view class="head">
  182. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  183. {{stationData.name}}
  184. </view>
  185. <view class="distance oldTextjp" oldstyle="font-size: 16px;">
  186. <text class="iconfont" style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  187. </view>
  188. </view>
  189. <view class="sign">
  190. <view class="sign-1" v-if="stationData.giveDiscount">服务费{{stationData.discountRatio/10}}折</view>
  191. <view class="sign-2" v-if="stationData.tagList.length != 0" v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
  192. </view>
  193. <view class="price-free">
  194. <view class="price">
  195. <view class="price-1">
  196. <text class="num">
  197. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  198. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  199. <text class="unit">元/度 起</text>
  200. </view>
  201. <view class="price-2" v-if="stationData.giveDiscount">
  202. <text class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  203. <text class="unit">元/度 起</text>
  204. </view>
  205. </view>
  206. <view class="free">
  207. <view class="fast" v-if="stationData.type == '1' || stationData.type == '1,2'">
  208. <view class="fast-font">
  209. </view>
  210. <view class="num">
  211. {{stationData.fastAvailableNum}}/{{stationData.fastNum}}
  212. </view>
  213. </view>
  214. <view class="slow" v-if="stationData.type == '2' || stationData.type == '1,2'">
  215. <view class="slow-font">
  216. </view>
  217. <view class="num">
  218. {{stationData.slowAvailableNum}}/{{stationData.slowNum}}
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. </template>
  225. <!-- 定位 -->
  226. <view class="location-box" v-if="message != 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
  227. <view class="location">
  228. <view class="location-text">
  229. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  230. 定位中...
  231. </view>
  232. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  233. 授权定位后可查询附近充电站
  234. </view>
  235. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  236. 重新定位
  237. </view>
  238. </view>
  239. <view class="img-box">
  240. <img src="static/img/暂无网络信号-缺省页 1.png">
  241. </view>
  242. </view>
  243. </view>
  244. <!-- 充电状态 -->
  245. <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" :key="item.id"
  246. @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
  247. <view class="state-text">
  248. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  249. {{item.statusText}}
  250. </view>
  251. <view v-if="item.status == '0'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  252. 启动中
  253. </view>
  254. <view v-if="item.status == '1'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  255. 已充{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元
  256. </view>
  257. <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
  258. 超出时间将收取占位费
  259. </view> -->
  260. <view v-if="item.status == '4'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  261. <span v-if="item.waitNum==1">请耐心等待</span>
  262. <span v-else >前方等待{{item.waitNum-1}}位</span>
  263. </view>
  264. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;">
  265. <p style=" width: 160%;"> {{item.stationName}}/{{item.deviceName}}&nbsp;&nbsp;当前电价{{item.chargingCostPrice.toFixed(2)}}元/度</p>
  266. </view>
  267. </view>
  268. <view class="img-box" style="height: 110px;">
  269. <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
  270. <img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
  271. <img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
  272. <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
  273. </view>
  274. </view>
  275. <!-- 新闻 -->
  276. <view class="news-title" v-if="newsList.length > 0">
  277. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  278. <view class="line" style="margin-top:4px;"></view>新闻公告
  279. </view>
  280. <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="toNewsNotice">更多<view class="more-icon iconfont"> &#xe600;</view>
  281. </view>
  282. </view>
  283. <view class="news">
  284. <view class="news-content" v-for="(item,index) in newsList" :key="item.id"
  285. @click="gotoUrl('pages/article/articleDetails?id=' + item.id)">
  286. <view class="content-text">
  287. <view class="content-title oldTextjp2" oldstyle="font-size: 18px;">{{item.title}}</view>
  288. <view class="news-time">{{item.createTime?item.createTime.slice(5,10):''}}</view>
  289. </view>
  290. <view class="content-img">
  291. <img :src="item.pic ? item.pic : 'static/img/image_default.png'" alt="">
  292. </view>
  293. </view>
  294. </view>
  295. <view class="bottom" v-if="newsList.length == recordsTotal && newsList.length != 0">
  296. <view class="bot">
  297. <view class="bot-line"></view>
  298. <view class="bot-text oldTextjp2" oldstyle="font-size: 14px;">已经到底了</view>
  299. <view class="bot-line"></view>
  300. </view>
  301. </view>
  302. <!-- 导航栏 -->
  303. <view class="navigation">
  304. <view class="login-prompt" v-if="!userId">
  305. 登录显示更多会员服务
  306. <text class="button" @click="toLogin">登录/注册</text>
  307. </view>
  308. </view>
  309. <Tabbar :current="0" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  310. </view>
  311. </template>
  312. <script>
  313. import * as API from '@/apis/index.js'
  314. import * as newsApi from '@/apis/news.js'
  315. import * as WxJsApi from '@/utils/wxJsApi.js'
  316. import * as siteApi from '@/apis/site.js'
  317. import * as loginApi from '@/apis/login.js'
  318. import MapLoader from '@/utils/AMap'
  319. import Tabbar from '@/components/Tabbar.vue'
  320. import {
  321. newDate,
  322. secondsDistance,
  323. hourDistanceArr
  324. } from '@/utils'
  325. export default {
  326. components: {
  327. Tabbar
  328. },
  329. data() {
  330. return {
  331. listShow:false,
  332. stationList: [],
  333. bannerList:[],
  334. timeOut: false,
  335. pointTimeOut: true,
  336. chargeList: [],
  337. activityList: [],
  338. userId: '',
  339. newsList: [],
  340. pageIndex: 1,
  341. recordsTotal: 0,
  342. longitude: '',
  343. latitude: '',
  344. message: '',
  345. indexLogo: '',
  346. showOss:false,
  347. showOssImg:'',
  348. show: false,
  349. list: [{
  350. name: '长辈模式',
  351. disabled: false
  352. },
  353. {
  354. name: '标准模式',
  355. disabled: false
  356. },
  357. ],
  358. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  359. value: '长辈模式',
  360. elderStatus: false,
  361. fontMode: '',
  362. description: '00:00:00',
  363. activityDate: '',
  364. activityDateList: {},
  365. activityListShow: false,
  366. }
  367. },
  368. onLoad(op) {
  369. if (op.jpcode) {
  370. var k = API.codeOperation(op.jpcode)
  371. if (k) {
  372. uni.navigateTo({
  373. url: k
  374. })
  375. }
  376. }
  377. },
  378. onUnload() {
  379. this.timeOut = false;
  380. this.pointTimeOut = false;
  381. },
  382. onHide() {
  383. this.timeOut = false;
  384. this.pointTimeOut = false;
  385. },
  386. onReachBottom() {
  387. if (this.newsList.length < this.recordsTotal) {
  388. this.myLoadmore();
  389. }
  390. },
  391. onShow() {
  392. if(this.$refs.tabbarMain){
  393. this.$refs.tabbarMain.setcount(0);
  394. }
  395. if( !this.pointTimeOut ){
  396. this.pointTimeOut=true
  397. this.getPointTimeOut();
  398. this.getUserInfo();
  399. }
  400. },
  401. onReady() {
  402. // if (this.carhelp.get("getElderModeClass")) {
  403. // if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  404. // this.fontMode = '1';
  405. // } else {
  406. // this.fontMode = '0';
  407. // }
  408. // API.changeFont({fontMode: this.fontMode}).then((res) => {
  409. // }).catch(error => {
  410. // uni.showToast({
  411. // title: error,
  412. // icon: "none"
  413. // })
  414. // })
  415. // }
  416. this.getUserInfo();
  417. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  418. // //(res)
  419. }).catch(error => {
  420. //(res)
  421. })
  422. this.getBannerInfo("homepage")
  423. this.getPointTimeOut();
  424. this.getNewsList();
  425. this.getActivityInfoList();
  426. },
  427. methods: {
  428. getDescriptionTime() {
  429. var date = this.activityDate;
  430. var dateMonth1 = new Date().getMonth()+1;
  431. var dateDay1 = new Date().getDate();
  432. var dateMonth2 = parseInt(date.slice(5,7));
  433. var dateDay2 = parseInt(date.slice(8,10));
  434. if(dateMonth1 < dateMonth2) {
  435. var days = new Date(new Date().getFullYear(), dateMonth1, 0).getDate();
  436. dateDay2 = dateDay2 + days;
  437. console.log(dateDay2)
  438. }
  439. if(dateDay1 < dateDay2-2) {
  440. this.description = dateDay2 - dateDay1 + '天'
  441. } else {
  442. var dateTime2=new Date(date).getTime()
  443. var c=hourDistanceArr(new Date(),new Date(dateTime2))
  444. if(c[0] < 10) {
  445. c[0] = '0'+c[0];
  446. }
  447. if(c[1] < 10) {
  448. c[1] = '0'+c[1];
  449. }
  450. if(c[2] < 10) {
  451. c[2] = '0'+c[2];
  452. }
  453. this.description = c[0]+':'+c[1]+':'+c[2];
  454. if(this.description == '00:00:00') {
  455. this.activityListShow = false;
  456. }
  457. setTimeout(()=>{
  458. this.getDescriptionTime();
  459. },1000)
  460. }
  461. },
  462. getUserInfo() {
  463. uni.showLoading({
  464. title: "加载中",
  465. mask: true,
  466. })
  467. loginApi.findByOpenId({
  468. openId: this.carhelp.getOpenId(),
  469. noerror:true,
  470. }).then((res) => {
  471. uni.hideLoading();
  472. if (res.code == 200&&res.result) {
  473. var token = res ? res.data.token : '';
  474. this.carhelp.setPersonInfo(res.data.regUser );
  475. this.carhelp.setToken(token);
  476. this.carhelp.setPersonInfoPlus(res.data);
  477. }
  478. console.log("--------------")
  479. if (res.data&&res.data.regUser) {
  480. if(res.data.regUser.fontMode == null) {
  481. this.show = true;
  482. } else {
  483. this.show = false;
  484. this.fontMode = res.data.regUser.fontMode;
  485. if(this.fontMode == '1') {
  486. this.carhelp.set("getElderModeClass", "长辈模式");
  487. } else {
  488. this.carhelp.set("getElderModeClass", "标准模式");
  489. }
  490. }
  491. this.userId = res.data.regUser.id;
  492. this.getFindChargeData();
  493. if (this.carhelp.get("getElderModeClass")) {
  494. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  495. this.elderStatus = true;
  496. } else {
  497. this.elderStatus = false;
  498. }
  499. }
  500. }else{
  501. this.carhelp.set("getElderModeClass", "长辈模式");
  502. this.elderStatus = true;
  503. var obj=this.carhelp.get("friends_invitation")
  504. // this.carhelp.set("friends_invitation",{
  505. // op:op,
  506. // date:new Date().getTime()
  507. // })
  508. if(obj&&false){
  509. if(obj.date+1000*60*60*24 > new Date().getTime() ){
  510. this.friendsInvitation(obj)
  511. }
  512. }
  513. }
  514. }).catch(error => {
  515. uni.showToast({
  516. title: error,
  517. icon: "none"
  518. })
  519. })
  520. },
  521. friendsInvitation(obj){
  522. uni.showLoading({
  523. title: "加载中",
  524. mask: true,
  525. })
  526. API.findActivity({
  527. id:obj.op.id,
  528. code:obj.op.icode
  529. }).then((res) => {
  530. uni.hideLoading()
  531. obj.activityInfo=res.data.activityInfo;
  532. var name=res.data.activityInfo.name;
  533. var title="参与活动"
  534. var okbtn="前往注册"
  535. var endTime=res.data.activityInfo.endTime;
  536. if(endTime&&secondsDistance(newDate(endTime))>0){
  537. name="活动已结束"
  538. okbtn="继续注册"
  539. title="提示"
  540. obj=null
  541. }
  542. this.carhelp.set("friends_invitation",obj)
  543. uni.showModal({
  544. title:title,
  545. content:name,
  546. confirmText:okbtn,
  547. success: res1 => {
  548. if (res1.confirm) {
  549. uni.navigateTo({
  550. url: '/pages/login/login'
  551. })
  552. } else if (res1.cancel) {
  553. //('用户点击取消');
  554. }
  555. }
  556. })
  557. }).catch(error => {
  558. uni.showToast({
  559. title: error,icon: "none"
  560. })
  561. })
  562. },
  563. clickBanner(index){
  564. var uurl="";
  565. var mod = this.bannerList[index]
  566. mod.clickUrl=mod.linkUrl
  567. if (mod.clickUrl == null) {
  568. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  569. } else if (mod.clickUrl.indexOf('http') == 0) {
  570. if (mod.clickUrl.indexOf('http://oss.xiaoxinda.com/') == 0) {
  571. this.showOss=true;
  572. this.showOssImg=mod.clickUrl;
  573. }else{
  574. window.location = mod.clickUrl+uurl;
  575. }
  576. } else if (mod.clickUrl.indexOf('#/') == 0) {
  577. if (mod.clickUrl.indexOf("?") == -1) {
  578. mod.clickUrl += '?';
  579. }
  580. var url=mod.clickUrl.split("#")[1]
  581. //window.location = mod.clickUrl;
  582. uni.navigateTo({
  583. url: url+uurl
  584. })
  585. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  586. } else {
  587. uni.navigateTo({
  588. url: mod.clickUrl+uurl
  589. })
  590. }
  591. },
  592. getBannerInfo(code){
  593. uni.showLoading({
  594. title: "加载中",
  595. mask: true,
  596. })
  597. newsApi.getBannerInfo(code).then((res) => {
  598. this.bannerList =res.data;
  599. uni.hideLoading()
  600. document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  601. }).catch(error => {
  602. uni.showToast({
  603. title: error,icon: "none"
  604. })
  605. })
  606. },
  607. elderClick() {
  608. if(this.value == "长辈模式") {
  609. this.elderStatus = true;
  610. this.carhelp.set("getElderModeClass", "长辈模式");
  611. this.fontMode = '1';
  612. } else {
  613. this.elderStatus = false;
  614. this.carhelp.set("getElderModeClass", "标准模式");
  615. this.fontMode = '0';
  616. }
  617. API.changeFont({fontMode: this.fontMode}).then((res) => {
  618. this.show = false;
  619. }).catch(error => {
  620. uni.showToast({
  621. title: error,
  622. icon: "none"
  623. })
  624. })
  625. },
  626. getPointTimeOut() {
  627. setTimeout(() => {
  628. if (this.pointTimeOut) {
  629. this.getPoint();
  630. }
  631. }, 1000)
  632. },
  633. getFindChargeData() {
  634. API.findChargeData().then((res) => {
  635. this.chargeList = res.data.chargingRecordList;
  636. var list = res.data.chargingRecordList;
  637. for (var i = 0; i < list.length; i++) {
  638. if (list[i].status == '1' || list[i].status == '4') {
  639. this.timeOut = true;
  640. }
  641. }
  642. if (this.timeOut&&this.pointTimeOut) {
  643. setTimeout(() => {
  644. this.getFindChargeData();
  645. }, 5000)
  646. }
  647. }).catch(error => {
  648. uni.showToast({
  649. title: error,
  650. icon: "none"
  651. })
  652. })
  653. },
  654. toSearchPile() {
  655. uni.navigateTo({
  656. url: '/pages/searchPile/searchPile'
  657. })
  658. },
  659. toLogin() {
  660. uni.navigateTo({
  661. url: '/pages/login/login'
  662. })
  663. },
  664. toNewsNotice() {
  665. uni.navigateTo({
  666. url: '/pages/article/newsNotice'
  667. })
  668. },
  669. //微信扫二维码
  670. getScanCode() {
  671. if (this.userId) {
  672. WxJsApi.scanQRCode(1).then(res => {
  673. //("scanQRCode------" + res)
  674. if (res) {
  675. API.scanCode(res).then((response) => {
  676. }).catch(error => {
  677. uni.showToast({
  678. title: error,
  679. icon: "none"
  680. })
  681. })
  682. }
  683. }).catch(error => {
  684. })
  685. } else {
  686. uni.navigateTo({
  687. url: '/pages/login/login'
  688. })
  689. }
  690. },
  691. fastRecharge() {
  692. if (this.userId) {
  693. uni.navigateTo({
  694. url: '/pages/user/finance/recharge'
  695. })
  696. } else {
  697. uni.navigateTo({
  698. url: '/pages/login/login'
  699. })
  700. }
  701. },
  702. chargingRecord() {
  703. if (this.userId) {
  704. uni.navigateTo({
  705. url: '/pages/record/index'
  706. })
  707. } else {
  708. uni.navigateTo({
  709. url: '/pages/login/login'
  710. })
  711. }
  712. },
  713. rechargeActivity(item) {
  714. if (this.userId) {
  715. var uurl="&uid="+this.userId;
  716. var mod = item
  717. if (mod.clickUrl == null) {
  718. } else if (mod.clickUrl.indexOf('http') == 0) {
  719. window.location = mod.clickUrl+uurl;
  720. } else if (mod.clickUrl.indexOf('#/') == 0) {
  721. if (mod.clickUrl.indexOf("?") == -1) {
  722. mod.clickUrl += '?';
  723. }
  724. var url=mod.clickUrl.split("#")[1]
  725. //window.location = mod.clickUrl;
  726. uni.navigateTo({
  727. url: url+uurl
  728. })
  729. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  730. } else {
  731. uni.navigateTo({
  732. url: mod.clickUrl+uurl
  733. })
  734. }
  735. } else {
  736. uni.navigateTo({
  737. url: '/pages/login/login'
  738. })
  739. }
  740. },
  741. getActivityInfoList() {
  742. uni.showLoading({
  743. title: "加载中",
  744. mask: true,
  745. })
  746. API.activityInfoList({
  747. pageIndex: 1,
  748. pageSize: 10
  749. }).then((res) => {
  750. uni.hideLoading()
  751. var list = res.data.data;
  752. for (let i = 0; i < list.length; i++) {
  753. if(list[i].endTime != null) {
  754. this.activityListShow = true;
  755. var reg=new RegExp('-','gi');
  756. this.activityDate = list[i].endTime.replace(reg,'/');
  757. console.log(this.activityDate)
  758. this.activityDateList = list[i];
  759. list.splice(i, 1);
  760. this.getDescriptionTime();
  761. }
  762. }
  763. this.activityList = list;
  764. }).catch(error => {
  765. uni.showToast({
  766. title: error,
  767. icon: "none"
  768. })
  769. })
  770. },
  771. getPoint() {
  772. WxJsApi.getLocation().then((res) => {
  773. this.latitude = parseFloat(res.latitude);
  774. this.longitude = parseFloat(res.longitude);
  775. this.message = res.errMsg;
  776. if (res.errMsg != 'getLocation:ok') {
  777. uni.showToast({
  778. title: res
  779. })
  780. } else {
  781. siteApi.searchStationData({
  782. longitude: this.longitude,
  783. latitude: this.latitude,
  784. pageSize:5
  785. }).then((response) => {
  786. this.stationList = response.data.data;
  787. if(response.data.data.length){
  788. var stationDataList = response.data.data;
  789. for(var i in stationDataList){
  790. var item=stationDataList[i]
  791. MapLoader().then(AMap1 => {
  792. var lnglat = new AMap.LngLat(this.longitude,this.latitude);
  793. var myDistance = lnglat.distance([item.longitude,item.latitude]);
  794. item.distance = myDistance/1000;
  795. })
  796. }
  797. //this.stationData = stationDataList;
  798. }
  799. }).catch(error => {
  800. uni.showToast({
  801. title: error,
  802. icon: "none"
  803. })
  804. })
  805. }
  806. }).catch(error => {
  807. uni.showToast({
  808. title: error,
  809. icon: "none"
  810. })
  811. })
  812. },
  813. getNewsList(bl) {
  814. uni.showLoading({
  815. title: "加载中",
  816. mask: true,
  817. })
  818. if (bl) {
  819. this.newsList = [];
  820. this.pageIndex = 1;
  821. }
  822. newsApi.newsInfoList({
  823. pageIndex: 1,
  824. pageSize: 10
  825. }).then((res) => {
  826. uni.hideLoading()
  827. this.newsList = [
  828. ...this.newsList,
  829. ...res.data.data
  830. ];
  831. this.recordsTotal = res.data.recordsTotal
  832. }).catch(error => {
  833. uni.showToast({
  834. title: error,
  835. icon: "none"
  836. })
  837. })
  838. },
  839. myLoadmore() {
  840. this.pageIndex += 1;
  841. this.getNewsList()
  842. },
  843. }
  844. }
  845. </script>
  846. <style lang="scss" scoped>
  847. // 头部图片
  848. img {
  849. width: 100%;
  850. height: 100%;
  851. }
  852. .background{
  853. background: linear-gradient(#D6EEDC,#FFFFFF );
  854. padding-top: 16px;
  855. }
  856. .banner {
  857. width: 91.4%;
  858. margin: 0 auto ;
  859. border-radius: 12px;
  860. height: 120px;
  861. overflow: hidden;
  862. }
  863. // 选项列表
  864. .option-list {
  865. padding-top: 15px;
  866. line-height: 20px;
  867. border-radius: 8px;
  868. text-align: center;
  869. margin: auto;
  870. display: flex;
  871. justify-content: space-around;
  872. .list-item {
  873. // 图标
  874. .icon {
  875. width: 40px;
  876. height: 40px;
  877. border-radius: 99px;
  878. line-height: 40px;
  879. font-size: 24px;
  880. text-align: center;
  881. margin: auto;
  882. color: #ffffff;
  883. }
  884. .text{
  885. margin-top: 4px;
  886. }
  887. }
  888. }
  889. .flex{
  890. display: flex;
  891. }
  892. // 站点
  893. .pack-up{
  894. float: right;
  895. font-size: 16px;
  896. color: rgba(119, 119, 119, 100);
  897. }
  898. // 附近站点改版
  899. .station{
  900. width: 91.4%;
  901. border-radius: 8px;
  902. padding: 12px 12px 12px 11px;
  903. background-color: #fff;
  904. margin: 8px auto 0;
  905. .head{
  906. display: flex;
  907. justify-content: space-between;
  908. align-items: center;
  909. .title{
  910. color: rgba(16, 16, 16, 100);
  911. font-size: 40rpx;
  912. font-weight: 550;
  913. }
  914. .distance{
  915. color: rgba(102, 102, 102, 100);
  916. font-size: 32rpx;
  917. .iconfont{
  918. font-size: 28rpx;
  919. margin-right: 4rpx;
  920. }
  921. }
  922. }
  923. .sign{
  924. display: flex;
  925. flex-wrap: wrap;
  926. margin-top: 16rpx;
  927. .sign-1{
  928. line-height: 40rpx;
  929. border-radius: 8rpx;
  930. background-color: rgba(255, 255, 255, 100);
  931. color: rgba(255, 139, 0, 100);
  932. font-size: 24rpx;
  933. text-align: center;
  934. border: 1px solid rgba(255, 139, 0, 100);
  935. padding: 0 8rpx;
  936. margin-right:16rpx;
  937. margin-bottom: 8rpx;
  938. }
  939. .sign-2{
  940. line-height: 40rpx;
  941. border-radius: 8rpx;
  942. background-color: rgba(255, 255, 255, 100);
  943. color: rgba(153, 153, 153, 100);
  944. font-size: 24rpx;
  945. text-align: center;
  946. border: 1px solid rgba(204, 204, 204, 100);
  947. padding: 0 8rpx;
  948. margin-right: 16rpx;
  949. margin-bottom: 8rpx;
  950. }
  951. }
  952. .price-free{
  953. display: flex;
  954. justify-content: space-between;
  955. margin-top: 8rpx;
  956. .price{
  957. display: flex;
  958. align-items: baseline;
  959. }
  960. .price-1{
  961. .num{
  962. color: rgba(255, 98, 0, 100);
  963. font-size: 40rpx;
  964. }
  965. .unit{
  966. color: rgba(153, 153, 153, 100);
  967. }
  968. }
  969. .price-2{
  970. color: rgba(153, 153, 153, 100);
  971. margin-left: 8rpx;
  972. text-decoration: line-through;
  973. }
  974. }
  975. .free{
  976. display: flex;
  977. align-items: center;
  978. .slow,.fast{
  979. display: flex;
  980. .fast-font{
  981. width: 40rpx;
  982. height: 40rpx;
  983. line-height: 40rpx;
  984. border-radius: 8rpx;
  985. background-color: rgba(186, 240, 215, 100);
  986. color: rgba(0, 130, 69, 100);
  987. font-size: 28rpx;
  988. text-align: center;
  989. margin-right: 8rpx;
  990. }
  991. .slow-font{
  992. width: 40rpx;
  993. height: 40rpx;
  994. line-height: 40rpx;
  995. border-radius: 8rpx;
  996. background-color: rgba(226, 226, 226, 100);
  997. color: rgba(128, 128, 128, 100);
  998. font-size: 28rpx;
  999. text-align: center;
  1000. margin-right: 8rpx;
  1001. }
  1002. .num{
  1003. font-size: 16px;color: rgba(0, 145, 67, 100);
  1004. line-height: 40rpx;
  1005. }
  1006. }
  1007. .slow{
  1008. margin-left: 24rpx;
  1009. }
  1010. }
  1011. }
  1012. //定位
  1013. .location {
  1014. width: 91.4%;
  1015. background-color: #ffffff;
  1016. height: 120px;
  1017. display: flex;
  1018. justify-content: space-between;
  1019. margin: 20px auto 0;
  1020. border-radius: 8px;
  1021. border: #F2F4F4 1px;
  1022. .location-text {
  1023. padding: 24px 0 0 28px;
  1024. .text-1 {
  1025. height: 16px;
  1026. line-height: 16px;
  1027. color: rgba(16, 16, 16, 100);
  1028. font-size: 16px;
  1029. text-align: left;
  1030. }
  1031. .text-2 {
  1032. height: 17px;
  1033. line-height: 17px;
  1034. color: rgba(102, 102, 102, 100);
  1035. font-size: 12px;
  1036. text-align: left;
  1037. margin-top: 4px;
  1038. white-space: nowrap; //强制不换行
  1039. text-overflow: ellipsis; //文本超出出现省略号
  1040. overflow: hidden;
  1041. }
  1042. .text-3 {
  1043. width: 80px;
  1044. height: 24px;
  1045. line-height: 22px;
  1046. border-radius: 50px;
  1047. color: rgba(0, 185, 98, 100);
  1048. font-size: 12px;
  1049. text-align: center;
  1050. border: 1px solid rgba(0, 185, 98, 100);
  1051. margin-top: 11px;
  1052. }
  1053. }
  1054. .img-box {
  1055. width: 120px;
  1056. height: 120px;
  1057. margin-right: 20px;
  1058. }
  1059. }
  1060. .state {
  1061. width: 91.4%;
  1062. background-color: #ffffff;
  1063. height: 120px;
  1064. display: flex;
  1065. margin: 20px auto 0;
  1066. border-radius: 8px;
  1067. border: #F2F4F4 1px;
  1068. .state-text {
  1069. width: 61.8%;
  1070. padding: 24px 0 0 28px;
  1071. .text-1 {
  1072. height: 16px;
  1073. line-height: 16px;
  1074. color: blueviolet;
  1075. font-size: 16px;
  1076. text-align: left;
  1077. }
  1078. .text-2 {
  1079. height: 17px;
  1080. line-height: 17px;
  1081. color: #101010;
  1082. text-align: left;
  1083. margin-top: 12px;
  1084. }
  1085. .text-3 {
  1086. font-size: 12px;
  1087. line-height: 20px;
  1088. margin-top: 6px;
  1089. color: #999999;
  1090. }
  1091. }
  1092. .img-box {
  1093. width: 120px;
  1094. height: 120px;
  1095. margin-right: 20px;
  1096. }
  1097. }
  1098. //充值
  1099. .top-up {
  1100. margin: 0 auto;
  1101. .top-up-title {
  1102. color: rgba(16, 16, 16, 100);
  1103. font-size: 16px;
  1104. }
  1105. .card-box{
  1106. display: flex;
  1107. justify-content: space-between;
  1108. padding: 16px;
  1109. .card{
  1110. width: 48.3%;
  1111. height: 65px;
  1112. img{
  1113. width: 100%;
  1114. height: 100%;
  1115. }
  1116. }
  1117. }
  1118. .img-box2{
  1119. margin-top: 12px;
  1120. display: flex;
  1121. justify-content: space-between;
  1122. img{
  1123. width: 100%;
  1124. height: 100%;
  1125. }
  1126. .left-image{
  1127. width: 48.3%;
  1128. height: 166px;
  1129. padding: 8px 0 0 12px;
  1130. // background: url(@/assets/img/topup1.png);
  1131. background-repeat: no-repeat;
  1132. background-position: 30% 10%;
  1133. background-size: cover;
  1134. p{
  1135. color: rgba(56, 47, 33, 100);
  1136. font-size: 24px;
  1137. line-height: 28px;
  1138. font-weight: 600;
  1139. }
  1140. .time-activities{
  1141. color: rgba(56, 39, 14, 100);
  1142. font-size: 16px;
  1143. line-height: 22px;
  1144. margin-top: 4px;
  1145. .time{
  1146. margin-left: 4px;
  1147. color: #fa3534;
  1148. font-weight: bold;
  1149. }
  1150. }
  1151. }
  1152. .right-image{
  1153. width: 48.3%;
  1154. display: flex;
  1155. flex-direction: column;
  1156. justify-content: space-between;
  1157. .margin-top{
  1158. margin-top: 12px;
  1159. }
  1160. img{
  1161. height: 77px;
  1162. }
  1163. };
  1164. }
  1165. }
  1166. // 小竖线
  1167. .line {
  1168. display: inline-block;
  1169. width: 3px;
  1170. height: 12px;
  1171. margin-right: 7px;
  1172. background-color: rgba(0, 145, 67, 100);
  1173. }
  1174. // 新闻公告
  1175. .news-title {
  1176. padding: 0 16px;
  1177. margin-top: 12px;
  1178. color: rgba(16, 16, 16, 100);
  1179. font-size: 16px;
  1180. display: flex;
  1181. justify-content: space-between;
  1182. background-color: #F2F4F4;
  1183. .news-title-left {
  1184. display: flex;
  1185. }
  1186. .more {
  1187. font-size: 14px;
  1188. color: #777777;
  1189. display: flex;
  1190. line-height: 20px;
  1191. .more-icon {
  1192. font-size: 24px
  1193. }
  1194. }
  1195. }
  1196. .news {
  1197. background-color: #fff;
  1198. width: 91.4%;
  1199. margin: 12px auto 0;
  1200. border-radius: 8px;
  1201. .news-content {
  1202. display: flex;
  1203. justify-content: space-between;
  1204. padding: 12px;
  1205. .content-text {
  1206. width: 56.2%;
  1207. height: 100%;
  1208. line-height: 21px;
  1209. color: #101010;
  1210. text-align: left;
  1211. font-size: 14px;
  1212. }
  1213. .content-title {
  1214. width: 100%;
  1215. overflow: hidden;
  1216. text-overflow: ellipsis;
  1217. display: -webkit-box;
  1218. -webkit-box-orient: vertical;
  1219. -webkit-line-clamp: 3;
  1220. }
  1221. .content-img {
  1222. width: 40.57%;
  1223. height: 100%;
  1224. border-radius: 4px;
  1225. overflow: hidden;
  1226. img {
  1227. width: 100%;
  1228. height: 80%;
  1229. }
  1230. }
  1231. .news-time {
  1232. margin-top: 5%;
  1233. color: #999999;
  1234. width: 80px;
  1235. height: 20px;
  1236. font-size: 14px;
  1237. }
  1238. }
  1239. }
  1240. .bottom {
  1241. width: 100%;
  1242. height: 100px;
  1243. .bot {
  1244. width: 100%;
  1245. margin: 0 auto;
  1246. padding: 0 17.3%;
  1247. justify-content: space-between;
  1248. display: flex;
  1249. .bot-line {
  1250. margin-top: 20px;
  1251. width: 21.3%;
  1252. height: 0px;
  1253. border: 1px solid rgba(207, 210, 213, 100);
  1254. }
  1255. .bot-text {
  1256. white-space: nowrap;
  1257. height: 17px;
  1258. margin-top: 13px;
  1259. margin-left: 12px;
  1260. margin-right: 12px;
  1261. font-size: 12px;
  1262. text-align: center;
  1263. color: rgba(182, 189, 195, 100);
  1264. }
  1265. }
  1266. }
  1267. // 导航栏
  1268. .navigation {
  1269. width: 100%;
  1270. // height: 40px;
  1271. padding: 10px 0;
  1272. background-color: #fff;
  1273. position: fixed;
  1274. bottom: 0;
  1275. left: 0;
  1276. display: flex;
  1277. justify-content: space-around;
  1278. text-align: center;
  1279. color: #999999;
  1280. .nav-icon {
  1281. width: 54px;
  1282. font-size: 24px
  1283. }
  1284. .nav-text {
  1285. font-size: 14px;
  1286. }
  1287. }
  1288. .shema {
  1289. width: 70%;
  1290. padding-bottom: 20px;
  1291. border-radius: 16px;
  1292. background-color: #fff;
  1293. position: fixed;
  1294. top: 100px;
  1295. left: 0;
  1296. right: 0;
  1297. margin: 0 auto;
  1298. z-index: 9999;
  1299. .title {
  1300. height: 33px;
  1301. color: rgba(16, 16, 16, 100);
  1302. font-size: 24px;
  1303. text-align: center;
  1304. padding: 16px 0;
  1305. }
  1306. .u-radio-group {
  1307. margin: 16px 5vw;
  1308. }
  1309. /deep/.u-radio {
  1310. width: 60vw !important;
  1311. padding: 24px 24px 40px;
  1312. line-height: 20px;
  1313. border-radius: 16px;
  1314. text-align: center;
  1315. border: #101010 1px solid;
  1316. margin-top: 12px;
  1317. }
  1318. /deep/ .u-radio__label {
  1319. text-align: left;
  1320. height: 24px;
  1321. // color: rgba(0, 185, 98, 100);
  1322. font-size: 24px;
  1323. }
  1324. p {
  1325. height: 22px;
  1326. color: rgba(102, 102, 102, 100);
  1327. font-size: 14px;
  1328. margin-top: 12px;
  1329. white-space: nowrap
  1330. }
  1331. .hint {
  1332. text-align: center;
  1333. }
  1334. .btn-box {
  1335. margin-top: 20px;
  1336. .choice-btn {
  1337. width: 80%;
  1338. }
  1339. }
  1340. }
  1341. .wrap {
  1342. display: flex;
  1343. align-items: center;
  1344. justify-content: center;
  1345. height: 100%;
  1346. }
  1347. // 登录提示
  1348. .login-prompt {
  1349. width: 91.4%;
  1350. height: 40px;
  1351. line-height: 40px;
  1352. border-radius: 50px;
  1353. text-align: left;
  1354. padding-left: 16px;
  1355. padding-right: 4px;
  1356. background-color: rgba(0, 0, 0, 0.6);
  1357. position: fixed;
  1358. bottom: 75px;
  1359. color: #ffffff;
  1360. .button {
  1361. width: 88px;
  1362. height: 32px;
  1363. line-height: 32px;
  1364. border-radius: 50px;
  1365. background-color: rgba(0, 185, 98, 100);
  1366. text-align: center;
  1367. float: right;
  1368. margin-top: 4px;
  1369. }
  1370. }
  1371. .showOss{
  1372. /deep/.u-model,/deep/.u-mode-center-box{
  1373. background-color: transparent;
  1374. }
  1375. }
  1376. </style>