full.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <template>
  2. <view class="service">
  3. <view class="top"></view>
  4. <view class="head">
  5. <span class="cuIcon-back" @click="back"></span>
  6. <view class="case">
  7. 全部服务
  8. </view>
  9. </view>
  10. <view class="function">
  11. <view class="title">
  12. 店铺经营
  13. </view>
  14. <view class="fun_box">
  15. <view class="item" v-for="(item,index) in store" :key="index" @click="storeFunc(item)">
  16. <image :src="item.url" mode=""></image>
  17. {{item.name}}
  18. </view>
  19. </view>
  20. </view>
  21. <view class="function">
  22. <view class="title">
  23. 订单管理
  24. </view>
  25. <view class="fun_box">
  26. <view class="item " v-for="(item,index) in order" :key="index" @click="orderFunc(item)" style="margin: 0px;">
  27. <image :src="item.url" mode=""></image>
  28. {{item.name}}
  29. </view>
  30. </view>
  31. </view>
  32. <view class="function">
  33. <view class="title">
  34. 财务对账
  35. </view>
  36. <view class="fun_box">
  37. <view class="item" v-for="(item,index) in finance" :key="index" style="margin: 0px;">
  38. <image :src="item.url" mode=""></image>
  39. {{item.name}}
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 弹窗 -->
  44. <Modal ref="myModal"
  45. :title="modalText.title"
  46. :content="modalText.content"
  47. :showCancelButton="false"
  48. />
  49. </view>
  50. </template>
  51. <script>
  52. import Modal from '@/components/modal/index.vue';
  53. export default {
  54. components: {
  55. Modal,
  56. },
  57. data() {
  58. return {
  59. store: [{
  60. name: '商品管理',
  61. url: '/static/index/product.png',
  62. path: '/pages/product/index'
  63. },
  64. {
  65. name: '优惠券',
  66. url: '/static/index/coupon.png'
  67. },
  68. {
  69. name: '拼团活动',
  70. url: '/static/index/group.png'
  71. },
  72. {
  73. name: '客户评价',
  74. url: '/static/index/evaluate.png',
  75. path: '/pages/evaluate/evaluate'
  76. },
  77. {
  78. name: '秒杀活动',
  79. url: '/static/index/seckill.png'
  80. },
  81. {
  82. name: '店铺设置',
  83. url: '/static/index/shop.png'
  84. },
  85. {
  86. name: '团餐活动',
  87. url: '/static/index/groupMeal.png',
  88. path: '/pages/groupMeal/goods/list'
  89. },
  90. {
  91. name: '财务管理',
  92. url: '/static/index/audit.png',
  93. path: '/pages/financial/management'
  94. },
  95. ],
  96. order: [
  97. // {
  98. // name: '订单管理',
  99. // url: '/static/index/indent.png'
  100. // },
  101. {
  102. name: '核销记录',
  103. url: '/static/index/history.png'
  104. },
  105. {
  106. name: '退款管理',
  107. url: '/static/index/refund.png'
  108. },
  109. {
  110. name: '核销',
  111. url: '/static/index/coupon.png'
  112. },
  113. ],
  114. finance: [{
  115. name: '提现管理',
  116. url: '/static/index/with.png'
  117. },
  118. {
  119. name: '收款核销',
  120. url: '/static/index/collection.png'
  121. },
  122. ],
  123. // 弹窗
  124. modalText: {
  125. title: '提示',
  126. btntext: '好的',
  127. // 很抱歉,您没有通过平台审核,如有疑问请联系平台客服。
  128. content: '报名成功,请等待平台审核'
  129. },
  130. }
  131. },
  132. methods: {
  133. storeFunc(item) {
  134. // 需要先报名
  135. if (item.name === '团餐活动') {
  136. this.$http.post('/groupmeal/gmMerchantApplicationRecord/isApply', {}).then(res => {
  137. if (!res.data.result) {
  138. uni.navigateTo({
  139. url: '/pages/groupMeal/goods/index'
  140. });
  141. } else {
  142. let status = res.data.result.status;
  143. if (status == 1) {
  144. uni.navigateTo({
  145. url: item.path
  146. });
  147. } else {
  148. this.modalText.content = status == 2 ? '很抱歉,您没有通过平台审核,如有疑问请联系平台客服。' : '团餐活动报名审核中,请耐心等待';
  149. this.$refs.myModal.onOpen();
  150. }
  151. }
  152. });
  153. return;
  154. }
  155. if (!item.path) return;
  156. uni.navigateTo({
  157. url: item.path
  158. });
  159. },
  160. orderFunc(item) {
  161. if (item.name == '核销') {
  162. uni.navigateTo({
  163. url:'/pages/scan/manual'
  164. })
  165. }
  166. },
  167. //返回
  168. back() {
  169. uni.navigateBack({
  170. delta: 1
  171. });
  172. },
  173. }
  174. }
  175. </script>
  176. <style lang="scss" scoped>
  177. .service {
  178. width: 100%;
  179. height: 100%;
  180. background: #F7F8FC;
  181. /*#ifdef APP-PLUS*/
  182. .top {
  183. width: 100%;
  184. height: var(--status-bar-height);
  185. background: linear-gradient(180deg, #D6E9FF 0%, #FFFFFF 100%);
  186. }
  187. /*#endif*/
  188. .head {
  189. width: 100%;
  190. height: 112rpx;
  191. padding: 20rpx;
  192. display: flex;
  193. align-items: center;
  194. background: linear-gradient(180deg, #D6E9FF 0%, #FFFFFF 100%);
  195. position: relative;
  196. .cuIcon-back {
  197. font-size: 40rpx;
  198. margin-right: 40rpx;
  199. }
  200. .case {
  201. position: absolute;
  202. left: 50%;
  203. transform: translateX(-50%);
  204. font-size: 36rpx;
  205. font-weight: 500;
  206. }
  207. }
  208. .function {
  209. background-color: #fff;
  210. padding-top: 12rpx;
  211. margin-bottom: 20rpx;
  212. .title {
  213. padding: 0px 40rpx;
  214. width: 100%;
  215. height: 53rpx;
  216. border-bottom: 1px solid #eee;
  217. font-size: 28rpx;
  218. font-weight: 600;
  219. }
  220. .fun_box {
  221. display: flex;
  222. // justify-content: space-between;
  223. flex-wrap: wrap;
  224. // gap: 40rpx;
  225. padding: 36rpx 40rpx;
  226. .item {
  227. width: 20%;
  228. display: flex;
  229. align-items: center;
  230. flex-direction: column;
  231. // margin-bottom: 20rpx;
  232. // margin-right: 40rpx;
  233. font-size: 24rpx;
  234. image {
  235. width: 56rpx;
  236. height: 56rpx;
  237. margin-bottom: 10rpx;
  238. }
  239. }
  240. .nomargin {
  241. margin-bottom: 0px;
  242. }
  243. .item:nth-child(-n+5) {
  244. margin-bottom: 36rpx;
  245. }
  246. }
  247. }
  248. }
  249. </style>