index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
  3. <image class="bg_img" src="https://i.ringzle.com/file/20240129/3931d06eaa3346c9955aa7e5e535a95b.png"
  4. mode="widthFix"></image>
  5. <view class="account" :style="{'margin-top':(mt-44)+'px'}">
  6. <view class="a_left">
  7. <view class="al_avatar" @tap="toLogin">
  8. <image :src="avatar"></image>
  9. </view>
  10. <view class="al_name_edit">
  11. <text>{{name}}</text>
  12. <view class="ane_edit" @tap="toTurn('/pagesHouse/Mine/PersonalEditing/PersonalEditing',true)">
  13. <text>编辑</text>
  14. <image src="https://i.ringzle.com/file/20240129/e824a765b6c24ac6aafbb49b12c23aa9.png"></image>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="orders box">
  20. <view class="o_title">
  21. <text>我的订单</text>
  22. <view class="ot_all" @tap="toTurn('/pagesHouse/Mine/ordersList/index?type=',true)">
  23. <!-- <view class="ot_all" @tap="toToast"> -->
  24. <text>全部订单</text>
  25. <!-- <image src="../../static/index/steamerTicket/icon_yjt.png"></image> -->
  26. </view>
  27. </view>
  28. <view class="o_menus">
  29. <view v-for="(item,index) in orderMenus" :key="index"
  30. @tap="toTurn('/pagesMy/order/index?type='+item.type,true)">
  31. <!-- <view v-for="(item,index) in orderMenus" :key="index" @tap="toToast"> -->
  32. <image :src="item.img"></image>
  33. <text>{{item.text}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="wallet box ">
  38. <view class="w_left">
  39. <view class="wl_top">
  40. <image src="https://i.ringzle.com/file/20240225/337c4c20cbc94bdcb4f17b6058a9d39f.png"></image>
  41. <text>钱包余额</text>
  42. </view>
  43. <view class="wl_price"><span>¥</span><text>{{price.toFixed(2)}}</text></view>
  44. </view>
  45. <view class="w_right" @tap="toTurn('/pagesMy/wallet/index',true)">去结算</view>
  46. </view>
  47. <view class="one" @click="nav">
  48. <view class="">
  49. 营业执照
  50. </view>
  51. <view class="">
  52. <u-icon name="arrow-right"></u-icon>
  53. </view>
  54. </view>
  55. <view class="" style="padding: 24rpx; background-color: #fff; margin: 0 20rpx ; border-radius: 16rpx;">
  56. <view class="one-input">
  57. <u-row customStyle="margin-bottom: 10px">
  58. <u-col span="7.5">
  59. <view class="demo-layout bg-purple-light">
  60. <view class="one2">
  61. <!-- {{myList.islandName}} -->
  62. 黄沙村渔家乐
  63. </view>
  64. <view class="two2">
  65. <!-- {{myList.areaDetail}} -->
  66. 舟山市嵊泗县嵊山镇前卫村后岗
  67. </view>
  68. </view>
  69. </u-col>
  70. <u-col span="4" @click="navigation">
  71. <view class="demo-layout bg-purple">
  72. <!-- <view class="one1">
  73. <image src="https://i.ringzle.com/file/20240129/4496f5e1754649ed8a78a2ca9de26e4c.png"
  74. mode="aspectFit"></image>
  75. </view> -->
  76. <!-- <view class="two1">
  77. <text> 地图/周边 ></text>
  78. </view> -->
  79. </view>
  80. </u-col>
  81. </u-row>
  82. </view>
  83. </view>
  84. <Tabbares :tabbarid="2"></Tabbares>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. h: uni.getSystemInfoSync().windowHeight,
  92. w: uni.getSystemInfoSync().windowWidth,
  93. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  94. avatar: 'https://i.ringzle.com/file/20240129/5b4a757190334fa7ae8616620c770bc4.png',
  95. name: '游客',
  96. orderMenus: [ //type:1 待付款、2 待使用、3 待评价、4 退款/售后
  97. {
  98. type: 1,
  99. img: 'https://i.ringzle.com/file/20240129/818fa751cf8d4772ac1cf818522a7f54.png',
  100. text: '待付款'
  101. },
  102. {
  103. type: 2,
  104. img: 'https://i.ringzle.com/file/20240129/c4ef5f92f5274dbe9e281ad509571fc3.png',
  105. text: '待使用'
  106. },
  107. {
  108. type: 3,
  109. img: 'https://i.ringzle.com/file/20240129/2a73e5e9afcf4d759b31e5332a21d012.png',
  110. text: '已完成'
  111. },
  112. {
  113. type: 4,
  114. img: 'https://i.ringzle.com/file/20240129/f3fd049aaffb4768aa115572851a2bb1.png',
  115. text: '退款/售后'
  116. }
  117. ],
  118. price: 0, //钱包余额
  119. }
  120. },
  121. methods: {
  122. toTurn(url, login) { //login 是否需要验证登录跳转
  123. if (!url) return this.$showToast('正在开发中...')
  124. uni.navigateTo({
  125. url
  126. });
  127. // if (login) {
  128. // this.$login().then(res => {
  129. // if (res === 0) {
  130. // uni.navigateTo({
  131. // url
  132. // });
  133. // } else this.$refs['phoneNumber'].show = true;
  134. // })
  135. // } else {
  136. // uni.navigateTo({
  137. // url
  138. // });
  139. // }
  140. },
  141. }
  142. }
  143. </script>
  144. <style scoped lang="less">
  145. .page {
  146. background: #F5F8FA;
  147. padding-bottom: 256rpx;
  148. box-sizing: border-box;
  149. .bg_img {
  150. width: 100%;
  151. position: absolute;
  152. top: 0;
  153. left: 0;
  154. z-index: 0;
  155. }
  156. .account {
  157. width: 100%;
  158. display: flex;
  159. justify-content: space-between;
  160. .a_left {
  161. padding: 10rpx 0 0 40rpx;
  162. display: flex;
  163. z-index: 1;
  164. .al_avatar {
  165. width: 120rpx;
  166. height: 120rpx;
  167. border-radius: 50%;
  168. background: #FFFFFF;
  169. padding: 4rpx;
  170. box-sizing: border-box;
  171. image {
  172. width: 100%;
  173. height: 100%;
  174. border-radius: 50%;
  175. }
  176. }
  177. .al_name_edit {
  178. margin-left: 30rpx;
  179. display: flex;
  180. flex-direction: column;
  181. &>text {
  182. font-size: 36rpx;
  183. font-family: PingFang-SC, PingFang-SC;
  184. font-weight: bold;
  185. color: #111111;
  186. line-height: 50rpx;
  187. padding-top: 4rpx;
  188. }
  189. .ane_edit {
  190. width: 120rpx;
  191. height: 54rpx;
  192. border-radius: 27rpx;
  193. border: 1rpx solid #D3D7DE;
  194. margin-top: 10rpx;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. &>text {
  199. font-size: 26rpx;
  200. font-family: PingFangSC, PingFang SC;
  201. font-weight: 400;
  202. color: #5A697C;
  203. line-height: 37rpx;
  204. }
  205. &>image {
  206. margin-left: 8rpx;
  207. width: 24rpx;
  208. height: 24rpx;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. .one {
  215. // padding: ;
  216. margin: 0 40rpx;
  217. height: 120rpx;
  218. line-height: 120rpx;
  219. display: flex;
  220. // border-bottom: 1rpx solid #EFEFEF;
  221. justify-content: space-between;
  222. align-items: center;
  223. font-size: 36rpx;
  224. color: #111111;
  225. font-weight: bold;
  226. }
  227. .box {
  228. width: calc(100% - 40rpx);
  229. margin: 0 20rpx;
  230. box-sizing: border-box;
  231. background: #FFFFFF;
  232. border-radius: 20rpx;
  233. position: relative;
  234. }
  235. .bg-img {
  236. background-color: #F0F8F6 !important;
  237. }
  238. .one-input {
  239. box-sizing: border-box;
  240. // width: 100%;
  241. height: 128rpx;
  242. background: #F0F8F6;
  243. // line-height: 128rpx;
  244. border-radius: 16rpx;
  245. padding: 0 20rpx;
  246. margin: 0 20rpx;
  247. .bg-purple-light {
  248. // display: flex;
  249. .one2 {
  250. // height: 36rpx !important;
  251. font-size: 26rpx;
  252. color: #000000;
  253. margin: 12rpx 6rpx;
  254. font-weight: bold;
  255. }
  256. .two2 {
  257. font-size: 24rpx;
  258. color: #666666;
  259. // height: 36rpx !important;
  260. margin: 6rpx 6rpx;
  261. font-weight: Regular;
  262. }
  263. }
  264. .bg-purple {
  265. // align-items: center;
  266. // display: flex;
  267. text-align: center;
  268. // text-align: right;
  269. font-size: 24rpx;
  270. color: #808080;
  271. background-image: url('https://i.ringzle.com/file/20240129/dcf2338517e344c697ef7cd853ce2234.png');
  272. background-repeat: no-repeat;
  273. background-size: 100% 100%;
  274. width: 240rpx;
  275. height: 128rpx;
  276. .one1 {
  277. margin: auto 110rpx;
  278. padding-top: 30rpx;
  279. width: 46rpx;
  280. height: 46rpx;
  281. image {
  282. width: 100%;
  283. height: 100%;
  284. // width: 46rpx;
  285. // height: 46rpx;
  286. }
  287. }
  288. .two1 {
  289. margin: 4rpx 12rpx;
  290. font-size: 22rpx;
  291. color: #007A69;
  292. text {
  293. margin-left: 30rpx;
  294. }
  295. }
  296. }
  297. }
  298. .wallet {
  299. margin-top: 32rpx;
  300. padding: 34rpx 40rpx 30rpx 31rpx;
  301. // background: url(https://i.ringzle.com/file/20240129/062264cb5e224845b86e4567c2ec37a6.png) no-repeat;
  302. // background-size: 100% 100%;
  303. background-color: #fff;
  304. display: flex;
  305. justify-content: space-between;
  306. .w_left {
  307. .wl_top {
  308. display: flex;
  309. align-items: center;
  310. image {
  311. width: 30rpx;
  312. height: 30rpx;
  313. }
  314. text {
  315. margin-left: 12rpx;
  316. font-size: 26rpx;
  317. font-family: PingFangSC, PingFang SC;
  318. font-weight: 400;
  319. color: #111;
  320. line-height: 37rpx;
  321. }
  322. }
  323. .wl_price {
  324. margin-top: 17rpx;
  325. span {
  326. font-size: 36rpx;
  327. font-family: DINAlternate, DINAlternate;
  328. font-weight: bold;
  329. color: #111;
  330. line-height: 42rpx;
  331. }
  332. text {
  333. font-size: 48rpx;
  334. font-family: DINAlternate, DINAlternate;
  335. font-weight: bold;
  336. color: #111;
  337. line-height: 56rpx;
  338. margin-left: 10rpx;
  339. }
  340. }
  341. }
  342. .w_right {
  343. margin-top: 16rpx;
  344. width: 156rpx;
  345. height: 60rpx;
  346. // background: linear-gradient(270deg, #D6F6ED 0%, #FFFFFF 100%);
  347. background-color: #007A69;
  348. border-radius: 36rpx;
  349. line-height: 60rpx;
  350. text-align: center;
  351. font-size: 26rpx;
  352. font-family: PingFang-SC, PingFang-SC;
  353. font-weight: bold;
  354. color: #FFFFFF;
  355. }
  356. .w_right-image {
  357. margin-top: 16rpx;
  358. width: 156rpx;
  359. // height: 60rpx;
  360. // background: linear-gradient(270deg, #D6F6ED 0%, #FFFFFF 100%);
  361. background-color: #007A69;
  362. background-image: url('https://i.ringzle.com/file/20240225/b918fbd7e3424908a10497c4e4f71fda.png');
  363. background-repeat: no-repeat;
  364. background-size: 100% 100%;
  365. border-radius: 36rpx;
  366. // line-height: 60rpx;
  367. text-align: center;
  368. font-size: 26rpx;
  369. font-family: PingFang-SC, PingFang-SC;
  370. font-weight: bold;
  371. color: #FFFFFF;
  372. }
  373. }
  374. .orders {
  375. margin-top: 20rpx;
  376. padding: 40rpx 0;
  377. .o_title {
  378. width: 100%;
  379. padding: 0 20rpx;
  380. box-sizing: border-box;
  381. display: flex;
  382. align-items: center;
  383. justify-content: space-between;
  384. &>text {
  385. font-size: 36rpx;
  386. font-family: PingFang-SC, PingFang-SC;
  387. font-weight: bold;
  388. color: #1C1E41;
  389. line-height: 36rpx;
  390. }
  391. .ot_all {
  392. display: flex;
  393. align-items: center;
  394. &>text {
  395. font-size: 28rpx;
  396. font-family: PingFangSC, PingFang SC;
  397. font-weight: 400;
  398. color: #808080;
  399. line-height: 28rpx;
  400. }
  401. &>image {
  402. margin-left: 8rpx;
  403. width: 24rpx;
  404. height: 24rpx;
  405. }
  406. }
  407. }
  408. .o_menus {
  409. margin-top: 44rpx;
  410. display: flex;
  411. align-items: center;
  412. justify-content: space-around;
  413. &>view {
  414. width: 25%;
  415. display: flex;
  416. flex-direction: column;
  417. align-items: center;
  418. image {
  419. width: 54rpx;
  420. height: 54rpx;
  421. }
  422. text {
  423. font-size: 26rpx;
  424. font-family: PingFangSC, PingFang SC;
  425. font-weight: 400;
  426. color: #111111;
  427. line-height: 26rpx;
  428. margin-top: 24rpx;
  429. }
  430. }
  431. }
  432. }
  433. }
  434. </style>