index.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <view class="">
  3. <u-navbar :is-back="false" title="联兑通商户版"></u-navbar>
  4. <view class="margin-30">
  5. <view class="title ">
  6. <view class="icon">
  7. <image src="@/static/icon/dianpu.png" mode=""></image>
  8. </view>
  9. <view class="center margin-left-10">
  10. <text>店铺名称</text>
  11. </view>
  12. </view>
  13. <view class="cu-list grid col-3 no-border top-menu" >
  14. <view class="cu-item" @click="$jump(item.path)" v-for="(item,index) in menuList" :key="index">
  15. <view class="grid-icon margin-top-20" >
  16. <image style="width: 66rpx;height: 66rpx;" :src="item.icon"/>
  17. </view>
  18. <text style="color: #fff;font-size: 26rpx;" >{{item.name}}</text>
  19. </view>
  20. </view>
  21. <view class="menu-list">
  22. <view @click="$jump('/pages/bill/bill')" class="menu menu1">
  23. <view class="menu-top">
  24. <image src="@/static/icon/bill.png"></image>
  25. <view class="center padding-left-20">
  26. <text class="text-lg">我的账单</text>
  27. </view>
  28. </view>
  29. <view class="menu-bottom">
  30. <view class="">
  31. <text>今日营收</text>
  32. <text>1888.00</text>
  33. </view>
  34. <view class="">
  35. <text>总资产</text>
  36. <text>1888.00</text>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="menu menu2" @click="$jump('/pages/member/member')">
  41. <view class="menu-top">
  42. <image src="@/static/icon/center.png"></image>
  43. <view class="center padding-left-20">
  44. <text class="text-lg">会员中心</text>
  45. </view>
  46. </view>
  47. <view class="menu-bottom">
  48. <view class="">
  49. <text>新增会员</text>
  50. <text>888</text>
  51. </view>
  52. <view class="">
  53. <text>会员总数</text>
  54. <text>18888</text>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="market" >
  60. <text class="title">营销管理</text>
  61. <view class="cu-list grid col-2 no-border margin-top-30" >
  62. <view class="cu-item" @click="$jump(item.path)" v-for="(item,index) in marketList" :key="index">
  63. <view class="center">
  64. <view class="icon" :style="item.background">
  65. <image :src="item.icon" mode=""></image>
  66. </view>
  67. </view>
  68. <text style="color: #222222;font-size: 26rpx;margin-top: 20rpx;" >{{item.name}}</text>
  69. <view class="cu-tag bg-red badge" v-if="item.count>0">{{item.count}}</view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="system">
  74. <text class="title">数字化系统</text>
  75. <view class="cu-list grid col-4 no-border margin-top-30" style="border-radius:20rpx ;">
  76. <view class="cu-item" @click="$jump(item.path)" v-for="(item,index) in systemList" :key="index">
  77. <view class="grid-icon" >
  78. <image mode="heightFix" style="height: 56rpx;" :src="item.icon"/>
  79. </view>
  80. <text style="color: #222222;font-size: 26rpx;" >{{item.name}}</text>
  81. <view class="cu-tag bg-red badge" v-if="item.count>0">{{item.count}}</view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. menuList:[
  93. {
  94. icon:'/static/icon/scan.png',
  95. name:'扫一扫',
  96. path:'/pages/card/card'
  97. },
  98. {
  99. icon:'/static/icon/pay.png',
  100. name:'付款码',
  101. path:'/pages/card/card'
  102. },
  103. {
  104. icon:'/static/icon/card.png',
  105. name:'卡包',
  106. path:'/pages/card/card'
  107. }
  108. ],
  109. marketList:[
  110. {
  111. icon:'/static/icon/publish.png',
  112. name:'发起活动',
  113. background:"background-image:linear-gradient(#FF9549,#FCB07B)",
  114. path:'/pages/publish/publish',
  115. count:0
  116. },
  117. {
  118. icon:'/static/icon/list.png',
  119. name:'活动清单',
  120. background:"background-image:linear-gradient(#5892F7,#67BBF9)",
  121. path:'/pages/activity/activity',
  122. count:99
  123. },
  124. ],
  125. systemList:[
  126. {
  127. icon:'/static/icon/system1.png',
  128. name:'外卖平台',
  129. path:'/pages/mine/card/card'
  130. },
  131. {
  132. icon:'/static/icon/system2.png',
  133. name:'预约系统',
  134. path:'/pages/mine/card/card'
  135. },
  136. {
  137. icon:'/static/icon/system3.png',
  138. name:'ERP系统',
  139. path:'/pages/mine/card/card'
  140. },
  141. {
  142. icon:'/static/icon/system4.png',
  143. name:'线上商城',
  144. path:'/pages/mine/card/card'
  145. },
  146. {
  147. icon:'/static/icon/system5.png',
  148. name:'门店管理',
  149. path:'/pages/mine/card/card'
  150. },
  151. {
  152. icon:'/static/icon/add.png',
  153. name:'添加服务',
  154. path:'/pages/mine/card/card'
  155. },
  156. ]
  157. }
  158. },
  159. onLoad() {
  160. },
  161. methods: {
  162. }
  163. }
  164. </script>
  165. <style lang="scss" scoped>
  166. .cu-list.grid>.cu-item .cu-tag {
  167. right: auto;
  168. left: 54%;
  169. margin-left: 20rpx;
  170. }
  171. .title{
  172. display: flex;
  173. .icon{
  174. background-color: #FFFFFF;
  175. border-radius: 50%;
  176. display: flex;
  177. justify-content: center;
  178. align-items: center;
  179. width: 50rpx;
  180. height: 50rpx;
  181. image{
  182. width: 36rpx;
  183. height: 36rpx;
  184. }
  185. }
  186. text{
  187. font-weight: 800;
  188. font-size: 32rpx;
  189. color: #303030;
  190. }
  191. }
  192. .top-menu{
  193. border-radius: 20rpx;
  194. margin-top: 20rpx;
  195. background-image: linear-gradient(to right,#FBA33D,#FF8D32);
  196. }
  197. .menu-list{
  198. display: flex;
  199. justify-content: space-between;
  200. padding-top: 20rpx;
  201. .menu{
  202. width: 48.8%;
  203. color: #FFFFFF;
  204. display: flex;
  205. flex-direction: column;
  206. align-items: center;
  207. border-radius: 14rpx;
  208. padding:30rpx 20rpx;
  209. .menu-top{
  210. display: flex;
  211. image{
  212. width: 70rpx;
  213. height: 70rpx;
  214. }
  215. }
  216. .menu-bottom{
  217. padding-top: 20rpx;
  218. font-size: 30rpx;
  219. display: flex;
  220. justify-content: space-around;
  221. width: 100%;
  222. view{
  223. display: flex;
  224. flex-direction: column;
  225. text-align: center;
  226. text:first-child{
  227. margin-bottom: 10rpx;
  228. font-size: 26rpx;
  229. color: #E0E2F6;
  230. }
  231. }
  232. }
  233. }
  234. .menu1{
  235. background-color: #5C6186;
  236. }
  237. .menu2{
  238. background-color: #E19D5B;
  239. }
  240. }
  241. .market{
  242. margin-top: 20rpx;
  243. border-radius: 20rpx;
  244. background-color: #FFFFFF;
  245. padding: 30rpx 50rpx 20rpx;
  246. .title{
  247. font-weight: 800;
  248. }
  249. .icon{
  250. width: 120rpx;
  251. height: 120rpx;
  252. display: flex;
  253. justify-content: center;
  254. align-items: center;
  255. border-radius: 20rpx;
  256. padding: 20rpx;
  257. image{
  258. width: 60rpx;
  259. height: 60rpx;
  260. }
  261. }
  262. }
  263. .system{
  264. margin-top: 20rpx;
  265. border-radius: 20rpx;
  266. background-color: #FFFFFF;
  267. padding: 30rpx 50rpx 20rpx;
  268. .title{
  269. font-weight: 800;
  270. }
  271. }
  272. </style>