index.vue 10 KB

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