index.vue 11 KB

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