index.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490
  1. <template>
  2. <view class="new-users copy-data" :style="{height:pageHeight}">
  3. <view class="top" :style="colorStyle">
  4. <!-- #ifdef MP || APP-PLUS -->
  5. <view class="sys-head">
  6. <view class="sys-bar" :style="{height:sysHeight}"></view>
  7. <!-- #ifdef MP -->
  8. <view class="sys-title" :style="member_style==3?'color:#333':''">{{$t('个人中心')}}</view>
  9. <!-- #endif -->
  10. <view class="bg" :style="member_style==3?'background:#f5f5f5':''"></view>
  11. </view>
  12. <!-- #endif -->
  13. </view>
  14. <view class="mid" style="flex:1;overflow: hidden;" :style="colorStyle">
  15. <scroll-view scroll-y="true" style="height: 100%;">
  16. <view class="head">
  17. <view class="user-card" :class="member_style==3?'unBg':''">
  18. <view class="bg"></view>
  19. <view class="user-info">
  20. <view>
  21. <!-- 注释这个是加的bnt -->
  22. <!-- #ifdef H5 -->
  23. <!-- <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin"
  24. @click="getWechatuserinfo">
  25. <image class="avatar" src='/static/images/f.png'></image>
  26. <view class="avatarName">{{$t('获取头像')}}</view>
  27. </button> -->
  28. <!-- #endif -->
  29. <!-- #ifndef APP-PLUS -->
  30. <view class="avatar-box" :class="{on:userInfo.is_money_level}">
  31. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar"
  32. @click="goEdit()">
  33. </image>
  34. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  35. </image>
  36. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  37. <image src="/static/images/headwear.png"></image>
  38. </view>
  39. </view>
  40. <!-- #endif -->
  41. <!-- #ifdef APP-PLUS -->
  42. <view class="avatar-box" :class="{on:userInfo.is_money_level}">
  43. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar"
  44. @click="goEdit()">
  45. </image>
  46. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  47. </image>
  48. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  49. <image src="/static/images/headwear.png"></image>
  50. </view>
  51. </view>
  52. <!-- #endif -->
  53. </view>
  54. <view class="info">
  55. <!-- #ifdef MP || APP-PLUS -->
  56. <view class="name" v-if="!userInfo.uid" @click="openAuto"
  57. style="height: 100%; display: flex; align-items: center;">
  58. {{$t('请点击授权')}}
  59. </view>
  60. <!-- #endif -->
  61. <!-- #ifdef H5 -->
  62. <view class="name" v-if="!userInfo.uid" @click="openAuto"
  63. style="height: 100%; display: flex; align-items: center;">
  64. {{$t(isWeixin ? '请点击授权' : '请点击登录')}}
  65. </view>
  66. <!-- #endif -->
  67. <view class="name" v-if="userInfo.uid">
  68. <text class="line1 nickname">{{userInfo.nickname}}</text>
  69. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  70. <view class="vip" v-if="userInfo.is_money_level> 0 && userInfo.svip_open">
  71. <image src="/static/images/svip.png"></image>
  72. </view>
  73. </view>
  74. <view class="num" v-if="userInfo.phone" @click="goEdit()">
  75. <view class="num-txt">{{userInfo.phone}}</view>
  76. </view>
  77. <!-- #ifdef MP -->
  78. <button class="phone" v-if="!userInfo.phone && isLogin" open-type="getPhoneNumber"
  79. @getphonenumber="getphonenumber">{{$t(`绑定手机号`)}}</button>
  80. <!-- #endif -->
  81. <!-- #ifndef MP -->
  82. <view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">
  83. {{$t('绑定手机号')}}
  84. </view>
  85. <!-- #endif -->
  86. </view>
  87. <view class="message">
  88. <navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none">
  89. <view class="iconfont icon-shezhi"></view>
  90. </navigator>
  91. </view>
  92. <view class="message">
  93. <navigator v-if="isLogin" url="/pages/users/message_center/index" hover-class="none">
  94. <view v-if="userInfo.service_num" class="num">
  95. {{userInfo.service_num >= 100 ? '99+' : userInfo.service_num}}
  96. </view>
  97. <view class="iconfont icon-s-kefu"></view>
  98. </navigator>
  99. </view>
  100. <!-- #ifdef MP -->
  101. <!-- <view class="setting" @click="Setting"><text class="iconfont icon-shezhi"></text></view> -->
  102. <!-- #endif -->
  103. </view>
  104. <view class="num-wrapper">
  105. <view class="num-item" v-if="userInfo.balance_func_status"
  106. @click="goMenuPage('/pages/users/user_money/index')">
  107. <text class="num">{{userInfo.now_money || 0}}</text>
  108. <view class="txt">{{$t('余额')}}</view>
  109. </view>
  110. <view class="num-item" v-else
  111. @click="goMenuPage('/pages/users/user_goods_collection/index')">
  112. <text class="num">{{userInfo.collectCount || 0}}</text>
  113. <view class="txt">{{$t('收藏')}}</view>
  114. </view>
  115. <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
  116. <text class="num">{{userInfo.couponCount || 0}}</text>
  117. <view class="txt">{{$t('优惠券')}}</view>
  118. </view>
  119. <view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
  120. <text class="num">{{userInfo.integral || 0}}</text>
  121. <view class="txt">{{$t('积分')}}</view>
  122. </view>
  123. </view>
  124. <!-- <view class="sign" @click="goSignIn">签到</view> -->
  125. <!-- <view class="cardVipA acea-row row-between-wrapper"
  126. v-if="userInfo.svip_open && member_style==1">
  127. <view class="left-box">
  128. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  129. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  130. {{ userInfo.overdue_time | dateFormat }}
  131. </view>
  132. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  133. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  134. </view>
  135. </view>
  136. <view class="acea-row row-middle">
  137. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index"
  138. hover-class="none" class="btn">{{$t('查看会员权益')}}</navigator>
  139. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  140. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  141. </navigator>
  142. <text class="iconfont icon-xiangyou"></text>
  143. </view>
  144. </view> -->
  145. <!-- <view class="cardVipB acea-row row-between" v-if="userInfo.svip_open && member_style==3">
  146. <view class="left-box acea-row">
  147. <view class="pictrue">
  148. <image src="../../static/images/member01.png"></image>
  149. </view>
  150. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  151. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  152. {{ userInfo.overdue_time | dateFormat }}
  153. </view>
  154. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  155. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  156. </view>
  157. </view>
  158. <view class="acea-row">
  159. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index"
  160. hover-class="none" class="btn">{{$t('会员可享多项权益')}}</navigator>
  161. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  162. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  163. </navigator>
  164. <text class="iconfont icon-xiangyou btn"></text>
  165. </view>
  166. </view> -->
  167. </view>
  168. <!-- <view class="card-vip" v-if="userInfo.svip_open && member_style==2">
  169. <view class="left-box">
  170. <view class="big">{{$t('会员可享多项权益')}}</view>
  171. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  172. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  173. {{ userInfo.overdue_time | dateFormat }}
  174. </view>
  175. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  176. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  177. </view>
  178. </view>
  179. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index" hover-class="none"
  180. class="btn">{{$t('查看会员权益')}}</navigator>
  181. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  182. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  183. </navigator>
  184. </view> -->
  185. <view class="order-wrapper" :class="userInfo.svip_open?'':'height'">
  186. <view class="order-hd flex">
  187. <view class="left">{{$t('订单中心')}}</view>
  188. <navigator class="right flex" hover-class="none" url="/pages/goods/order_list/index"
  189. open-type="navigate">
  190. {{$t('查看全部')}}
  191. <text class="iconfont icon-xiangyou"></text>
  192. </navigator>
  193. </view>
  194. <view class="order-bd">
  195. <block v-for="(item,index) in orderMenu" :key="index">
  196. <navigator class="order-item" hover-class="none" :url="item.url">
  197. <view class="pic">
  198. <!-- <image :src="item.img" mode=""></image> -->
  199. <text class="iconfont" :class="item.img"></text>
  200. <text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
  201. </view>
  202. <view class="txt">{{$t(item.title)}}</view>
  203. </navigator>
  204. </block>
  205. </view>
  206. </view>
  207. </view>
  208. <!-- 轮播 -->
  209. <view class="slider-wrapper" v-if="imgUrls.length>0 && my_banner_status">
  210. <swiper indicator-dots="true" :autoplay="autoplay" :circular="circular" :interval="interval"
  211. :duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
  212. <block v-for="(item,index) in imgUrls" :key="index">
  213. <swiper-item>
  214. <view @click="goPages(item.url)" class='slide-navigator acea-row row-between-wrapper'
  215. hover-class='none'>
  216. <image :src="item.pic" class="slide-image"></image>
  217. </view>
  218. </swiper-item>
  219. </block>
  220. </swiper>
  221. </view>
  222. <!-- 会员菜单 -->
  223. <view class="user-menus" style="margin-top: 20rpx;">
  224. <view class="menu-title">{{$t('我的服务')}}</view>
  225. <view class="list-box">
  226. <!-- #ifdef APP-PLUS || H5 -->
  227. <block v-for="(item,index) in MyMenus" :key="index">
  228. <view class="item" v-if="item.url!='#' && item.url!='/pages/service/index'"
  229. @click="goMenuPage(item.url, item.name)">
  230. <image :src="item.pic"></image>
  231. <text>{{$t(item.name)}}</text>
  232. </view>
  233. </block>
  234. <!-- #endif -->
  235. <!-- #ifdef MP -->
  236. <block v-for="(item,index) in MyMenus" :key="index">
  237. <view class="item" v-if="item.url!='#'
  238. && item.url!='/pages/service/index'
  239. && item.url!='/pages/extension/customer_list/chat'
  240. || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)"
  241. @click="goMenuPage(item.url, item.name)">
  242. <image :src="item.pic"></image>
  243. <text>{{$t(item.name)}}</text>
  244. </view>
  245. </block>
  246. <button class="item" open-type='contact' v-if="routineContact == 1">
  247. <image src="/static/images/contact.png"></image>
  248. <text>{{$t('联系客服')}}</text>
  249. </button>
  250. <!-- #endif -->
  251. <!-- #ifdef APP-PLUS -->
  252. <view class="item" hover-class="none" @click="goMenuPage('/pages/users/privacy/index?type=3')">
  253. <image src="/static/images/menu.png"></image>
  254. <text>{{$t('隐私协议')}}</text>
  255. </view>
  256. <!-- #endif -->
  257. </view>
  258. </view>
  259. <view class="user-menus" style="margin-top: 20rpx;" v-if="storeMenu.length">
  260. <view class="menu-title">{{$t('商家管理')}}</view>
  261. <view class="list-box">
  262. <block v-for="(item,index) in storeMenu" :key="index">
  263. <view class="item" :url="item.url" hover-class="none"
  264. v-if="item.url!='#' && item.url!='/pages/service/index'"
  265. @click="goMenuPage(item.url, item.name)">
  266. <image :src="item.pic"></image>
  267. <text>{{$t(item.name)}}</text>
  268. </view>
  269. </block>
  270. </view>
  271. </view>
  272. <!-- <image :src="copyRightPic" alt="" class='support'></image> -->
  273. <view class="uni-p-b-98"></view>
  274. </scroll-view>
  275. <editUserModal :isShow="editModal" @closeEdit="closeEdit" @editSuccess="editSuccess">
  276. </editUserModal>
  277. </view>
  278. <uni-popup ref="popupkf" type="center">
  279. <view class="popup-box">
  280. <view class="img">
  281. <image src="../../static/img/img009.png" mode=""></image>
  282. </view>
  283. <view class="mian">
  284. <view class="delivery">
  285. <view class="title">已经为您定制专属客服</view>
  286. <image src="../../static/img/img010.png" mode=""></image>
  287. </view>
  288. <view class="nocancel">客服:18906550027</view>
  289. <view class="comfirm-box">
  290. <view class="cancel" @click="cancel">取消</view>
  291. <view class="comfirm" @click="comfirm('18906550027')">复制</view>
  292. </view>
  293. </view>
  294. </view>
  295. </uni-popup>
  296. <tabBar v-if="!is_diy" :pagePath="'/pages/user/index'"></tabBar>
  297. <pageFooter v-else></pageFooter>
  298. </view>
  299. </template>
  300. <script>
  301. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  302. import {
  303. getMenuList,
  304. getUserInfo,
  305. setVisit,
  306. mpBindingPhone
  307. } from '@/api/user.js';
  308. import {
  309. wechatAuthV2,
  310. silenceAuth
  311. } from '@/api/public.js'
  312. import {
  313. toLogin
  314. } from '@/libs/login.js';
  315. import {
  316. mapState,
  317. mapGetters
  318. } from "vuex";
  319. // #ifdef H5
  320. import Auth from '@/libs/wechat';
  321. // #endif
  322. const app = getApp();
  323. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  324. import Routine from '@/libs/routine';
  325. import colors from '@/mixins/color';
  326. import tabBar from "@/pages/index/visualization/components/tabBar.vue";
  327. import pageFooter from '@/components/pageFooter/index.vue'
  328. import {
  329. getCustomer
  330. } from '@/utils/index.js'
  331. import editUserModal from '@/components/eidtUserModal/index.vue'
  332. export default {
  333. components: {
  334. tabBar,
  335. pageFooter,
  336. editUserModal
  337. },
  338. // computed: mapGetters(['isLogin','cartNum']),
  339. computed: {
  340. ...mapGetters({
  341. cartNum: 'cartNum',
  342. isLogin: 'isLogin'
  343. })
  344. },
  345. filters: {
  346. coundTime(val) {
  347. var setTime = val * 1000
  348. var nowTime = new Date()
  349. var rest = setTime - nowTime.getTime()
  350. var day = parseInt(rest / (60 * 60 * 24 * 1000))
  351. // var hour = parseInt(rest/(60*60*1000)%24) //小时
  352. return day + this.$t('day')
  353. },
  354. dateFormat: function(value) {
  355. return dayjs(value * 1000).format('YYYY-MM-DD');
  356. }
  357. },
  358. mixins: [colors],
  359. data() {
  360. return {
  361. editModal: false, // 编辑头像信息
  362. storeMenu: [], // 商家管理
  363. orderMenu: [{
  364. img: 'icon-daifukuan',
  365. title: '待付款',
  366. url: '/pages/goods/order_list/index?status=0'
  367. },
  368. {
  369. img: 'icon-daifahuo',
  370. title: '待发货',
  371. url: '/pages/goods/order_list/index?status=1'
  372. },
  373. {
  374. img: 'icon-daishouhuo',
  375. title: '待收货',
  376. url: '/pages/goods/order_list/index?status=2'
  377. },
  378. {
  379. img: 'icon-daipingjia',
  380. title: '待评价',
  381. url: '/pages/goods/order_list/index?status=3'
  382. },
  383. {
  384. img: 'icon-a-shouhoutuikuan',
  385. title: '售后/退款',
  386. url: '/pages/users/user_return_list/index'
  387. },
  388. ],
  389. imgUrls: [],
  390. autoplay: true,
  391. circular: true,
  392. interval: 3000,
  393. duration: 500,
  394. isAuto: false, //没有授权的不会自动授权
  395. isShowAuth: false, //是否隐藏授权
  396. orderStatusNum: {},
  397. userInfo: {},
  398. MyMenus: [],
  399. sysHeight: sysHeight,
  400. mpHeight: 0,
  401. showStatus: 1,
  402. activeRouter: '',
  403. // #ifdef H5 || MP
  404. pageHeight: '100%',
  405. routineContact: 0,
  406. // #endif
  407. // #ifdef APP-PLUS
  408. pageHeight: app.globalData.windowHeight,
  409. // #endif
  410. // #ifdef H5
  411. isWeixin: Auth.isWeixin(),
  412. //#endif
  413. footerSee: false,
  414. member_style: 1,
  415. my_banner_status: 1,
  416. is_diy: uni.getStorageSync('is_diy'),
  417. copyRightPic: '/static/images/support.png', //版权图片
  418. }
  419. },
  420. onLoad(option) {
  421. uni.hideTabBar()
  422. let that = this;
  423. // #ifdef MP
  424. // 小程序静默授权
  425. if (!this.$store.getters.isLogin) {
  426. // Routine.getCode()
  427. // .then(code => {
  428. // Routine.silenceAuth(code).then(res => {
  429. // this.onLoadFun();
  430. // })
  431. // })
  432. // .catch(res => {
  433. // uni.hideLoading();
  434. // });
  435. }
  436. // #endif
  437. // #ifdef H5 || APP-PLUS
  438. if (that.isLogin == false) {
  439. toLogin()
  440. }
  441. //获取用户信息回来后授权
  442. let cacheCode = this.$Cache.get('snsapi_userinfo_code');
  443. let res1 = cacheCode ? option.code != cacheCode : true;
  444. if (this.isWeixin && option.code && res1 && option.scope === 'snsapi_userinfo') {
  445. this.$Cache.set('snsapi_userinfo_code', option.code);
  446. Auth.auth(option.code).then(res => {
  447. this.getUserInfo();
  448. }).catch(err => {})
  449. }
  450. // #endif
  451. // #ifdef APP-PLUS
  452. that.$set(that, 'pageHeight', app.globalData.windowHeight);
  453. // #endif
  454. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  455. let curRoute = routes[routes.length - 1].route //获取当前页面路由
  456. this.activeRouter = '/' + curRoute
  457. this.getCopyRight();
  458. },
  459. onReady() {
  460. let self = this
  461. // #ifdef MP
  462. let info = uni.createSelectorQuery().select(".sys-head");
  463. info.boundingClientRect(function(data) { //data - 各种参数
  464. self.mpHeight = data.height
  465. }).exec()
  466. // #endif
  467. },
  468. onShow: function() {
  469. let that = this;
  470. // #ifdef APP-PLUS
  471. uni.getSystemInfo({
  472. success: function(res) {
  473. that.pageHeight = res.windowHeight + 'px'
  474. }
  475. });
  476. // #endif
  477. if (that.isLogin) {
  478. this.getUserInfo();
  479. this.getMyMenus();
  480. this.setVisit();
  481. };
  482. this.getCopyRight();
  483. },
  484. onPullDownRefresh() {
  485. this.onLoadFun();
  486. },
  487. methods: {
  488. cancel() {
  489. this.$refs.popupkf.close()
  490. },
  491. comfirm(text) {
  492. uni.setClipboardData({
  493. data: text,
  494. success: function() {
  495. console.log('success');
  496. uni.showToast({
  497. title: '复制成功',
  498. icon: 'none'
  499. });
  500. },
  501. fail() {
  502. uni.showToast({
  503. title: '不支持'
  504. });
  505. }
  506. });
  507. },
  508. getWechatuserinfo() {
  509. //#ifdef H5
  510. Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
  511. //#endif
  512. },
  513. editSuccess() {
  514. this.editModal = false
  515. this.getUserInfo();
  516. },
  517. closeEdit() {
  518. this.editModal = false
  519. },
  520. // 记录会员访问
  521. setVisit() {
  522. setVisit({
  523. url: '/pages/user/index'
  524. }).then(res => {})
  525. },
  526. // 打开授权
  527. openAuto() {
  528. toLogin();
  529. },
  530. // 授权回调
  531. onLoadFun() {
  532. this.getUserInfo();
  533. this.getMyMenus();
  534. this.setVisit();
  535. },
  536. Setting: function() {
  537. uni.openSetting({
  538. success: function(res) {}
  539. });
  540. },
  541. // 授权关闭
  542. authColse: function(e) {
  543. this.isShowAuth = e
  544. },
  545. // 绑定手机
  546. bindPhone() {
  547. uni.navigateTo({
  548. url: '/pages/users/user_phone/index'
  549. })
  550. },
  551. getphonenumber(e) {
  552. if (e.detail.errMsg == 'getPhoneNumber:ok') {
  553. Routine.getCode()
  554. .then(code => {
  555. let data = {
  556. code,
  557. iv: e.detail.iv,
  558. encryptedData: e.detail.encryptedData,
  559. }
  560. mpBindingPhone(data).then(res => {
  561. this.getUserInfo()
  562. this.$util.Tips({
  563. title: res.msg,
  564. icon: 'success'
  565. });
  566. }).catch(err => {
  567. return this.$util.Tips({
  568. title: err
  569. });
  570. })
  571. })
  572. .catch(error => {
  573. uni.hideLoading();
  574. });
  575. }
  576. },
  577. /**
  578. * 获取个人用户信息
  579. */
  580. getUserInfo: function() {
  581. let that = this;
  582. getUserInfo().then(res => {
  583. that.userInfo = res.data
  584. that.$store.commit("SETUID", res.data.uid);
  585. that.orderMenu.forEach((item, index) => {
  586. switch (item.title) {
  587. case '待付款':
  588. item.num = res.data.orderStatusNum.unpaid_count
  589. break
  590. case '待发货':
  591. item.num = res.data.orderStatusNum.unshipped_count
  592. break
  593. case '待收货':
  594. item.num = res.data.orderStatusNum.received_count
  595. break
  596. case '待评价':
  597. item.num = res.data.orderStatusNum.evaluated_count
  598. break
  599. case '售后/退款':
  600. item.num = res.data.orderStatusNum.refunding_count
  601. break
  602. }
  603. })
  604. uni.stopPullDownRefresh();
  605. });
  606. },
  607. //小程序授权api替换 getUserInfo
  608. getUserProfile() {
  609. toLogin();
  610. },
  611. /**
  612. *
  613. * 获取个人中心图标
  614. */
  615. switchTab(order) {
  616. this.orderMenu.forEach((item, index) => {
  617. switch (item.title) {
  618. case '待付款':
  619. item.img = order.dfk
  620. break
  621. case '待发货':
  622. item.img = order.dfh
  623. break
  624. case '待收货':
  625. item.img = order.dsh
  626. break
  627. case '待评价':
  628. item.img = order.dpj
  629. break
  630. case '售后/退款':
  631. item.img = order.sh
  632. break
  633. }
  634. })
  635. },
  636. getMyMenus: function() {
  637. let that = this;
  638. // if (this.MyMenus.length) return;
  639. getMenuList().then(res => {
  640. let storeMenu = []
  641. let myMenu = []
  642. res.data.routine_my_menus.forEach((el, index, arr) => {
  643. if (el.url == '/pages/admin/order/index' || el.url ==
  644. '/pages/admin/order_cancellation/index' || el.name ==
  645. '客服接待') {
  646. storeMenu.push(el)
  647. } else {
  648. myMenu.push(el)
  649. }
  650. })
  651. this.member_style = Number(res.data.diy_data.value)
  652. this.my_banner_status = res.data.diy_data.my_banner_status
  653. let order01 = {
  654. dfk: 'icon-daifukuan',
  655. dfh: 'icon-daifahuo',
  656. dsh: 'icon-daishouhuo',
  657. dpj: 'icon-daipingjia',
  658. sh: 'icon-a-shouhoutuikuan'
  659. }
  660. let order02 = {
  661. dfk: 'icon-daifukuan-lan',
  662. dfh: 'icon-daifahuo-lan',
  663. dsh: 'icon-daishouhuo-lan',
  664. dpj: 'icon-daipingjia-lan',
  665. sh: 'icon-shouhou-tuikuan-lan'
  666. }
  667. let order03 = {
  668. dfk: 'icon-daifukuan-ju',
  669. dfh: 'icon-daifahuo-ju',
  670. dsh: 'icon-daishouhuo-ju',
  671. dpj: 'icon-daipingjia-ju',
  672. sh: 'icon-shouhou-tuikuan-ju'
  673. }
  674. let order04 = {
  675. dfk: 'icon-daifukuan-fen',
  676. dfh: 'icon-daifahuo-fen',
  677. dsh: 'icon-daishouhuo-fen',
  678. dpj: 'icon-daipingjia-fen',
  679. sh: 'icon-a-shouhoutuikuan-fen'
  680. }
  681. let order05 = {
  682. dfk: 'icon-daifukuan-lv',
  683. dfh: 'icon-daifahuo-lv',
  684. dsh: 'icon-daishouhuo-lv',
  685. dpj: 'icon-daipingjia-lv',
  686. sh: 'icon-shouhou-tuikuan-lv'
  687. }
  688. switch (res.data.diy_data.order_status) {
  689. case 1:
  690. this.switchTab(order01)
  691. break
  692. case 2:
  693. this.switchTab(order02)
  694. break
  695. case 3:
  696. this.switchTab(order03)
  697. break
  698. case 4:
  699. this.switchTab(order04)
  700. break
  701. case 5:
  702. this.switchTab(order05)
  703. break
  704. }
  705. that.$set(that, 'MyMenus', myMenu);
  706. that.$set(that, 'storeMenu', storeMenu);
  707. this.imgUrls = res.data.routine_my_banner
  708. this.routineContact = Number(res.data.routine_contact_type)
  709. });
  710. },
  711. // 编辑页面
  712. goEdit() {
  713. if (this.isLogin == false) {
  714. toLogin();
  715. } else {
  716. // #ifdef MP
  717. if (this.userInfo.is_default_avatar) {
  718. this.editModal = true
  719. return
  720. }
  721. // #endif
  722. uni.navigateTo({
  723. url: '/pages/users/user_info/index'
  724. })
  725. }
  726. },
  727. // 签到
  728. goSignIn() {
  729. uni.navigateTo({
  730. url: '/pages/users/user_sgin/index'
  731. })
  732. },
  733. // goMenuPage
  734. goMenuPage(url, name) {
  735. if (this.isLogin) {
  736. if (url.indexOf('http') === -1) {
  737. // #ifdef H5 || APP-PLUS
  738. if (name && name === '客服接待') {
  739. // return window.location.href = `${location.origin}${url}`
  740. return uni.navigateTo({
  741. url: `/pages/annex/web_view/index?url=${location.origin}${url}`
  742. });
  743. } else if (name && name === '联系客服') {
  744. // return getCustomer(url)
  745. return this.$refs.popupkf.open()
  746. } else if (name === '订单核销') {
  747. return uni.navigateTo({
  748. url: url
  749. });
  750. // return window.location.href = `${location.origin}${url}`
  751. }
  752. // #endif
  753. // #ifdef MP
  754. if (name && name === '联系客服') {
  755. return getCustomer(url)
  756. }
  757. if (url != '#' && url == '/pages/users/user_info/index') {
  758. uni.openSetting({
  759. success: function(res) {}
  760. });
  761. }
  762. // #endif
  763. uni.navigateTo({
  764. url: url,
  765. fail(err) {
  766. uni.switchTab({
  767. url: url
  768. })
  769. }
  770. })
  771. } else {
  772. uni.navigateTo({
  773. url: `/pages/annex/web_view/index?url=${url}`
  774. });
  775. }
  776. } else {
  777. // #ifdef MP
  778. this.openAuto()
  779. // #endif
  780. }
  781. },
  782. goPages(url) {
  783. this.$util.JumpPath(url);
  784. },
  785. goRouter(item) {
  786. var pages = getCurrentPages();
  787. var page = (pages[pages.length - 1]).$page.fullPath;
  788. if (item.link == page) return
  789. uni.switchTab({
  790. url: item.link,
  791. fail(err) {
  792. uni.redirectTo({
  793. url: item.link
  794. })
  795. }
  796. })
  797. },
  798. getCopyRight() {
  799. const copyRight = uni.getStorageSync('copyRight')
  800. if (copyRight.copyrightImage) {
  801. this.copyRightPic = copyRight.copyrightImage
  802. }
  803. }
  804. }
  805. }
  806. </script>
  807. <style lang="scss">
  808. page,
  809. body {
  810. height: 100%;
  811. }
  812. .height {
  813. margin-top: -100rpx !important;
  814. }
  815. .unBg {
  816. background-color: unset !important;
  817. .user-info {
  818. .info {
  819. .name {
  820. color: #333333 !important;
  821. font-weight: 600;
  822. }
  823. .num {
  824. color: #333 !important;
  825. .num-txt {
  826. height: 38rpx;
  827. background-color: rgba(51, 51, 51, 0.13);
  828. padding: 0 12rpx;
  829. border-radius: 16rpx;
  830. }
  831. }
  832. }
  833. }
  834. .num-wrapper {
  835. color: #333 !important;
  836. font-weight: 600;
  837. .num-item {
  838. .txt {
  839. color: rgba(51, 51, 51, 0.7) !important;
  840. }
  841. }
  842. }
  843. .message {
  844. .iconfont {
  845. color: #333 !important;
  846. }
  847. .num {
  848. color: #fff !important;
  849. background-color: var(--view-theme) !important;
  850. }
  851. }
  852. .setting {
  853. .iconfont {
  854. color: #333 !important;
  855. }
  856. }
  857. }
  858. .cardVipB {
  859. background-color: #343A48;
  860. width: 100%;
  861. height: 124rpx;
  862. border-radius: 16rpx 16rpx 0 0;
  863. padding: 22rpx 30rpx 0 30rpx;
  864. margin-top: 16px;
  865. .left-box {
  866. .small {
  867. color: #F8D5A8;
  868. font-size: 28rpx;
  869. margin-left: 18rpx;
  870. }
  871. .pictrue {
  872. width: 40rpx;
  873. height: 45rpx;
  874. image {
  875. width: 100%;
  876. height: 100%;
  877. }
  878. }
  879. }
  880. .btn {
  881. color: #BBBBBB;
  882. font-size: 26rpx;
  883. }
  884. .icon-xiangyou {
  885. margin-top: 6rpx;
  886. }
  887. }
  888. .cardVipA {
  889. position: absolute;
  890. background: url('~@/static/images/member.png') no-repeat;
  891. background-size: 100% 100%;
  892. width: 750rpx;
  893. height: 84rpx;
  894. bottom: -2rpx;
  895. left: 0;
  896. padding: 0 56rpx 0 135rpx;
  897. .left-box {
  898. font-size: 26rpx;
  899. color: #905100;
  900. font-weight: 400;
  901. }
  902. .btn {
  903. color: #905100;
  904. font-weight: 400;
  905. font-size: 24rpx;
  906. }
  907. .iconfont {
  908. font-size: 20rpx;
  909. margin: 4rpx 0 0 4rpx;
  910. }
  911. }
  912. .new-users {
  913. display: flex;
  914. flex-direction: column;
  915. height: 100%;
  916. .sys-head {
  917. position: relative;
  918. width: 100%;
  919. // background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  920. .bg {
  921. position: absolute;
  922. left: 0;
  923. top: 0;
  924. width: 100%;
  925. height: 100%;
  926. background: var(--view-theme);
  927. background-size: 100% auto;
  928. background-position: left bottom;
  929. }
  930. .sys-title {
  931. z-index: 10;
  932. position: relative;
  933. height: 43px;
  934. text-align: center;
  935. line-height: 43px;
  936. font-size: 36rpx;
  937. color: #FFFFFF;
  938. }
  939. }
  940. .head {
  941. // background: #fff;
  942. .user-card {
  943. position: relative;
  944. width: 100%;
  945. height: 380rpx;
  946. margin: 0 auto;
  947. padding: 35rpx 28rpx;
  948. background-image: url("~@/static/images/user01.png");
  949. background-size: 100% auto;
  950. background-color: var(--view-theme);
  951. .user-info {
  952. z-index: 20;
  953. position: relative;
  954. display: flex;
  955. .headwear {
  956. position: absolute;
  957. right: -4rpx;
  958. top: -14rpx;
  959. width: 44rpx;
  960. height: 44rpx;
  961. image {
  962. width: 100%;
  963. height: 100%;
  964. }
  965. }
  966. .live {
  967. width: 28rpx;
  968. height: 28rpx;
  969. margin-left: 20rpx;
  970. }
  971. .bntImg {
  972. width: 120rpx;
  973. height: 120rpx;
  974. border-radius: 50%;
  975. text-align: center;
  976. line-height: 120rpx;
  977. background-color: unset;
  978. position: relative;
  979. .avatarName {
  980. font-size: 16rpx;
  981. color: #fff;
  982. text-align: center;
  983. background-color: rgba(0, 0, 0, 0.6);
  984. height: 37rpx;
  985. line-height: 37rpx;
  986. position: absolute;
  987. bottom: 0;
  988. left: 0;
  989. width: 100%;
  990. }
  991. }
  992. .avatar-box {
  993. position: relative;
  994. display: flex;
  995. align-items: center;
  996. justify-content: center;
  997. width: 120rpx;
  998. height: 120rpx;
  999. border-radius: 50%;
  1000. &.on {
  1001. .avatar {
  1002. border: 2px solid #FFAC65;
  1003. border-radius: 50%;
  1004. box-sizing: border-box;
  1005. }
  1006. }
  1007. }
  1008. .avatar {
  1009. position: relative;
  1010. width: 120rpx;
  1011. height: 120rpx;
  1012. border-radius: 50%;
  1013. }
  1014. .info {
  1015. flex: 1;
  1016. display: flex;
  1017. flex-direction: column;
  1018. justify-content: space-between;
  1019. margin-left: 20rpx;
  1020. padding: 20rpx 0;
  1021. .name {
  1022. display: flex;
  1023. align-items: center;
  1024. color: #fff;
  1025. font-size: 31rpx;
  1026. .nickname {
  1027. max-width: 8em;
  1028. }
  1029. .vip {
  1030. margin-left: 10rpx;
  1031. image {
  1032. width: 78rpx;
  1033. height: 30rpx;
  1034. display: block;
  1035. }
  1036. }
  1037. }
  1038. .num {
  1039. display: flex;
  1040. align-items: center;
  1041. font-size: 26rpx;
  1042. color: rgba(255, 255, 255, 0.6);
  1043. image {
  1044. width: 22rpx;
  1045. height: 23rpx;
  1046. margin-left: 20rpx;
  1047. }
  1048. }
  1049. }
  1050. }
  1051. .message {
  1052. align-self: flex-start;
  1053. position: relative;
  1054. margin-top: 15rpx;
  1055. margin-right: 20rpx;
  1056. .num {
  1057. position: absolute;
  1058. top: -8rpx;
  1059. left: 18rpx;
  1060. padding: 0 6rpx;
  1061. height: 28rpx;
  1062. border-radius: 12rpx;
  1063. background-color: #fff;
  1064. font-size: 18rpx;
  1065. line-height: 28rpx;
  1066. text-align: center;
  1067. color: var(--view-theme);
  1068. }
  1069. .iconfont {
  1070. font-size: 40rpx;
  1071. color: #fff;
  1072. }
  1073. }
  1074. .num-wrapper {
  1075. z-index: 30;
  1076. position: relative;
  1077. display: flex;
  1078. align-items: center;
  1079. justify-content: space-between;
  1080. margin-top: 22rpx;
  1081. // padding: 0 47rpx;
  1082. color: #fff;
  1083. .num-item {
  1084. width: 33.33%;
  1085. text-align: center;
  1086. &~.num-item {
  1087. position: relative;
  1088. &:before {
  1089. content: '';
  1090. position: absolute;
  1091. width: 1rpx;
  1092. height: 28rpx;
  1093. top: 50%;
  1094. margin-top: -14rpx;
  1095. background-color: rgba(255, 255, 255, 0.4);
  1096. left: 0;
  1097. }
  1098. }
  1099. .num {
  1100. font-size: 42rpx;
  1101. font-weight: bold;
  1102. }
  1103. .txt {
  1104. margin-top: 8rpx;
  1105. font-size: 26rpx;
  1106. color: rgba(255, 255, 255, 0.6);
  1107. }
  1108. }
  1109. }
  1110. .sign {
  1111. z-index: 200;
  1112. position: absolute;
  1113. right: -12rpx;
  1114. top: 80rpx;
  1115. display: flex;
  1116. align-items: center;
  1117. justify-content: center;
  1118. width: 120rpx;
  1119. height: 60rpx;
  1120. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1121. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1122. color: #282828;
  1123. font-size: 28rpx;
  1124. font-weight: bold;
  1125. }
  1126. }
  1127. .order-wrapper {
  1128. background: #fff;
  1129. margin: 0 30rpx;
  1130. border-radius: 16rpx;
  1131. position: relative;
  1132. margin-top: -10rpx;
  1133. .order-hd {
  1134. justify-content: space-between;
  1135. padding: 30rpx 20rpx 10rpx 30rpx;
  1136. margin-top: 25rpx;
  1137. font-size: 30rpx;
  1138. color: #282828;
  1139. .left {
  1140. font-weight: bold;
  1141. }
  1142. .right {
  1143. display: flex;
  1144. align-items: center;
  1145. color: #666666;
  1146. font-size: 26rpx;
  1147. .icon-xiangyou {
  1148. margin-left: 5rpx;
  1149. font-size: 26rpx;
  1150. }
  1151. }
  1152. }
  1153. .order-bd {
  1154. display: flex;
  1155. padding: 0 0;
  1156. .order-item {
  1157. display: flex;
  1158. flex-direction: column;
  1159. justify-content: center;
  1160. align-items: center;
  1161. width: 20%;
  1162. height: 140rpx;
  1163. .pic {
  1164. position: relative;
  1165. text-align: center;
  1166. .iconfont {
  1167. font-size: 48rpx;
  1168. color: var(--view-theme);
  1169. }
  1170. image {
  1171. width: 58rpx;
  1172. height: 48rpx;
  1173. }
  1174. }
  1175. .txt {
  1176. margin-top: 6rpx;
  1177. font-size: 26rpx;
  1178. color: #333;
  1179. }
  1180. }
  1181. }
  1182. }
  1183. }
  1184. .slider-wrapper {
  1185. margin: 20rpx 30rpx;
  1186. height: 130rpx;
  1187. swiper,
  1188. swiper-item {
  1189. height: 100%;
  1190. }
  1191. image {
  1192. width: 100%;
  1193. height: 130rpx;
  1194. border-radius: 16rpx;
  1195. }
  1196. }
  1197. .user-menus {
  1198. background-color: #fff;
  1199. margin: 0 30rpx;
  1200. border-radius: 16rpx;
  1201. .menu-title {
  1202. padding: 30rpx 30rpx 40rpx;
  1203. font-size: 30rpx;
  1204. color: #282828;
  1205. font-weight: bold;
  1206. }
  1207. .list-box {
  1208. display: flex;
  1209. flex-wrap: wrap;
  1210. padding: 0;
  1211. }
  1212. .item {
  1213. position: relative;
  1214. display: flex;
  1215. align-items: center;
  1216. justify-content: space-between;
  1217. flex-direction: column;
  1218. width: 25%;
  1219. margin-bottom: 47rpx;
  1220. font-size: 26rpx;
  1221. color: #333333;
  1222. image {
  1223. width: 52rpx;
  1224. height: 52rpx;
  1225. margin-bottom: 18rpx;
  1226. }
  1227. &:last-child::before {
  1228. display: none;
  1229. }
  1230. }
  1231. button {
  1232. font-size: 28rpx;
  1233. }
  1234. }
  1235. .phone {
  1236. color: #fff;
  1237. background-color: #ffffff80;
  1238. border-radius: 15px;
  1239. width: max-content;
  1240. font-size: 24rpx;
  1241. padding: 2px 10px;
  1242. margin-top: 8rpx;
  1243. }
  1244. .order-status-num {
  1245. min-width: 12rpx;
  1246. background-color: #fff;
  1247. color: var(--view-theme);
  1248. border-radius: 15px;
  1249. position: absolute;
  1250. right: -14rpx;
  1251. top: -15rpx;
  1252. font-size: 20rpx;
  1253. padding: 0 8rpx;
  1254. border: 1px solid var(--view-theme);
  1255. }
  1256. .support {
  1257. width: 219rpx;
  1258. height: 74rpx;
  1259. margin: 54rpx auto;
  1260. display: block;
  1261. }
  1262. }
  1263. .card-vip {
  1264. display: flex;
  1265. align-items: center;
  1266. justify-content: space-between;
  1267. position: relative;
  1268. width: 690rpx;
  1269. height: 134rpx;
  1270. margin: -72rpx auto 0;
  1271. background: url('~@/static/images/user_vip.png');
  1272. background-size: cover;
  1273. padding-left: 118rpx;
  1274. padding-right: 34rpx;
  1275. .left-box {
  1276. font-size: 24rpx;
  1277. color: #AE5A2A;
  1278. .big {
  1279. font-size: 28rpx;
  1280. }
  1281. .small {
  1282. opacity: 0.8;
  1283. margin-top: 10rpx;
  1284. }
  1285. }
  1286. .btn {
  1287. height: 52rpx;
  1288. line-height: 52rpx;
  1289. padding: 0 10rpx;
  1290. text-align: center;
  1291. background: #fff;
  1292. border-radius: 28rpx;
  1293. font-size: 26rpx;
  1294. color: #AE5A2A;
  1295. }
  1296. }
  1297. .setting {
  1298. margin-top: 15rpx;
  1299. margin-left: 15rpx;
  1300. color: #fff;
  1301. .iconfont {
  1302. font-size: 40rpx;
  1303. }
  1304. }
  1305. .new-users {
  1306. padding-bottom: 0;
  1307. padding-bottom: constant(safe-area-inset-bottom);
  1308. padding-bottom: env(safe-area-inset-bottom);
  1309. }
  1310. .popup-box {
  1311. width: 522rpx;
  1312. // height: 605rpx;
  1313. background-color: #ffffff;
  1314. border-radius: 20rpx;
  1315. padding-bottom: 50rpx;
  1316. position: relative;
  1317. .img {
  1318. position: relative;
  1319. top: -56rpx;
  1320. left: 0;
  1321. width: 522rpx;
  1322. height: 132rpx;
  1323. display: flex;
  1324. justify-content: center;
  1325. image {
  1326. border-radius: 20rpx 20rpx 0 0;
  1327. width: 450rpx;
  1328. height: 132rpx;
  1329. }
  1330. }
  1331. .mian {
  1332. margin-top: -44rpx;
  1333. display: flex;
  1334. flex-direction: column;
  1335. align-items: center;
  1336. background-color: #ffffff;
  1337. border-radius: 0 0 20rpx 20rpx;
  1338. text-align: center;
  1339. .delivery {
  1340. font-size: 40rpx;
  1341. color: #333333;
  1342. display: flex;
  1343. align-items: center;
  1344. flex-direction: column;
  1345. image {
  1346. margin-top: 48rpx;
  1347. width: 172rpx;
  1348. height: 160rpx;
  1349. }
  1350. }
  1351. .nocancel {
  1352. font-size: 32rpx;
  1353. color: #333333;
  1354. margin-top: 14rpx;
  1355. }
  1356. .comfirm-box {
  1357. margin-top: 52rpx;
  1358. display: flex;
  1359. .cancel {
  1360. display: flex;
  1361. align-items: center;
  1362. justify-content: center;
  1363. width: 197rpx;
  1364. height: 74rpx;
  1365. border: 1px solid #dcc786;
  1366. border-radius: 38rpx;
  1367. font-size: 32rpx;
  1368. color: #605128;
  1369. }
  1370. .comfirm {
  1371. margin-left: 32rpx;
  1372. display: flex;
  1373. align-items: center;
  1374. justify-content: center;
  1375. width: 197rpx;
  1376. height: 74rpx;
  1377. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  1378. border-radius: 38px;
  1379. font-size: 32rpx;
  1380. color: #605128;
  1381. }
  1382. }
  1383. }
  1384. }
  1385. </style>