Compare commits
16 Commits
master
...
master-php
| Author | SHA1 | Date |
|---|---|---|
|
|
d2a56965fc | |
|
|
c20cb8cfbc | |
|
|
ebf40e35f6 | |
|
|
9fcadc1248 | |
|
|
d34c5a84b8 | |
|
|
9e95072685 | |
|
|
943ef313cf | |
|
|
b82eb59b1d | |
|
|
842270186a | |
|
|
329299a3b5 | |
|
|
7744a8112d | |
|
|
8054985445 | |
|
|
bf3dc320c0 | |
|
|
eb2b6c15f2 | |
|
|
b711e87f50 | |
|
|
3e4ec97803 |
|
|
@ -46,7 +46,7 @@ export function summary_query(params) {
|
|||
*/
|
||||
export function userInfo_list(params) {
|
||||
return $http({
|
||||
url: "/czg/userInfo/list",
|
||||
url: "/userInfo/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
|
|
@ -59,7 +59,7 @@ export function userInfo_list(params) {
|
|||
*/
|
||||
export function userInfo(data) {
|
||||
return $http({
|
||||
url: "/czg/userInfo",
|
||||
url: "/userInfo",
|
||||
method: "put",
|
||||
data
|
||||
});
|
||||
|
|
@ -71,7 +71,7 @@ export function userInfo(data) {
|
|||
*/
|
||||
export function userInfoDel(data) {
|
||||
return $http({
|
||||
url: "/czg/userInfo",
|
||||
url: "/userInfo",
|
||||
method: "DELETE",
|
||||
data
|
||||
});
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@ export const productUrl='dj-admin';
|
|||
// const baseUrl = "https://api.tianjinzhitongdaohe.com/czg/"
|
||||
|
||||
// const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
|
||||
const baseUrl = "https://web.hnsiyao.cn/czg/" // 线上
|
||||
// const baseUrl = "https://web.hnsiyao.cn/czg/" // 线上
|
||||
// const baseUrl = "http://192.168.1.31:8080/admin/" // php本地
|
||||
// const baseUrl = "https://playlet.test.sxczgkj.com/admin/" // php测试服
|
||||
const baseUrl = "http://192.168.1.10:8787/czg/" // php测试服
|
||||
|
||||
export default{
|
||||
baseUrl
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@
|
|||
dataSelect() {
|
||||
this.tableDataLoading = true
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('admin/sdkType/getSdkTypeList'),
|
||||
url: this.$http.adornUrl('sdkType/getSdkTypeList'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({
|
||||
'page': this.page,
|
||||
|
|
@ -784,7 +784,7 @@
|
|||
// this.startTime = this.info2.stockDate2
|
||||
// }
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('admin/sdkInfo/getSdkList'),
|
||||
url: this.$http.adornUrl('/admin/sdkInfo/getSdkList'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({
|
||||
'page': this.page,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
</el-input>
|
||||
</el-col>
|
||||
<el-col :span="10" class="login-captcha">
|
||||
<img :src="captchaPath" @click="getCaptcha()" alt="">
|
||||
<img :src="captchaPath" @click="getCaptcha()" alt="">
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
|
|
@ -35,6 +35,7 @@
|
|||
<script>
|
||||
import { getUUID } from '@/utils'
|
||||
import { entryName } from '@/utils/httpRequest'
|
||||
import { method } from 'lodash'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
|
@ -84,16 +85,24 @@
|
|||
this.$router.replace({ name: 'home' })
|
||||
} else {
|
||||
this.getCaptcha()
|
||||
this.$message.error(data.msg)
|
||||
this.$message.error(data.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取验证码
|
||||
getCaptcha () {
|
||||
async getCaptcha () {
|
||||
this.dataForm.uuid = getUUID()
|
||||
this.captchaPath = this.$http.adornUrl(`/captcha.jpg?uuid=${this.dataForm.uuid}`)
|
||||
const res =await this.$http({
|
||||
url:'indetcode/getCode',
|
||||
method:'get',
|
||||
params:{
|
||||
uuid:this.dataForm.uuid
|
||||
}
|
||||
})
|
||||
console.log(res);
|
||||
this.captchaPath=res.data.data.img
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1850,7 +1850,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl('sys/user/info/' + userId),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({})
|
||||
params: {
|
||||
...this.$http.adornParams({}),
|
||||
userId: userId
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
@ -3078,7 +3081,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl('common/type/152'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({})
|
||||
params: {
|
||||
...this.$http.adornParams({}),
|
||||
type:152
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
@ -3090,7 +3096,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl('common/type/153'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({})
|
||||
params: {
|
||||
...this.$http.adornParams({}),
|
||||
type:153
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -1787,7 +1787,7 @@ export default {
|
|||
courseType: this.courseType,
|
||||
isRecommend: this.isRecommend,
|
||||
status: this.statusType,
|
||||
remark: this.remark,
|
||||
// remark: this.remark,
|
||||
bannerId: this.fenleiId2,
|
||||
isPrice: this.isPrice,
|
||||
isOver: this.isOver,
|
||||
|
|
@ -2550,6 +2550,7 @@ export default {
|
|||
data: this.$http.adornData({
|
||||
courseDetailsId: row.courseDetailsId,
|
||||
advertising: row.advertising,
|
||||
courseId: row.courseId,
|
||||
}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
|
|
@ -2591,6 +2592,7 @@ export default {
|
|||
data: this.$http.adornData({
|
||||
courseDetailsId: row.courseDetailsId,
|
||||
good: row.good,
|
||||
courseId: row.courseId,
|
||||
}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
|
|
@ -2651,6 +2653,9 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl("common/type/247"),
|
||||
method: "get",
|
||||
params: {
|
||||
type:247
|
||||
},
|
||||
data: this.$http.adornData({}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
|
|
@ -2663,6 +2668,9 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl("common/type/450"),
|
||||
method: "get",
|
||||
params: {
|
||||
type:450
|
||||
},
|
||||
data: this.$http.adornData({}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
|
|
@ -2673,6 +2681,9 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl("common/type/451"),
|
||||
method: "get",
|
||||
params: {
|
||||
type:451
|
||||
},
|
||||
data: this.$http.adornData({}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
|
|
@ -2683,7 +2694,7 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl("common/type/849"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({}),
|
||||
params: this.$http.adornParams({type:849}),
|
||||
}).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
if (data.data.value == "是") {
|
||||
|
|
|
|||
|
|
@ -1576,6 +1576,9 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl('common/type/247'),
|
||||
method: 'get',
|
||||
params: {
|
||||
type:247
|
||||
},
|
||||
data: this.$http.adornData({})
|
||||
}).then(({
|
||||
data
|
||||
|
|
|
|||
|
|
@ -1453,6 +1453,9 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl('common/type/247'),
|
||||
method: 'get',
|
||||
params: {
|
||||
type:247
|
||||
},
|
||||
data: this.$http.adornData({})
|
||||
}).then(({
|
||||
data
|
||||
|
|
|
|||
|
|
@ -1158,7 +1158,8 @@
|
|||
'page': this.page,
|
||||
'limit': this.limit,
|
||||
'member': this.member,
|
||||
'phone': this.phone
|
||||
'phone': this.phone,
|
||||
type:88
|
||||
})
|
||||
}).then(({
|
||||
data
|
||||
|
|
|
|||
|
|
@ -148,7 +148,9 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`/sys/menu/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: this.$http.adornParams({
|
||||
menuId: this.dataForm.id
|
||||
})
|
||||
}).then(({data}) => {
|
||||
this.dataForm.id = data.menu.menuId
|
||||
this.dataForm.type = data.menu.type
|
||||
|
|
|
|||
|
|
@ -130,7 +130,9 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`/sys/menu/delete/${id}`),
|
||||
method: 'post',
|
||||
data: this.$http.adornData()
|
||||
data: this.$http.adornData({
|
||||
menuId: id
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
|
|
|
|||
|
|
@ -72,12 +72,15 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`/sys/role/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: this.$http.adornParams({
|
||||
roleId:this.dataForm.id
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.roleName = data.role.roleName
|
||||
this.dataForm.remark = data.role.remark
|
||||
var idx = data.role.menuIdList.indexOf(this.tempKey)
|
||||
console.log(idx);
|
||||
if (idx !== -1) {
|
||||
data.role.menuIdList.splice(idx, data.role.menuIdList.length - idx)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: {
|
||||
...this.$http.adornParams(),
|
||||
'userId': this.dataForm.id
|
||||
}
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.userName = data.user.username
|
||||
|
|
|
|||
|
|
@ -190,7 +190,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: {
|
||||
...this.$http.adornParams(),
|
||||
'userId': this.dataForm.id
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -193,7 +193,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: {
|
||||
...this.$http.adornParams(),
|
||||
'userId': this.dataForm.id
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -208,9 +208,12 @@ export default {
|
|||
page: this.tableData.page,
|
||||
limit: this.tableData.limit
|
||||
});
|
||||
|
||||
console.log("获取抽奖记录列表", data);
|
||||
|
||||
this.tableData.loading = false;
|
||||
this.tableData.list = data.page.list;
|
||||
this.tableData.total = data.page.totalCount;
|
||||
this.tableData.list = data.data.list;
|
||||
this.tableData.total = data.data.totalCount;
|
||||
} catch (error) {
|
||||
this.tableData.loading = false;
|
||||
console.log(error);
|
||||
|
|
|
|||
|
|
@ -1380,7 +1380,10 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`user/${userId}`),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({}),
|
||||
params: {
|
||||
...this.$http.adornParams({}),
|
||||
userId: userId,
|
||||
},
|
||||
}).then(({ data }) => {
|
||||
if (data.code === 0) {
|
||||
console.log("data", data);
|
||||
|
|
@ -1868,7 +1871,7 @@ export default {
|
|||
this.tableDataLoading = true;
|
||||
let userId = this.$route.query.userId;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("admin/sdkInfo/getSdkList"),
|
||||
url: this.$http.adornUrl("sdkInfo/getSdkList"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
page: this.page,
|
||||
|
|
|
|||
|
|
@ -1311,7 +1311,10 @@
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`user/${userId}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({})
|
||||
params: {
|
||||
...this.$http.adornParams({}),
|
||||
userId: userId,
|
||||
},
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -998,7 +998,10 @@ export default {
|
|||
this.$http({
|
||||
url: this.$http.adornUrl(`user/deleteUserByUserId/${delid}`),
|
||||
method: 'post',
|
||||
params: this.$http.adornData({})
|
||||
params: this.$http.adornData({}),
|
||||
data: {
|
||||
'userId': delid
|
||||
}
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ export default {
|
|||
this.orderInfo = res.data.data
|
||||
} else {
|
||||
this.orderInfo = ''
|
||||
this.$message.error(res.data.msg)
|
||||
this.$message.error(res.data.message)
|
||||
}
|
||||
} catch (error) {
|
||||
this.orderInfo = ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue