Sfoglia il codice sorgente

测试域名更改

master
congzc 2 anni fa
parent
commit
333874fc81
5 ha cambiato i file con 27 aggiunte e 13 eliminazioni
  1. +4
    -2
      .env
  2. +1
    -2
      package.json
  3. +4
    -1
      src/components/CutImg.vue
  4. +18
    -6
      src/views/model/editModel.vue
  5. +0
    -2
      src/views/myPage/myPage.vue

+ 4
- 2
.env Vedi File

@@ -5,11 +5,13 @@
# 开发
NODE_ENV=development
VUE_APP_ENV=development
# VUE_APP_API_ROOT=https://smapitest.malls.iformall.com/C
VUE_APP_API_ROOT=https://mtest.metavatar.cc/C
# VUE_APP_API_ROOT=https://smapitest.malls.iformall.com/C 已废弃



# 正式
# NODE_ENV=production
# VUE_APP_ENV=production
# VUE_APP_API_ROOT=http://m.metavatar.cc/C

# VUE_APP_API_ROOT=https://smapitest.malls.iformall.com/C

+ 1
- 2
package.json Vedi File

@@ -5,7 +5,6 @@
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build"

},
"dependencies": {
"axios": "0.18.1",
@@ -37,4 +36,4 @@
"uglifyjs-webpack-plugin": "^2.2.0",
"vue-template-compiler": "^2.6.11"
}
}
}

+ 4
- 1
src/components/CutImg.vue Vedi File

@@ -151,7 +151,9 @@ export default {
onClickRight() {
let that = this;
this.loadingShow = true;
console.log(this.$refs.cropper);
this.$refs.cropper.getCropBlob(async data => {
console.log(data, '图片数据');
let formData = new FormData();
formData.append('file', data);
let file = formData.get('file');
@@ -248,7 +250,8 @@ export default {
}
return bytes;
}
}
},
mounted() {}
};
</script>



+ 18
- 6
src/views/model/editModel.vue Vedi File

@@ -415,13 +415,24 @@ export default {

methods: {
...mapActions(['setCharacters']),
// aaa() {
// console.log('aaa')
// this.$nextTick(() => {
// // document.getDetailById
// // this.$refs.CutImgBg.$refs.uploader.clickUpload()
// this.$refs.CutImgBg.$refs.uploader.beforeRead()
// 离开页面前
// beforeUnloadHandler(event) {
// let that = this;
// event.preventDefault();
// event.returnValue = '';

// Dialog.confirm({
// message: '弹窗内容'
// })
// .then(async () => {
// await that.submit(2); // 保存草稿
// console.log('保存了');
// })
// .catch(err => {
// console.log(err);
// });
// console.log('11111');
// window.removeEventListener('beforeunload', this.beforeUnloadHandler);
// },
// 禁止滚动
noScroll(e) {
@@ -976,6 +987,7 @@ export default {
this.proportion = 1920 / elementWidth;
console.log(this.proportion);
}
// window.addEventListener('beforeunload', this.beforeUnloadHandler);
},
async beforeDestroy() {
this.timeOuter = null; // 清除定时器


+ 0
- 2
src/views/myPage/myPage.vue Vedi File

@@ -359,8 +359,6 @@ export default {
},

mounted() {
console.log(process.env.NODE_ENV);
console.log(process.env.VUE_APP_ENV);
this.inPage = true;
scrollToID('top');
},


Caricamento…
Annulla
Salva