index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="workbench-page">
  3. <view class="section white-wrap" @click="handleGoNext('custome')">
  4. <image src="../../static/icon-1.png" mode="aspectFill" class="icon"></image>
  5. <view class="label">客户审批</view>
  6. </view>
  7. <view class="section white-wrap" @click="handleGoNext('contract')">
  8. <image src="../../static/icon-2.png" mode="aspectFill" class="icon"></image>
  9. <view class="label">合同审批</view>
  10. </view>
  11. <view class="section white-wrap" @click="handleGoNext('seal')">
  12. <image src="../../static/icon-3.png" mode="aspectFill" class="icon"></image>
  13. <view class="label">用印审批</view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default{
  19. data() {
  20. return {
  21. }
  22. },
  23. methods: {
  24. handleGoNext(type) {
  25. if(type==='custome'){
  26. uni.navigateTo({
  27. url:"/pages-approve/custome/list"
  28. })
  29. }
  30. if(type==='contract'){
  31. uni.navigateTo({
  32. url:"/pages-approve/contract/list"
  33. })
  34. }
  35. if(type==='seal'){
  36. uni.navigateTo({
  37. url:"/pages-approve/seal/list"
  38. })
  39. }
  40. }
  41. },
  42. }
  43. </script>
  44. <style lang="scss">
  45. .workbench-page{
  46. padding: 20rpx;
  47. }
  48. .section{
  49. padding: 50rpx 0;
  50. text-align: center;
  51. font-size: 16px;
  52. font-weight: 400;
  53. color: #666;
  54. box-shadow: 0px 3px 12px rgba(175, 175, 175, 0.16);
  55. border-radius: 8px;
  56. margin-bottom: 20rpx;
  57. .icon{
  58. width: 128rpx;
  59. height: 128rpx;
  60. margin-bottom: 14rpx;
  61. }
  62. }
  63. </style>