my.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部信息Start -->
  6. <view class="prodet-intro d-flex" v-show="prodetIntroShow">
  7. <view class="icon iconfont icon-notice d-flex a-center j-center"></view>
  8. <view class="u-f1">
  9. <p class="animate">掌柜爆款百万医疗!众安尊享e生2020版,最高300万一般医疗保障,100种重疾+121种罕见病医疗最高600万保障,四大增值服务,一年低至136元起!点击了解>></p>
  10. </view>
  11. <view class="icon iconfont icon-cuo d-flex a-center j-center" @tap="controlProdetIntro"></view>
  12. </view>
  13. <view class="home-info d-flex">
  14. <view class="mystatus d-flex a-center j-center">{{mystatusText}}</view>
  15. <image :src="avatar" mode="aspectFill" @tap="popupShow = true"></image>
  16. <view class="person-info" @tap="openDetail">
  17. <h3>{{userInfo.sysUser.name}}</h3>
  18. <p>你身边最贴心、最权威的保险咨询专家【个性化签名】</p>
  19. </view>
  20. </view>
  21. <!-- 头部信息End -->
  22. <!-- 我的订单Start -->
  23. <scroll-view scroll-x class="my-orders">
  24. <view :style="'width: calc(((690upx)/4)*'+orderTypeList.length+')'">
  25. <uni-grid :column="orderTypeList.length" :show-border="false" :square="false" @change="openOrder" style="width: 100%;height:100%">
  26. <uni-grid-item style="width: calc((690upx)/4)" class="d-flex a-center j-center" v-for="(item ,index) in orderTypeList" :index="index" :key="index">
  27. <view style="width: calc((690upx)/4)" class="grid-item-box d-flex a-center j-center flex-column">
  28. <view class="icon iconfont" :class="item.icon" :style="'color:'+item.iconColor"></view>
  29. <text class="text">{{item.text}}</text>
  30. <view v-if="item.badge" class="grid-dot" v-show="item.badge>0">
  31. <uni-badge :text="(item.badge>99)?'99+':item.badge" :type="item.type" size="small" :inverted="false" />
  32. </view>
  33. </view>
  34. </uni-grid-item>
  35. </uni-grid>
  36. </view>
  37. </scroll-view>
  38. <!-- 我的订单End -->
  39. <!-- 广告轮播 -->
  40. <view class="swiper-view">
  41. <swiper class="swiper" indicator-dots="true" autoplay="true" circular="true" indicator-active-color="#ffffff" :indicator-dots="swiperList.length>1">
  42. <swiper-item v-for="swiper in swiperList" :key="swiper.sid">
  43. <image mode="aspectFill" :src="swiper.img" lazy-load></image>
  44. </swiper-item>
  45. </swiper>
  46. </view>
  47. <!-- 广告End -->
  48. <!-- 我的钱包Start -->
  49. <view class="my-wallet">
  50. <view class="header d-flex a-center j-sb">
  51. <view>我的钱包</view>
  52. <span @tap="toWallet" style="font-size: 24upx;color: #333;">更多</span>
  53. </view>
  54. <view class="wallet-body d-flex">
  55. <view class="flex-1" @tap="toBillDetails(1)">
  56. <view class="d-flex a-center j-center">预收账户</view>
  57. <view style="color: #33AAEE;" class="d-flex a-center j-center">¥{{advanceMoney}}</view>
  58. </view>
  59. <view class="flex-1" @tap="toBillDetails(2)">
  60. <view class="d-flex a-center j-center">可提现余额</view>
  61. <view style="color: #33AAEE;" class="d-flex a-center j-center">¥{{withdrawal}}</view>
  62. </view>
  63. <view class="flex-1" @tap="toBillDetails(3)">
  64. <view class="d-flex a-center j-center">推广费</view>
  65. <view style="color: #DA4452;" class="d-flex a-center j-center">¥{{extendMoney}}</view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 我的钱包End -->
  70. <!-- 我的工具Start -->
  71. <view class="my-tools">
  72. <view class="header d-flex a-center j-sb">
  73. <view>我的工具</view>
  74. </view>
  75. <view class="order-body d-flex a-center">
  76. <!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
  77. <swiper style="height:calc(324upx)" class="swiper" :indicator-dots="(toolsListLength!=1)?true:false">
  78. <swiper-item class="swiper" v-for="(count,cindex) of toolsListLength" :key="count">
  79. <uni-grid :column="4" :show-border="false" :square="false" :highlight="false" @change="toTools($event,'toolsList')" >
  80. <uni-grid-item class="d-flex a-center j-center" v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)" v-for="(item ,index) in toolsList" :index="index" :key="item.text" >
  81. <view class="grid-item-box d-flex a-center j-center flex-column">
  82. <view class="icon iconfont" :class="item.icon" :style="'color:'+item.iconColor" ></view>
  83. <text class="text">{{item.text}}</text>
  84. </view>
  85. </uni-grid-item>
  86. </uni-grid>
  87. </swiper-item>
  88. </swiper>
  89. </view>
  90. </view>
  91. <!-- 我的工具End -->
  92. <!-- 售后管理Start -->
  93. <view class="my-tools">
  94. <view class="header d-flex a-center j-sb">
  95. <view>售后管理</view>
  96. </view>
  97. <view class="order-body d-flex a-center">
  98. <!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
  99. <swiper style="height:calc(162upx)" class="swiper" :indicator-dots="(serviceListLength!=1)?true:false">
  100. <swiper-item class="swiper" v-for="(count,cindex) of serviceListLength" :key="count">
  101. <uni-grid :column="4" :show-border="false" :square="false" :highlight="false" @change="toTools($event,'serviceList')" >
  102. <uni-grid-item class="d-flex a-center j-center" v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)" v-for="(item ,index) in serviceList" :index="index" :key="item.text" >
  103. <view class="grid-item-box d-flex a-center j-center flex-column">
  104. <view class="icon iconfont" :class="item.icon" :style="'color:'+item.iconColor" ></view>
  105. <text class="text">{{item.text}}</text>
  106. </view>
  107. </uni-grid-item>
  108. </uni-grid>
  109. </swiper-item>
  110. </swiper>
  111. </view>
  112. </view>
  113. <!-- 售后管理End -->
  114. <!-- 我的关于Start -->
  115. <view class="my-tools">
  116. <view class="header d-flex a-center j-sb">
  117. <view>关于掌柜</view>
  118. </view>
  119. <view class="order-body d-flex a-center">
  120. <!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
  121. <swiper style="height:calc(162upx)" class="swiper" :indicator-dots="(aboutListLength!=1)?true:false">
  122. <swiper-item class="swiper" v-for="(count,cindex) of aboutListLength" :key="count">
  123. <uni-grid :column="4" :show-border="false" :square="false" :highlight="false" @change="toTools($event,'aboutList')" >
  124. <uni-grid-item class="d-flex a-center j-center" v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)" v-for="(item ,index) in aboutList" :index="index" :key="item.text" >
  125. <view class="grid-item-box d-flex a-center j-center flex-column">
  126. <view class="icon iconfont" :class="item.icon" :style="'color:'+item.iconColor" ></view>
  127. <text class="text">{{item.text}}</text>
  128. </view>
  129. </uni-grid-item>
  130. </uni-grid>
  131. </swiper-item>
  132. </swiper>
  133. </view>
  134. </view>
  135. <!-- 我的关于End -->
  136. <!-- 菜单Start -->
  137. <block v-for="(item,index) in menusList" :key="index">
  138. <my-list-item :item="item" :index="index"></my-list-item>
  139. </block>
  140. <!-- 菜单End -->
  141. <!-- 头像预览Start -->
  142. <z-popup v-model="popupShow" :hideOnBlur="false" type="center" width="600upx" radius="12upx">
  143. <view class="popup_title">
  144. <text @click="popupShow = false">取消</text>
  145. <view>头像预览</view>
  146. <text @click="changeAvatar">更换</text>
  147. </view>
  148. <view class="popup_content">
  149. <view class="body d-flex a-center j-center">
  150. <image :src="avatar" mode="aspectFill" @longtap="saveAvatar"></image>
  151. </view>
  152. </view>
  153. </z-popup>
  154. </view>
  155. </template>
  156. <script>
  157. import {mapState,mapMutations} from "vuex"
  158. import zPopup from '@/components/common/z-popup.vue'
  159. import { pathToBase64,base64ToPath } from '@/common/image-tools-base64.js';
  160. import myListItem from "@/components/modules/my/my-list-item.vue";
  161. export default {
  162. components:{
  163. zPopup,
  164. myListItem
  165. },
  166. data() {
  167. return {
  168. popupShow:false, //头像是否展示
  169. mystatusText:"未认证",
  170. prodetIntroShow:true, //显示滚动公告
  171. advanceMoney:'0',// 预收账户金额
  172. withdrawal:'0',//可提现金额
  173. extendMoney:'0',//推广费
  174. //轮播
  175. swiperList:[
  176. {sid:0,src:'自定义src0',img:'/static/image/my/ads/ban1.png'}
  177. ],
  178. orderTypeList: [
  179. { icon: 'icon-jixurenwu',orderstatus:0,text: '待继续',badge: '0',type: "primary",orderStage:0,iconColor:'#0696FF'},
  180. { icon: 'icon-hebaozhong',orderstatus:1,text: '核保中',badge: '0',type: "success",orderStage:1,iconColor:'#FFA22A'},
  181. { icon: 'icon-daijiaofei',orderstatus:2,text: '已核保',badge: '0',type: "warning",orderStage:2,iconColor:'#0696FF'},
  182. { icon: 'icon-querenzhifu',orderstatus:5,text: '待缴费',badge: '0',type: "error",orderStage:3,iconColor:'#DD525E'},
  183. { icon: 'icon-querenzhifu',orderstatus:6,text: '已缴费',badge: '0',type: "success",orderStage:4,iconColor:'#FFA22A'},
  184. { icon: 'icon-peisong',orderstatus:7,text: '已承保',badge: '0',type: "error",orderStage:5,iconColor:'#0696FF'},
  185. { icon: 'icon-kehuguanli',orderstatus:3,text: '待修改',badge: '0',type: "warning",orderStage:6,iconColor:'#0696FF'}
  186. ],
  187. toolsList: [
  188. { icon: 'icon-shandian',text: '闪电增员',url:'/pages/tools/addStaff/addStaff',iconColor:'#0696FF'},
  189. { icon: 'icon-tuanduiguanli',text: '团队管理',url:'/pages/tools/team/team',iconColor:'#FFA22A'},
  190. { icon: 'icon-kehuguanli',text: '客户管理',url:'/pages/tools/customer/customer',iconColor:'#0696FF'},
  191. { icon: 'icon-yejiguanli',text: '业绩管理',url:'/pages/tools/achievement/achievement',iconColor:'#0696FF'},
  192. { icon: 'icon-20xiaoshifuwurexian',text: '报案服务',url:'/pages/tools/insuranceClaims/insuranceClaims',iconColor:'#DD525E'},
  193. { icon: 'icon-qianbao',text: '钱包',url:'/pages/wallet/wallet',iconColor:'#FFA22A'},
  194. { icon: 'icon-baodan',text: '保单',url:'/pages/tools/policy',iconColor:'#0696FF'},
  195. { icon: 'icon-jisuanqi',text: '计算器',url:'/pages/tools/calculator/calculator',iconColor:'#0696FF'},
  196. { icon: 'icon-xiaomishu',text: '掌柜秘书',url:'/pages/tools/messageReminder/messageReminder',iconColor:'#DD525E'},
  197. { icon: 'icon-xiaomishu',text: '海报管理',url:'/pages/tools/poster/poster',iconColor:'#0696FF'},
  198. { icon: 'icon-xiaomishu',text: '优惠劵',url:'/pages/tools/coupon/coupon',iconColor:'#0696FF'}
  199. ],
  200. aboutList: [
  201. { icon: 'icon-yejiguanli',text: '常见问题',url:'/pages/set/question',iconColor:'#0696FF'},
  202. // { icon: 'icon-baodan',text: '意见反馈',url:'/pages/set/suggest',iconColor:'#DD525E'},
  203. { icon: 'icon-baodan',text: '意见反馈',url:'',iconColor:'#DD525E'},
  204. { icon: 'icon-yongjinguanli',text: '联系客服',tel:'4006333016',iconColor:'#FFA22A'},
  205. { icon: 'icon-qianbao',text: '关于我们',url:'/pages/set/about',iconColor:'#0696FF'}
  206. ],
  207. serviceList:[
  208. { icon: 'icon-yejiguanli',text: '发票申请',popup:'请加微信15513511113,联系客服操作',iconColor:'#0696FF'},
  209. { icon: 'icon-yongjinguanli',text: '保单批改',popup:'请加微信15513511113,联系客服操作',iconColor:'#FFA22A'},
  210. { icon: 'icon-qianbao',text: '申请退保',popup:'请加微信15513511113,联系客服操作',iconColor:'#0696FF'},
  211. { icon: 'icon-qianbao',text: '自助理赔',popup:'请加微信15513511113,联系客服操作',iconColor:'#0696FF'}
  212. ],
  213. menusList:[
  214. { icon:"shangcheng",name:"掌柜商场",clicktype:"nothing",url:"",auth:true },
  215. { icon:"chexiandingdan",name:"车险之家",clicktype:"navigateTo",url:"/pages/carInsure/entry",auth:true }
  216. ]
  217. }
  218. },
  219. onNavigationBarButtonTap(e) {
  220. if(e.index == 0){
  221. uni.navigateTo({
  222. url:"/pages/set/set"
  223. })
  224. }
  225. },
  226. computed:{
  227. ...mapState(['avatar','userStatus',"userInfo","userCheckInfo"]),
  228. toolsListLength(){
  229. return Math.ceil(this.toolsList.length/8);
  230. },
  231. aboutListLength(){
  232. return Math.ceil(this.aboutList.length/4);
  233. },
  234. serviceListLength(){
  235. return Math.ceil(this.serviceList.length/4);
  236. }
  237. },
  238. async onload() {
  239. if(this.userStatus == '1'){
  240. this.mystatusText="未认证";
  241. }else if(this.userStatus == '5'){
  242. this.mystatusText="已认证";
  243. }else{
  244. this.mystatusText="认证中";
  245. }
  246. await this.getAdvanceMoney();//预收金额
  247. await this.getPayAccount();//可提现余额
  248. await this.getExtendMoney();//推广费
  249. await this.getOrderNum();//获取订单数量
  250. },
  251. methods: {
  252. ...mapMutations(['setUserModules','setOrderType','setOrderStage']),
  253. //获得订单数量
  254. async getOrderNum(){
  255. console.log(this.userInfo)
  256. var data= {
  257. "columnFilters":{
  258. "orderstatus":{"name":"orderstatus","value":""},
  259. "userid":{"name":"userid","value":this.userInfo.sysUser.id},
  260. "quotestatus":{"name":"quotestatus","value":'1'}
  261. },
  262. "pageNum":1,
  263. "pageSize":1
  264. };
  265. for(let i=0;i<this.orderTypeList.length;i++){
  266. data.columnFilters.orderstatus.value = this.orderTypeList[i].orderstatus;
  267. let res = await this.$http.post('/insOrder/findPage',data,{load:false});
  268. // 请求失败处理
  269. if (res.code == 200){
  270. this.orderTypeList[i].badge = res.data.totalSize;
  271. }else{
  272. this.orderTypeList[i].badge ='0';
  273. }
  274. }
  275. },
  276. // 预收账户金额查询
  277. async getAdvanceMoney() {
  278. let res = await this.$http.get('/insPayApply/advanceAccount?userid=' + this.userInfo.sysUser.id,{},{load:false});
  279. // 请求失败处理
  280. if (res.code == 200){
  281. this.advanceMoney = res.data;
  282. }else{
  283. this.advanceMoney ='0';
  284. }
  285. },
  286. // 可提现余额查询
  287. async getPayAccount() {
  288. let res = await this.$http.get('/insPayApply/payAccount?userid=' + this.userInfo.sysUser.id,{},{load:false});
  289. // 请求失败处理
  290. if (res.code == 200){
  291. this.withdrawal = res.data.accountBalance;
  292. }else{
  293. this.withdrawal ='0';
  294. }
  295. },
  296. //推广费
  297. async getExtendMoney() {
  298. let res = await this.$http.get('/insPayApply/extendAccount?userid=' + this.userInfo.sysUser.id,{},{load:false});
  299. // 请求失败处理
  300. if (res.code == 200){
  301. this.extendMoney = res.data.accountBalance;
  302. }else{
  303. this.extendMoney ='0';
  304. }
  305. },
  306. // 广告滚动
  307. controlProdetIntro(){
  308. this.prodetIntroShow = !this.prodetIntroShow;
  309. },
  310. //保存头像
  311. saveAvatar(){
  312. var that = this;
  313. uni.saveImageToPhotosAlbum({ //保存图片
  314. filePath: that.avatar,
  315. success: (res) => {
  316. uni.showToast({
  317. title: '保存成功',
  318. })
  319. }
  320. })
  321. },
  322. //修改头像
  323. async changeAvatar(){
  324. let [err,chooseImageRes] =await uni.chooseImage({
  325. count:1,
  326. sizeType:['compressed']
  327. });
  328. if (!chooseImageRes) return;
  329. const isLt2M = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 2;
  330. if (!isLt2M) {
  331. return uni.showToast({ title:'上传图片大小不能超过 2MB!' , icon:"none" });
  332. }
  333. // 上传
  334. pathToBase64(chooseImageRes.tempFilePaths[0])
  335. .then(async base64 => {
  336. var paramImg = {
  337. "imgList": [base64],
  338. "imgtype": "avatar",
  339. "taskid": this.userInfo.sysUser.id
  340. }
  341. let res =await this.$http.post('/insTaskImage/save',paramImg);
  342. if(res.code == 200){
  343. this.setUserModules({title:'avatar',data:base64})
  344. uni.showToast({ title: '更换头像成功!',icon:'none',duration:2000 });
  345. }else{
  346. uni.showToast({ title: '更换头像失败!',icon:'none',duration:2000 });
  347. }
  348. })
  349. },
  350. //去工具页面
  351. toTools(e,listName){
  352. if(!!this[listName][e.detail.index].url && (this[listName][e.detail.index].url =='/pages/wallet/wallet')){
  353. if((!!this.userInfo.esmUserInternal) && (!!this.userInfo.esmUserInternal.accountno)){
  354. this.navigate({
  355. url:this[listName][e.detail.index].url
  356. },"navigateTo",true)
  357. }else{
  358. this.navigate({
  359. url:'/pages/wallet/bindBank',
  360. complete:() => {
  361. setTimeout(() => {
  362. uni.showToast({ title: '请先绑定银行卡',duration:3000,icon:"none"});
  363. }, 500);
  364. }
  365. },"navigateTo",true)
  366. }
  367. }else if(this[listName][e.detail.index].url){
  368. this.navigate({url:this[listName][e.detail.index].url},"navigateTo",true)
  369. }else if(this[listName][e.detail.index].tel){
  370. uni.makePhoneCall({
  371. phoneNumber: this[listName][e.detail.index].tel,
  372. })
  373. }else if(this[listName][e.detail.index].popup){
  374. uni.showModal({
  375. showCancel:false,
  376. content: this[listName][e.detail.index].popup,
  377. });
  378. }else{
  379. uni.showToast({
  380. title:this[listName][e.detail.index].text+'更新中...',
  381. icon: 'none'
  382. })
  383. }
  384. },
  385. // 去账单明细
  386. toBillDetails(type){
  387. this.navigate({url:"/pages/wallet/billDetails"+type},"navigateTo",true)
  388. },
  389. // 去账单明细
  390. toWallet(type){
  391. this.navigate({url:"/pages/wallet/wallet"},"navigateTo",true)
  392. },
  393. //跳转个人信息页面
  394. openDetail(){
  395. this.navigate({url:"/pages/user/userInfo"},"navigateTo",false)
  396. },
  397. //跳转订单页面
  398. openOrder(e) {
  399. let index = e.detail.index;
  400. this.setOrderType(0);
  401. this.setOrderStage(this.orderTypeList[index].orderStage);
  402. this.navigate({url:"/pages/orders/orders"},"switchTab",true)
  403. }
  404. }
  405. }
  406. </script>
  407. <style lang="scss" scoped>
  408. @import '@/style/mixin.scss';
  409. page{
  410. background-color: #FEFEFE;
  411. }
  412. /* 产品介绍Start */
  413. .prodet-intro{
  414. width: 100%;
  415. height: 70upx;
  416. background-color: #333;
  417. color: #3ae;
  418. white-space: nowrap;
  419. border-top: 1upx solid #666;
  420. border-bottom: 1upx solid #666;
  421. box-sizing: border-box;
  422. }
  423. .prodet-intro>view:nth-of-type(1){
  424. width: 60upx;
  425. height: 100%;
  426. flex-shrink: 1;
  427. padding-left: 20upx;
  428. font-size: 36upx;
  429. }
  430. .prodet-intro>view:nth-of-type(2){
  431. overflow: hidden;
  432. line-height: 70upx;
  433. font-size: 24upx;
  434. }
  435. .prodet-intro>view:nth-of-type(3){
  436. width: 60upx;
  437. padding-right: 20upx;
  438. flex-shrink: 1;
  439. height: 100%;
  440. font-size: 36upx;
  441. }
  442. .animate {
  443. padding-left: 40rpx;
  444. display: inline-block;
  445. white-space: nowrap;
  446. animation: 20s wordsLoop linear infinite normal;
  447. }
  448. @keyframes wordsLoop {
  449. 0% {
  450. transform: translateX(750rpx);
  451. -webkit-transform: translateX(750rpx);
  452. }
  453. 100% {
  454. transform: translateX(-100%);
  455. -webkit-transform: translateX(-100%);
  456. }
  457. }
  458. /* 产品介绍End */
  459. /* 头像预览Start */
  460. .popup_box {
  461. width: 100%;
  462. }
  463. .popup_title {
  464. display: flex;
  465. justify-content: space-between;
  466. height: 88upx;
  467. line-height: 88upx;
  468. border-bottom: 2upx solid #ebebeb;
  469. padding: 0 20upx;
  470. background-color: #FFF;
  471. }
  472. .popup_title view {
  473. font-size: 32upx;
  474. display: flex;
  475. align-items:center;
  476. }
  477. .popup_title text {
  478. width: 80upx;
  479. flex-shrink: 0;
  480. text-align: center;
  481. }
  482. .popup_title text {
  483. font-size: 28upx;
  484. color: #999;
  485. }
  486. .popup_title text:last-child {
  487. color: $themeColor;
  488. }
  489. .popup_content {
  490. padding: 40rpx 30rpx;
  491. background-color: #FFFFFF;
  492. text-align: center;
  493. }
  494. .popup_content .body image{
  495. width: 300upx;
  496. height:300upx;
  497. }
  498. /* 头像预览End */
  499. /* 个人信息Start */
  500. .home-info{
  501. height:243upx;
  502. padding-top: 25upx;
  503. /* background: #343740; */
  504. background: url(/static/image/my/infoBg.jpg) no-repeat 50%;
  505. background-size: 100% 100%;
  506. color: #FFFFFF;
  507. position: relative;
  508. }
  509. .home-info .mystatus{
  510. position: absolute;
  511. top: 100upx;
  512. left: 45upx;
  513. border-radius: 20upx;
  514. z-index: 10;
  515. font-size: 20upx;
  516. height: 35upx;
  517. width: 100upx;
  518. background-color: #007AFF;
  519. }
  520. .home-info>image{
  521. width: 110upx;
  522. height: 110upx;
  523. margin: 0upx 20upx 0upx 40upx;
  524. border-radius: 50%;
  525. flex-shrink: 1;
  526. }
  527. .home-info .person-info{
  528. display: inline-block;
  529. width: 70%;
  530. vertical-align: top;
  531. padding-top: 5upx;
  532. color: #fff;
  533. }
  534. .home-info .person-info>p{
  535. font-size: 24upx;
  536. line-height: 30upx;
  537. opacity: .4;
  538. overflow: hidden;
  539. text-overflow: ellipsis;
  540. white-space: nowrap;
  541. }
  542. /* 个人信息End */
  543. /* 我的订单Start */
  544. .my-orders,.wallet-body{
  545. position: relative;
  546. width: 690upx;
  547. height: 180upx;
  548. margin: -80upx 30upx 0upx;
  549. background: #FFFFFF;
  550. border-radius: 20upx;
  551. box-shadow: 0upx 0upx 10upx #efeff4;
  552. overflow: hidden;
  553. }
  554. .my-orders .grid-item-box {
  555. padding: 20upx 0;
  556. }
  557. .my-orders .grid-item-box .icon{
  558. width: 60upx;
  559. height: 70upx;
  560. font-size: 55upx;
  561. color: #1396DB;
  562. margin-bottom: 15upx;
  563. }
  564. .my-orders .grid-item-box .text{
  565. font-size: 24upx;
  566. color: #666666;
  567. }
  568. /* 我的订单End */
  569. /* 我的钱包Start */
  570. .wallet-body{
  571. margin-top: 0upx;
  572. padding: 20upx 20upx 0;
  573. box-sizing: border-box;
  574. }
  575. .wallet-body>view{
  576. flex-shrink: 1;
  577. }
  578. .wallet-body>view>view{
  579. line-height: 65upx;
  580. }
  581. .wallet-body>view>view:nth-of-type(1){
  582. font-size: 24upx;
  583. }
  584. .wallet-body>view>view:nth-of-type(2){
  585. font-size: 28upx;
  586. font-weight: bold;
  587. }
  588. /* 我的钱包End */
  589. /* 小的分项标题Start */
  590. .header{
  591. margin-top: 30upx;
  592. height: 50upx;
  593. padding: 0upx 50upx;
  594. font-size: 28upx;
  595. line-height: 50upx;
  596. margin-bottom: 10upx;
  597. }
  598. .header>view:nth-of-type(1){
  599. font-weight: bold;
  600. }
  601. .header>view:nth-of-type(2){
  602. font-size: 24upx;
  603. color: #BBBBBB;
  604. }
  605. .header>view:nth-of-type(2) .icon{
  606. font-size:20upx;
  607. }
  608. /* 小的分项标题End */
  609. .order-body{
  610. margin: 15upx 30upx;
  611. box-shadow: 0upx 0upx 10upx #efeff4;
  612. border-radius: 20upx;
  613. }
  614. .grid-item-box {
  615. flex: 1;
  616. padding: 20upx 0;
  617. }
  618. .grid-item-box .icon{
  619. width: 60upx;
  620. height: 70upx;
  621. font-size: 50upx;
  622. color: #1396DB;
  623. }
  624. .grid-item-box .text{
  625. font-size: 24upx;
  626. color: #666666;
  627. }
  628. .grid-dot {
  629. position: absolute;
  630. top: 20upx;
  631. right: 25upx;
  632. background-color: none;
  633. }
  634. .swiper {
  635. width: 100%;
  636. }
  637. .swiper-view .keep-out {
  638. width: 100%;
  639. height: 30upx;
  640. border-radius: 100% 100% 0 0;
  641. margin-top: -15upx;
  642. position: absolute;
  643. }
  644. .swiper-view .swiper {
  645. overflow: hidden;
  646. padding: 30upx 20upx 0;
  647. box-sizing: border-box;
  648. width: 100%;
  649. height: 200upx;
  650. }
  651. .swiper-view .swiper image {
  652. width: 100%;
  653. height: 200upx;
  654. }
  655. </style>