index.vue 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213
  1. <template>
  2. <!-- 个人中心模块 -->
  3. <view class="new-users copy-data" :style="{height:pageHeight}">
  4. <!-- 自定义顶部背景颜色 -->
  5. <view class="top" :style="colorStyle">
  6. <!-- #ifdef MP || APP-PLUS -->
  7. <view class="sys-head">
  8. <view class="sys-bar" :style="{height:sysHeight}"></view>
  9. <!-- #ifdef MP -->
  10. <view class="sys-title" :style="member_style==3?'color:#333':''">个人中心</view>
  11. <!-- #endif -->
  12. <view class="bg" :style="member_style==3?'background:#27b3fc':''"></view>
  13. </view>
  14. <!-- #endif -->
  15. </view>
  16. <!-- 自定义顶部背景颜色 -->
  17. <view class="mid style-add" :style="colorStyle">
  18. <scroll-view scroll-y="true" class="height-add">
  19. <view class="head">
  20. <!-- <view class="user-card" :class="member_style==3?'unBg':''"
  21. :style="{backgroundImage:'url('+imgHost+'/statics/images/user01.png'+')'}"> -->
  22. <view class="user-card" :class="member_style==3?'unBg':''">
  23. <view class="bg"></view>
  24. <!-- 个人资料展示 -->
  25. <view class="user-info">
  26. <view>
  27. <!-- 公众号未授权时显示 -->
  28. <!-- #ifdef H5 -->
  29. <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin && !isLogin"
  30. @click="getWechatuserinfo">
  31. <image class="avatar" src='/static/images/f.png'></image>
  32. <view class="avatarName">获取头像</view>
  33. </button>
  34. <!-- #endif -->
  35. <!-- #ifdef MP -->
  36. <!-- <button class="bntImg" v-if="userInfo.is_complete == 0" @tap="getUserProfile">
  37. <image class="avatar" src='/static/images/f.png'></image>
  38. <view class="avatarName">获取头像</view>
  39. </button> -->
  40. <!-- #endif -->
  41. <!-- #ifndef 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 && stu">
  49. <image src="/static/images/headwear.png"></image>
  50. </view>
  51. <image src="../../static/images/svip.png" mode="" class="gp" v-if="userInfo.partner == 1"></image>
  52. </view>
  53. <!-- #endif -->
  54. <!-- #ifdef APP-PLUS -->
  55. <view class="avatar-box" :class="{on:userInfo.is_money_level}">
  56. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar"
  57. @click="goEdit()">
  58. </image>
  59. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  60. </image>
  61. <view class="headwear" v-if="userInfo.is_money_level && stu">
  62. <image src="/static/images/headwear.png"></image>
  63. </view>
  64. <image src="../../static/images/svip.png" mode="" class="gp" v-if="userInfo.partner == 1"></image>
  65. </view>
  66. <!-- #endif -->
  67. </view>
  68. <view class="info">
  69. <!-- #ifdef MP -->
  70. <view class="name display-add" v-if="!userInfo.uid" @click="openAuto">
  71. 请点击授权
  72. </view>
  73. <!-- #endif -->
  74. <!-- #ifdef H5 -->
  75. <view class="name display-add" v-if="!userInfo.uid" @click="openAuto">
  76. 请点击授权
  77. </view>
  78. <!-- #endif -->
  79. <view class="name" v-if="userInfo.uid">
  80. <view class="nickname line1">{{userInfo.nickname}}</view>
  81. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  82. <!-- <view class="vip" >
  83. <image src="/static/images/svip.png"></image>
  84. </view> -->
  85. <view class="vip" v-if="userInfo.area_level> 0 && isLogin">
  86. ({{userInfo.area_level == 1 ?'门店': (userInfo.area_level == 2? '社区': '城市')}})
  87. </view>
  88. </view>
  89. <view class="num" v-if="userInfo.phone" @click="goEdit()">
  90. <view class="num-txt">ID:{{userInfo.uid}}</view>
  91. <view class="icon">
  92. <image src="/static/images/edit.png" mode=""></image>
  93. </view>
  94. </view>
  95. <view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">绑定手机号</view>
  96. </view>
  97. <view v-if="isLogin" class="qrCode message iconfont icon-erweima-xingerenzhongxin"
  98. @click="tapQrCode">
  99. </view>
  100. <view class="message">
  101. <view @click="intoPage('/pages/users/user_set/index')">
  102. <view class="iconfont icon-shezhi"></view>
  103. </view>
  104. </view>
  105. <!-- <view class="message">
  106. <view @click="intoPage('/pages/users/message_center/index')">
  107. <view v-if="userInfo.service_num" class="num">
  108. {{userInfo.service_num >= 100 ? '99+' : userInfo.service_num}}
  109. </view>
  110. <view class="iconfont icon-s-kefu"></view>
  111. </view>
  112. </view> -->
  113. <!-- #ifdef MP -->
  114. <!-- <view class="setting" @click="Setting"><text class="iconfont icon-shezhi"></text></view> -->
  115. <!-- #endif -->
  116. </view>
  117. <view class="achsac">
  118. </view>
  119. <!-- <view class="sign" @click="goSignIn">签到</view> -->
  120. <!-- 会员权益 -->
  121. <view class="cardVipA acea-row row-between-wrapper" v-if="member_style==1 && stu && vip_type==2"
  122. :style="{backgroundImage:'url('+imgHost+'/statics/images/member.png'+')'}">
  123. <view class="left-box">
  124. <view v-if="vipStatus == 1" class="small">永久</view>
  125. <view v-else-if="vipStatus == 3" class="small">会员到期
  126. {{ userInfo.overdue_time | dateFormat }}
  127. </view>
  128. <view v-else-if="vipStatus == -1" class="small">已过期</view>
  129. <view v-else-if="vipStatus == 2" class="small">未开通会员</view>
  130. </view>
  131. <view class="acea-row row-middle">
  132. <navigator v-if="vipStatus == 1" url="/pages/annex/vip_paid/index" hover-class="none"
  133. class="btn">查看会员权益
  134. </navigator>
  135. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  136. {{ userInfo.overdue_time ? '立即续费' : '立即激活' }}
  137. </navigator>
  138. <text class="iconfont icon-xiangyou"></text>
  139. </view>
  140. </view>
  141. <view class="cardVipB acea-row row-between" v-if="member_style==3 && stu && vip_type==2">
  142. <view class="left-box acea-row">
  143. <view class="pictrue">
  144. <image src="../../static/images/member01.png"></image>
  145. </view>
  146. <view v-if="vipStatus == 1" class="small">永久</view>
  147. <view v-else-if="vipStatus == 3" class="small">会员到期
  148. {{ userInfo.overdue_time | dateFormat }}
  149. </view>
  150. <view v-else-if="vipStatus == -1" class="small">已过期</view>
  151. <view v-else-if="vipStatus == 2" class="small">未开通会员</view>
  152. </view>
  153. <view class="acea-row">
  154. <navigator v-if="vipStatus == 1" url="/pages/annex/vip_paid/index" hover-class="none"
  155. class="btn">
  156. 会员可享多项权益</navigator>
  157. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  158. {{ userInfo.overdue_time ? '立即续费' : '立即激活' }}
  159. </navigator>
  160. <text class="iconfont icon-xiangyou btn"></text>
  161. </view>
  162. </view>
  163. <view class="cardVipA acea-row row-between-wrapper"
  164. :style="{backgroundImage:'url('+imgHost+'/statics/images/grade.png'+')'}"
  165. v-if="member_style==1 && memberStatus && vip_type==1">
  166. <view class="left-box on">
  167. <view class="small">{{userInfo.level_status==1?userInfo.vip_name:'激活会员卡 解锁更多权益'}}</view>
  168. </view>
  169. <view class="acea-row row-middle">
  170. <!-- 去激活 -->
  171. <navigator
  172. :url="userInfo.level_status==1?'/pages/annex/vip_grade/index':'/pages/annex/vip_grade_active/index'"
  173. hover-class="none" class="btn on">{{userInfo.level_status==1?'查看会员卡':'去激活'}}
  174. </navigator>
  175. <text class="iconfont icon-xiangyou on"></text>
  176. </view>
  177. </view>
  178. <view class="cardVipB acea-row row-between on"
  179. :style="{backgroundImage:'url('+imgHost+'/statics/images/grade01.png'+')'}"
  180. v-if="member_style==3 && memberStatus && vip_type==1">
  181. <view class="small">{{userInfo.level_status==1?userInfo.vip_name:'激活会员卡 解锁更多权益'}}</view>
  182. <view class="acea-row">
  183. <navigator
  184. :url="userInfo.level_status==1?'/pages/annex/vip_grade/index':'/pages/annex/vip_grade_active/index'"
  185. hover-class="none" class="btn on">{{userInfo.level_status==1?'查看会员卡':'去激活'}}
  186. </navigator>
  187. <text class="iconfont icon-xiangyou"></text>
  188. </view>
  189. </view>
  190. </view>
  191. <view class="card-vip" v-if="member_style==2 && stu && vip_type==2">
  192. <view class="left-box">
  193. <!-- <view class="big">会员可享多项权益</view> -->
  194. <view v-if="vipStatus == 1" class="small">永久</view>
  195. <view v-else-if="vipStatus == 3" class="small">会员到期
  196. {{ userInfo.overdue_time | dateFormat }}
  197. </view>
  198. <view v-else-if="vipStatus == -1" class="small">已过期</view>
  199. <view v-else-if="vipStatus == 2" class="small">未开通会员</view>
  200. </view>
  201. <view class="acea-row">
  202. <navigator v-if="vipStatus == 1" url="/pages/annex/vip_paid/index" hover-class="none"
  203. class="btn">查看会员权益
  204. </navigator>
  205. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  206. {{ userInfo.overdue_time ? '立即续费' : '立即激活' }}
  207. </navigator>
  208. <text class="iconfont icon-xiangyou"></text>
  209. </view>
  210. </view>
  211. <view class="card-vip on" v-if="member_style==2 && memberStatus && vip_type==1"
  212. :style="{backgroundImage:'url('+imgHost+'/statics/images/grade01.png'+')'}">
  213. <view class="left-box">
  214. <view class="small">{{userInfo.level_status==1?userInfo.vip_name:'激活会员卡 解锁更多权益'}}</view>
  215. </view>
  216. <view class="acea-row">
  217. <navigator
  218. :url="userInfo.level_status==1?'/pages/annex/vip_grade/index':'/pages/annex/vip_grade_active/index'"
  219. hover-class="none" class="btn">{{userInfo.level_status==1?'查看会员卡':'去激活'}}</navigator>
  220. <text class="iconfont icon-xiangyou"></text>
  221. </view>
  222. </view>
  223. <view class="num-wrapper"
  224. :class="[member_style==3?'unNum-wrapper':member_style==2?'Tnum-wrapper':'',((vip_type==2 && stu) || (vip_type==1 && memberStatus))?'':'height']"
  225. v-if="userInfo.uid">
  226. <view class="num-item" v-show="userInfo.balance_func_status"
  227. @click="goMenuPage('/pages/users/user_money/index')">
  228. <text class="num">{{userInfo.now_money | showNum}}</text>
  229. <view class="txt">余额</view>
  230. </view>
  231. <!-- <view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
  232. <text class="num">{{userInfo.integral || 0}}</text>
  233. <view class="txt">积分</view>
  234. </view> -->
  235. <view class="num-item" @click="goMenuPage('/pages/users/user_goods_collection/index')">
  236. <text class="num">{{userInfo.collectCount || 0}}</text>
  237. <view class="txt">收藏</view>
  238. </view>
  239. <view class="num-item" @click="goMenuPage('/pages/users/visit_list/index')">
  240. <text class="num">{{userInfo.visit_num || 0}}</text>
  241. <view class="txt">浏览记录</view>
  242. </view>
  243. <view class="num-item" >
  244. <text class="num">{{userInfo.consumption | showNum}}</text>
  245. <view class="txt">消费券</view>
  246. </view>
  247. <view class="num-item">
  248. <text class="num">{{userInfo.achievement | showNum}}</text>
  249. <view class="txt">业绩</view>
  250. </view>
  251. <view class="num-item">
  252. <text class="num">{{userInfo.award_range | showNum}}</text>
  253. <view class="txt">分红额度</view>
  254. </view>
  255. <view class="num-item">
  256. <text class="num">{{userInfo.award_piece | showNum}}</text>
  257. <view class="txt">分红值</view>
  258. </view>
  259. <view class="num-item" >
  260. <text class="num">{{userInfo.award_piece_partner | showNum}}</text>
  261. <view class="txt">董事分红</view>
  262. </view>
  263. <view class="num-item" >
  264. <text class="num">{{userInfo.shop_ticket | showNum}}</text>
  265. <view class="txt">购物券</view>
  266. </view>
  267. </view>
  268. <!-- 新人礼物 -->
  269. <view class="num-wrapper on" v-if="!userInfo.uid">
  270. <image :src="giftPic" mode="" class="img"></image>
  271. <view class="text">
  272. 登录即获得<text class="gift">新人大礼包</text>
  273. </view>
  274. <view class="btn-login" @click="openAuto">去登录</view>
  275. </view>
  276. <!-- 新人专享 -->
  277. <view class="newcomersCon" :class="newcomer_style==1?'':'on'"
  278. v-if="newList.length && newcomer_status==1">
  279. <view class="newcomers"
  280. :style="{backgroundImage:'url('+ (newcomer_style==1?imgHost+'/statics/images/new-bg.png':newBg) +')'}">
  281. <view class="title">
  282. <view class="tl">
  283. 新人专享
  284. </view>
  285. <view class="tr" @click="goNewcomers">
  286. 更多 <text class="iconfont icon-xiangyou"></text>
  287. </view>
  288. </view>
  289. <scroll-view scroll-x="true" class="scroll">
  290. <view class="scroll-item" v-for="(item,index) in newList" :key="index"
  291. @click="goDetail(item)">
  292. <view class="pictrue">
  293. <image :src='item.image'></image>
  294. <view class="label">新人价</view>
  295. </view>
  296. <view class="money">¥{{item.price}}</view>
  297. </view>
  298. </scroll-view>
  299. </view>
  300. </view>
  301. <!-- 订单中心 -->
  302. <view class="order-wrapper">
  303. <view class="order-hd flex">
  304. <view class="left">订单中心</view>
  305. <view class="right flex" @click="intoPage('/pages/goods/order_list/index')">
  306. 查看全部
  307. <text class="iconfont icon-xiangyou"></text>
  308. </view>
  309. </view>
  310. <view class="order-bd">
  311. <block v-for="(item,index) in orderMenu" :key="index">
  312. <view class="order-item" @click="intoPage(item.url)">
  313. <view class="pic">
  314. <!-- <image :src="item.img" mode=""></image> -->
  315. <text class="iconfont" :class="item.img"></text>
  316. <text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
  317. </view>
  318. <view class="txt">{{item.title}}</view>
  319. </view>
  320. </block>
  321. </view>
  322. </view>
  323. </view>
  324. <!-- 轮播 -->
  325. <view class="slider-wrapper" v-if="imgUrls.length>0 && my_banner_status">
  326. <swiper indicator-dots="true" :autoplay="autoplay" :circular="circular" :interval="interval"
  327. :duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
  328. <block v-for="(item,index) in imgUrls" :key="index">
  329. <swiper-item>
  330. <navigator @click="goMenuPage(item.url)"
  331. class='slide-navigator acea-row row-between-wrapper' hover-class='none'>
  332. <image :src="item.pic" class="slide-image"></image>
  333. </navigator>
  334. </swiper-item>
  335. </block>
  336. </swiper>
  337. </view>
  338. <!-- 会员菜单二 -->
  339. <view class="menus-list" v-if="menu_status == 2 && MyMenus.length">
  340. <view class="title">我的服务</view>
  341. <!-- #ifdef APP-PLUS || H5 -->
  342. <block v-for="(item,index) in MyMenus" :key="index">
  343. <view class="item acea-row row-between-wrapper"
  344. v-if="item.url!='#' && item.url!='/pages/service/index'"
  345. @click="goMenuPage(item.url, item.name)">
  346. <image :src="item.pic"></image>
  347. <view class="text acea-row row-between-wrapper">
  348. <view>{{item.name}}</view>
  349. <view class="iconfont icon-xiangyou"></view>
  350. </view>
  351. </view>
  352. </block>
  353. <!-- #endif -->
  354. <!-- #ifdef MP -->
  355. <block v-for="(item,index) in MyMenus" :key="index">
  356. <view class="item acea-row row-between-wrapper" v-if="item.url!='#'
  357. && item.url!='/pages/service/index'
  358. && item.url!='/pages/extension/customer_list/chat'
  359. || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)"
  360. @click="goMenuPage(item.url, item.name)">
  361. <image :src="item.pic"></image>
  362. <view class="text acea-row row-between-wrapper">
  363. <view>{{item.name}}</view>
  364. <view class="iconfont icon-xiangyou"></view>
  365. </view>
  366. </view>
  367. </block>
  368. <button class="item acea-row row-between-wrapper" open-type='contact' v-if="routineContact == 1">
  369. <image src="/static/images/contact.png"></image>
  370. <view class="text acea-row row-between-wrapper">
  371. <view>联系客服</view>
  372. <view class="iconfont icon-xiangyou"></view>
  373. </view>
  374. </button>
  375. <!-- #endif -->
  376. <!-- #ifdef APP-PLUS -->
  377. <view class="item acea-row row-between-wrapper" hover-class="none"
  378. @click="goMenuPage('/pages/users/privacy/index')">
  379. <image src="/static/images/menu.png"></image>
  380. <view class="text acea-row row-between-wrapper">
  381. <view>隐私协议</view>
  382. <view class="iconfont icon-xiangyou"></view>
  383. </view>
  384. </view>
  385. <!-- #endif -->
  386. </view>
  387. <!-- 会员菜单一 -->
  388. <view class="user-menus" style="margin-top: 25rpx;" v-if="menu_status == 1 && MyMenus.length">
  389. <view class="menu-title">我的服务</view>
  390. <view class="list-box">
  391. <!-- #ifdef APP-PLUS || H5 -->
  392. <block v-for="(item,index) in MyMenus" :key="index">
  393. <view class="item" v-if="item.url!='#' && item.url!='/pages/service/index'"
  394. @click="goMenuPage(item.url, item.name)">
  395. <image :src="item.pic"></image>
  396. <text>{{item.name}}</text>
  397. </view>
  398. </block>
  399. <!-- #endif -->
  400. <!-- #ifdef MP -->
  401. <block v-for="(item,index) in MyMenus" :key="index">
  402. <view class="item" v-if="item.url!='#'
  403. && item.url!='/pages/service/index'
  404. && item.url!='/pages/extension/customer_list/chat'
  405. || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)"
  406. @click="goMenuPage(item.url, item.name)">
  407. <image :src="item.pic"></image>
  408. <text>{{item.name}}</text>
  409. </view>
  410. </block>
  411. <button class="item" open-type='contact' v-if="routineContact == 1">
  412. <image src="/static/images/contact.png"></image>
  413. <text>联系客服</text>
  414. </button>
  415. <!-- #endif -->
  416. <!-- #ifdef APP-PLUS -->
  417. <view class="item" hover-class="none"
  418. @click="goMenuPage('/pages/users/privacy/index?type=privacy')">
  419. <image src="/static/images/menu.png"></image>
  420. <text>隐私协议</text>
  421. </view>
  422. <!-- #endif -->
  423. </view>
  424. </view>
  425. <view class="user-menus" style="margin-top: 25rpx;" v-if="service_status == 1 && storeMenu.length">
  426. <view class="menu-title">商家管理</view>
  427. <view class="list-box">
  428. <block v-for="(item,index) in storeMenu" :key="index">
  429. <view class="item" :url="item.url" v-if="item.url!='#' && item.url!='/pages/service/index'"
  430. @click="goMenuPage(item.url, item.name)">
  431. <image :src="item.pic"></image>
  432. <text>{{item.name}}</text>
  433. </view>
  434. </block>
  435. </view>
  436. </view>
  437. <view class="menus-list" v-if="service_status == 2 && storeMenu.length">
  438. <view class="title">商家管理</view>
  439. <block v-for="(item,index) in storeMenu" :key="index">
  440. <view class="item acea-row row-between-wrapper" :url="item.url" hover-class="none"
  441. v-if="item.url!='#' && item.url!='/pages/service/index'"
  442. @click="goMenuPage(item.url, item.name)">
  443. <image :src="item.pic"></image>
  444. <view class="text acea-row row-between-wrapper">
  445. <view>{{item.name}}</view>
  446. <view class="iconfont icon-xiangyou"></view>
  447. </view>
  448. </view>
  449. </block>
  450. </view>
  451. <view class="copy_right">
  452. <template v-if='copyRightText'>
  453. <image :src="copyRightImg" mode="aspectFill" class="copyRightImg"></image>
  454. <view class="copyRightText">
  455. {{copyRightText}}
  456. </view>
  457. </template>
  458. <image v-else :src="copyRightImg" mode="aspectFill" class='support'></image>
  459. </view>
  460. <view class="uni-p-b-98"></view>
  461. </scroll-view>
  462. </view>
  463. <view class="codePopup" :style="colorStyle" v-show="isCode">
  464. <view class="header acea-row row-between-wrapper">
  465. <view class="title" :class="{'on': codeIndex == index,'onLeft':codeIndex == 1}"
  466. v-for="(item, index) in codeList" :key="index" @click="tapCode(index)">{{item.name}}</view>
  467. </view>
  468. <view>
  469. <view class="acea-row row-center-wrapper">
  470. <w-barcode :options="config.bar"></w-barcode>
  471. </view>
  472. <view class="acea-row row-center-wrapper" style="margin-top: 35rpx;">
  473. <w-qrcode :options="config.qrc" @generate="hello"></w-qrcode>
  474. </view>
  475. <view class="codeNum">{{config.bar.code}}</view>
  476. <view class="tip">如遇到扫码失败请将屏幕调至最亮重新扫码</view>
  477. </view>
  478. <view class="iconfont icon-guanbi2" @click="closeCode"></view>
  479. </view>
  480. <view class="mark" v-if="isCode"></view>
  481. <pageFooter></pageFooter>
  482. <!-- 店员推广码 extension-->
  483. <view class="codePopup heg" :style="colorStyle" v-show="isextension">
  484. <view class="header">
  485. <view class="title on" style="width: 100%;">店员推广码</view>
  486. </view>
  487. <view>
  488. <view class="acea-row row-center-wrapper" style="margin-top: 25rpx;" @click="hah">
  489. <w-qrcode id="hah" :options="extension"></w-qrcode>
  490. </view>
  491. <view class="tip">如遇到扫码失败请将屏幕调至最亮重新扫码</view>
  492. </view>
  493. <view class="iconfont icon-guanbi2" @click="closeCode"></view>
  494. </view>
  495. <view class="mark" v-show="isextension"></view>
  496. <ewcomerPop v-if="isComerGift" :comerGift="comerGift" @comerPop="comerPop"></ewcomerPop>
  497. <!-- #ifdef MP -->
  498. <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize>
  499. <!-- #endif -->
  500. </view>
  501. </template>
  502. <script>
  503. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  504. import {
  505. storeCardApi
  506. } from '@/api/store.js';
  507. import {
  508. newcomerGift
  509. } from '@/api/new_store.js';
  510. import {
  511. newcomerList
  512. } from '@/api/api.js';
  513. import {
  514. getMenuList,
  515. getUserInfo,
  516. setVisit,
  517. updateUserInfo,
  518. getRandCode,
  519. updateWechatInfo
  520. } from '@/api/user.js';
  521. import {
  522. wechatAuthV2,
  523. silenceAuth
  524. } from '@/api/public.js'
  525. import {
  526. toLogin
  527. } from '@/libs/login.js';
  528. import {
  529. mapState,
  530. mapGetters
  531. } from "vuex";
  532. // #ifdef H5
  533. import Auth from '@/libs/wechat';
  534. // #endif
  535. import {
  536. HTTP_REQUEST_URL
  537. } from '@/config/app';
  538. const app = getApp();
  539. import ewcomerPop from '@/components/ewcomerPop/index.vue'
  540. import pageFooter from '@/components/pageFooter/index.vue'
  541. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  542. import Routine from '@/libs/routine';
  543. import colors from '@/mixins/color';
  544. export default {
  545. components: {
  546. pageFooter,
  547. ewcomerPop
  548. },
  549. computed: {
  550. ...mapGetters({
  551. cartNum: 'cartNum',
  552. isLogin: 'isLogin'
  553. })
  554. },
  555. filters: {
  556. coundTime(val) {
  557. var setTime = val * 1000
  558. var nowTime = new Date()
  559. var rest = setTime - nowTime.getTime()
  560. var day = parseInt(rest / (60 * 60 * 24 * 1000))
  561. // var hour = parseInt(rest/(60*60*1000)%24) //小时
  562. return day + '天'
  563. },
  564. dateFormat: function(value) {
  565. return dayjs(value * 1000).format('YYYY-MM-DD');
  566. },
  567. showNum(val) {
  568. if(!val) {
  569. return 0
  570. }else {
  571. let dd = val*1
  572. if(dd <= 10000) {
  573. return dd.toFixed(0)
  574. }else if(dd < 100000000){
  575. return (dd/10000).toFixed(0) + '万'
  576. }else {
  577. return (dd/100000000).toFixed(0) + '亿'
  578. }
  579. }
  580. }
  581. },
  582. mixins: [colors],
  583. data() {
  584. return {
  585. vipStatus: 0,
  586. stu: false,
  587. storeMenu: [], // 商家管理
  588. orderMenu: [{
  589. img: 'icon-daifukuan',
  590. title: '待付款',
  591. url: '/pages/goods/order_list/index?status=0'
  592. },
  593. {
  594. img: 'icon-daifahuo',
  595. title: '待发货',
  596. url: '/pages/goods/order_list/index?status=1'
  597. },
  598. {
  599. img: 'icon-daishouhuo',
  600. title: '待收货',
  601. url: '/pages/goods/order_list/index?status=2'
  602. },
  603. {
  604. img: 'icon-daipingjia',
  605. title: '待评价',
  606. url: '/pages/goods/order_list/index?status=3'
  607. },
  608. {
  609. img: 'icon-a-shouhoutuikuan',
  610. title: '售后/退款',
  611. url: '/pages/users/user_return_list/index'
  612. },
  613. ],
  614. imgUrls: [],
  615. autoplay: true,
  616. circular: true,
  617. interval: 3000,
  618. duration: 500,
  619. isAuto: false, //没有授权的不会自动授权
  620. isShowAuth: false, //是否隐藏授权
  621. orderStatusNum: {},
  622. userInfo: {},
  623. MyMenus: [],
  624. sysHeight: sysHeight,
  625. mpHeight: 0,
  626. showStatus: 1,
  627. // #ifdef H5 || MP
  628. pageHeight: '100%',
  629. routineContact: 0,
  630. // #endif
  631. // #ifdef APP-PLUS
  632. pageHeight: app.globalData.windowHeight,
  633. // #endif
  634. // #ifdef H5
  635. isWeixin: Auth.isWeixin(),
  636. //#endif
  637. footerSee: false,
  638. member_style: 1,
  639. my_banner_status: 1,
  640. menu_status: 1,
  641. service_status: 1,
  642. newcomer_status: 1,
  643. codeList: [{
  644. name: '会员码'
  645. }, {
  646. name: '付款码'
  647. }],
  648. codeIndex: 0,
  649. config: {
  650. bar: {
  651. code: '',
  652. color: ['#000'],
  653. bgColor: '#FFFFFF', // 背景色
  654. width: 480, // 宽度
  655. height: 110 // 高度
  656. },
  657. qrc: {
  658. code: '',
  659. size: 380, // 二维码大小
  660. level: 3, //等级 0~4
  661. bgColor: '#FFFFFF', //二维码背景色 默认白色
  662. border: {
  663. color: ['#eee', '#eee'], //边框颜色支持渐变色
  664. lineWidth: 3, //边框宽度
  665. },
  666. // img: '/static/logo.png', //图片
  667. // iconSize: 40, //二维码图标的大小
  668. color: ['#333', '#333'], //边框颜色支持渐变色
  669. }
  670. },
  671. isCode: false,
  672. isextension: false,
  673. extension: {
  674. code: "",
  675. size: 380, // 二维码大小
  676. level: 3, //等级 0~4
  677. bgColor: '#FFFFFF', //二维码背景色 默认白色
  678. border: {
  679. color: ['#eee', '#eee'], //边框颜色支持渐变色
  680. lineWidth: 3, //边框宽度
  681. },
  682. // img: '/static/logo.png', //图片
  683. // iconSize: 40, //二维码图标的大小
  684. color: ['#333', '#333'], //边框颜色支持渐变色
  685. },
  686. imgHost: HTTP_REQUEST_URL,
  687. copyRightText: "",
  688. copyRightImg: '',
  689. giftPic: '',
  690. vip_type: 1,
  691. newcomer_style: 1,
  692. newList: [],
  693. newBg: '',
  694. comerGift: {},
  695. isComerGift: false,
  696. memberStatus: 0
  697. }
  698. },
  699. created() {
  700. let that = this;
  701. // #ifdef MP
  702. // 小程序静默授权
  703. if (!this.$store.getters.isLogin) {
  704. Routine.getCode()
  705. .then(code => {
  706. Routine.silenceAuth(code).then(res => {
  707. this.onLoadFun();
  708. })
  709. })
  710. .catch(res => {
  711. uni.hideLoading();
  712. });
  713. }
  714. // #endif
  715. if (that.isLogin == false) {
  716. // #ifdef H5 || APP-PLUS
  717. toLogin()
  718. // #endif
  719. // #ifdef MP
  720. this.isShowAuth = true;
  721. // #endif
  722. }
  723. // #ifdef APP-PLUS
  724. that.$set(that, 'pageHeight', app.globalData.windowHeight);
  725. // #endif
  726. },
  727. async onLoad(option) {
  728. if (this.isLogin) {
  729. this.getNewcomerGift();
  730. }
  731. // #ifdef H5
  732. if (this.isLogin && Auth.isWeixin() && option.code) {
  733. try {
  734. let res = await updateWechatInfo({
  735. code: option.code
  736. });
  737. this.userInfo.nickname = res.data.nickname;
  738. this.userInfo.avatar = res.data.avatar;
  739. this.userInfo.is_complete = 1;
  740. } catch (e) {}
  741. }
  742. // #endif
  743. this.getNewList();
  744. this.colorData();
  745. let giftList = [
  746. this.imgHost + '/statics/images/gift01.png',
  747. this.imgHost + '/statics/images/gift02.png',
  748. this.imgHost + '/statics/images/gift03.png',
  749. this.imgHost + '/statics/images/gift04.png',
  750. this.imgHost + '/statics/images/gift05.png'
  751. ];
  752. let newBg = [
  753. this.imgHost + '/statics/images/blue-bg.png',
  754. this.imgHost + '/statics/images/green-bg.png',
  755. this.imgHost + '/statics/images/red-bg.png',
  756. this.imgHost + '/statics/images/pink-bg.png',
  757. this.imgHost + '/statics/images/orange-bg.png'
  758. ]
  759. setTimeout(() => {
  760. switch (this.colorNum) {
  761. case 1:
  762. this.giftPic = giftList[2];
  763. this.newBg = newBg[0];
  764. break;
  765. case 2:
  766. this.giftPic = giftList[1];
  767. this.newBg = newBg[1];
  768. break;
  769. case 3:
  770. this.giftPic = giftList[4];
  771. this.newBg = newBg[2];
  772. break;
  773. case 4:
  774. this.giftPic = giftList[0];
  775. this.newBg = newBg[3];
  776. break;
  777. case 5:
  778. this.giftPic = giftList[3];
  779. this.newBg = newBg[4];
  780. break;
  781. default:
  782. this.giftPic = giftList[4];
  783. this.newBg = newBg[2];
  784. break
  785. }
  786. }, 1)
  787. },
  788. onReady() {
  789. let self = this
  790. // #ifdef MP
  791. let info = uni.createSelectorQuery().select(".sys-head");
  792. info.boundingClientRect(function(data) { //data - 各种参数
  793. self.mpHeight = data.height
  794. }).exec()
  795. // #endif
  796. },
  797. onShow: function() {
  798. if (this.cartNum > 0) {
  799. uni.setTabBarBadge({
  800. index: 3,
  801. text: this.cartNum + ''
  802. })
  803. } else {
  804. uni.hideTabBarRedDot({
  805. index: 3
  806. })
  807. }
  808. this.copyRightText = uni.getStorageSync('copyNameInfo');
  809. this.copyRightImg = uni.getStorageSync('copyImageInfo');
  810. uni.removeStorageSync('form_type_cart');
  811. let that = this;
  812. // #ifdef APP-PLUS
  813. uni.getSystemInfo({
  814. success: function(res) {
  815. that.pageHeight = res.windowHeight + 'px'
  816. }
  817. });
  818. // #endif
  819. if (that.isLogin) {
  820. // #ifdef MP
  821. this.isShowAuth = false;
  822. // #endif
  823. this.getUserInfo();
  824. this.getMyMenus();
  825. this.setVisit();
  826. };
  827. },
  828. methods: {
  829. // 查看订单
  830. intoPage(url) {
  831. if (this.isLogin) {
  832. uni.navigateTo({
  833. url: url
  834. })
  835. } else {
  836. // #ifdef H5 || APP-PLUS
  837. toLogin()
  838. // #endif
  839. // #ifdef MP
  840. this.isShowAuth = true;
  841. // #endif
  842. }
  843. },
  844. goDetail(item) {
  845. uni.navigateTo({
  846. url: `/pages/goods_details/index?id=${item.id}&fromPage='newVip'`
  847. });
  848. },
  849. comerPop() {
  850. this.isComerGift = false;
  851. },
  852. getNewcomerGift() {
  853. if (uni.getStorageSync('newcomerGift')) {
  854. return this.isComerGift = false;
  855. }
  856. newcomerGift().then(res => {
  857. this.comerGift = res.data;
  858. if (Object.prototype.toString.call(this.comerGift) == '[object Object]') {
  859. if (res.data.coupon_count || res.data.product_count || res.data.register_give_money || res
  860. .data.first_order_discount || res.data.register_give_integral) {
  861. uni.setStorageSync('newcomerGift', true);
  862. this.isComerGift = true;
  863. }
  864. }
  865. }).catch(err => {
  866. return this.$util.Tips({
  867. title: err
  868. });
  869. })
  870. },
  871. getNewList() {
  872. newcomerList({
  873. page: 1,
  874. limit: 6,
  875. priceOrder: '',
  876. salesOrder: ''
  877. }).then(res => {
  878. this.newList = res.data;
  879. }).catch(err => {
  880. return this.$util.Tips({
  881. title: err
  882. });
  883. })
  884. },
  885. hah() {
  886. let that = this
  887. // #ifdef H5
  888. var canvas = document.getElementById("hah").getElementsByTagName("canvas")
  889. var imgURL = canvas[0].toDataURL("image/png")
  890. var dlLink = document.createElement('a');
  891. dlLink.download = "店员推广码";
  892. dlLink.href = imgURL;
  893. dlLink.dataset.downloadurl = ["image/png", dlLink.download, dlLink.href].join(':');
  894. document.body.appendChild(dlLink);
  895. dlLink.click();
  896. document.body.removeChild(dlLink);
  897. // #endif
  898. // #ifdef MP
  899. // let ctx = uni.createCanvasContext("WQrcode")
  900. // let ctx = uni.createSelectorQuery().in(this).select("canvas")
  901. // uni.canvasToTempFilePath({
  902. // canvasId: "WQrcode",
  903. // fileType: 'image/png',
  904. // success: (res) => {
  905. // // 保存当前绘制推广码
  906. // that.savePic(res.tempFilePath)
  907. // },
  908. // fail: function(err) {
  909. // console.log(err, '推广码生成失败')
  910. // }
  911. // },that)
  912. // ctx.draw(false, uni.canvasToTempFilePath({
  913. // canvasId: 'WQrcode',
  914. // success: function (res) {
  915. // that.savePic(res.tempFilePath)
  916. // },
  917. // fail: function (err) {
  918. // console.log(err, '推广码生成失败')
  919. // }
  920. // },that))
  921. // console.log("222222",ctx)
  922. // #endif
  923. // #ifdef APP-PLUS
  924. uni.canvasToTempFilePath({
  925. canvasId: 'WQrcode',
  926. success: (res) => {
  927. uni.hideLoading()
  928. // 保存当前绘制推广码
  929. that.savePic(res.tempFilePath)
  930. },
  931. fail: function(err) {
  932. console.log(err, '推广码生成失败')
  933. }
  934. })
  935. // #endif
  936. },
  937. //保存推广码到本地
  938. savePic(filePath) {
  939. // #ifdef APP-PLUS
  940. uni.showLoading({
  941. title: '正在保存'
  942. });
  943. uni.saveImageToPhotosAlbum({
  944. filePath: filePath,
  945. success: function() {
  946. uni.showToast({
  947. title: '推广码保存成功~'
  948. });
  949. },
  950. fail: function(e) {
  951. console.log(e, '推广码保存失败')
  952. },
  953. complete: function() {
  954. uni.hideLoading()
  955. }
  956. });
  957. // #endif
  958. },
  959. hello(res) {
  960. // console.log(321,res)
  961. },
  962. // 前往新人专享
  963. goNewcomers() {
  964. uni.navigateTo({
  965. url: '/pages/store/newcomers/index'
  966. })
  967. },
  968. getCode() {
  969. getRandCode().then(res => {
  970. let code = res.data.code;
  971. this.config.bar.code = code;
  972. this.config.qrc.code = code;
  973. }).catch(err => {
  974. return this.$util.Tips(err);
  975. })
  976. },
  977. tapQrCode() {
  978. this.isCode = true;
  979. this.codeIndex = 0;
  980. this.$nextTick(function() {
  981. let code = this.userInfo.bar_code;
  982. this.config.bar.code = code;
  983. this.config.qrc.code = code;
  984. })
  985. },
  986. closeCode() {
  987. this.isCode = false
  988. this.isextension = false
  989. },
  990. tapCode(index) {
  991. this.codeIndex = index;
  992. if (index == 1) {
  993. this.getCode();
  994. } else {
  995. let code = this.userInfo.bar_code;
  996. this.config.bar.code = code;
  997. this.config.qrc.code = code;
  998. }
  999. },
  1000. getWechatuserinfo() {
  1001. //#ifdef H5
  1002. Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
  1003. //#endif
  1004. },
  1005. getRoutineUserInfo(e) {
  1006. updateUserInfo({
  1007. userInfo: e.detail.userInfo
  1008. }).then(res => {
  1009. this.getUserInfo();
  1010. return this.$util.Tips('更新用户信息成功');
  1011. }).catch(err => {
  1012. return this.$util.Tips(err);
  1013. })
  1014. },
  1015. // 记录会员访问
  1016. setVisit() {
  1017. setVisit({
  1018. url: '/pages/user/index'
  1019. }).then(res => {})
  1020. },
  1021. // 打开授权
  1022. openAuto() {
  1023. //#ifndef MP
  1024. toLogin();
  1025. //#endif
  1026. //#ifdef MP
  1027. this.isShowAuth = true;
  1028. //#endif
  1029. },
  1030. // 授权回调
  1031. onLoadFun() {
  1032. this.getUserInfo();
  1033. this.getMyMenus();
  1034. this.setVisit();
  1035. this.isShowAuth = false;
  1036. },
  1037. Setting: function() {
  1038. uni.openSetting({
  1039. success: function(res) {}
  1040. });
  1041. },
  1042. // 授权关闭
  1043. authColse: function(e) {
  1044. this.isShowAuth = e
  1045. },
  1046. // 绑定手机
  1047. bindPhone() {
  1048. uni.navigateTo({
  1049. url: '/pages/users/user_phone/index'
  1050. })
  1051. },
  1052. /**
  1053. * 获取个人用户信息
  1054. */
  1055. getUserInfo: function() {
  1056. let that = this;
  1057. getUserInfo().then(res => {
  1058. that.userInfo = res.data
  1059. that.stu = res.data.svip_open
  1060. that.memberStatus = parseInt(res.data.member_func_status)
  1061. that.vipStatus = res.data.vip_status
  1062. that.$store.commit("SETUID", res.data.uid);
  1063. that.$store.commit("UPDATE_USERINFO", res.data);
  1064. that.orderMenu.forEach((item, index) => {
  1065. switch (item.title) {
  1066. case '待付款':
  1067. item.num = res.data.orderStatusNum.unpaid_count
  1068. break
  1069. case '待发货':
  1070. item.num = res.data.orderStatusNum.unshipped_count
  1071. break
  1072. case '待收货':
  1073. item.num = res.data.orderStatusNum.received_count
  1074. break
  1075. case '待评价':
  1076. item.num = res.data.orderStatusNum.evaluated_count
  1077. break
  1078. case '售后/退款':
  1079. item.num = res.data.orderStatusNum.refunding_count
  1080. break
  1081. }
  1082. })
  1083. });
  1084. },
  1085. //小程序授权api替换 getUserInfo
  1086. getUserProfile() {
  1087. uni.showLoading({
  1088. title: '获取中'
  1089. });
  1090. let self = this;
  1091. Routine.getUserProfile()
  1092. .then(res => {
  1093. Routine.getCode()
  1094. .then(code => {
  1095. let userInfo = res.userInfo;
  1096. userInfo.code = code;
  1097. userInfo.spread_spid = app.globalData.spid; //获取推广人ID
  1098. userInfo.spread_code = app.globalData.code; //获取推广人分享二维码ID
  1099. Routine.authUserInfo(userInfo)
  1100. .then(res => {
  1101. if (res.data.key !== undefined && res.data.key) {
  1102. uni.hideLoading();
  1103. self.authKey = res.data.key;
  1104. self.isPhoneBox = true;
  1105. } else {
  1106. uni.hideLoading();
  1107. let time = res.data.expires_time - self.$Cache.time();
  1108. self.$store.commit('LOGIN', {
  1109. token: res.data.token,
  1110. time: time
  1111. });
  1112. this.getUserInfo()
  1113. }
  1114. })
  1115. .catch(res => {
  1116. uni.hideLoading();
  1117. uni.showToast({
  1118. title: res.msg,
  1119. icon: 'none',
  1120. duration: 2000
  1121. });
  1122. });
  1123. })
  1124. .catch(res => {
  1125. uni.hideLoading();
  1126. });
  1127. })
  1128. .catch(res => {
  1129. uni.hideLoading();
  1130. });
  1131. },
  1132. /**
  1133. *
  1134. * 获取个人中心图标
  1135. */
  1136. switchTab(order) {
  1137. this.orderMenu.forEach((item, index) => {
  1138. switch (item.title) {
  1139. case '待付款':
  1140. item.img = order.dfk
  1141. break
  1142. case '待发货':
  1143. item.img = order.dfh
  1144. break
  1145. case '待收货':
  1146. item.img = order.dsh
  1147. break
  1148. case '待评价':
  1149. item.img = order.dpj
  1150. break
  1151. case '售后/退款':
  1152. item.img = order.sh
  1153. break
  1154. }
  1155. })
  1156. },
  1157. getMyMenus: function() {
  1158. let that = this;
  1159. // if (this.MyMenus.length) return;
  1160. getMenuList().then(res => {
  1161. let storeMenu = []
  1162. let myMenu = []
  1163. res.data.routine_my_menus.forEach((el, index, arr) => {
  1164. if (el.type == '2') {
  1165. storeMenu.push(el)
  1166. } else {
  1167. myMenu.push(el)
  1168. }
  1169. })
  1170. this.member_style = Number(res.data.diy_data.status)
  1171. this.my_banner_status = res.data.diy_data.my_banner_status
  1172. this.menu_status = res.data.diy_data.menu_status
  1173. this.service_status = res.data.diy_data.service_status
  1174. this.vip_type = res.data.diy_data.vip_type;
  1175. this.newcomer_style = res.data.diy_data.newcomer_style;
  1176. this.newcomer_status = res.data.diy_data.newcomer_status;
  1177. let order01 = {
  1178. dfk: 'icon-daifukuan',
  1179. dfh: 'icon-daifahuo',
  1180. dsh: 'icon-daishouhuo',
  1181. dpj: 'icon-daipingjia',
  1182. sh: 'icon-a-shouhoutuikuan'
  1183. }
  1184. let order02 = {
  1185. dfk: 'icon-daifukuan-lan',
  1186. dfh: 'icon-daifahuo-lan',
  1187. dsh: 'icon-daishouhuo-lan',
  1188. dpj: 'icon-daipingjia-lan',
  1189. sh: 'icon-shouhou-tuikuan-lan'
  1190. }
  1191. let order03 = {
  1192. dfk: 'icon-daifukuan-ju',
  1193. dfh: 'icon-daifahuo-ju',
  1194. dsh: 'icon-daishouhuo-ju',
  1195. dpj: 'icon-daipingjia-ju',
  1196. sh: 'icon-shouhou-tuikuan-ju'
  1197. }
  1198. let order04 = {
  1199. dfk: 'icon-daifukuan-fen',
  1200. dfh: 'icon-daifahuo-fen',
  1201. dsh: 'icon-daishouhuo-fen',
  1202. dpj: 'icon-daipingjia-fen',
  1203. sh: 'icon-a-shouhoutuikuan-fen'
  1204. }
  1205. let order05 = {
  1206. dfk: 'icon-daifukuan-lv',
  1207. dfh: 'icon-daifahuo-lv',
  1208. dsh: 'icon-daishouhuo-lv',
  1209. dpj: 'icon-daipingjia-lv',
  1210. sh: 'icon-shouhou-tuikuan-lv'
  1211. }
  1212. switch (res.data.diy_data.order_status) {
  1213. case 1:
  1214. this.switchTab(order01)
  1215. break
  1216. case 2:
  1217. this.switchTab(order02)
  1218. break
  1219. case 3:
  1220. this.switchTab(order03)
  1221. break
  1222. case 4:
  1223. this.switchTab(order04)
  1224. break
  1225. case 5:
  1226. this.switchTab(order05)
  1227. break
  1228. }
  1229. that.$set(that, 'MyMenus', myMenu);
  1230. that.$set(that, 'storeMenu', storeMenu);
  1231. this.imgUrls = res.data.routine_my_banner
  1232. this.routineContact = Number(res.data.routine_contact_type)
  1233. });
  1234. },
  1235. // 编辑页面
  1236. goEdit() {
  1237. if (this.isLogin == false) {
  1238. //#ifndef MP
  1239. toLogin();
  1240. //#endif
  1241. //#ifdef MP
  1242. this.isShowAuth = true;
  1243. //#endif
  1244. } else {
  1245. uni.navigateTo({
  1246. url: '/pages/users/user_set/index'
  1247. })
  1248. }
  1249. },
  1250. // 签到
  1251. goSignIn() {
  1252. uni.navigateTo({
  1253. url: '/pages/users/user_sgin/index'
  1254. })
  1255. },
  1256. goMenuPage(url, name) {
  1257. if (this.isLogin) {
  1258. if (url == '/pages/extension/customer_list/chat' || url == 'https://chat.crmeb.net/chat/mobile') {
  1259. this.$util.getCustomer(this.userInfo)
  1260. } else {
  1261. if (url.indexOf('http') === -1) {
  1262. // #ifdef H5
  1263. if (name && name === '订单核销') {
  1264. return window.location.href = `${location.origin}${url}`
  1265. }
  1266. // #endif
  1267. // #ifdef MP
  1268. if (url != '#' && url == '/pages/users/user_set/index') {
  1269. uni.openSetting({
  1270. success: function(res) {}
  1271. });
  1272. }
  1273. // #endif
  1274. if (url == '/pages/store_spread/index') {
  1275. storeCardApi().then(res => {
  1276. this.isextension = true
  1277. this.$nextTick(function() {
  1278. this.extension.code = res.data.url
  1279. })
  1280. }).catch(err => {
  1281. uni.hideLoading()
  1282. this.$util.Tips({
  1283. title: err
  1284. })
  1285. })
  1286. }
  1287. uni.navigateTo({
  1288. url: url
  1289. })
  1290. } else {
  1291. uni.navigateTo({
  1292. url: `/pages/annex/web_view/index?url=${url}`
  1293. });
  1294. }
  1295. }
  1296. } else {
  1297. // #ifdef MP
  1298. this.openAuto()
  1299. // #endif
  1300. }
  1301. }
  1302. }
  1303. }
  1304. </script>
  1305. <style lang="scss">
  1306. .style-add {
  1307. flex: 1;
  1308. overflow: hidden;
  1309. }
  1310. .height-add {
  1311. height: 100%;
  1312. }
  1313. .display-add {
  1314. height: 100%;
  1315. display: flex;
  1316. align-items: center;
  1317. }
  1318. page,
  1319. body {
  1320. height: 100%;
  1321. }
  1322. .heg {
  1323. height: 670rpx !important;
  1324. }
  1325. .mark {
  1326. position: fixed;
  1327. top: 0;
  1328. left: 0;
  1329. bottom: 0;
  1330. right: 0;
  1331. background: rgba(0, 0, 0, 0.5);
  1332. z-index: 30;
  1333. }
  1334. .height {
  1335. margin-top: -84rpx !important;
  1336. }
  1337. .menus-list {
  1338. width: 690rpx;
  1339. background-color: #fff;
  1340. border-radius: 14rpx;
  1341. margin: 25rpx auto 0 auto;
  1342. .title {
  1343. font-weight: 600;
  1344. font-size: 30rpx;
  1345. color: #333;
  1346. padding: 30rpx 30rpx 10rpx 30rpx;
  1347. }
  1348. .item {
  1349. margin-left: 30rpx;
  1350. font-size: 30rpx;
  1351. color: #333;
  1352. image {
  1353. width: 42rpx;
  1354. height: 42rpx;
  1355. display: block;
  1356. }
  1357. .text {
  1358. width: 590rpx;
  1359. border-bottom: 1rpx solid #EEEEEE;
  1360. padding: 28rpx 30rpx 28rpx 0;
  1361. .iconfont {
  1362. font-size: 20rpx;
  1363. color: #8A8A8A;
  1364. }
  1365. }
  1366. }
  1367. }
  1368. .num-wrapper {
  1369. background-color: #fff;
  1370. z-index: 29;
  1371. position: relative;
  1372. display: flex;
  1373. align-items: center;
  1374. // justify-content: space-between;
  1375. justify-content: flex-start;
  1376. margin-top: 22rpx;
  1377. color: #333;
  1378. margin: 30rpx 30rpx 25rpx 30rpx;
  1379. border-radius: 16rpx;
  1380. // height: 160rpx;
  1381. padding: 20rpx 0 0;
  1382. flex-wrap: wrap;
  1383. &.on {
  1384. height: 128rpx;
  1385. margin-top: -68rpx;
  1386. .gift {
  1387. color: var(--view-theme);
  1388. margin-left: 10rpx;
  1389. font-weight: bold;
  1390. }
  1391. }
  1392. .img {
  1393. margin-left: 38rpx;
  1394. width: 76rpx;
  1395. height: 68rpx;
  1396. }
  1397. .text {
  1398. font-size: 28rpx;
  1399. font-weight: 400;
  1400. color: #333333;
  1401. margin-left: 60rpx;
  1402. }
  1403. .btn-login {
  1404. width: 144rpx;
  1405. height: 56rpx;
  1406. // background: linear-gradient(270deg, #FF7931 0%, #E93323 100%);
  1407. background-color: var(--view-theme);
  1408. border-radius: 28rpx;
  1409. text-align: center;
  1410. line-height: 56rpx;
  1411. // margin-right: 32rpx;
  1412. margin-left: 32rpx;
  1413. font-size: 28rpx;
  1414. font-weight: 500;
  1415. color: #FFFFFF;
  1416. }
  1417. .num-item {
  1418. // width: 33.33%;
  1419. width: 33.3%;
  1420. text-align: center;
  1421. margin-bottom: 20rpx;
  1422. &~.num-item {
  1423. position: relative;
  1424. &:before {
  1425. content: '';
  1426. position: absolute;
  1427. width: 1rpx;
  1428. height: 28rpx;
  1429. top: 50%;
  1430. margin-top: -14rpx;
  1431. background-color: rgba(255, 255, 255, 0.4);
  1432. left: 0;
  1433. }
  1434. }
  1435. .num {
  1436. font-size: 36rpx;
  1437. font-weight: bold;
  1438. }
  1439. .txt {
  1440. margin-top: 8rpx;
  1441. font-size: 26rpx;
  1442. color: #555;
  1443. }
  1444. }
  1445. }
  1446. // 新人专享
  1447. .newcomersCon {
  1448. background-color: var(--view-theme);
  1449. width: 690rpx;
  1450. height: 296rpx;
  1451. margin: 0 30rpx;
  1452. border-radius: 16rpx;
  1453. &.on {
  1454. background-color: #fff;
  1455. .newcomers {
  1456. .title {
  1457. .tl {
  1458. color: #333;
  1459. }
  1460. .tr {
  1461. width: unset;
  1462. color: #666666;
  1463. background: unset;
  1464. }
  1465. }
  1466. .scroll {
  1467. .scroll-item {
  1468. background-color: var(--view-minorColorT);
  1469. }
  1470. }
  1471. }
  1472. }
  1473. .newcomers {
  1474. padding: 24rpx 30rpx;
  1475. width: 100%;
  1476. height: 100%;
  1477. background-repeat: no-repeat;
  1478. background-size: 100% 100%;
  1479. .title {
  1480. display: flex;
  1481. justify-content: space-between;
  1482. .tl {
  1483. font-size: 30rpx;
  1484. font-weight: 600;
  1485. color: #FFFFFF;
  1486. }
  1487. .tr {
  1488. width: 90rpx;
  1489. height: 36rpx;
  1490. background: linear-gradient(135deg, #FFCA52 0%, #FE960F 100%);
  1491. border-radius: 18rpx;
  1492. font-size: 24rpx;
  1493. text-align: center;
  1494. line-height: 36rpx;
  1495. font-weight: 400;
  1496. color: #FFFFFF;
  1497. .icon-xiangyou {
  1498. font-size: 16rpx;
  1499. }
  1500. }
  1501. }
  1502. .scroll {
  1503. width: 690rpx;
  1504. margin-top: 20rpx;
  1505. white-space: nowrap;
  1506. padding-right: 60rpx;
  1507. .scroll-item {
  1508. display: inline-block;
  1509. width: 162rpx;
  1510. height: 194rpx;
  1511. background-color: #fff;
  1512. border-radius: 12rpx;
  1513. margin-right: 10rpx;
  1514. padding: 12rpx;
  1515. .pictrue {
  1516. width: 138rpx;
  1517. height: 138rpx;
  1518. position: relative;
  1519. image {
  1520. width: 100%;
  1521. height: 100%;
  1522. }
  1523. .label {
  1524. width: 98rpx;
  1525. height: 32rpx;
  1526. background: var(--view-theme);
  1527. border-radius: 16rpx;
  1528. color: #FFFFFF;
  1529. font-size: 24rpx;
  1530. text-align: center;
  1531. line-height: 32rpx;
  1532. position: absolute;
  1533. bottom: 2rpx;
  1534. left: 50%;
  1535. margin-left: -49rpx;
  1536. }
  1537. }
  1538. .money {
  1539. font-size: 24rpx;
  1540. color: var(--view-priceColor);
  1541. margin-top: 6rpx;
  1542. }
  1543. }
  1544. }
  1545. }
  1546. }
  1547. .Tnum-wrapper {
  1548. margin: -34rpx 30rpx 25rpx 30rpx;
  1549. }
  1550. .unNum-wrapper {
  1551. margin: 0 auto 25rpx auto;
  1552. width: 690rpx;
  1553. }
  1554. .unBg {
  1555. background-color: unset !important;
  1556. .user-info {
  1557. .info {
  1558. .name {
  1559. color: #333333 !important;
  1560. font-weight: 600;
  1561. }
  1562. .num {
  1563. color: #333 !important;
  1564. .num-txt {
  1565. height: 38rpx;
  1566. background-color: rgba(51, 51, 51, 0.13);
  1567. padding: 0 12rpx;
  1568. border-radius: 16rpx;
  1569. }
  1570. }
  1571. }
  1572. }
  1573. .qrCode {
  1574. color: #333 !important;
  1575. }
  1576. .message {
  1577. .iconfont {
  1578. color: #333 !important;
  1579. }
  1580. .num {
  1581. color: #fff !important;
  1582. background-color: var(--view-theme) !important;
  1583. }
  1584. }
  1585. .setting {
  1586. .iconfont {
  1587. color: #333 !important;
  1588. }
  1589. }
  1590. }
  1591. .cardVipB {
  1592. background-color: #343A48;
  1593. width: 100%;
  1594. height: 124rpx;
  1595. border-radius: 16rpx 16rpx 0 0;
  1596. padding: 22rpx 30rpx 0 30rpx;
  1597. margin-top: 16px;
  1598. &.on {
  1599. width: 690rpx;
  1600. height: 130rpx;
  1601. background-repeat: no-repeat;
  1602. background-size: 100% 100%;
  1603. color: #fff;
  1604. margin-left: auto;
  1605. margin-right: auto;
  1606. padding: 26rpx 30rpx 0 90rpx;
  1607. .iconfont {
  1608. font-size: 24rpx;
  1609. margin-left: 6rpx;
  1610. }
  1611. }
  1612. .left-box {
  1613. .small {
  1614. color: #F8D5A8;
  1615. font-size: 28rpx;
  1616. margin-left: 18rpx;
  1617. }
  1618. .pictrue {
  1619. width: 40rpx;
  1620. height: 45rpx;
  1621. image {
  1622. width: 100%;
  1623. height: 100%;
  1624. }
  1625. }
  1626. }
  1627. .btn {
  1628. color: #BBBBBB;
  1629. font-size: 26rpx;
  1630. &.on {
  1631. color: #fff;
  1632. }
  1633. }
  1634. .icon-xiangyou {
  1635. margin-top: 6rpx;
  1636. }
  1637. }
  1638. .cardVipA {
  1639. position: absolute;
  1640. background-repeat: no-repeat;
  1641. background-size: 100% 100%;
  1642. width: 750rpx;
  1643. height: 84rpx;
  1644. bottom: -2rpx;
  1645. left: 0;
  1646. padding: 0 56rpx 0 135rpx;
  1647. .left-box {
  1648. font-size: 26rpx;
  1649. color: #905100;
  1650. font-weight: 400;
  1651. &.on {
  1652. color: #fff;
  1653. }
  1654. }
  1655. .btn {
  1656. color: #905100;
  1657. font-weight: 400;
  1658. font-size: 24rpx;
  1659. &.on {
  1660. color: #fff;
  1661. }
  1662. }
  1663. .iconfont {
  1664. font-size: 20rpx;
  1665. margin: 4rpx 0 0 4rpx;
  1666. &.on {
  1667. color: #fff;
  1668. margin-top: 0;
  1669. }
  1670. }
  1671. }
  1672. .new-users {
  1673. display: flex;
  1674. flex-direction: column;
  1675. height: 100%;
  1676. .sys-head {
  1677. position: relative;
  1678. width: 100%;
  1679. // background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  1680. .bg {
  1681. position: absolute;
  1682. left: 0;
  1683. top: 0;
  1684. width: 100%;
  1685. height: 100%;
  1686. // background: url("~@/static/images/user-sys.png") no-repeat;
  1687. background: var(--view-theme);
  1688. background-size: 100% auto;
  1689. background-position: left bottom;
  1690. }
  1691. .sys-title {
  1692. z-index: 10;
  1693. position: relative;
  1694. height: 43px;
  1695. text-align: center;
  1696. line-height: 43px;
  1697. font-size: 36rpx;
  1698. color: #FFFFFF;
  1699. }
  1700. }
  1701. .head {
  1702. // background: #fff;
  1703. .user-card {
  1704. position: relative;
  1705. width: 100%;
  1706. height: 270rpx;
  1707. margin: 0 auto;
  1708. padding: 35rpx 28rpx;
  1709. background-size: 100% auto;
  1710. background-color: var(--view-theme);
  1711. .user-info {
  1712. z-index: 20;
  1713. position: relative;
  1714. display: flex;
  1715. .headwear {
  1716. position: absolute;
  1717. right: -4rpx;
  1718. top: -14rpx;
  1719. width: 44rpx;
  1720. height: 44rpx;
  1721. image {
  1722. width: 100%;
  1723. height: 100%;
  1724. }
  1725. }
  1726. .live {
  1727. width: 28rpx;
  1728. height: 28rpx;
  1729. margin-left: 20rpx;
  1730. }
  1731. .bntImg {
  1732. width: 120rpx;
  1733. height: 120rpx;
  1734. border-radius: 50%;
  1735. text-align: center;
  1736. line-height: 120rpx;
  1737. background-color: unset;
  1738. position: relative;
  1739. .avatarName {
  1740. font-size: 16rpx;
  1741. color: #fff;
  1742. text-align: center;
  1743. background-color: rgba(0, 0, 0, 0.6);
  1744. height: 37rpx;
  1745. line-height: 37rpx;
  1746. position: absolute;
  1747. bottom: 0;
  1748. left: 0;
  1749. width: 100%;
  1750. }
  1751. }
  1752. .avatar-box {
  1753. position: relative;
  1754. display: flex;
  1755. align-items: center;
  1756. justify-content: center;
  1757. width: 120rpx;
  1758. height: 120rpx;
  1759. border-radius: 50%;
  1760. .gp {
  1761. position: absolute;
  1762. bottom: -15rpx;
  1763. left: 0;
  1764. right: 0;
  1765. margin: auto;
  1766. width: 117rpx;
  1767. height: 45rpx;
  1768. }
  1769. &.on {
  1770. .avatar {
  1771. border: 2px solid #FFAC65;
  1772. border-radius: 50%;
  1773. }
  1774. }
  1775. }
  1776. .avatar {
  1777. position: relative;
  1778. width: 120rpx;
  1779. height: 120rpx;
  1780. border-radius: 50%;
  1781. }
  1782. .info {
  1783. flex: 1;
  1784. display: flex;
  1785. flex-direction: column;
  1786. justify-content: space-between;
  1787. margin-left: 20rpx;
  1788. padding: 15rpx 0;
  1789. .name {
  1790. display: flex;
  1791. align-items: center;
  1792. color: #fff;
  1793. font-size: 31rpx;
  1794. .nickname {
  1795. max-width: 236rpx;
  1796. }
  1797. .vip {
  1798. margin-left: 10rpx;
  1799. font-size: 32rpx;
  1800. image {
  1801. width: 78rpx;
  1802. height: 30rpx;
  1803. display: block;
  1804. }
  1805. }
  1806. }
  1807. .num {
  1808. display: flex;
  1809. align-items: center;
  1810. font-size: 26rpx;
  1811. color: rgba(255, 255, 255, 0.6);
  1812. image {
  1813. width: 22rpx;
  1814. height: 23rpx;
  1815. margin-left: 20rpx;
  1816. }
  1817. }
  1818. }
  1819. }
  1820. .qrCode {
  1821. color: #fff;
  1822. margin-top: 16rpx !important;
  1823. font-size: 38rpx;
  1824. margin-right: 36rpx !important;
  1825. }
  1826. .message {
  1827. align-self: flex-start;
  1828. position: relative;
  1829. margin-top: 15rpx;
  1830. margin-right: 20rpx;
  1831. .num {
  1832. position: absolute;
  1833. top: -8rpx;
  1834. left: 18rpx;
  1835. padding: 0 6rpx;
  1836. height: 28rpx;
  1837. border-radius: 12rpx;
  1838. background-color: #fff;
  1839. font-size: 18rpx;
  1840. line-height: 28rpx;
  1841. text-align: center;
  1842. color: var(--view-theme);
  1843. }
  1844. .iconfont {
  1845. font-size: 40rpx;
  1846. color: #fff;
  1847. }
  1848. }
  1849. .sign {
  1850. z-index: 200;
  1851. position: absolute;
  1852. right: -12rpx;
  1853. top: 80rpx;
  1854. display: flex;
  1855. align-items: center;
  1856. justify-content: center;
  1857. width: 120rpx;
  1858. height: 60rpx;
  1859. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1860. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1861. color: #282828;
  1862. font-size: 28rpx;
  1863. font-weight: bold;
  1864. }
  1865. }
  1866. .order-wrapper {
  1867. background: #fff;
  1868. margin: 0 30rpx;
  1869. border-radius: 16rpx;
  1870. position: relative;
  1871. .order-hd {
  1872. justify-content: space-between;
  1873. padding: 30rpx 20rpx 10rpx;
  1874. margin-top: 25rpx;
  1875. font-size: 30rpx;
  1876. color: #282828;
  1877. .left {
  1878. font-weight: bold;
  1879. }
  1880. .right {
  1881. align-items: center;
  1882. color: #666666;
  1883. font-size: 26rpx;
  1884. .icon-xiangyou {
  1885. margin-left: 5rpx;
  1886. margin-top: 6rpx;
  1887. font-size: 26rpx;
  1888. }
  1889. }
  1890. }
  1891. .order-bd {
  1892. display: flex;
  1893. padding: 0 0;
  1894. .order-item {
  1895. display: flex;
  1896. flex-direction: column;
  1897. justify-content: center;
  1898. align-items: center;
  1899. width: 20%;
  1900. height: 140rpx;
  1901. .pic {
  1902. position: relative;
  1903. text-align: center;
  1904. .iconfont {
  1905. font-size: 48rpx;
  1906. color: var(--view-theme);
  1907. }
  1908. image {
  1909. width: 58rpx;
  1910. height: 48rpx;
  1911. }
  1912. }
  1913. .txt {
  1914. margin-top: 6rpx;
  1915. font-size: 26rpx;
  1916. color: #454545;
  1917. }
  1918. }
  1919. }
  1920. }
  1921. }
  1922. .slider-wrapper {
  1923. margin: 20rpx 30rpx;
  1924. height: 130rpx;
  1925. swiper,
  1926. swiper-item {
  1927. height: 100%;
  1928. }
  1929. image {
  1930. width: 100%;
  1931. height: 130rpx;
  1932. border-radius: 16rpx;
  1933. }
  1934. }
  1935. .user-menus {
  1936. background-color: #fff;
  1937. margin: 0 30rpx;
  1938. border-radius: 16rpx;
  1939. .menu-title {
  1940. padding: 30rpx 30rpx 40rpx;
  1941. font-size: 30rpx;
  1942. color: #282828;
  1943. font-weight: bold;
  1944. }
  1945. .list-box {
  1946. display: flex;
  1947. flex-wrap: wrap;
  1948. padding: 0;
  1949. }
  1950. .item {
  1951. position: relative;
  1952. display: flex;
  1953. align-items: center;
  1954. justify-content: space-between;
  1955. flex-direction: column;
  1956. width: 25%;
  1957. margin-bottom: 47rpx;
  1958. font-size: 26rpx;
  1959. color: #333333;
  1960. image {
  1961. width: 52rpx;
  1962. height: 52rpx;
  1963. margin-bottom: 18rpx;
  1964. }
  1965. &:last-child::before {
  1966. display: none;
  1967. }
  1968. }
  1969. button {
  1970. font-size: 28rpx;
  1971. }
  1972. }
  1973. .phone {
  1974. color: #fff;
  1975. background-color: #CCC;
  1976. border-radius: 15px;
  1977. width: max-content;
  1978. padding: 0 10px;
  1979. }
  1980. .order-status-num {
  1981. min-width: 12rpx;
  1982. background-color: #fff;
  1983. color: var(--view-theme);
  1984. border-radius: 15px;
  1985. position: absolute;
  1986. right: -14rpx;
  1987. top: -15rpx;
  1988. font-size: 20rpx;
  1989. padding: 0 8rpx;
  1990. border: 1px solid var(--view-theme);
  1991. }
  1992. .support {
  1993. width: 219rpx;
  1994. height: 74rpx;
  1995. margin: 54rpx auto;
  1996. display: block;
  1997. }
  1998. .copyRightImg {
  1999. width: 219rpx;
  2000. height: 74rpx;
  2001. margin: 16rpx auto;
  2002. display: block;
  2003. }
  2004. .copy_right {
  2005. text-align: center;
  2006. color: #ccc;
  2007. font-size: 22rpx;
  2008. margin-top: 40rpx;
  2009. .copyRightText {
  2010. margin-top: 0rpx;
  2011. color: #ccc;
  2012. font-size: 20rpx;
  2013. margin-bottom: 20rpx;
  2014. }
  2015. }
  2016. }
  2017. .card-vip {
  2018. display: flex;
  2019. justify-content: space-between;
  2020. position: relative;
  2021. width: 690rpx;
  2022. height: 125rpx;
  2023. margin: -72rpx auto 0;
  2024. background: url('~@/static/images/user_vip.png');
  2025. background-size: cover;
  2026. padding: 28rpx 30rpx 0 92rpx;
  2027. &.on {
  2028. .left-box {
  2029. color: #fff;
  2030. }
  2031. .btn {
  2032. color: #fff;
  2033. }
  2034. .iconfont {
  2035. color: #fff;
  2036. }
  2037. }
  2038. .left-box {
  2039. font-size: 28rpx;
  2040. color: #AE5A2A;
  2041. .big {
  2042. font-size: 28rpx;
  2043. }
  2044. .small {
  2045. opacity: 0.8;
  2046. }
  2047. }
  2048. .btn {
  2049. color: #AE5A2A;
  2050. font-weight: 400;
  2051. font-size: 26rpx;
  2052. }
  2053. .iconfont {
  2054. font-size: 20rpx;
  2055. margin: 4rpx 0 0 4rpx;
  2056. color: #AE5A2A;
  2057. }
  2058. }
  2059. .setting {
  2060. margin-top: 15rpx;
  2061. margin-left: 15rpx;
  2062. color: #fff;
  2063. .iconfont {
  2064. font-size: 40rpx;
  2065. }
  2066. }
  2067. .new-users {
  2068. padding-bottom: 0;
  2069. padding-bottom: constant(safe-area-inset-bottom);
  2070. padding-bottom: env(safe-area-inset-bottom);
  2071. }
  2072. </style>