twt преди 3 години
родител
ревизия
eba7984876
променени са 2 файла, в които са добавени 16 реда и са изтрити 4 реда
  1. 14 2
      src/views/home/index.vue
  2. 2 2
      vue.config.js

+ 14 - 2
src/views/home/index.vue

@@ -159,9 +159,14 @@ export default {
              message: '提交中'
            })
            this.go=false;
+          // console.log("55")
+           var that=this;
+         
             addSuperShopApplication(params).then(res => {
                 this.$toast.clear()
-                this.go=true;
+                setTimeout(function() {
+                    that.go=true;
+                 }, 2000);
                // this.$toast.success('提交成功')
                 this.$dialog.alert({
                   title: '提示',
@@ -169,7 +174,12 @@ export default {
                   confirmButtonText: "我知道了",
                   confirmButtonColor:'#3F90F7',
                 }).then(() => {
-                  // on close
+                   that.shopName=''
+                   that.contactor=''
+                   that.contactorPhone=''
+                   that.address=''
+                   that.file=[]
+                   that.businessLicense=''
                 });
             }, err => {
               this.$toast.clear()
@@ -204,6 +214,7 @@ export default {
         file.message = '上传中...'
 
       }) */
+      console.log(file)
       const params = new FormData()
       params.append('file', file.file)
       console.log(params)
@@ -212,6 +223,7 @@ export default {
         forbidClick: true,
         message: '上传中'
       })
+
       uploads(params, {
         timeout: 864000,
         headers: { 'Content-Type': 'multipart/form-data', id: this.$store.getters.id }

+ 2 - 2
vue.config.js

@@ -50,8 +50,8 @@ module.exports = {
       // change xxx-api/login => mock/login
       // detail.vue: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-         target: `http://58.56.15.138:20189/`,
-        //target: `http://erpshop.66km.cn`,
+        // target: `http://58.56.15.138:20189/`,
+        target: `http://api.dms.66km.com.cn/`,
         timeout: 8640000,
         changeOrigin: true,
         pathRewrite: {