my.vue 23 KB

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