my.vue 23 KB

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