merchant.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <view class="body">
  3. <view class="background"></view>
  4. <view class="content">
  5. <view class="userInfo">
  6. <view class="userInfo-box">
  7. <view class="userInfo-img">
  8. <image class="portrait" src="../../static/error/missing-face.png"></image>
  9. </view>
  10. <view class="userInfo-xinxi">
  11. <view class="title">
  12. <text>满园春泰州店</text>
  13. </view>
  14. <view class="phone">
  15. <text>19999999999</text>
  16. </view>
  17. </view>
  18. <view class="balance">
  19. 可用余额¥20000
  20. </view>
  21. </view>
  22. </view>
  23. <view class="userInfoList">
  24. <view class="userInfoList-top">
  25. <view class="top">
  26. <image src="../../static/merchant/saoma.png" mode=""></image>
  27. </view>
  28. 扫码核销
  29. </view>
  30. <view class="userInfoList-top">
  31. <view class="top">
  32. <image src="../../static/merchant/erweima.png" mode=""></image>
  33. </view>
  34. 店铺二维码
  35. </view>
  36. <view class="userInfoList-bottom">
  37. <view class="bottom">
  38. <image src="../../static/merchant/money.png" mode=""></image>
  39. </view>
  40. 店铺财务
  41. </view>
  42. <view class="userInfoList-bottom">
  43. <view class="bottom">
  44. <image src="../../static/merchant/order.png" mode=""></image>
  45. </view>
  46. 订单管理
  47. </view>
  48. <view class="userInfoList-bottom" @click="navTo('/pages/merchant/commodity')">
  49. <view class="bottom">
  50. <image src="../../static/merchant/shop.png" mode=""></image>
  51. </view>
  52. 商品管理
  53. </view>
  54. <view class="userInfoList-bottom">
  55. <view class="bottom">
  56. <image src="../../static/merchant/xiadan.png" mode=""></image>
  57. </view>
  58. 在线下单
  59. </view>
  60. <view class="userInfoList-bottom" @click="navTo('/pages/merchant/vipDetail')">
  61. <view class="bottom">
  62. <image src="../../static/merchant/vip.png" mode=""></image>
  63. </view>
  64. 店铺会员
  65. </view>
  66. <view class="userInfoList-bottom">
  67. <view class="bottom">
  68. <image src="../../static/merchant/dianpu.png" mode=""></image>
  69. </view>
  70. 店铺数据
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. };
  81. },
  82. methods:{
  83. //跳转
  84. navTo(url){
  85. uni.navigateTo({
  86. url
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss">
  93. page {
  94. height: 100%;
  95. background-color: #EEEDED;
  96. padding: 0;
  97. margin: 0;
  98. }
  99. .content {
  100. background-color: #EEEDED;
  101. margin: 0 30rpx;
  102. display: flex;
  103. flex-direction: column;
  104. }
  105. .background {
  106. width: 100%;
  107. height: 220rpx;
  108. background-color: #75E5B6;
  109. }
  110. .userInfo {
  111. margin-top: -110rpx;
  112. display: flex;
  113. flex-direction: column;
  114. justify-content: center;
  115. background-color: #F9F9F9;
  116. border-radius: 19rpx;
  117. width: 100%;
  118. height: 300rpx;
  119. .userInfo-box {
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. .userInfo-img {
  124. margin: -65rpx 0 0 0;
  125. width: 130rpx;
  126. height: 130rpx;
  127. border: 5rpx solid #fff;
  128. border-radius: 50%;
  129. image {
  130. width: 100%;
  131. height: 100%;
  132. }
  133. }
  134. .userInfo-xinxi {
  135. .title {
  136. margin: 20rpx 0;
  137. font-size: 32rpx;
  138. font-family: PingFang SC;
  139. font-weight: bold;
  140. color: #333333;
  141. line-height: 21rpx;
  142. }
  143. .phone {
  144. font-size: 28rpx;
  145. font-family: PingFang SC;
  146. font-weight: 500;
  147. color: #666666;
  148. line-height: 21rpx;
  149. margin-bottom: 40rpx;
  150. }
  151. }
  152. .balance {
  153. text-align: center;
  154. width: 500rpx;
  155. height: 60rpx;
  156. background: #52C696;
  157. border-radius: 30rpx;
  158. font-size: 28rpx;
  159. font-family: PingFang SC;
  160. font-weight: 500;
  161. color: #FFFFFF;
  162. line-height: 60rpx;
  163. }
  164. }
  165. }
  166. .userInfoList {
  167. display: flex;
  168. flex-wrap:wrap;
  169. justify-content: space-between;
  170. .userInfoList-top {
  171. position: relative;
  172. margin: 15rpx 0 ;
  173. display: flex;
  174. justify-content: center;
  175. align-items: center;
  176. width: 340rpx;
  177. height: 100rpx;
  178. background: #FFFFFF;
  179. border-radius: 20rpx;
  180. font-size: 30rpx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. color: #4D4D4D;
  184. line-height: 21rpx;
  185. .top {
  186. position: absolute;
  187. margin-left: -230rpx;
  188. width: 50rpx;
  189. height: 50rpx;
  190. image {
  191. width: 100%;
  192. height: 100%;
  193. }
  194. }
  195. }
  196. .userInfoList-bottom{
  197. margin-bottom: 15rpx;
  198. width: 340rpx;
  199. height: 250rpx;
  200. background: #F9F9F9;
  201. border-radius: 20rpx;
  202. display: flex;
  203. flex-direction: column;
  204. justify-content: center;
  205. align-items: center;
  206. .bottom{
  207. margin-bottom: 20rpx;
  208. width: 68rpx;
  209. height: 68rpx;
  210. image{
  211. width: 100%;
  212. height: 100%;
  213. }
  214. }
  215. }
  216. }
  217. </style>