my.vue 23 KB

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