index.vue 36 KB

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