This commit is contained in:
wwz
2025-01-06 16:04:25 +08:00
parent 6b711858e6
commit b58f60bb23
4 changed files with 131 additions and 137 deletions

View File

@@ -31,14 +31,12 @@ const http = axios.create({
* 请求拦截
*/
http.interceptors.request.use(config => {
console.log(config)
config.headers['token'] = Vue.cookie.get('token') // 请求头带上token
// config.baseURL = $urlMap[$env]
const arr = config.url.split('czg/')
config.url = baseUrl + (arr.length >= 2 ? arr[1] : arr[0])
config.url = config.url.replace('czg//', 'czg/');
// config.url = "https://dj-api.hnsiyao.cn/czg/"
console.log(config.url)
return config
}, error => {
return Promise.reject(error)

View File

@@ -158,7 +158,8 @@ export default {
form: {
id: "",
isAgree: "1",
refund: ""
refund: "",
userId:''
},
rules: {
isAgree: [],
@@ -180,6 +181,7 @@ export default {
// 打开发放奖品弹窗
deliverHandle(row) {
this.form.id = row.id;
this.form.userId = row.userId
this.visible = true;
},
// 提交发放奖品

View File

@@ -127,8 +127,8 @@ export default {
this.init();
},
returnJumpTypeName(type) {
console.log(type)
console.log($jumpType[type])
// console.log(type)
// console.log($jumpType[type])
return $jumpType[type] ? $jumpType[type] : "";
},
returnTypeName(type) {