index.vue 60 KB

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