index.vue 11 KB

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