index.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590
  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="item.id"
  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: 1,
  835. pageSize: 10
  836. }).then((res) => {
  837. uni.hideLoading()
  838. this.newsList = [
  839. ...this.newsList,
  840. ...res.data.data
  841. ];
  842. this.recordsTotal = res.data.recordsTotal
  843. }).catch(error => {
  844. uni.showToast({
  845. title: error,
  846. icon: "none"
  847. })
  848. })
  849. },
  850. myLoadmore() {
  851. this.pageIndex += 1;
  852. this.getNewsList()
  853. },
  854. }
  855. }
  856. </script>
  857. <style lang="scss" scoped>
  858. // 头部图片
  859. img {
  860. width: 100%;
  861. height: 100%;
  862. }
  863. .background{
  864. background: linear-gradient(#D6EEDC,#FFFFFF );
  865. padding-top: 16px;
  866. }
  867. .banner {
  868. width: 91.4%;
  869. margin: 0 auto ;
  870. border-radius: 12px;
  871. height: 120px;
  872. overflow: hidden;
  873. }
  874. // 选项列表
  875. .option-list {
  876. padding-top: 15px;
  877. line-height: 20px;
  878. border-radius: 8px;
  879. text-align: center;
  880. margin: auto;
  881. display: flex;
  882. justify-content: space-around;
  883. .list-item {
  884. // 图标
  885. .icon {
  886. width: 40px;
  887. height: 40px;
  888. border-radius: 99px;
  889. line-height: 40px;
  890. font-size: 24px;
  891. text-align: center;
  892. margin: auto;
  893. color: #ffffff;
  894. }
  895. .text{
  896. margin-top: 4px;
  897. }
  898. }
  899. }
  900. .flex{
  901. display: flex;
  902. }
  903. // 站点
  904. .pack-up{
  905. float: right;
  906. font-size: 16px;
  907. color: rgba(119, 119, 119, 100);
  908. }
  909. // 附近站点改版
  910. .station{
  911. width: 91.4%;
  912. border-radius: 8px;
  913. padding: 12px 12px 12px 11px;
  914. background-color: #fff;
  915. margin: 8px auto 0;
  916. .head{
  917. display: flex;
  918. justify-content: space-between;
  919. align-items: center;
  920. .title{
  921. color: rgba(16, 16, 16, 100);
  922. font-size: 32rpx;
  923. font-weight: 550;
  924. }
  925. .distance{
  926. color: rgba(102, 102, 102, 100);
  927. font-size: 24rpx;
  928. .iconfont{
  929. font-size: 24rpx;
  930. margin-right: 4rpx;
  931. }
  932. }
  933. }
  934. .sign{
  935. display: flex;
  936. flex-wrap: wrap;
  937. margin-top: 16rpx;
  938. .sign-1{
  939. line-height: 40rpx;
  940. border-radius: 8rpx;
  941. background-color: rgba(255, 255, 255, 100);
  942. color: rgba(255, 139, 0, 100);
  943. font-size: 24rpx;
  944. text-align: center;
  945. border: 1px solid rgba(255, 139, 0, 100);
  946. padding: 0 8rpx;
  947. margin-right:16rpx;
  948. margin-bottom: 8rpx;
  949. }
  950. .sign-2{
  951. line-height: 40rpx;
  952. border-radius: 8rpx;
  953. background-color: rgba(255, 255, 255, 100);
  954. color: rgba(153, 153, 153, 100);
  955. font-size: 24rpx;
  956. text-align: center;
  957. border: 1px solid rgba(204, 204, 204, 100);
  958. padding: 0 8rpx;
  959. margin-right: 16rpx;
  960. margin-bottom: 8rpx;
  961. }
  962. }
  963. .price-free{
  964. display: flex;
  965. justify-content: space-between;
  966. margin-top: 8rpx;
  967. .price{
  968. display: flex;
  969. align-items: baseline;
  970. }
  971. .price-1{
  972. .num{
  973. color: rgba(255, 98, 0, 100);
  974. font-size: 40rpx;
  975. }
  976. .unit{
  977. font-size: 12px;
  978. color: rgba(153, 153, 153, 100);
  979. }
  980. }
  981. .price-2{
  982. font-size: 24rpx;
  983. color: rgba(153, 153, 153, 100);
  984. margin-left: 8rpx;
  985. text-decoration: line-through;
  986. }
  987. }
  988. .free{
  989. display: flex;
  990. align-items: center;
  991. .slow,.fast{
  992. display: flex;
  993. .fast-font{
  994. width: 40rpx;
  995. height: 40rpx;
  996. line-height: 40rpx;
  997. border-radius: 8rpx;
  998. background-color: rgba(186, 240, 215, 100);
  999. color: rgba(0, 130, 69, 100);
  1000. font-size: 28rpx;
  1001. text-align: center;
  1002. margin-right: 8rpx;
  1003. }
  1004. .slow-font{
  1005. width: 40rpx;
  1006. height: 40rpx;
  1007. line-height: 40rpx;
  1008. border-radius: 8rpx;
  1009. background-color: rgba(226, 226, 226, 100);
  1010. color: rgba(128, 128, 128, 100);
  1011. font-size: 28rpx;
  1012. text-align: center;
  1013. margin-right: 8rpx;
  1014. }
  1015. .num{
  1016. font-size: 16px;color: rgba(0, 145, 67, 100);
  1017. line-height: 40rpx;
  1018. }
  1019. }
  1020. .slow{
  1021. margin-left: 24rpx;
  1022. }
  1023. }
  1024. }
  1025. //定位
  1026. .location {
  1027. width: 91.4%;
  1028. background-color: #ffffff;
  1029. height: 120px;
  1030. display: flex;
  1031. justify-content: space-between;
  1032. margin: 20px auto 0;
  1033. border-radius: 8px;
  1034. border: #F2F4F4 1px;
  1035. .location-text {
  1036. padding: 24px 0 0 28px;
  1037. .text-1 {
  1038. height: 16px;
  1039. line-height: 16px;
  1040. color: rgba(16, 16, 16, 100);
  1041. font-size: 16px;
  1042. text-align: left;
  1043. }
  1044. .text-2 {
  1045. height: 17px;
  1046. line-height: 17px;
  1047. color: rgba(102, 102, 102, 100);
  1048. font-size: 12px;
  1049. text-align: left;
  1050. margin-top: 4px;
  1051. white-space: nowrap; //强制不换行
  1052. text-overflow: ellipsis; //文本超出出现省略号
  1053. overflow: hidden;
  1054. }
  1055. .text-3 {
  1056. width: 80px;
  1057. height: 24px;
  1058. line-height: 22px;
  1059. border-radius: 50px;
  1060. color: rgba(0, 185, 98, 100);
  1061. font-size: 12px;
  1062. text-align: center;
  1063. border: 1px solid rgba(0, 185, 98, 100);
  1064. margin-top: 11px;
  1065. }
  1066. }
  1067. .img-box {
  1068. width: 120px;
  1069. height: 120px;
  1070. margin-right: 20px;
  1071. }
  1072. }
  1073. .state {
  1074. width: 91.4%;
  1075. background-color: #ffffff;
  1076. height: 120px;
  1077. display: flex;
  1078. margin: 20px auto 0;
  1079. border-radius: 8px;
  1080. border: #F2F4F4 1px;
  1081. .state-text {
  1082. width: 61.8%;
  1083. padding: 24px 0 0 28px;
  1084. .text-1 {
  1085. height: 16px;
  1086. line-height: 16px;
  1087. color: blueviolet;
  1088. font-size: 16px;
  1089. text-align: left;
  1090. }
  1091. .text-2 {
  1092. height: 17px;
  1093. line-height: 17px;
  1094. color: #101010;
  1095. text-align: left;
  1096. margin-top: 12px;
  1097. }
  1098. .text-3 {
  1099. font-size: 12px;
  1100. line-height: 20px;
  1101. margin-top: 6px;
  1102. color: #999999;
  1103. }
  1104. }
  1105. .img-box {
  1106. width: 120px;
  1107. height: 120px;
  1108. margin-right: 20px;
  1109. }
  1110. }
  1111. //充值
  1112. .top-up {
  1113. width: 91.4%;
  1114. margin: 14px auto 0 ;
  1115. .top-up-title {
  1116. color: rgba(16, 16, 16, 100);
  1117. font-size: 16px;
  1118. }
  1119. .card-box{
  1120. display: flex;
  1121. justify-content: space-between;
  1122. padding: 16px 0;
  1123. .card{
  1124. width: 48.3%;
  1125. height: 65px;
  1126. img{
  1127. width: 100%;
  1128. height: 100%;
  1129. }
  1130. }
  1131. }
  1132. .img-box2{
  1133. margin-top: 12px;
  1134. display: flex;
  1135. justify-content: space-between;
  1136. img{
  1137. width: 100%;
  1138. height: 100%;
  1139. }
  1140. .left-image{
  1141. width: 48.3%;
  1142. height: 166px;
  1143. padding: 8px 0 0 12px;
  1144. // background: url(@/assets/img/topup1.png);
  1145. background-repeat: no-repeat;
  1146. background-position: 30% 10%;
  1147. background-size: cover;
  1148. p{
  1149. color: rgba(56, 47, 33, 100);
  1150. font-size: 24px;
  1151. line-height: 28px;
  1152. font-weight: 600;
  1153. }
  1154. .time-activities{
  1155. color: rgba(56, 39, 14, 100);
  1156. font-size: 16px;
  1157. line-height: 22px;
  1158. margin-top: 4px;
  1159. .time{
  1160. margin-left: 4px;
  1161. color: #fa3534;
  1162. font-weight: bold;
  1163. }
  1164. }
  1165. }
  1166. .right-image{
  1167. width: 48.3%;
  1168. display: flex;
  1169. flex-direction: column;
  1170. justify-content: space-between;
  1171. .margin-top{
  1172. margin-top: 12px;
  1173. }
  1174. img{
  1175. height: 77px;
  1176. }
  1177. };
  1178. }
  1179. }
  1180. // 小竖线
  1181. .line {
  1182. display: inline-block;
  1183. width: 3px;
  1184. height: 12px;
  1185. margin-right: 7px;
  1186. background-color: rgba(0, 145, 67, 100);
  1187. }
  1188. // 新闻公告
  1189. .news-title {
  1190. padding: 0 16px;
  1191. margin-top: 12px;
  1192. color: rgba(16, 16, 16, 100);
  1193. font-size: 16px;
  1194. display: flex;
  1195. justify-content: space-between;
  1196. background-color: #F2F4F4;
  1197. .news-title-left {
  1198. display: flex;
  1199. }
  1200. .more {
  1201. font-size: 14px;
  1202. color: #777777;
  1203. display: flex;
  1204. line-height: 20px;
  1205. .more-icon {
  1206. font-size: 24px
  1207. }
  1208. }
  1209. }
  1210. .news {
  1211. background-color: #fff;
  1212. width: 91.4%;
  1213. margin: 12px auto 0;
  1214. border-radius: 8px;
  1215. .news-content {
  1216. display: flex;
  1217. justify-content: space-between;
  1218. padding: 12px;
  1219. .content-text {
  1220. width: 56.2%;
  1221. height: 100%;
  1222. line-height: 21px;
  1223. color: #101010;
  1224. text-align: left;
  1225. font-size: 14px;
  1226. }
  1227. .content-title {
  1228. width: 100%;
  1229. overflow: hidden;
  1230. text-overflow: ellipsis;
  1231. display: -webkit-box;
  1232. -webkit-box-orient: vertical;
  1233. -webkit-line-clamp: 3;
  1234. }
  1235. .content-img {
  1236. width: 40.57%;
  1237. height: 100%;
  1238. border-radius: 4px;
  1239. overflow: hidden;
  1240. img {
  1241. width: 100%;
  1242. height: 80%;
  1243. }
  1244. }
  1245. .news-time {
  1246. margin-top: 5%;
  1247. color: #999999;
  1248. width: 80px;
  1249. height: 20px;
  1250. font-size: 14px;
  1251. }
  1252. }
  1253. }
  1254. .bottom {
  1255. width: 100%;
  1256. height: 100px;
  1257. .bot {
  1258. width: 100%;
  1259. margin: 0 auto;
  1260. padding: 0 17.3%;
  1261. justify-content: space-between;
  1262. display: flex;
  1263. .bot-line {
  1264. margin-top: 20px;
  1265. width: 21.3%;
  1266. height: 0px;
  1267. border: 1px solid rgba(207, 210, 213, 100);
  1268. }
  1269. .bot-text {
  1270. white-space: nowrap;
  1271. height: 17px;
  1272. margin-top: 13px;
  1273. margin-left: 12px;
  1274. margin-right: 12px;
  1275. font-size: 12px;
  1276. text-align: center;
  1277. color: rgba(182, 189, 195, 100);
  1278. }
  1279. }
  1280. }
  1281. // 导航栏
  1282. .navigation {
  1283. width: 100%;
  1284. // height: 40px;
  1285. padding: 10px 0;
  1286. background-color: #fff;
  1287. position: fixed;
  1288. bottom: 0;
  1289. left: 0;
  1290. display: flex;
  1291. justify-content: space-around;
  1292. text-align: center;
  1293. color: #999999;
  1294. .nav-icon {
  1295. width: 54px;
  1296. font-size: 24px
  1297. }
  1298. .nav-text {
  1299. font-size: 14px;
  1300. }
  1301. }
  1302. .shema {
  1303. width: 70%;
  1304. padding-bottom: 20px;
  1305. border-radius: 16px;
  1306. background-color: #fff;
  1307. position: fixed;
  1308. top: 100px;
  1309. left: 0;
  1310. right: 0;
  1311. margin: 0 auto;
  1312. z-index: 9999;
  1313. .title {
  1314. height: 33px;
  1315. color: rgba(16, 16, 16, 100);
  1316. font-size: 24px;
  1317. text-align: center;
  1318. padding: 16px 0;
  1319. }
  1320. .u-radio-group {
  1321. margin: 16px 5vw;
  1322. }
  1323. /deep/.u-radio {
  1324. width: 60vw !important;
  1325. padding: 24px 24px 40px;
  1326. line-height: 20px;
  1327. border-radius: 16px;
  1328. text-align: center;
  1329. border: #101010 1px solid;
  1330. margin-top: 12px;
  1331. }
  1332. /deep/ .u-radio__label {
  1333. text-align: left;
  1334. height: 24px;
  1335. // color: rgba(0, 185, 98, 100);
  1336. font-size: 24px;
  1337. }
  1338. p {
  1339. height: 22px;
  1340. color: rgba(102, 102, 102, 100);
  1341. font-size: 14px;
  1342. margin-top: 12px;
  1343. white-space: nowrap
  1344. }
  1345. .hint {
  1346. text-align: center;
  1347. }
  1348. .btn-box {
  1349. margin-top: 20px;
  1350. .choice-btn {
  1351. width: 80%;
  1352. }
  1353. }
  1354. }
  1355. .wrap {
  1356. display: flex;
  1357. align-items: center;
  1358. justify-content: center;
  1359. height: 100%;
  1360. }
  1361. // 登录提示
  1362. .login-prompt {
  1363. width: 91.4%;
  1364. height: 40px;
  1365. line-height: 40px;
  1366. border-radius: 50px;
  1367. text-align: left;
  1368. padding-left: 16px;
  1369. padding-right: 4px;
  1370. background-color: rgba(0, 0, 0, 0.6);
  1371. position: fixed;
  1372. bottom: 75px;
  1373. color: #ffffff;
  1374. .button {
  1375. width: 88px;
  1376. height: 32px;
  1377. line-height: 32px;
  1378. border-radius: 50px;
  1379. background-color: rgba(0, 185, 98, 100);
  1380. text-align: center;
  1381. float: right;
  1382. margin-top: 4px;
  1383. }
  1384. }
  1385. .showOss{
  1386. /deep/.u-model,/deep/.u-mode-center-box{
  1387. background-color: transparent;
  1388. }
  1389. }
  1390. </style>