提交预约补充loading,打包路径配置

main
xuechunyuan 3 years ago
parent dbd51e7f2d
commit b387c11caf
  1. 2
      src/main.js
  2. 2
      src/utils/aisdapp.js
  3. 74
      src/views/examProject.vue
  4. 1
      vue.config.js

@ -8,7 +8,7 @@ import "vant/lib/index.css";
import GlobalConfig from "./utils/aisdapp"; import GlobalConfig from "./utils/aisdapp";
import VConsole from "vconsole"; import VConsole from "vconsole";
let vConsole = new VConsole(); // let vConsole = new VConsole();
Vue.use(vant); Vue.use(vant);

@ -5,7 +5,7 @@ export const appword = "aKd20dbGdFvmuwrt"
const appid = 'cgstjyyjzpzp'; const appid = 'cgstjyyjzpzp';
const appMode = false;//是否开启爱山东中控台接口调用方式 const appMode = true;//是否开启爱山东中控台接口调用方式
export default { export default {
appid, appid,

@ -111,39 +111,49 @@ export default {
confirm() { confirm() {
let param = this.proArr; let param = this.proArr;
if (this.GlobalConfig.appMode) { this.$toast.loading({
// console.log(JSON.stringify(param)) message: '请求中',
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { duration: 0,
})
console.log('value', value); try {
let retData = JSON.parse(value); if (this.GlobalConfig.appMode) {
console.log('value2', retData); // console.log(JSON.stringify(param))
if (retData.code == 200) { vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
this.isShow = true; this.$toast.clear();
this.isSuccess = true console.log('value', value);
} else { let retData = JSON.parse(value);
this.failTips = retData.msg; console.log('value2', retData);
this.isShow = true; if (retData.code == 200) {
this.isSuccess = false this.isShow = true;
} this.isSuccess = true
}) } else {
} this.failTips = retData.msg;
else { this.isShow = true;
postExam({ data: param }).then(res => { this.isSuccess = false
console.log(res) }
if (res.code == 200) { }, err => {
this.isShow = true; this.$toast.clear();
this.isSuccess = true })
} else { }
this.failTips = res.msg else {
this.isShow = true; postExam({ data: param }).then(res => {
this.isSuccess = false this.$toast.clear();
} console.log(res)
}) if (res.code == 200) {
this.isShow = true;
this.isSuccess = true
} else {
this.failTips = res.msg
this.isShow = true;
this.isSuccess = false
}
}, err => {
this.$toast.clear();
})
}
} catch (error) {
this.$toast.clear();
} }
// if(this.proArr.length != 0){
//
// }
}, },
clickFail() { clickFail() {

@ -1,6 +1,7 @@
const { defineConfig } = require("@vue/cli-service"); const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({ module.exports = defineConfig({
lintOnSave: false, lintOnSave: false,
publicPath: './',
transpileDependencies: true, transpileDependencies: true,
//开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
devServer: { devServer: {

Loading…
Cancel
Save