index.vue 10 KB

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