洪海涛 8 年之前
父节点
当前提交
7b1ebadfe8

+ 1 - 1
www/vue/config/index.js

@@ -24,7 +24,7 @@ module.exports = {
   dev: {
   dev: {
     env: require('./dev.env'),
     env: require('./dev.env'),
     port: 8080,
     port: 8080,
-    autoOpenBrowser: false,
+    autoOpenBrowser: true,
     assetsSubDirectory: 'static',
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
     assetsPublicPath: '/',
     proxyTable: {
     proxyTable: {

文件差异内容过多而无法显示
+ 0 - 0
www/vue/dist/static/css/app.css


文件差异内容过多而无法显示
+ 0 - 0
www/vue/dist/static/js/app.js


文件差异内容过多而无法显示
+ 0 - 0
www/vue/dist/static/js/vendor.js


+ 0 - 1
www/vue/src/App.vue

@@ -2,7 +2,6 @@
   <div id="app">
   <div id="app">
     <div class="router-view">
     <div class="router-view">
       <router-view></router-view>
       <router-view></router-view>
-      <navigation></navigation>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>

+ 20 - 22
www/vue/src/components/home.vue

@@ -1,32 +1,31 @@
 <template>
 <template>
   <div class="home">
   <div class="home">
-    <scroller lock-x scrollbar-y>
-      <div>
-        <swiper></swiper>
-        <div class='home-img-1'>
-          <img :src='homeImg1' alt="">
-          <div class="home-nav">
-            <!--品牌-->
-            <div class=""></div>
-            <!--管家-->
-            <div class=""></div>
-            <!--证件-->
-            <div class=""></div>
-            <!--工具-->
-            <div class=""></div>
-            <!--赔退-->
-            <div class=""><a href="http://commontest.yiguanjia.me/webapp/o2o/module/pay/"></a></div>
-          </div>
+    <div>
+      <swiper></swiper>
+      <div class='home-img-1'>
+        <img :src='homeImg1' alt="">
+        <div class="home-nav">
+          <!--品牌-->
+          <div class=""></div>
+          <!--管家-->
+          <div class=""></div>
+          <!--证件-->
+          <div class=""></div>
+          <!--工具-->
+          <div class=""></div>
+          <!--赔退-->
+          <div class=""><a href="http://commontest.yiguanjia.me/webapp/o2o/module/pay/"></a></div>
         </div>
         </div>
-        <homeList></homeList>
       </div>
       </div>
-    </scroller>
+      <homeList></homeList>
+    </div>
+    <navigation></navigation>
   </div>
   </div>
 </template>
 </template>
 
 
 <script>
 <script>
   import {mapState, mapActions} from 'vuex'
   import {mapState, mapActions} from 'vuex'
-  import {XSwitch, Scroller} from 'vux'
+  import {XSwitch} from 'vux'
   export default {
   export default {
     name: 'home',
     name: 'home',
     data () {
     data () {
@@ -35,8 +34,7 @@
       }
       }
     },
     },
     components: {
     components: {
-      XSwitch,
-      Scroller
+      XSwitch
     },
     },
     ready () {
     ready () {
       this.$nextTick(() => {
       this.$nextTick(() => {

+ 9 - 13
www/vue/src/components/mine.vue

@@ -7,34 +7,30 @@
 			</li>
 			</li>
 		</ul>
 		</ul>
 		<button v-on:click="btn(usid)" :data-value="usid">点击</button>
 		<button v-on:click="btn(usid)" :data-value="usid">点击</button>
-	</div>
+    <navigation></navigation>
+  </div>
 </template>
 </template>
 <script type="text/javascript">
 <script type="text/javascript">
-  import { mapState, mapActions } from 'vuex'
+  import { mapActions } from 'vuex'
   export default({
   export default({
     data () {
     data () {
       return {
       return {
-        usid: this.$store.state.user.userInfo.id
+        usid: this.$store.state.user.userInfo.id,
+        products: this.$store.state.product.products
       }
       }
     },
     },
-    computed: mapState({
-      products: state => state.product.products
-    }),
-    created () {
-      this.PRODUCTLIST()
-    },
+    created () {},
     methods: {
     methods: {
-      ...mapActions([
-        'PRODUCTLIST'
-      ]),
+      ...mapActions([]),
       btn: function (a) {
       btn: function (a) {
+        console.log(this.$store.state.product.products)
       }
       }
     }
     }
   })
   })
 </script>
 </script>
 <style type="text/css" scoped>
 <style type="text/css" scoped>
 	button{
 	button{
-		font-size: 3rem;
+		font-size: 2rem;
 		border:1px solid darkseagreen;
 		border:1px solid darkseagreen;
 	}
 	}
 </style>
 </style>

+ 1 - 0
www/vue/src/components/order.vue

@@ -5,6 +5,7 @@
       <cell title="title" value="value"></cell>
       <cell title="title" value="value"></cell>
     </group>
     </group>
   <h2>{{userId}}</h2>
   <h2>{{userId}}</h2>
+  <navigation></navigation>
 </div>
 </div>
 </template>
 </template>
 
 

+ 1 - 0
www/vue/src/config/selectTime.js

@@ -19,6 +19,7 @@ startDate = startDateNewdt.getFullYear() + '-' + (startDateNewdt.getMonth() + 1)
 // endDate
 // endDate
 let endDateNewdt = new Date(Number(endArr[0]), Number(endArr[1]) - 1, Number(endArr[2]) + 14)
 let endDateNewdt = new Date(Number(endArr[0]), Number(endArr[1]) - 1, Number(endArr[2]) + 14)
 endDate = endDateNewdt.getFullYear() + '-' + (endDateNewdt.getMonth() + 1) + '-' + endDateNewdt.getDate()
 endDate = endDateNewdt.getFullYear() + '-' + (endDateNewdt.getMonth() + 1) + '-' + endDateNewdt.getDate()
+
 export default {
 export default {
   startDate: startDate,
   startDate: startDate,
   endDate: endDate,
   endDate: endDate,

部分文件因为文件数量过多而无法显示