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

main
xuechunyuan 3 years ago
parent dbd51e7f2d
commit b387c11caf
  1. 2
      src/main.js
  2. 2
      src/utils/aisdapp.js
  3. 18
      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,10 +111,15 @@ export default {
confirm() { confirm() {
let param = this.proArr; let param = this.proArr;
this.$toast.loading({
message: '请求中',
duration: 0,
})
try {
if (this.GlobalConfig.appMode) { if (this.GlobalConfig.appMode) {
// console.log(JSON.stringify(param)) // console.log(JSON.stringify(param))
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
this.$toast.clear();
console.log('value', value); console.log('value', value);
let retData = JSON.parse(value); let retData = JSON.parse(value);
console.log('value2', retData); console.log('value2', retData);
@ -126,10 +131,13 @@ export default {
this.isShow = true; this.isShow = true;
this.isSuccess = false this.isSuccess = false
} }
}, err => {
this.$toast.clear();
}) })
} }
else { else {
postExam({ data: param }).then(res => { postExam({ data: param }).then(res => {
this.$toast.clear();
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
this.isShow = true; this.isShow = true;
@ -139,11 +147,13 @@ export default {
this.isShow = true; this.isShow = true;
this.isSuccess = false this.isSuccess = false
} }
}, err => {
this.$toast.clear();
}) })
} }
// if(this.proArr.length != 0){ } catch (error) {
// this.$toast.clear();
// } }
}, },
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