Explorar el Código

补充丢失的componentUmallStoreId.js文件

yangc hace 8 años
padre
commit
a74308799f

+ 2 - 2
components/product/component/StoreInfo.vue

@@ -41,7 +41,7 @@
             <th class="text-center" width="80">数量</th>
             <th class="text-center" width="100">香港交货<span style="font-size: 12px;">($)</span></th>
             <th class="text-center" width="130">大陆交货<span style="font-size: 12px;">(¥)</span></th>
-            <th class="text-center" width="120">交期</span></th>
+            <th class="text-center" width="120">交期<span style="font-size: 12px;">(天)</span></th>
             <th class="text-center" width="140">操作</th>
           </tr>
         </thead>
@@ -149,7 +149,7 @@
         if (storeList.storeid && storeList.storeid !== '') {
           this.storeIds = storeList.storeid
         }
-        this.storeId
+       // this.storeId
         if (this.storeIds.length > 0) {
           if (this.storeIds.indexOf(this.storeId) === -1) {
             this.storeExist = true

+ 0 - 42
pages/messageBoard/messageBoard.vue

@@ -1,42 +0,0 @@
-<!--
-<template>
-  <div class="message">
-    <message-board @pageEvent="listenPage"/>
-  </div>
-</template>
-<script>
-  import MessageBoard from '~components/messageBoard/MessageBoard.vue'
-  export default {
-    components: {
-      MessageBoard
-    },
-    data () {
-      return {
-        page: 1,
-        count: 3,
-        currentPage: 1
-      }
-    },
-    fetch ({ store }) {
-      return Promise.all([
-        store.dispatch('userIsLogin'),
-        store.dispatch('getMessageBoardInformation', {page: 1, count: 3})
-      ])
-    },
-    methods: {
-      listenPage: function (p) {
-        this.page = p
-        this.$store.dispatch('getMessageBoardInformation', {page: this.page, count: 3})
-      }
-    }
-  }
-</script>
-<style  scoped>
- .message .el-dialog__header {
-    display: none;
-  }
- .message .el-dialog__body {
-   padding: 0;
- }
-</style>
--->

+ 18 - 0
store/componentUmallStoreId.js

@@ -0,0 +1,18 @@
+export const state = () => ({
+  storeId: {
+    fetching: false,
+    data: ''
+  }
+})
+export const mutations = {
+  REQUEST_STOREID (state) {
+    state.storeId.fetching = true
+  },
+  GET_STOREID_FAILURE (state) {
+    state.storeId.fetching = false
+  },
+  GET_STOREID_SUCCESS (state, result) {
+    state.storeId.fetching = false
+    state.storeId.data = result
+  }
+}