My.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div>
  3. <header class="mui-bar mui-bar-nav ">
  4. <a class="mui-title">饭卡</a>
  5. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  6. </header>
  7. <div class="mui-content margin49">
  8. <div class="von-xsy-index vongi-index-inter">
  9. <div id="slider" class="mui-slider">
  10. <div class="mui-slider-group">
  11. <!-- 第一张 -->
  12. <div class="mui-slider-item" style="height: 100px" >
  13. <a href="javascript:void(0)">
  14. <img style="height: 100px" src="~$project/assets/img/banner01.jpg">
  15. </a>
  16. </div>
  17. <div class="mui-slider-item" style="height: 100px" >
  18. <a href="javascript:void(0)">
  19. <img style="height: 100px" src="~$project/assets/img/banner01.jpg">
  20. </a>
  21. </div>
  22. </div>
  23. <div class="mui-slider-indicator" v-if="false">
  24. <div class="mui-indicator mui-active"></div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <loading :visible="isLoading"></loading>
  30. </div>
  31. </template>
  32. <script>
  33. import * as API from '@/apis-xsy/meal'
  34. import Common from '$project/components/Common.vue'
  35. import Loading from '$project/components/Loading.vue'
  36. import TopHeader from '$project/components/TopHeader.vue'
  37. export default {
  38. name: '',
  39. components: {
  40. Common,
  41. Loading,
  42. TopHeader
  43. },
  44. data() {
  45. return {
  46. pageTitle: '申请调班',
  47. remainingAmount:"",
  48. isLoading: false,
  49. }
  50. },
  51. created() {
  52. },
  53. methods: {
  54. getRemainingAmount(){
  55. this.isLoading = true;
  56. API.remainingAmount().then(response => {
  57. this.remainingAmount=response;
  58. this.isLoading = false;
  59. }).catch(error => {
  60. this.isLoading = false;
  61. mui.toast(error);
  62. })
  63. },
  64. asynCallBack() {
  65. },
  66. },
  67. mounted() {
  68. //this.getRemainingAmount();
  69. var gallery = mui('.mui-slider');
  70. var slider = gallery.slider({
  71. });
  72. },
  73. destroyed() {},
  74. }
  75. </script>
  76. <style src="$project/assets/css/iconfont.css"></style>
  77. <style scoped src="$project/assets/css/xpwyfyy.css"></style>
  78. <style scoped src="$project/assets/css/xpgj.css"></style>
  79. <style src="$project/assets/css/xsy.css"></style>
  80. <style>
  81. </style>