index.vue 52 KB

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