my_invite.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <view class="page">
  3. <view class="loading" v-if="loading" >
  4. <view class="spinner">
  5. <view class="rect1"></view>
  6. <view class="rect2"></view>
  7. <view class="rect3"></view>
  8. <view class="rect4"></view>
  9. <view class="rect5"></view>
  10. </view>
  11. </view>
  12. <block v-else>
  13. <view class="search">
  14. <uni-icons type='search' style='position: absolute;left: 28px;top:2px;font-size: 22px;font-weight: 600;color:#000;'></uni-icons>
  15. <input type="text" class="input" placeholder="请输入团队成员账号" v-model="username" maxlength="15" />
  16. <button @tap='click_search'>搜索</button>
  17. </view>
  18. <view class="parent" v-if="parent.length>0">
  19. <block v-for="(m,index) in parent" :key='index'>
  20. <span v-if="index>0"> &gt; </span>
  21. <span style='color:#2319DC' @tap='user_invite(m)'>{{m.name}}</span>
  22. </block>
  23. </view>
  24. <view class="nodata" v-if="list.length<1" >还没有邀请任何下级</view>
  25. <block v-else>
  26. <view v-for="(m,index) in list" :key='index' class="lists" >
  27. <view>
  28. <view @tap="open_detail(m)">
  29. <image :src="image_cache(m.avatar)"></image>
  30. </view>
  31. <view>
  32. <view class="title" >
  33. <view :class="{'online':true,'active':m.isonline}"></view><span style='color: #2319DC;' @tap="open_detail(m)">{{m.name}}</span>
  34. <span class='btn_green' v-if="m.id==user.id">本人</span>
  35. <block v-else>
  36. <view class="btn_green" v-if="m.isdaili==1">代理</view>
  37. <view class="btn_yellow" v-else>用户</view>
  38. </block>
  39. <image src="/static/img/vip0.png" @tap='setvip(m)' class="vipbtn" v-if="m.vip==0" />
  40. <image src="/static/img/vip1.png" @tap='setvip(m)' class="vipbtn" style="height: 20px;" v-if="m.vip>0" />
  41. <span style="float:right;text-align: right;font-size: 14px;color:#666;" @tap="user_invite(m)">
  42. 团队人数:
  43. <span style='color: #2319DC;' >{{m.team_num}}</span>
  44. </span>
  45. </view>
  46. <view class="info">
  47. <span>
  48. 注册时间:<span style='color:#000;'>{{timestampToTime(m.regtime)}}</span>
  49. </span>
  50. <span style="float:right;text-align: right;display: none;">
  51. 返点:<span style='color: #2319DC;'>{{m.rebate}}%</span>
  52. </span>
  53. </view>
  54. </view>
  55. </view>
  56. <div class="btns">
  57. <view style="text-align: center;" @tap="open_detail(m)"><span class='btn1'><uni-icons type='settings' class="icons" />详情</span></view>
  58. <view style="text-align: center;" @tap="user_invite(m)">
  59. <span class='btn1'><uni-icons type='person' class="icons" />下级</span>
  60. </view>
  61. </div>
  62. </view>
  63. </block>
  64. <view class="loading" v-if="loading" >
  65. <view class="spinner">
  66. <view class="rect1"></view>
  67. <view class="rect2"></view>
  68. <view class="rect3"></view>
  69. <view class="rect4"></view>
  70. <view class="rect5"></view>
  71. </view>
  72. </view>
  73. <view class="pages" v-if="pagesum>0">
  74. <view @tap='next_page(-1)'>&lt;</view>
  75. <block v-for="(m,index) in pagenum" :key='index'>
  76. <view :class="{'active':m==page}" @tap="click_page(m)">{{m}}</view>
  77. </block>
  78. <view @tap='next_page(1)'>&gt;</view>
  79. </view>
  80. <view style="height: 20px;"></view>
  81. </block>
  82. </block>
  83. <view class="modalhtml" v-if="showModal">
  84. <view class="modal">
  85. <view class="title">
  86. 详情
  87. </view>
  88. <view class="content">
  89. <span class='tit'>账号:</span> {{showinfo.name}}
  90. <view class="btn_grey" style="margin-left: 5px;" @tap="copy(showinfo.name)">复制</view>
  91. <br>
  92. <span class='tit'>类型:</span> <view class="btn_green" v-if="showinfo.isdaili==1">代理</view>
  93. <view class="btn_yellow" v-else>用户</view>
  94. <br>
  95. <span class='tit'>团队人数:</span> <span style='color:#2319dc'>{{showinfo.team_num}}</span> <br>
  96. <span class='tit'>团队余额:</span> <span style='color:#2319dc'>{{showinfo.team_money}}</span>元 <br>
  97. <span class='tit'>个人余额:</span> <span style='color:#2319dc'>{{showinfo.money}}</span>元 <br>
  98. <span class='tit'>在线状态:</span>
  99. <span style='color:#2319dc' v-if="showinfo.isonline">在线</span>
  100. <span v-else >离线</span>
  101. <br>
  102. <block v-if="showinfo.logintime>0">
  103. <span class='tit'>登录时间:</span> {{timestampToTime(showinfo.logintime)}} <br>
  104. </block>
  105. <span class='tit'>注册时间:</span> {{timestampToTime(showinfo.regtime)}} <br>
  106. </view>
  107. <view class="btns" @tap="showModal=false;">
  108. 关 闭
  109. </view>
  110. </view>
  111. </view>
  112. <tabbar></tabbar>
  113. </view>
  114. </template>
  115. <script>
  116. import http from "../../library/http.js"
  117. import config from "../../config.js"
  118. import tabbar from '../../components/tabbar.vue'
  119. import uniIcons from '../../components/uni-icons/uni-icons.vue'
  120. var statusBarHeight = uni.getSystemInfoSync().statusBarHeight ;
  121. export default {
  122. components:{
  123. uniIcons,
  124. tabbar
  125. },
  126. data() {
  127. return {
  128. statusBarHeight: statusBarHeight+ 'px',
  129. list:[],
  130. user:uni.getStorageSync('userInfo'),
  131. system:uni.getStorageSync('system'),
  132. page:1,
  133. nodate:false,
  134. loading:false,
  135. pagesum:0,
  136. pagenum:[],
  137. userid:0,
  138. parent:[],
  139. showModal:false,
  140. showinfo:{},
  141. username:'',
  142. vipnum:0,
  143. }
  144. },
  145. methods: {
  146. user_invite(m){
  147. this.page=1;
  148. uni.redirectTo({
  149. url:'my_invite?id='+m.id
  150. })
  151. },
  152. setvip(m){
  153. if(this.user.vip!=3) {
  154. if(this.user.vip!=2){
  155. uni.showModal({
  156. title: '提示',
  157. content: "开通团队版vip可免费给下级开通个人版vip",
  158. showCancel: true,
  159. cancelText: '取消',
  160. confirmText: '立即开通',
  161. success: res => {
  162. if(res.confirm) {
  163. uni.navigateTo({
  164. url:'joinvip?type=1'
  165. })
  166. }
  167. }
  168. });
  169. }
  170. return false;
  171. }
  172. if(m.id==this.user.id){
  173. uni.showToast({
  174. title:'您无法取消自己的VIP',
  175. icon:'none'
  176. })
  177. return false;
  178. }
  179. if(m.pid!=this.user.id){
  180. uni.showToast({
  181. title:'该用户不是您的直属下级',
  182. icon:'none'
  183. })
  184. return false;
  185. }
  186. if(m.vip==0){
  187. var content="确认将"+m.name+"设置为VIP?\n当前还可以设置"+this.vipnum+"个用户 ";
  188. if(this.vipnum<=0){
  189. uni.showToast({
  190. title:'您的团队VIP配额都用完了,无法再给其他人设置VIP了',
  191. icon:'none'
  192. })
  193. return false;
  194. }
  195. }
  196. else{
  197. var content="确认将"+m.name+"的VIP权限取消?"
  198. }
  199. uni.showModal({
  200. title: '提示',
  201. content: content,
  202. showCancel: true,
  203. cancelText: '取消',
  204. confirmText: '确认',
  205. success: res => {
  206. if(res.confirm) {
  207. this.subsetvip(m.id);
  208. }
  209. }
  210. });
  211. },
  212. subsetvip(id){
  213. var that=this;
  214. http.setWait(false).post('user.php?act=set_vip',{userid:id,fromid:this.user.id}).then(res=>{
  215. if(res.code==200){
  216. that.get_invite();
  217. uni.showToast({
  218. title:'设置成功',
  219. icon:'none'
  220. })
  221. }
  222. })
  223. },
  224. set_rebate(m){
  225. if(m.pid!=this.user.id){
  226. uni.showToast({
  227. title:'该用户不是您的直属下级,无法为其升点',
  228. icon:'none'
  229. })
  230. return false;
  231. }
  232. if(m.rebate<this.user.rebate - 0.5){
  233. var itemlist=[]
  234. for(var i=this.user.rebate - 0.5;i>m.rebate;i=i-0.5){
  235. itemlist.push(i.toFixed(1)+'%');
  236. }
  237. var that=this;
  238. uni.showActionSheet({
  239. itemList:itemlist,
  240. success: function (res) {
  241. var str=itemlist[res.tapIndex].replace('%','');
  242. str=parseFloat(str);
  243. http.setWait(false).post('user.php?act=set_rebate',{userid:m.id,rebate:str}).then(res=>{
  244. if(res.code==200){
  245. that.get_invite();
  246. uni.showToast({
  247. title:'设置成功',
  248. icon:'none'
  249. })
  250. }
  251. })
  252. }
  253. })
  254. }else{
  255. uni.showToast({
  256. title:'该用户返点已是最高,无需提升',
  257. icon:'none'
  258. })
  259. }
  260. },
  261. get_invite(){
  262. this.loading=true;
  263. // if(this.page>1) this.list=[];
  264. http.setWait(false).get('user.php?act=my_invite',{userid:this.userid,fromid:this.user.id,page:this.page}).then(res=>{
  265. if(res.code==200){
  266. this.loading=false;
  267. this.pagesum=res.pagesum;
  268. this.parent=res.parent;
  269. this.vipnum=res.vipnum;
  270. this.setpage();
  271. if(res.data.length>0){
  272. if(this.page==1){
  273. this.list=res.data;
  274. uni.setStorageSync('my_invite',this.list);
  275. }
  276. else{
  277. this.list=res.data;
  278. }
  279. if(res.data.length<10) this.nodate=true;
  280. else
  281. this.nodate=false;
  282. }
  283. else{
  284. this.nodate=true;
  285. }
  286. }
  287. })
  288. },
  289. click_search(){
  290. if(this.username==''){
  291. uni.showToast({
  292. icon:'none',
  293. title:'请输入团队成员账号'
  294. })
  295. return false;
  296. }
  297. this.page=1;
  298. // if(this.page>1) this.list=[];
  299. http.setWait(false).get('user.php?act=search_invite',{username:this.username,fromid:this.user.id,page:this.page}).then(res=>{
  300. if(res.code==200){
  301. this.loading=false;
  302. this.pagesum=res.pagesum;
  303. this.parent=res.parent;
  304. this.setpage();
  305. if(res.data.length>0){
  306. if(this.page==1){
  307. this.list=res.data;
  308. }
  309. else{
  310. this.list=res.data;
  311. }
  312. if(res.data.length<10) this.nodate=true;
  313. else
  314. this.nodate=false;
  315. }
  316. else{
  317. this.nodate=true;
  318. }
  319. }
  320. })
  321. },
  322. timestampToTime(timestamp) {
  323. var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
  324. var Y = date.getFullYear() ;
  325. var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
  326. var D = date.getDate();
  327. var h = date.getHours();
  328. var m = date.getMinutes();
  329. var s = date.getSeconds();
  330. if(D<10) D='0'+D;
  331. if(h<10) h='0'+h;
  332. if(m<10) m='0'+m;
  333. if(s<10) s='0'+s;
  334. return Y+'-'+M+'-'+D+' '+h+':'+m;
  335. },
  336. open_detail(m){
  337. this.showinfo=m;
  338. this.showModal=true;
  339. },
  340. getnextpage(){
  341. //if(this.nodate==false){
  342. this.page++;
  343. this.get_invite();
  344. ///s}
  345. },
  346. setpage() {
  347. var sum=this.pagesum;
  348. var page=this.page;
  349. var pagenum=[];
  350. var html="";
  351. if(page>4){
  352. var from=page-2;
  353. var to=page+2;
  354. }
  355. else {var from=1;
  356. var to=6;
  357. }
  358. if(to>sum) to=sum;
  359. if(from>2){
  360. pagenum.push(1);
  361. pagenum.push('...');
  362. }
  363. for(var i=from;i<=to;i++){
  364. pagenum.push(i);
  365. }
  366. if(to<sum-1) {
  367. pagenum.push('...');
  368. pagenum.push(sum);
  369. }
  370. this.pagenum=pagenum;
  371. },
  372. click_page(num){
  373. if(num>0 && num<=this.pagesum && this.page!=num){
  374. this.page=num;
  375. this.get_invite();
  376. }
  377. },
  378. next_page(num){
  379. var page=this.page+num;
  380. this.click_page(page);
  381. },
  382. copy(data){
  383. uni.setClipboardData({
  384. data:data,
  385. success() {
  386. uni.showToast({
  387. title:'复制成功',
  388. icon:'none'
  389. })
  390. },
  391. fail: () => {
  392. uni.showToast({
  393. title:'复制失败',
  394. icon:'none'
  395. })
  396. }
  397. })
  398. },
  399. },
  400. onReachBottom() {
  401. // if(this.nodate==false){
  402. // this.page++;
  403. // this.get_invite();
  404. // }
  405. },
  406. onLoad(opts) {
  407. this.user = uni.getStorageSync('userInfo');
  408. if(opts.id>0){
  409. this.userid=opts.id;
  410. }else{
  411. this.userid=this.user.id;
  412. this.list=uni.getStorageSync('my_invite')?uni.getStorageSync('my_invite'):[];
  413. }
  414. this.get_invite();
  415. },
  416. onNavigationBarButtonTap() {
  417. }
  418. }
  419. </script>
  420. <style lang="scss" scoped>
  421. @import "@/static/css/user.css";
  422. .page{
  423. background-color: #fafafa;
  424. }
  425. .search{
  426. height: 50px;
  427. line-height: 50px;
  428. padding-left: 22px;
  429. text-align: left;
  430. font-size: 14px;
  431. background-color: #fff;
  432. position: relative;
  433. }
  434. .search .input{
  435. height: 30px;line-height:30px;
  436. border-radius: 16px;
  437. border: 1px solid #ddd;
  438. display: inline-block;
  439. padding: 0px 5px; font-size: 14px;
  440. color:#666;
  441. width: calc(100% - 135px);
  442. vertical-align: middle;
  443. padding-left: 30px;
  444. }
  445. .search > button{
  446. display: inline-block;
  447. width: 70px;
  448. height: 30px;line-height:30px;
  449. background-color: #FF4400;
  450. border-radius: 5px;
  451. color: #fff;
  452. font-size: 14px;
  453. vertical-align: middle;
  454. margin-left: 5px;
  455. }
  456. .nodata{
  457. height: 40px;
  458. line-height: 40px;
  459. text-align: center;
  460. }
  461. .parent{
  462. height: 40px;
  463. line-height: 40px;
  464. text-align: left;
  465. padding-left: 10px;
  466. background-color: #fff;
  467. }
  468. .pages{
  469. height: 40px;
  470. line-height: 40px;
  471. text-align: center;
  472. }
  473. .pages > view{
  474. display: inline-block;
  475. height: 35px;
  476. width: 34px;
  477. line-height: 35px;
  478. border: 1px #eee solid;
  479. margin: 10px auto;
  480. }
  481. .pages > view.active{
  482. color:#fff;
  483. border: 1px solid #2319DC;
  484. background-color: #2319DC;
  485. }
  486. .lists{
  487. background-color: #fff;
  488. margin-top: 10px;
  489. padding: 5px 10px;
  490. line-height: 30px;
  491. clear: both;
  492. display: inline-block;
  493. width: calc(100% - 20px);
  494. height: 100px;
  495. position:relative;
  496. }
  497. .lists .self{
  498. position: absolute;
  499. top:-5px;
  500. left:0px;
  501. background-color: #2319dc;
  502. height: 16px;
  503. line-height: 16px;
  504. padding:0px 5px;
  505. color: #fff;
  506. font-size: 12px;
  507. z-index:1;
  508. }
  509. .lists > view {
  510. display: inline-block;
  511. width: 100%;
  512. clear: both;
  513. }
  514. .lists > view > view{
  515. display: inline-block;
  516. padding-top: 0px;margin-top: 0px;
  517. vertical-align: top;
  518. }
  519. .lists > view > view:first-child{
  520. text-align: center;
  521. width:70px;
  522. }
  523. .lists > view > view:first-child image{
  524. height:50px;
  525. width: 50px;
  526. vertical-align: middle;
  527. border-radius: 5px;
  528. margin-top: 5px;
  529. }
  530. .lists > view > view:last-child{
  531. text-align: left;
  532. width: calc(100% - 70px);
  533. }
  534. .lists > view > view:last-child .title{
  535. font-size: 16px;;
  536. }
  537. .lists > view > view:last-child .info{
  538. font-size: 14px;
  539. color: #666;
  540. }
  541. .userlist{
  542. background-color: #fff;
  543. margin-top: 10px;
  544. padding: 0px 0px;
  545. line-height: 30px;
  546. clear: both;
  547. display: inline-block;
  548. width: calc(100% - 0px);
  549. height: 90px;
  550. }
  551. .userlist > view{
  552. display: table;
  553. height: 30px;
  554. line-height: 30px;
  555. width: 100%;
  556. text-align: center;
  557. }
  558. .userlist > view > view{
  559. display: table-cell;
  560. }
  561. .userlist > view > view:first-child{
  562. text-align: left;
  563. padding-left: 10px;
  564. }
  565. .userlist > view > view:last-child{
  566. text-align: right;
  567. padding-right: 10px;
  568. }
  569. .btns{
  570. background-color: #fff;
  571. display: inline-block;
  572. clear: both;
  573. width: 100%;
  574. border-top: 1px #eee solid;
  575. margin-top: 3px;
  576. padding-top: 3px;
  577. }
  578. .btns > view{
  579. display: inline-block;
  580. width:50%;
  581. text-align: center;
  582. }
  583. .btns .icons{
  584. color: #000 !important;
  585. font-size: 16px !important;
  586. font-weight: 600 !important;
  587. }
  588. .online{
  589. height: 5px;
  590. line-height: 5px;
  591. width: 5px;vertical-align: middle;
  592. margin-right: 5px;
  593. border-radius: 5px;
  594. background-color: #CCCCCC;
  595. display: inline-block;
  596. }
  597. .online.active{
  598. background-color: #00B26A;
  599. }
  600. .btn1{
  601. display: inline-block;
  602. height: 25px;
  603. line-height: 25px;vertical-align: middle;font-size: 14px;
  604. background-color: #f8f8f8;
  605. border: 1px #e7e7e7 solid;
  606. border-radius: 5px;
  607. width: 82%;
  608. }
  609. .btn2{
  610. display: inline-block;
  611. height: 28px;
  612. line-height: 28px;vertical-align: middle;font-size: 14px;
  613. margin-left: 4px;
  614. background-color: #2319dc;
  615. border: 1px #2319dc solid;
  616. color:#fff;
  617. border-radius: 5px;
  618. padding: 0px 10px;
  619. margin: 0px 15px;
  620. }
  621. .btn2.delete{
  622. background-color: #f8f8f8;
  623. border: 1px #e7e7e7 solid;
  624. color:#222;
  625. padding: 0px 10px;
  626. }
  627. .lists > view.btns{
  628. height: 30px;line-height: 30px;text-align: center;
  629. }
  630. .btn_yellow{
  631. background-color: yellow;
  632. color: #000;
  633. font-size: 12px;
  634. display: inline-block;
  635. height:18px;
  636. line-height: 18px;
  637. padding: 0px 5px;
  638. border-radius: 5px;
  639. text-align: center;
  640. margin: 0px 2px;
  641. }
  642. .btn_green{
  643. background-color: #0aad6c;
  644. color: #fff;font-size: 12px;
  645. display: inline-block;
  646. height: 18px;
  647. line-height: 18px;
  648. padding: 0px 5px;
  649. border-radius: 5px;
  650. text-align: center;
  651. margin: 0px 2px;
  652. }
  653. .btn_blue{
  654. background-color: #2319dc;
  655. color: #fff;font-size: 12px;
  656. display: inline-block;
  657. height: 18px;
  658. line-height: 18px;
  659. padding: 0px 5px;
  660. border-radius: 5px;
  661. text-align: center;
  662. margin: 0px 2px;
  663. }
  664. .btn_grey{
  665. background-color: #ddd;
  666. color: #000;font-size: 12px;
  667. display: inline-block;
  668. height: 18px;
  669. line-height: 18px;
  670. padding: 0px 5px;
  671. border-radius: 5px;
  672. text-align: center;
  673. margin: 0px 2px;
  674. }
  675. .modalhtml{
  676. position: fixed;
  677. z-index: 999;
  678. top:0px;
  679. width: 100%;
  680. left: 0px;height: 100vh;
  681. background-color: rgba(0,0,0,0.7);
  682. }
  683. .modalhtml .modal{
  684. background-color: #fff;
  685. border-radius: 10px;;
  686. top:20vh;
  687. width: 80vw;
  688. left: 10vw;
  689. position: fixed;
  690. border: 1px #ddd solid;
  691. }
  692. .modalhtml .modal .title{
  693. text-align: center;
  694. height: 30px;
  695. line-height: 30px;
  696. color: #000;;
  697. font-size: 16px;;
  698. font-weight: 600;
  699. margin-top: 5px;;
  700. }
  701. .modalhtml .modal .content{
  702. padding: 5px 10px;
  703. max-height: 260px;;
  704. min-height: 65px;
  705. line-height: 30px;;
  706. overflow-y: scroll;
  707. font-size: 14px;
  708. }
  709. .modalhtml .modal .content > .tit{
  710. display: inline-block;
  711. width: 90px;
  712. text-align: right;
  713. color: #666;
  714. }
  715. .modalhtml .modal .btns{
  716. text-align: center;
  717. height: 35px;
  718. line-height: 35px;
  719. color: #000;;
  720. font-size: 16px;;
  721. font-weight: 600;
  722. border-top: #eee 1px solid;
  723. border-bottom-left-radius: 10px;
  724. border-bottom-right-radius: 10px;
  725. }
  726. .modalhtml .modal .btns >span{
  727. display: inline-block;
  728. width: calc(50% - 1px);
  729. height: 35px;
  730. line-height: 35px;
  731. }
  732. .modalhtml .modal .btns >span:last-child{
  733. border-left: #eee 1px solid;
  734. }
  735. .loading {
  736. //loading动画
  737. display: flex;
  738. justify-content: center;
  739. padding-bottom: 20px;
  740. @keyframes stretchdelay {
  741. 0%,
  742. 40%,
  743. 100% {
  744. transform: scaleY(0.6);
  745. }
  746. 20% {
  747. transform: scaleY(1.0);
  748. }
  749. }
  750. .spinner {
  751. margin: 20upx 0;
  752. width: 60upx;
  753. height: 25px;
  754. display: flex;
  755. align-items: center;
  756. justify-content: space-between;
  757. view {
  758. background-color: #ff9800;
  759. height: 25px;
  760. width: 3px;
  761. border-radius: 3px;
  762. animation: stretchdelay 1.2s infinite ease-in-out;
  763. }
  764. .rect2 {
  765. animation-delay: -1.1s;
  766. }
  767. .rect3 {
  768. animation-delay: -1.0s;
  769. }
  770. .rect4 {
  771. animation-delay: -0.9s;
  772. }
  773. .rect5 {
  774. animation-delay: -0.8s;
  775. }
  776. }
  777. }
  778. </style>