user.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  1. <template>
  2. <view>
  3. <view class="user" v-if="appInfo.page_template == 2 || appInfo.page_template == 1">
  4. <!-- 头部 -->
  5. <view class="pos" style="height: 190rpx;">
  6. </view>
  7. <view class="topBox">
  8. <view class="topCard" style="position: relative;">
  9. <!-- <view class="user-wrap userBox" style=""
  10. :style="{ backgroundImage: `url(${appInfo.user_bg_path ? appInfo.user_bg_path : ''})` }"> -->
  11. <view class="user-wrap userBox" style="" :style="">
  12. <view class="setting iconfont icon31shezhi"></view>
  13. <view v-if="isLogin" class="info">
  14. <image @click="modify" class="avatar" mode="aspectFill"
  15. :src="userInfo.avatar ? userInfo.avatar : '/static/images/head.jpg'"></image>
  16. <view class="nickname">
  17. <text @click="copyText(userInfo.id_number)"
  18. class="nick">{{ userInfo.nickname ? userInfo.nickname : '默认用户'}}</text>
  19. <u-icon name="edit-pen" color="#18b566" size="20" @click="modify"></u-icon>
  20. </view>
  21. </view>
  22. <view v-else class="info" @click="getlogin">
  23. <image class="avatar" mode="aspectFill" src="/static/images/head.jpg"></image>
  24. <view class="nickname">点击立即登录/注册</view>
  25. </view>
  26. </view>
  27. <view class="order-status" style="width: 100%;">
  28. <view class="status-wrap" style="">
  29. <view class="cell cell_charge" style="">
  30. <view class="cell-left">
  31. <u-icon name="integral" color="#ffd465" size="24"></u-icon>
  32. <block v-if="appInfo.number_member">
  33. <block v-if="appInfo.number_member == 1">
  34. <view class="cell-text"
  35. style="color: #ffd465;font-size: 30rpx;font-weight: bold;margin-left:5rpx;">
  36. {{appInfo.number_alias?appInfo.number_alias+':&nbsp;':'点数:'}}{{ userData.coin ? userData.coin : 0 }}
  37. </view>
  38. </block>
  39. </block>
  40. <block v-else>
  41. <view class="cell-text"
  42. style="color: #ffd465;font-size: 30rpx;font-weight: bold;margin-left:5rpx;">
  43. {{appInfo.number_alias?appInfo.number_alias+':&nbsp;':'点数:'}}{{ userData.coin ? userData.coin : 0 }}
  44. </view>
  45. </block>
  46. <block v-if="appInfo.number_member">
  47. <view
  48. v-if="appInfo.time_member&&appInfo.number_member == 1&&appInfo.time_member == 1"
  49. class="cell-text"
  50. style="color: #ffd465;font-size: 30rpx;font-weight: bold;margin-left:5rpx;">
  51. |
  52. </view>
  53. </block>
  54. <block v-else>
  55. <view v-if="appInfo.time_member&&appInfo.time_member == 1" class="cell-text"
  56. style="color: #ffd465;font-size: 30rpx;font-weight: bold;margin-left:5rpx;">
  57. |</view>
  58. </block>
  59. <block v-if="appInfo.time_member && appInfo.time_member == 1">
  60. <view style="flex-direction: column;display: flex;">
  61. <view class="cell-text"
  62. style="color: #ffd465;font-size: 30rpx;font-weight: bold;margin-left:5rpx;">
  63. 会员套餐:&nbsp;{{ userData.is_validity == 1 ? (userData.vip_time == 9999?'永久':userData.countdown+'天') : '0天' }}
  64. </view>
  65. </view>
  66. </block>
  67. </view>
  68. <!-- #ifdef MP-WEIXIN -->
  69. <navigator v-if="device != 'ios'" class="b-btn"
  70. :url="isLogin ? '/pages/user/member/member' : '/pages/user/signin'"
  71. @click="getroute">
  72. 立即充值
  73. </navigator>
  74. <navigator v-else-if="device == 'ios'&&show_ios_pay" class="b-btn"
  75. :url="isLogin ? '/pages/user/member/member' : '/pages/user/signin'"
  76. @click="getroute">
  77. 立即充值
  78. </navigator>
  79. <!-- #endif -->
  80. <!-- #ifdef H5 -->
  81. <navigator class="b-btn"
  82. :url="isLogin ? '/pages/user/member/member' : '/pages/user/signin'"
  83. @click="getroute">立即充值</navigator>
  84. <!-- #endif -->
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="com-item">
  90. <view class="com-wrap">
  91. <!-- #ifdef MP-WEIXIN -->
  92. <view v-if="appInfo.wxad_user && appInfo.wxad_user >= 1">
  93. <wike-flow-main :flowtype="appInfo.wxad_user" :banner_id="appInfo.banner_id"
  94. :video_banner_id="appInfo.video_banner_id"
  95. :native_id="appInfo.native_id"></wike-flow-main>
  96. </view>
  97. <!-- #endif -->
  98. </view>
  99. </view>
  100. </view>
  101. <view v-if="userData.vip_info&&userData.is_validity>0" class="com-item" style="margin-top: 0;">
  102. <view class="com-wrap">
  103. <view class="cell" @click="packagedetails = true">
  104. <view class="cell-left">
  105. <u-icon name="bookmark-fill" color="" size="22"></u-icon>
  106. <view class="cell-text">我的会员套餐详情</view>
  107. </view>
  108. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 用户功能 -->
  113. <view class="com-item">
  114. <view class="com-wrap">
  115. <view class="cell" @click="toFenxiao">
  116. <view class="cell-left">
  117. <u-icon :isJianBian="true" :name="fenxiaoInfo.icon" color="#e83a30" size="22"></u-icon>
  118. <view class="cell-text">{{fenxiaoInfo.title}}</view>
  119. </view>
  120. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  121. </view>
  122. <view class="cell" @click="toEmployee">
  123. <view class="cell-left">
  124. <view class="tn-icon-team-fill" style="color: rgb(32, 124, 247);font-size: 20px;">
  125. </view>
  126. <!-- <u-icon :isJianBian="true" name="coupon-fill" color="#e83a30" size="22"></u-icon> -->
  127. <view class="cell-text">数智员工</view>
  128. </view>
  129. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  130. </view>
  131. <view class="cell" @click="showcarmi = true">
  132. <view class="cell-left">
  133. <u-icon :isJianBian="true" name="coupon-fill" color="#e83a30" size="22"></u-icon>
  134. <view class="cell-text">卡密兑换</view>
  135. </view>
  136. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  137. </view>
  138. <view class="cell" @click="toRenwu">
  139. <view class="cell-left">
  140. <!-- <u-icon :isJianBian="true" name="coupon-fill" color="#e83a30" size="22"></u-icon> -->
  141. <view class="tn-icon-funds-fill" style="color: rgb(32, 124, 247);font-size: 20px;">
  142. </view>
  143. <view class="cell-text">每日任务</view>
  144. </view>
  145. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  146. </view>
  147. <navigator style="border-bottom: 1rpx solid #f8f8f8;" v-for="(item, index) in userList" :key="index"
  148. :url="isLogin ? item.url : item.url=='custom'?'': '/pages/user/signin'" @click="getroute">
  149. <!-- 免费课程 -->
  150. <view v-if="item.url=='custom'" class="cell" @click="getFreeScore">
  151. <view class="cell-left">
  152. <u-icon :isJianBian="true" :name="item.icon" :color="item.color" size="22"></u-icon>
  153. <!-- <view class="tn-icon-book-fill" style="color: rgb(32, 124, 247);font-size: 20px;">
  154. </view> -->
  155. <view class="cell-text">免费课程</view>
  156. </view>
  157. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  158. </view>
  159. <view v-else class="cell">
  160. <view class="cell-left" :style="{marginLeft:item.title=='订单记录'? '-14rpx':''}">
  161. <!-- <image class="cell-icon" :src="item.icon" mode="aspectFill"></image> -->
  162. <u-icon :isJianBian="true" :name="item.icon" :color="item.color"
  163. :size="item.title=='订单记录'?28:item.title=='问答记录'?20:22"></u-icon>
  164. <view class="cell-text">{{ item.title }}</view>
  165. </view>
  166. <!-- <view class="iconfont iconmore1"></view> -->
  167. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  168. </view>
  169. </navigator>
  170. <navigator class="cell" :url="isLogin ? '/pages/user/member/record' : '/pages/user/signin'"
  171. @click="getroute">
  172. <view class="cell-left">
  173. <!-- <image class="cell-icon" :src="item.icon" mode="aspectFill"></image> -->
  174. <u-icon :isJianBian="true" name="bookmark-fill" color="#892fe8" size="22"></u-icon>
  175. <view class="cell-text">{{appInfo.number_alias?appInfo.number_alias:'点数'}}/会员套餐记录</view>
  176. </view>
  177. <!-- <view class="iconfont iconmore1"></view> -->
  178. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  179. </navigator>
  180. </view>
  181. </view>
  182. <!-- 用户服务 -->
  183. <view class="com-item">
  184. <view class="com-wrap">
  185. <view v-if="qrcode" class="cell" @click="getqrcode">
  186. <view class="cell-left">
  187. <u-icon :isJianBian="true" name="scan" color="#007aff" size="22"></u-icon>
  188. <view class="cell-text">关注公众号</view>
  189. </view>
  190. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  191. <!-- <button openType="contact" style="width: 85%; background-color: red; position: absolute; opacity: 0;height: 10%;"></button> -->
  192. </view>
  193. <!-- <view class="cell">
  194. <view class="cell-left">
  195. <u-icon name="minus-circle-fill" color="#26B3A0" size="22"></u-icon>
  196. <view class="cell-text">使用教程</view>
  197. </view>
  198. <u-icon name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  199. <button openType="contact" style="width: 85%; background-color: red; position: absolute; opacity: 0;height: 10%;"></button>
  200. </view> -->
  201. <navigator class="cell" v-for="(item, index) in serverList" :key="index" :url="item.path">
  202. <view class="cell-left">
  203. <!-- <image class="cell-icon" :src="item.icon" mode="aspectFill"></image> -->
  204. <u-icon :isJianBian="true" :name="item.icon" :color="item.color" size="22"></u-icon>
  205. <view class="cell-text">{{ item.title }}</view>
  206. </view>
  207. <view v-if="item.text" class="iconmore1">{{item.text}}</view>
  208. <u-icon v-else name="arrow-right" color="#9e9e9e" size="18"></u-icon>
  209. </navigator>
  210. </view>
  211. </view>
  212. <view class="com-item"><wike-ad></wike-ad></view>
  213. </view>
  214. <block v-if="appInfo.page_template == 3">
  215. <view class="top-backgroup">
  216. <image src='https://tnuiimage.tnkjapp.com/my/my-bg4.png' mode='widthFix' class='backgroud-image'>
  217. </image>
  218. </view>
  219. <view class="about__wrap" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  220. <!-- 图标logo/头像 -->
  221. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-bottom"
  222. style="margin-top: -450rpx;">
  223. <view class="justify-content-item">
  224. <view class="tn-flex tn-flex-col-center tn-flex-row-left">
  225. <view class="logo-pic tn-shadow">
  226. <view class="logo-image">
  227. <image class="avatar" mode="aspectFill"
  228. :src="userInfo.avatar ? userInfo.avatar : '/static/images/head.jpg'"></image>
  229. </view>
  230. </view>
  231. <view class="tn-padding-right">
  232. <view class="tn-padding-right tn-padding-left-sm">
  233. <text
  234. class="tn-color-cat tn-text-xl tn-text-bold">{{ userInfo.nickname ? userInfo.nickname : '默认用户'}}</text>
  235. <!-- <text class=" tn-round tn-text-xs tn-bg-red tn-color-white tn-margin-left-sm" style="padding: 10rpx 20rpx;" @click="tn('/minePages/realname')">
  236. 未实名
  237. </text> -->
  238. </view>
  239. <view class="tn-padding-right tn-padding-top-xs tn-padding-left-sm tn-text-ellipsis">
  240. <text class="tn-color-gray tn-padding-left-sm tn-text-sm">id编号
  241. {{userInfo.id_number}}</text>
  242. </view>
  243. </view>
  244. </view>
  245. </view>
  246. </view>
  247. <view class="tn-margin-top-xl">
  248. <view class="button-vip tn-flex tn-flex-row-between tn-flex-col-center tn-shadow-blur"
  249. style="background: linear-gradient(-120deg, #3E445A, #31374A, #2B3042, #262B3C);">
  250. <view class="tn-margin-left">
  251. <view class='title u-flex' style="color: #F1C68E;">
  252. <!-- <text class="tn-text-bold tn-text-xl">{{appInfo.number_alias?appInfo.number_alias+':':'点数:'}}{{ userData.coin ? userData.coin : 0 }}</text> -->
  253. <block v-if="appInfo.number_member">
  254. <block v-if="appInfo.number_member == 1">
  255. <view class="tn-text-bold tn-text-xl">
  256. {{appInfo.number_alias?appInfo.number_alias+':':'点数:'}}{{ userData.coin ? userData.coin : 0 }}
  257. </view>
  258. </block>
  259. </block>
  260. <block v-else>
  261. <view class="tn-text-bold tn-text-xl">
  262. {{appInfo.number_alias?appInfo.number_alias+':':'点数:'}}{{ userData.coin ? userData.coin : 0 }}
  263. </view>
  264. </block>
  265. <block v-if="appInfo.number_member">
  266. <view
  267. v-if="appInfo.time_member&&appInfo.number_member == 1&&appInfo.time_member == 1"
  268. class="tn-text-bold tn-text-xl">|</view>
  269. </block>
  270. <block v-else>
  271. <view v-if="appInfo.time_member&&appInfo.time_member == 1"
  272. class="tn-text-bold tn-text-xl">|</view>
  273. </block>
  274. <block v-if="appInfo.time_member && appInfo.time_member == 1">
  275. <view class="tn-text-bold tn-text-xl">
  276. 会员套餐:{{ userData.is_validity == 1 ? (userData.vip_time == 9999?'永久':userData.countdown+'天') : '0天' }}
  277. </view>
  278. </block>
  279. <!-- <text class="tn-icon-vip-text tn-text-center" style="position: absolute;margin: -22rpx 0 0 0;font-size: 92rpx;"></text> -->
  280. </view>
  281. <view class='tn-color-white tn-text-sm tn-padding-top-sm'>邀请好友赚取更多积分</view>
  282. </view>
  283. <view class="tn-margin-right">
  284. <tn-button shape="round" backgroundColor="#F1C68E" fontColor="#634738" padding="10rpx 0"
  285. width="160rpx" shadow
  286. @click="jump(isLogin ? '/pages/user/member/member' : '/pages/user/signin')">
  287. <!-- <text class="tn-icon-vip tn-padding-right-sm tn-text-lg"></text> -->
  288. <text class="tn-text-bold">充值</text>
  289. </tn-button>
  290. </view>
  291. </view>
  292. </view>
  293. <!-- 方式12 start-->
  294. <view class="about-shadow tn-margin-top-lg tn-padding-top-sm tn-padding-bottom-sm tn-bg-white">
  295. <view class="tn-flex tn-flex-row-center tn-radius tn-padding-top">
  296. <view class="tn-padding-sm tn-margin-xs tn-radius" @click="showcarmi = true">
  297. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  298. <view
  299. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  300. <view class="tn-icon-cube tn-color-cat"></view>
  301. </view>
  302. <view class="tn-text-center">
  303. <text class="tn-text-ellipsis">卡密兑换</text>
  304. </view>
  305. </view>
  306. </view>
  307. <view class="tn-padding-sm tn-margin-xs tn-radius" @click="jump('/pages/user/commission/index')"
  308. v-if="is_commission==1">
  309. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  310. <view
  311. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  312. <view class="tn-icon-signpost tn-color-cat"></view>
  313. </view>
  314. <view class="tn-text-center">
  315. <text class="tn-text-ellipsis">我的团队</text>
  316. </view>
  317. </view>
  318. </view>
  319. <view class="tn-padding-sm tn-margin-xs tn-radius" @click="jump('/pages/user/draw/draw')"
  320. v-if="appInfo.is_aipainting&&appInfo.is_aipainting == 1">
  321. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  322. <view
  323. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  324. <view class="tn-icon-refund tn-color-cat"></view>
  325. </view>
  326. <view class="tn-text-center">
  327. <text class="tn-text-ellipsis">绘画记录</text>
  328. </view>
  329. </view>
  330. </view>
  331. <view class="tn-padding-sm tn-margin-xs tn-radius"
  332. @click="jump('/pages/user/takenotes/takenotes')">
  333. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  334. <view
  335. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  336. <view class="tn-icon-constellation tn-color-cat"></view>
  337. </view>
  338. <view class="tn-text-center">
  339. <text class="tn-text-ellipsis">问答记录</text>
  340. </view>
  341. </view>
  342. </view>
  343. </view>
  344. <view class="tn-flex tn-flex-row-center tn-radius tn-padding-top">
  345. <view class="tn-padding-sm tn-margin-xs tn-radius" @click="jump('/pages/user/userinfo')">
  346. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  347. <view
  348. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  349. <view class="tn-icon-order tn-color-cat"></view>
  350. </view>
  351. <view class="tn-text-center">
  352. <text class="tn-text-ellipsis">修改用户信息</text>
  353. </view>
  354. </view>
  355. </view>
  356. <view class="tn-padding-sm tn-margin-xs tn-radius" @click="jump('/pages/user/member/record')">
  357. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  358. <view
  359. class="icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-bg-grey--light">
  360. <view class="tn-icon-calendar tn-color-cat"></view>
  361. </view>
  362. <view class="tn-text-center">
  363. <text
  364. class="tn-text-ellipsis">{{appInfo.number_alias?appInfo.number_alias:'点数'}}/会员套餐记录</text>
  365. </view>
  366. </view>
  367. </view>
  368. </view>
  369. </view>
  370. </view>
  371. <view class="tn-margin-top-lg tn-padding-top-sm tn-padding-bottom-sm" style="padding:30rpx">
  372. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="getqrcode">
  373. <view class="tn-flex tn-flex-col-center">
  374. <view class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center"
  375. style="color: #7C8191;">
  376. <view class="tn-icon-qr-code"></view>
  377. </view>
  378. <view class="tn-margin-left-sm tn-flex-1">关注公众号</view>
  379. <view class="tn-color-gray tn-icon-right"></view>
  380. </view>
  381. </tn-list-cell>
  382. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30"
  383. @click="jump('/pages/user/orderrecord/orderrecord')">
  384. <view class="tn-flex tn-flex-col-center">
  385. <view class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center"
  386. style="color: #7C8191;">
  387. <view class="tn-icon-shopbag-fill"></view>
  388. </view>
  389. <view class="tn-margin-left-sm tn-flex-1">订单记录</view>
  390. <view class="tn-color-gray tn-icon-right"></view>
  391. </view>
  392. </tn-list-cell>
  393. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30"
  394. @click="jump('/pages/user/public/kefu')">
  395. <view class="tn-flex tn-flex-col-center">
  396. <view class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center"
  397. style="color: #7C8191;">
  398. <view class="tn-icon-science-fill"></view>
  399. </view>
  400. <view class="tn-margin-left-sm tn-flex-1">客服中心</view>
  401. <view class="tn-color-gray tn-icon-right"></view>
  402. </view>
  403. </tn-list-cell>
  404. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30"
  405. @click="jump('/pages/user/public/agreement?type=aboutus')">
  406. <view class="tn-flex tn-flex-col-center">
  407. <view class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center"
  408. style="color: #7C8191;">
  409. <view class="tn-icon-light-fill"></view>
  410. </view>
  411. <view class="tn-margin-left-sm tn-flex-1">关于我们</view>
  412. <view class="tn-color-gray tn-icon-right"></view>
  413. </view>
  414. </tn-list-cell>
  415. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30">
  416. <view class="tn-flex tn-flex-col-center">
  417. <view class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center"
  418. style="color: #7C8191;">
  419. <view class="tn-icon-expand"></view>
  420. </view>
  421. <view class="tn-margin-left-sm tn-flex-1">版本</view>
  422. <view>4.6.2</view>
  423. </view>
  424. </tn-list-cell>
  425. </view>
  426. </block>
  427. <u-popup :show="showcarmi" mode="center" :round="10" @close="showcarmi = false">
  428. <view class="carmimodal">
  429. <view class="carmiclose" @click="showcarmi = false"><u-icon name="close-circle-fill" color="#fff"
  430. size="22"></u-icon></view>
  431. <view class="carmititle">输入卡密兑换</view>
  432. <view class="carmiinput"><u--input placeholder="请输入卡密" border="surround" clearable
  433. v-model="carmi"></u--input></view>
  434. <view @click="exchange" class="carmiexchange">立即兑换</view>
  435. <view v-if="appInfo.kf_qrcode_path" class="kf_qrcode tn-flex justify-center">
  436. <u--image :showLoading="true" :src="appInfo.kf_qrcode_path" width="100px" height="100px"
  437. @click="clickuimage(appInfo.kf_qrcode_path)"></u--image>
  438. </view>
  439. <view v-if="appInfo.kf_qrcode_path" class="u-text-center">
  440. <!-- #ifdef MP-WEIXIN -->
  441. 长按上方二维码,添加客服购买卡密
  442. <!-- #endif -->
  443. <!-- #ifdef H5 -->
  444. 保存上方二维码,添加客服购买卡密
  445. <!-- #endif -->
  446. </view>
  447. </view>
  448. </u-popup>
  449. <u-popup :show="packagedetails" @close="packagedetails = false" :round="15" closeable>
  450. <view class="select u-flex justify-center"><text>我的会员套餐详情</text></view>
  451. <u-notice-bar speed="60" bgColor='#C6D6E4' color='#3F5465'
  452. :text="'当会员套餐内限量次数为0后再次使用会扣除当前已经拥有的'+(appInfo.number_alias ? appInfo.number_alias : '点数')"></u-notice-bar>
  453. <view class="expand u-flex flex-wrap">
  454. <view
  455. v-if="userData.vip_info&&userData.vip_info.gpt35_times == -1 || userData.vip_info&&userData.vip_info.gpt35_times > 0"
  456. class="surplus u-flex align-center">
  457. <view class="item">{{appInfo.gpt35_alias ? appInfo.gpt35_alias : 'ChatGPT 3.5'}} -
  458. {{userData.vip_info.gpt35_type == 'time'?'每日':'总'}}限量:{{userData.vip_info.gpt35_times == -1?'无限量':userData.vip_info.gpt35_times+'次'}}({{userData.vip_info.gpt35_type == 'time'?'今日已用量:':'总用量:'}}{{userData.vip_info.gpt35_used}}次)
  459. </view>
  460. </view>
  461. <view
  462. v-if="userData.vip_info&&userData.vip_info.gpt4_times == -1 || userData.vip_info&&userData.vip_info.gpt4_times > 0"
  463. class="surplus u-flex align-center" style="background: #f9ae3d;">
  464. <view class="item">{{appInfo.gpt4_alias ? appInfo.gpt4_alias : 'ChatGPT 4.0'}} -
  465. {{userData.vip_info.gpt4_type == 'time'?'每日':'总'}}限量:{{userData.vip_info.gpt4_times == -1?'无限量':userData.vip_info.gpt4_times+'次'}}({{userData.vip_info.gpt4_type == 'time'?'今日已用量:':'总用量:'}}{{userData.vip_info.gpt4_used}}次)
  466. </view>
  467. </view>
  468. <view
  469. v-if="userData.vip_info&&userData.vip_info.sd_times == -1 || userData.vip_info&&userData.vip_info.sd_times > 0"
  470. class="surplus u-flex align-center" style="background: #3c9cff;">
  471. <view class="item">StableDiffusion绘图 -
  472. {{userData.vip_info.sd_type == 'time'?'每日':'总'}}限量:{{userData.vip_info.sd_times == -1?'无限量':userData.vip_info.sd_times+'次'}}({{userData.vip_info.sd_type == 'time'?'今日已用量:':'总用量:'}}{{userData.vip_info.sd_used}}次)
  473. </view>
  474. </view>
  475. <view
  476. v-if="userData.vip_info&&userData.vip_info.mj_times == -1 || userData.vip_info&&userData.vip_info.mj_times > 0"
  477. class="surplus u-flex align-center" style="background: #26b3a0;">
  478. <view class="item">MidJourney绘图 -
  479. {{userData.vip_info.mj_type == 'time'?'每日':'总'}}限量:{{userData.vip_info.mj_times == -1?'无限量':userData.vip_info.mj_times+'次'}}({{userData.vip_info.mj_type == 'time'?'今日已用量:':'总用量:'}}{{userData.vip_info.mj_used}}次)
  480. </view>
  481. </view>
  482. </view>
  483. </u-popup>
  484. <block v-if="is_aipainting">
  485. <wike-tabbar2 :currTabIndex='4' v-if="appInfo.page_template == 3" :is_aipainting="is_aipainting"
  486. :onTabbar="true" :isShowAnimate="true" :appInfos="appInfo.page_template"></wike-tabbar2>
  487. <wike-tabbar :currTabIndex='4' v-else :onTabbar="true" :is_aipainting="is_aipainting" :isShowAnimate="true"
  488. :appInfos="appInfo.page_template"></wike-tabbar>
  489. </block>
  490. <wike-modal-qrcode :qrcode="qrcode" :showconcern="showconcern&&!showFixInfo"
  491. @concernclose="concernclose"></wike-modal-qrcode>
  492. <u-modal @cancel="handleCancel" @confirm="handleConfirm" cancelText='退出登录' showCancelButton :show="showFixInfo"
  493. confirmColor="#26b3a0" confirmText="完善信息" title="请完善个人手机号信息后使用本应用"
  494. content='您已充值,但未绑定手机号,请完善信息以方便为您提供进一步的服务'></u-modal>
  495. </view>
  496. </template>
  497. <script>
  498. import {
  499. mapMutations,
  500. mapActions,
  501. mapState,
  502. mapGetters
  503. } from 'vuex';
  504. import {
  505. API_ROOT
  506. } from '@/common/request/request';
  507. let interstitialAd = null,
  508. timer,
  509. time2;
  510. export default {
  511. components: {},
  512. data() {
  513. return {
  514. showFixInfo: false,
  515. // API_ROOT: API_ROOT,
  516. perfectResume: false, //简历是否完善
  517. tobheight: 45,
  518. platform: this.$platform.get(),
  519. showrealname: false,
  520. showworkermy: false,
  521. avatar: '',
  522. isLoading: true,
  523. // userInfo: {
  524. // headPicUrl: '/static/images/user/avatar.jpg',
  525. // nickName: '史蒂芬.林'
  526. // },
  527. orderStatusList: [{
  528. name: '待付款',
  529. icon: 'iconfont icon31daifukuan',
  530. status: 10
  531. },
  532. {
  533. name: '待发货',
  534. icon: 'iconfont icon31daifahuo',
  535. status: 30
  536. },
  537. {
  538. name: '待收货',
  539. icon: 'iconfont icon31daishouhuo',
  540. status: 40
  541. },
  542. {
  543. name: '待评价',
  544. icon: 'iconfont icon31daipingjia',
  545. status: 50
  546. },
  547. {
  548. name: '已完成',
  549. icon: 'iconfont icon31yiguanzhudianpu',
  550. status: 55
  551. }
  552. ],
  553. currentIndex: 0,
  554. list: [{
  555. icon: '/static/images/user/class-01.png',
  556. text: '我的电子券'
  557. },
  558. {
  559. icon: '/static/images/user/class-02.png',
  560. text: '退换/售后'
  561. },
  562. {
  563. icon: '/static/images/user/class-03.png',
  564. text: '我的积分'
  565. },
  566. {
  567. icon: '/static/images/user/class-04.png',
  568. text: '送礼提醒'
  569. }
  570. ],
  571. userList: [{
  572. title: '订单记录',
  573. icon: 'shopping-cart-fill',
  574. path: 'coupon-fill',
  575. url: '/pages/user/orderrecord/orderrecord',
  576. color: '#26b3a0'
  577. },
  578. {
  579. title: '问答记录',
  580. icon: 'question-circle-fill',
  581. path: 'collect-list',
  582. url: '/pages/user/takenotes/takenotes',
  583. color: '#31c9e8'
  584. },
  585. {
  586. title: '免费课程',
  587. icon: 'bookmark-fill',
  588. path: 'coupon-fill',
  589. // url: '/pages/user/freeScore/index',
  590. url: 'custom',
  591. color: '#26b3a0'
  592. },
  593. {
  594. title: '修改用户信息',
  595. icon: 'setting-fill',
  596. path: 'collect-list',
  597. url: '/pages/user/userinfo',
  598. color: '#5ac725'
  599. },
  600. // {
  601. // title: '次数/时长记录',
  602. // icon: 'bookmark-fill',
  603. // url: '/pages/user/member/record'
  604. // }
  605. ],
  606. serverList: [{
  607. title: '客服中心',
  608. icon: 'server-fill',
  609. path: '/pages/user/public/kefu',
  610. color: '#e83a30'
  611. },
  612. {
  613. title: '关于我们',
  614. icon: 'account-fill',
  615. path: '/pages/user/public/agreement?type=aboutus',
  616. color: '#ffa726'
  617. },
  618. {
  619. title: '版本',
  620. icon: 'pushpin-fill',
  621. text: '4.6.2',
  622. color: '#24f083'
  623. }
  624. ],
  625. commission_setting: {},
  626. showcarmi: false,
  627. carmi: '',
  628. qrcode: '',
  629. is_aipainting: '',
  630. showconcern: false,
  631. gzhqrcode: '',
  632. packagedetails: false,
  633. plan: {},
  634. show_ios_pay: false,
  635. device: this.$platform.device(),
  636. fenxiaoInfo: null
  637. // commission_alias:'分销中心'
  638. };
  639. },
  640. computed: {
  641. ...mapGetters(['appInfo', 'homeTemplate', 'isLogin', 'userInfo', 'userData'])
  642. },
  643. onShow: function() {
  644. if (this.isLogin) {
  645. this.getUserData();
  646. if (this.$ws.socketStatus()) {
  647. this.$ws.completeClose();
  648. }
  649. }
  650. this.systemwechat()
  651. this.$http('user.info').then(res => {
  652. if (res.code == 0) {
  653. console.log('用户是否是首次支付成功,但未填写手机号', res.data.is_new);
  654. this.showFixInfo = res.data.is_new;
  655. // this.showFixInfo = true;
  656. }
  657. })
  658. // this.$store.dispatch('tabbarInit')
  659. },
  660. onLoad() {
  661. if (!this.isLogin) {
  662. uni.navigateTo({
  663. url: '/pages/user/signin'
  664. });
  665. uni.setStorageSync('route', '/pages/user/user');
  666. }
  667. this.getCommissionSetting();
  668. this.getPlan();
  669. // this.systemwechat()
  670. // console.log(API_ROOT);
  671. },
  672. onReady() {
  673. let that = this;
  674. // #ifdef MP-WEIXIN
  675. clearTimeout(timer);
  676. // 在适合的场景显示插屏广告
  677. timer = setTimeout(function() {
  678. // 在页面onLoad回调事件中创建插屏广告实例
  679. if (wx.createInterstitialAd && that.appInfo.interstitial_status == 1) {
  680. interstitialAd = wx.createInterstitialAd({
  681. adUnitId: that.appInfo.interstitial_id
  682. });
  683. interstitialAd.onLoad(() => {});
  684. interstitialAd.onError(err => {});
  685. interstitialAd.onClose(() => {
  686. if (that.appInfo.interstitial_infinite_status && that.appInfo
  687. .interstitial_infinite_status == 1) {
  688. that.showInterstitial();
  689. } else {
  690. interstitialAd.show().catch(err => {
  691. console.error(err);
  692. });
  693. }
  694. });
  695. interstitialAd.show().catch(err => {
  696. console.error(err);
  697. });
  698. }
  699. }, 4000);
  700. // #endif
  701. },
  702. onUnload() {
  703. clearInterval(time2);
  704. },
  705. methods: {
  706. ...mapActions(['getUserInfo', 'showAuthModal', 'getUserData', 'logout']),
  707. toEmployee() {
  708. if (!uni.getStorageSync('token')) {
  709. return uni.navigateTo({
  710. url: '/pages/user/signin'
  711. })
  712. }
  713. uni.navigateTo({
  714. url: '/pages/employee/index'
  715. })
  716. },
  717. toRenwu() {
  718. uni.navigateTo({
  719. url: '/pages/signin/signin'
  720. })
  721. },
  722. getFreeScore() {
  723. // console.log('getFreeScore()');
  724. window.location = 'https://vwhjk.xet.tech/s/3WYb0z'
  725. },
  726. handleCancel() {
  727. this.showFixInfo = false
  728. this.logout()
  729. // uni.clearStorage()
  730. uni.reLaunch({
  731. url: '/pages/user/signin'
  732. })
  733. },
  734. handleConfirm() {
  735. uni.navigateTo({
  736. url: '/pages/user/userinfo?isNewUser=true'
  737. })
  738. },
  739. getPlan() {
  740. let that = this;
  741. this.$http('conf.getGroupConf', {
  742. group: 'system.plan'
  743. }).then(res => {
  744. if (res.code == 0) {
  745. this.plan = res.data;
  746. if (res.data.is_ios_pay == 1 && that.checkTimeLimit()) {
  747. // ios可以付钱
  748. that.show_ios_pay = true
  749. }
  750. // uni.setNavigationBarTitle({
  751. // title: this.appInfo.site_name
  752. // });
  753. }
  754. });
  755. },
  756. getlogin() {
  757. // console.log(2222);
  758. uni.navigateTo({
  759. url: '/pages/user/signin'
  760. });
  761. uni.setStorageSync('route', '/pages/user/user');
  762. },
  763. systemwechat() {
  764. this.$http('conf.getGroupConf', {
  765. group: 'system.wechat'
  766. }).then(res => {
  767. if (res.code == 0) {
  768. this.qrcode = res.data.qrcode_path
  769. const focuson = uni.getStorageSync('focuson');
  770. // console.log(focuson);
  771. if (!focuson) {
  772. if (this.qrcode) {
  773. if (this.isLogin && this.appInfo.is_show_logged_qrcode == 1) {
  774. this.showconcern = true
  775. }
  776. }
  777. }
  778. }
  779. })
  780. },
  781. concernclose() {
  782. this.showconcern = false
  783. },
  784. copyText(text) {
  785. uni.setClipboardData({
  786. data: text,
  787. success: function() {
  788. // console.log('success');
  789. uni.showToast({
  790. title: '用户编号复制成功'
  791. });
  792. }
  793. });
  794. },
  795. modify() {
  796. uni.navigateTo({
  797. url: '/pages/user/userinfo'
  798. })
  799. },
  800. clickuimage(e) {
  801. uni.previewImage({
  802. urls: [e]
  803. })
  804. },
  805. // systemwechat(){
  806. // this.$http('conf.getGroupConf', { group: 'system.wechat' }).then(res => {
  807. // if (res.code == 0) {
  808. // if(res.data.qrcode){
  809. // this.qrcode = res.data.qrcode_path
  810. // }
  811. // }
  812. // })
  813. // },
  814. getCommissionSetting() {
  815. this.$http('conf.getGroupConf', {
  816. group: 'system.commission'
  817. }).then(res => {
  818. if (res.code == 0) {
  819. uni.setNavigationBarTitle({
  820. title: this.appInfo.site_name
  821. });
  822. // this.is_aipainting = this.appInfo.is_aipainting
  823. if (res.data.is_commission == 1) {
  824. let obj = {
  825. title: res.data.commission_alias ? res.data
  826. .commission_alias : '分销中心',
  827. icon: 'grid-fill',
  828. path: 'address-list',
  829. url: '/pages/user/commission/index',
  830. color: '#ffca28'
  831. };
  832. // this.userList.splice(0, 0, obj);
  833. this.fenxiaoInfo = obj
  834. }
  835. if (this.appInfo.is_aipainting && this.appInfo.is_aipainting == 1) {
  836. let draw = {
  837. title: '绘画记录',
  838. icon: 'edit-pen-fill',
  839. path: 'address-list',
  840. url: '/pages/user/draw/draw',
  841. color: '#3c9cff'
  842. };
  843. this.userList.splice(1, 0, draw);
  844. this.is_aipainting = '1'
  845. } else {
  846. this.is_aipainting = '2'
  847. }
  848. }
  849. });
  850. },
  851. getroute() {
  852. console.log('getroute()');
  853. if (!this.isLogin) {
  854. uni.setStorageSync('route', '/pages/user/user');
  855. }
  856. },
  857. exchange() {
  858. if (!this.isLogin) {
  859. uni.navigateTo({
  860. url: '/pages/user/signin'
  861. });
  862. uni.setStorageSync('route', '/pages/user/user');
  863. return;
  864. }
  865. uni.showLoading({
  866. title: '卡密兑换中...'
  867. });
  868. this.$http('member.kami', {
  869. code: this.carmi
  870. }).then(res => {
  871. if (res.code == 0) {
  872. uni.showToast({
  873. title: '兑换成功'
  874. });
  875. this.getUserData();
  876. this.showcarmi = false;
  877. }
  878. });
  879. },
  880. getuserinfo() {
  881. uni.navigateTo({
  882. url: '/pages/user/userinfo'
  883. });
  884. },
  885. getPersonalRealNameInfo() {
  886. this.$http('vertify.getPersonalRealNameInfo').then(res => {
  887. if (res.code == 0) {
  888. this.showrealname = false;
  889. } else {
  890. this.showrealname = true;
  891. }
  892. });
  893. },
  894. jump(e) {
  895. console.log(e);
  896. uni.navigateTo({
  897. url: e
  898. })
  899. },
  900. workermy() {
  901. this.$http('worker.my').then(res => {
  902. if (res.code == 0) {
  903. if (res.data.name) {
  904. this.showworkermy = true;
  905. } else {
  906. this.showworkermy = false;
  907. }
  908. } else {
  909. this.showworkermy = false;
  910. }
  911. });
  912. },
  913. getfeedback() {
  914. uni.showModal({
  915. content: '请联系客服,提供您的宝贵意见',
  916. title: '提示',
  917. confirmText: '联系客服',
  918. confirmColor: '#00ca88',
  919. success(res) {
  920. if (res.confirm) {
  921. uni.navigateTo({
  922. url: '/pages/user/public/kefu'
  923. });
  924. }
  925. }
  926. });
  927. },
  928. getqrcode() {
  929. // console.log(this.qrcode);
  930. uni.previewImage({
  931. urls: [this.qrcode]
  932. })
  933. },
  934. showInterstitial() {
  935. time2 = setInterval(
  936. function() {
  937. interstitialAd.show().catch(err => {
  938. console.error(err);
  939. });
  940. },
  941. this.appInfo.gap ? this.appInfo.gap * 1000 : 12000
  942. );
  943. },
  944. toFenxiao() {
  945. uni.navigateTo({
  946. url: this.fenxiaoInfo.url
  947. })
  948. }
  949. }
  950. };
  951. </script>
  952. <style lang="scss" scoped>
  953. @import url('./user.scss');
  954. .nick {
  955. color: #333;
  956. }
  957. .topBox {
  958. padding: 0 30rpx;
  959. .topCard {
  960. background: #fff;
  961. padding-bottom: 30rpx;
  962. border-radius: 30rpx;
  963. height: 300rpx;
  964. display: flex;
  965. align-items: flex-end;
  966. .userBox {
  967. position: absolute;
  968. display: flex;
  969. left: 50%;
  970. transform: translateX(-50%);
  971. top: -15%;
  972. width: 100%;
  973. height: 50%;
  974. }
  975. }
  976. }
  977. page {
  978. background: #f2f2f2;
  979. }
  980. .btn-hover {
  981. background: #f2f2f2 !important;
  982. }
  983. .user {
  984. // height: 1800rpx;
  985. padding-bottom: 200rpx;
  986. background: url('@/static/images/BG.png') no-repeat;
  987. background-size: 100% 50%;
  988. background-color: #E9F1F7;
  989. .user-wrap {
  990. display: flex;
  991. justify-content: center;
  992. align-items: center;
  993. height: 56vw;
  994. padding: 30rpx;
  995. z-index: 9;
  996. // border-radius: 0 0 20% 20%;
  997. // background: url('https://mp-ea41a5d2-ea75-4ec6-aa57-ac841611f485.cdn.bspapp.com/cloudstorage/796de0fd-c730-40b8-9177-1250bb76d0a3.jpg') no-repeat;
  998. background-size: cover;
  999. .setting {
  1000. color: #fff;
  1001. position: absolute;
  1002. top: 60rpx;
  1003. left: 60rpx;
  1004. font-size: 50rpx;
  1005. }
  1006. .info {
  1007. position: absolute;
  1008. text-align: center;
  1009. // background: red;
  1010. .avatar {
  1011. width: 150rpx;
  1012. height: 150rpx;
  1013. border-radius: 50%;
  1014. border: 4px solid #fff;
  1015. }
  1016. .nickname {
  1017. color: #333;
  1018. font-size: 30rpx;
  1019. margin-top: 20rpx;
  1020. font-weight: bold;
  1021. display: flex;
  1022. }
  1023. }
  1024. }
  1025. .order-status {
  1026. padding: 0 30rpx;
  1027. margin-top: -8vw;
  1028. .status-wrap {
  1029. border-radius: 25rpx;
  1030. overflow: hidden;
  1031. .status-list {
  1032. display: flex;
  1033. justify-content: space-evenly;
  1034. align-items: center;
  1035. background: #fff;
  1036. padding-top: 30rpx;
  1037. padding-bottom: 30rpx;
  1038. .status-item {
  1039. flex: 1;
  1040. display: flex;
  1041. flex-direction: column;
  1042. justify-content: center;
  1043. align-items: center;
  1044. .item-icon {
  1045. line-height: 1;
  1046. font-size: 65rpx;
  1047. color: #bbb;
  1048. }
  1049. .item-text {
  1050. font-size: 28rpx;
  1051. color: #666;
  1052. margin-top: 5rpx;
  1053. }
  1054. }
  1055. }
  1056. }
  1057. }
  1058. .com-item {
  1059. padding-left: 30rpx;
  1060. padding-right: 30rpx;
  1061. margin-top: 20rpx;
  1062. .com-wrap {
  1063. border-radius: 25rpx;
  1064. overflow: hidden;
  1065. }
  1066. }
  1067. .cell_charge {
  1068. background: #000000d4 !important;
  1069. height: 112rpx !important;
  1070. width: 100% !important;
  1071. }
  1072. .cell {
  1073. height: 110rpx;
  1074. padding-left: 30rpx;
  1075. padding-right: 30rpx;
  1076. display: flex;
  1077. justify-content: space-between;
  1078. align-items: center;
  1079. background: #fff;
  1080. border-bottom: 1px solid #f8f8f8;
  1081. &:active {
  1082. background: #f2f2f2;
  1083. }
  1084. &:last-child {
  1085. border-bottom: none !important;
  1086. }
  1087. .cell-left {
  1088. display: flex;
  1089. align-items: center;
  1090. .cell-icon {
  1091. width: 50rpx;
  1092. height: 50rpx;
  1093. }
  1094. .cell-text {
  1095. color: #666;
  1096. font-size: 32rpx;
  1097. margin-left: 20rpx;
  1098. // font-size: 30rpx;
  1099. }
  1100. }
  1101. .iconfont {
  1102. font-size: 40rpx;
  1103. color: #999;
  1104. }
  1105. }
  1106. }
  1107. .b-btn {
  1108. // position: absolute;
  1109. // right: 20upx;
  1110. // top: 24upx;
  1111. width: 132upx;
  1112. height: 50upx;
  1113. text-align: center;
  1114. line-height: 50upx;
  1115. font-size: 24upx;
  1116. color: #36343c;
  1117. border-radius: 30px;
  1118. background: #ffd465;
  1119. z-index: 1;
  1120. }
  1121. .carmimodal {
  1122. width: 600rpx;
  1123. border-radius: 20rpx;
  1124. position: relative;
  1125. padding-bottom: 48rpx;
  1126. .carmiclose {
  1127. position: absolute;
  1128. right: 15rpx;
  1129. top: 15rpx;
  1130. }
  1131. .carmititle {
  1132. background: linear-gradient(to right, $tc, $tc2);
  1133. color: #fff;
  1134. height: 120rpx;
  1135. line-height: 120rpx;
  1136. font-size: 32rpx;
  1137. font-weight: bold;
  1138. text-align: center;
  1139. border-radius: 20rpx 20rpx 0 0;
  1140. margin-bottom: 60rpx;
  1141. }
  1142. .carmiinput {
  1143. margin: 30rpx;
  1144. }
  1145. .carmiexchange {
  1146. margin: 80rpx 30rpx 90rpx 30rpx;
  1147. background: linear-gradient(to right, $tc, $tc2);
  1148. color: #fff;
  1149. border-radius: 80rpx;
  1150. height: 80rpx;
  1151. line-height: 80rpx;
  1152. text-align: center;
  1153. }
  1154. .kf_qrcode {
  1155. // margin-left: 200rpx;
  1156. margin-bottom: 30rpx;
  1157. }
  1158. }
  1159. /* 顶部背景图 start */
  1160. .top-backgroup {
  1161. height: 450rpx;
  1162. z-index: -1;
  1163. .backgroud-image {
  1164. width: 100%;
  1165. height: 450rpx;
  1166. // z-index: -1;
  1167. }
  1168. }
  1169. /* 顶部背景图 end */
  1170. .mine {
  1171. max-height: 100vh;
  1172. }
  1173. /* 底部安全边距 start*/
  1174. .tn-tabbar-height {
  1175. min-height: 120rpx;
  1176. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  1177. height: calc(140rpx + constant(safe-area-inset-bottom));
  1178. }
  1179. .tn-color-cat {
  1180. color: #1D2541;
  1181. }
  1182. .tn-bg-cat {
  1183. background-color: #1D2541;
  1184. }
  1185. /* 自定义导航栏内容 start */
  1186. .custom-nav {
  1187. height: 100%;
  1188. &__back {
  1189. margin: auto 5rpx;
  1190. font-size: 40rpx;
  1191. margin-right: 10rpx;
  1192. flex-basis: 5%;
  1193. width: 100rpx;
  1194. position: absolute;
  1195. }
  1196. }
  1197. /* 自定义导航栏内容 end */
  1198. /* 顶部背景图 end */
  1199. /* 用户头像 start */
  1200. .logo-image {
  1201. width: 110rpx;
  1202. height: 110rpx;
  1203. position: relative;
  1204. overflow: hidden;
  1205. border-radius: 50%;
  1206. }
  1207. .logo-pic {
  1208. background-size: cover;
  1209. background-repeat: no-repeat;
  1210. // background-attachment:fixed;
  1211. background-position: top;
  1212. border: 8rpx solid rgba(255, 255, 255, 0.05);
  1213. box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
  1214. border-radius: 50%;
  1215. overflow: hidden;
  1216. // background-color: #FFFFFF;
  1217. }
  1218. /* 页面 start*/
  1219. .about-shadow {
  1220. border-radius: 15rpx;
  1221. box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
  1222. }
  1223. .about {
  1224. &__wrap {
  1225. position: relative;
  1226. z-index: 1;
  1227. margin: 20rpx 30rpx;
  1228. }
  1229. }
  1230. /* 页面 end*/
  1231. /* 图标容器15 start */
  1232. .icon15 {
  1233. &__item {
  1234. width: 30%;
  1235. background-color: #FFFFFF;
  1236. border-radius: 10rpx;
  1237. padding: 30rpx;
  1238. margin: 20rpx 10rpx;
  1239. transform: scale(1);
  1240. transition: transform 0.3s linear;
  1241. transform-origin: center center;
  1242. &--icon {
  1243. width: 100rpx;
  1244. height: 100rpx;
  1245. font-size: 60rpx;
  1246. border-radius: 50%;
  1247. margin-bottom: 18rpx;
  1248. position: relative;
  1249. z-index: 1;
  1250. &::after {
  1251. content: " ";
  1252. position: absolute;
  1253. z-index: -1;
  1254. width: 100%;
  1255. height: 100%;
  1256. left: 0;
  1257. bottom: 0;
  1258. border-radius: inherit;
  1259. opacity: 1;
  1260. transform: scale(1, 1);
  1261. background-size: 100% 100%;
  1262. }
  1263. }
  1264. }
  1265. }
  1266. /* 图标容器12 start */
  1267. .tn-three {
  1268. position: absolute;
  1269. top: 50%;
  1270. right: 50%;
  1271. bottom: 50%;
  1272. left: 50%;
  1273. transform: translate(-38rpx, -16rpx) rotateX(30deg) rotateY(20deg) rotateZ(-30deg);
  1274. text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
  1275. }
  1276. .icon20 {
  1277. &__item {
  1278. width: 30%;
  1279. background-color: #FFFFFF;
  1280. border-radius: 10rpx;
  1281. padding: 30rpx;
  1282. margin: 20rpx 10rpx;
  1283. transform: scale(1);
  1284. transition: transform 0.3s linear;
  1285. transform-origin: center center;
  1286. &--icon {
  1287. width: 100rpx;
  1288. height: 100rpx;
  1289. font-size: 60rpx;
  1290. border-radius: 50%;
  1291. margin-bottom: 18rpx;
  1292. position: relative;
  1293. z-index: 1;
  1294. &::after {
  1295. content: " ";
  1296. position: absolute;
  1297. z-index: -1;
  1298. width: 100%;
  1299. height: 100%;
  1300. left: 0;
  1301. bottom: 0;
  1302. border-radius: inherit;
  1303. opacity: 1;
  1304. transform: scale(1, 1);
  1305. background-size: 100% 100%;
  1306. background-image: url(https://tnuiimage.tnkjapp.com/cool_bg_image/icon_bg.png);
  1307. }
  1308. }
  1309. }
  1310. }
  1311. .button-vip {
  1312. width: 100%;
  1313. height: 150rpx;
  1314. border-radius: 15rpx;
  1315. position: relative;
  1316. z-index: 1;
  1317. &::after {
  1318. content: " ";
  1319. position: absolute;
  1320. z-index: -1;
  1321. width: 100%;
  1322. height: 100%;
  1323. left: 0;
  1324. bottom: 0;
  1325. border-radius: inherit;
  1326. opacity: 1;
  1327. transform: scale(1, 1);
  1328. background-size: 100% 100%;
  1329. background-image: url(https://tnuiimage.tnkjapp.com/cool_bg_image/icon_bg.png);
  1330. }
  1331. }
  1332. /* 图标容器12 start */
  1333. .icon12 {
  1334. &__item {
  1335. width: 30%;
  1336. background-color: #FFFFFF;
  1337. border-radius: 10rpx;
  1338. padding: 30rpx;
  1339. margin: 20rpx 10rpx;
  1340. transform: scale(1);
  1341. transition: transform 0.3s linear;
  1342. transform-origin: center center;
  1343. &--icon {
  1344. width: 15rpx;
  1345. height: 15rpx;
  1346. font-size: 50rpx;
  1347. border-radius: 50%;
  1348. margin-bottom: 38rpx;
  1349. position: relative;
  1350. z-index: 1;
  1351. &::after {
  1352. content: " ";
  1353. position: absolute;
  1354. z-index: -1;
  1355. width: 100%;
  1356. height: 100%;
  1357. left: 0;
  1358. bottom: 0;
  1359. border-radius: inherit;
  1360. opacity: 1;
  1361. transform: scale(1, 1);
  1362. background-size: 100% 100%;
  1363. }
  1364. }
  1365. }
  1366. }
  1367. /* 图标容器1 start */
  1368. .icon1 {
  1369. &__item {
  1370. // width: 30%;
  1371. background-color: #FFFFFF;
  1372. border-radius: 10rpx;
  1373. padding: 30rpx;
  1374. margin: 20rpx 10rpx;
  1375. transform: scale(1);
  1376. transition: transform 0.3s linear;
  1377. transform-origin: center center;
  1378. &--icon {
  1379. width: 40rpx;
  1380. height: 40rpx;
  1381. font-size: 40rpx;
  1382. border-radius: 50%;
  1383. position: relative;
  1384. z-index: 1;
  1385. &::after {
  1386. content: " ";
  1387. position: absolute;
  1388. z-index: -1;
  1389. width: 100%;
  1390. height: 100%;
  1391. left: 0;
  1392. bottom: 0;
  1393. border-radius: inherit;
  1394. opacity: 1;
  1395. transform: scale(1, 1);
  1396. background-size: 100% 100%;
  1397. background-image: url(https://tnuiimage.tnkjapp.com/cool_bg_image/icon_bg.png);
  1398. }
  1399. }
  1400. }
  1401. }
  1402. .avatar {
  1403. width: 110rpx;
  1404. height: 110rpx;
  1405. border-radius: 50%;
  1406. border: 3px solid #fff;
  1407. }
  1408. .iconmore1 {
  1409. font-size: 24rpx;
  1410. }
  1411. .select {
  1412. font-weight: bold;
  1413. font-size: 32rpx;
  1414. margin: 30rpx;
  1415. }
  1416. .expand {
  1417. // margin: 30rpx;
  1418. // position: relative;
  1419. padding: 30rpx;
  1420. // background: linear-gradient(to right, #00ca88, #00BCD4);
  1421. .surplus {
  1422. color: #fff;
  1423. font-size: 26rpx;
  1424. background: #207CF7;
  1425. border-radius: 50rpx;
  1426. padding: 8rpx 12rpx;
  1427. margin-right: 20rpx;
  1428. margin-bottom: 15rpx;
  1429. .item {
  1430. margin-left: 10rpx;
  1431. }
  1432. }
  1433. }
  1434. </style>