Compare commits
16 Commits
ymf
...
master-php
| Author | SHA1 | Date | |
|---|---|---|---|
| d2a56965fc | |||
| c20cb8cfbc | |||
| ebf40e35f6 | |||
| 9fcadc1248 | |||
| d34c5a84b8 | |||
| 9e95072685 | |||
| 943ef313cf | |||
| b82eb59b1d | |||
| 842270186a | |||
| 329299a3b5 | |||
| 7744a8112d | |||
| 8054985445 | |||
| bf3dc320c0 | |||
| eb2b6c15f2 | |||
| b711e87f50 | |||
| 3e4ec97803 |
102
gulpfile copy.js
102
gulpfile copy.js
@@ -1,102 +0,0 @@
|
|||||||
var gulp = require('gulp');
|
|
||||||
var $ = require('gulp-load-plugins')();
|
|
||||||
var path = require('path');
|
|
||||||
var del = require('del');
|
|
||||||
|
|
||||||
var distPath = path.resolve('./dist');
|
|
||||||
var version = ''; // 版本号
|
|
||||||
var versionPath = ''; // 版本号路径
|
|
||||||
var env = ''; // 运行环境
|
|
||||||
|
|
||||||
// 创建版本号(年月日时分)
|
|
||||||
(function () {
|
|
||||||
var d = new Date();
|
|
||||||
var yy = d.getFullYear().toString().slice(2);
|
|
||||||
var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1);
|
|
||||||
var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate();
|
|
||||||
var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours();
|
|
||||||
var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes();
|
|
||||||
version = yy + MM + DD + h + mm;
|
|
||||||
versionPath = distPath + '/' + version;
|
|
||||||
})();
|
|
||||||
|
|
||||||
// 编译
|
|
||||||
gulp.task('build', $.shell.task(['node build/build.js']));
|
|
||||||
|
|
||||||
// 创建版本号目录
|
|
||||||
gulp.task('create:versionCatalog', gulp.series('build', function () {
|
|
||||||
return gulp.src(`${distPath}/static/**/*`)
|
|
||||||
.pipe(gulp.dest(`${versionPath}/static/`))
|
|
||||||
}))
|
|
||||||
|
|
||||||
// 替换${versionPath}/static/js/manifest.js window.SITE_CONFIG.cdnUrl占位变量
|
|
||||||
gulp.task('replace:cdnUrl', gulp.series('create:versionCatalog', function () {
|
|
||||||
return gulp.src(`${versionPath}/static/js/manifest.js`)
|
|
||||||
.pipe($.replace(new RegExp(`"${require('./config').build.assetsPublicPath}"`, 'g'), 'window.SITE_CONFIG.cdnUrl + "/"'))
|
|
||||||
.pipe(gulp.dest(`${versionPath}/static/js/`))
|
|
||||||
}))
|
|
||||||
|
|
||||||
// 替换${versionPath}/static/config/index-${env}.js window.SITE_CONFIG['version']配置变量
|
|
||||||
gulp.task('replace:version', gulp.series('create:versionCatalog', function () {
|
|
||||||
return gulp.src(`${versionPath}/static/config/index-${env}.js`)
|
|
||||||
.pipe($.replace(/window.SITE_CONFIG\['version'\] = '.*'/g, `window.SITE_CONFIG['version'] = '${version}'`))
|
|
||||||
.pipe(gulp.dest(`${versionPath}/static/config/`))
|
|
||||||
}))
|
|
||||||
|
|
||||||
// 合并${versionPath}/static/config/[index-${env}, init].js 至 ${distPath}/config/index.js
|
|
||||||
gulp.task('concat:config', gulp.series('replace:version', function () {
|
|
||||||
return gulp.src([`${versionPath}/static/config/index-${env}.js`, `${versionPath}/static/config/init.js`])
|
|
||||||
.pipe($.concat('index.js'))
|
|
||||||
.pipe(gulp.dest(`${distPath}/config/`))
|
|
||||||
}))
|
|
||||||
|
|
||||||
// 清空文件历史
|
|
||||||
gulp.task('clean', function () {
|
|
||||||
console.log('--clean--')
|
|
||||||
// del([`${distPath}/static`, `${versionPath}/static/config`]);
|
|
||||||
// return del([versionPath])
|
|
||||||
return del([`${distPath}`])
|
|
||||||
})
|
|
||||||
|
|
||||||
gulp.task('build-end', function () {
|
|
||||||
console.log('--builed-end--')
|
|
||||||
// del([`${distPath}/static`, `${versionPath}/static/config`]);
|
|
||||||
return del([`${distPath}/static`, `${versionPath}/static/config`]);
|
|
||||||
})
|
|
||||||
|
|
||||||
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod';
|
|
||||||
|
|
||||||
gulp.task('default',
|
|
||||||
gulp.series('clean',
|
|
||||||
gulp.parallel('create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config'),
|
|
||||||
'build', 'build-end')
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* gulp.task('default', gulp.series('clean', function (done) {
|
|
||||||
// 获取环境配置
|
|
||||||
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod'
|
|
||||||
// 开始打包编译
|
|
||||||
// 开始打包编译
|
|
||||||
gulp.task('default', gulp.series('build','create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config', function (done) {
|
|
||||||
// 清除, 编译 / 处理项目中产生的文件
|
|
||||||
del([`${distPath}/static`, `${versionPath}/static/config`])
|
|
||||||
done();
|
|
||||||
}))
|
|
||||||
})); */
|
|
||||||
|
|
||||||
/*
|
|
||||||
gulp.task('default', gulp.series('clean', function (done) {
|
|
||||||
// 获取环境配置
|
|
||||||
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod'
|
|
||||||
// 开始打包编译
|
|
||||||
// 开始打包编译
|
|
||||||
gulp.task('default', gulp.series('build','create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config', function (done) {
|
|
||||||
// 清除, 编译 / 处理项目中产生的文件
|
|
||||||
del([`${distPath}/static`, `${versionPath}/static/config`])
|
|
||||||
done();
|
|
||||||
}))
|
|
||||||
}));
|
|
||||||
*/
|
|
||||||
128
gulpfile.js
128
gulpfile.js
@@ -3,23 +3,21 @@ var $ = require('gulp-load-plugins')();
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var del = require('del');
|
var del = require('del');
|
||||||
|
|
||||||
// 先设置环境变量,确保任务定义时可以正确访问
|
|
||||||
var env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod';
|
|
||||||
|
|
||||||
var distPath = path.resolve('./dist');
|
var distPath = path.resolve('./dist');
|
||||||
var version = ''; // 版本号
|
var version = ''; // 版本号
|
||||||
var versionPath = ''; // 版本号路径
|
var versionPath = ''; // 版本号路径
|
||||||
|
var env = ''; // 运行环境
|
||||||
|
|
||||||
// 创建版本号(年月日时分)
|
// 创建版本号(年月日时分)
|
||||||
(function () {
|
(function () {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var yy = d.getFullYear().toString().slice(2);
|
var yy = d.getFullYear().toString().slice(2);
|
||||||
var MM = (d.getMonth() + 1).toString().padStart(2, '0');
|
var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1);
|
||||||
var DD = d.getDate().toString().padStart(2, '0');
|
var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate();
|
||||||
var h = d.getHours().toString().padStart(2, '0');
|
var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours();
|
||||||
var mm = d.getMinutes().toString().padStart(2, '0');
|
var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes();
|
||||||
version = yy + MM + DD + h + mm;
|
version = yy + MM + DD + h + mm;
|
||||||
versionPath = path.join(distPath, version); // 使用path.join更安全
|
versionPath = distPath + '/' + version;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// 编译
|
// 编译
|
||||||
@@ -27,60 +25,78 @@ gulp.task('build', $.shell.task(['node build/build.js']));
|
|||||||
|
|
||||||
// 创建版本号目录
|
// 创建版本号目录
|
||||||
gulp.task('create:versionCatalog', gulp.series('build', function () {
|
gulp.task('create:versionCatalog', gulp.series('build', function () {
|
||||||
return gulp.src(path.join(distPath, 'static', '**', '*'))
|
return gulp.src(`${distPath}/static/**/*`)
|
||||||
.pipe(gulp.dest(path.join(versionPath, 'static')));
|
.pipe(gulp.dest(`${versionPath}/static/`))
|
||||||
}));
|
}))
|
||||||
|
|
||||||
// 替换cdnUrl占位变量
|
// 替换${versionPath}/static/js/manifest.js window.SITE_CONFIG.cdnUrl占位变量
|
||||||
gulp.task('replace:cdnUrl', gulp.series('create:versionCatalog', function () {
|
gulp.task('replace:cdnUrl', gulp.series('create:versionCatalog', function () {
|
||||||
const assetsPublicPath = require('./config').build.assetsPublicPath;
|
return gulp.src(`${versionPath}/static/js/manifest.js`)
|
||||||
return gulp.src(path.join(versionPath, 'static', 'js', 'manifest.js'))
|
.pipe($.replace(new RegExp(`"${require('./config').build.assetsPublicPath}"`, 'g'), 'window.SITE_CONFIG.cdnUrl + "/"'))
|
||||||
.pipe($.replace(new RegExp(`"${assetsPublicPath}"`, 'g'), 'window.SITE_CONFIG.cdnUrl + "/"'))
|
.pipe(gulp.dest(`${versionPath}/static/js/`))
|
||||||
.pipe(gulp.dest(path.join(versionPath, 'static', 'js')));
|
}))
|
||||||
}));
|
|
||||||
|
|
||||||
// 替换version配置变量
|
// 替换${versionPath}/static/config/index-${env}.js window.SITE_CONFIG['version']配置变量
|
||||||
gulp.task('replace:version', gulp.series('create:versionCatalog', function () {
|
gulp.task('replace:version', gulp.series('create:versionCatalog', function () {
|
||||||
return gulp.src(path.join(versionPath, 'static', 'config', `index-${env}.js`))
|
return gulp.src(`${versionPath}/static/config/index-${env}.js`)
|
||||||
.pipe($.replace(/window.SITE_CONFIG\['version'\] = '.*'/g, `window.SITE_CONFIG['version'] = '${version}'`))
|
.pipe($.replace(/window.SITE_CONFIG\['version'\] = '.*'/g, `window.SITE_CONFIG['version'] = '${version}'`))
|
||||||
.pipe(gulp.dest(path.join(versionPath, 'static', 'config')));
|
.pipe(gulp.dest(`${versionPath}/static/config/`))
|
||||||
}));
|
}))
|
||||||
|
|
||||||
// 合并配置文件
|
// 合并${versionPath}/static/config/[index-${env}, init].js 至 ${distPath}/config/index.js
|
||||||
gulp.task('concat:config', gulp.series('replace:version', function () {
|
gulp.task('concat:config', gulp.series('replace:version', function () {
|
||||||
return gulp.src([
|
return gulp.src([`${versionPath}/static/config/index-${env}.js`, `${versionPath}/static/config/init.js`])
|
||||||
path.join(versionPath, 'static', 'config', `index-${env}.js`),
|
.pipe($.concat('index.js'))
|
||||||
path.join(versionPath, 'static', 'config', 'init.js')
|
.pipe(gulp.dest(`${distPath}/config/`))
|
||||||
])
|
}))
|
||||||
.pipe($.concat('index.js'))
|
|
||||||
.pipe(gulp.dest(path.join(distPath, 'config')));
|
|
||||||
}));
|
|
||||||
|
|
||||||
// 清空文件历史
|
// 清空文件历史
|
||||||
gulp.task('clean', function () {
|
gulp.task('clean', function () {
|
||||||
console.log('--clean--');
|
console.log('--clean--')
|
||||||
return del([distPath]);
|
// del([`${distPath}/static`, `${versionPath}/static/config`]);
|
||||||
});
|
// return del([versionPath])
|
||||||
|
return del([`${distPath}`])
|
||||||
|
})
|
||||||
|
|
||||||
// 构建结束清理
|
|
||||||
gulp.task('build-end', function () {
|
gulp.task('build-end', function () {
|
||||||
console.log('--builed-end--');
|
console.log('--builed-end--')
|
||||||
return del([
|
// del([`${distPath}/static`, `${versionPath}/static/config`]);
|
||||||
path.join(distPath, 'static'),
|
return del([`${distPath}/static`, `${versionPath}/static/config`]);
|
||||||
path.join(versionPath, 'static', 'config')
|
})
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
// 主任务 - 按正确顺序执行
|
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod';
|
||||||
gulp.task('default', gulp.series(
|
|
||||||
'clean',
|
gulp.task('default',
|
||||||
'build',
|
gulp.series('clean',
|
||||||
'create:versionCatalog',
|
gulp.parallel('create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config'),
|
||||||
gulp.parallel('replace:cdnUrl', 'replace:version'),
|
'build', 'build-end')
|
||||||
'concat:config',
|
)
|
||||||
'build-end',
|
|
||||||
function (done) {
|
|
||||||
console.log(`构建完成,环境: ${env},版本号: ${version}`);
|
|
||||||
done();
|
|
||||||
}
|
/* gulp.task('default', gulp.series('clean', function (done) {
|
||||||
));
|
// 获取环境配置
|
||||||
|
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod'
|
||||||
|
// 开始打包编译
|
||||||
|
// 开始打包编译
|
||||||
|
gulp.task('default', gulp.series('build','create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config', function (done) {
|
||||||
|
// 清除, 编译 / 处理项目中产生的文件
|
||||||
|
del([`${distPath}/static`, `${versionPath}/static/config`])
|
||||||
|
done();
|
||||||
|
}))
|
||||||
|
})); */
|
||||||
|
|
||||||
|
/*
|
||||||
|
gulp.task('default', gulp.series('clean', function (done) {
|
||||||
|
// 获取环境配置
|
||||||
|
env = process.env.npm_config_qa ? 'qa' : process.env.npm_config_uat ? 'uat' : 'prod'
|
||||||
|
// 开始打包编译
|
||||||
|
// 开始打包编译
|
||||||
|
gulp.task('default', gulp.series('build','create:versionCatalog', 'replace:cdnUrl', 'replace:version', 'concat:config', function (done) {
|
||||||
|
// 清除, 编译 / 处理项目中产生的文件
|
||||||
|
del([`${distPath}/static`, `${versionPath}/static/config`])
|
||||||
|
done();
|
||||||
|
}))
|
||||||
|
}));
|
||||||
|
*/
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export function summary_query(params) {
|
|||||||
*/
|
*/
|
||||||
export function userInfo_list(params) {
|
export function userInfo_list(params) {
|
||||||
return $http({
|
return $http({
|
||||||
url: "/czg/userInfo/list",
|
url: "/userInfo/list",
|
||||||
method: "get",
|
method: "get",
|
||||||
params
|
params
|
||||||
});
|
});
|
||||||
@@ -59,7 +59,7 @@ export function userInfo_list(params) {
|
|||||||
*/
|
*/
|
||||||
export function userInfo(data) {
|
export function userInfo(data) {
|
||||||
return $http({
|
return $http({
|
||||||
url: "/czg/userInfo",
|
url: "/userInfo",
|
||||||
method: "put",
|
method: "put",
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
@@ -71,7 +71,7 @@ export function userInfo(data) {
|
|||||||
*/
|
*/
|
||||||
export function userInfoDel(data) {
|
export function userInfoDel(data) {
|
||||||
return $http({
|
return $http({
|
||||||
url: "/czg/userInfo",
|
url: "/userInfo",
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.url = fileRes.replace(
|
this.url = fileRes.replace(
|
||||||
"https://sy-duanju.oss-cn-chengdu.aliyuncs.com/",
|
"https://sy-duanju.oss-cn-nanjing.aliyuncs.com/",
|
||||||
"https://short-video.hnsiyao.cn/"
|
"https://short-video.hnsiyao.cn/"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ export const productUrl='dj-admin';
|
|||||||
// const baseUrl = "https://api.tianjinzhitongdaohe.com/czg/"
|
// const baseUrl = "https://api.tianjinzhitongdaohe.com/czg/"
|
||||||
|
|
||||||
// const baseUrl = "https://web-api.hnsiyao.cn/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 = "https://ph.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{
|
export default{
|
||||||
baseUrl
|
baseUrl
|
||||||
|
|||||||
@@ -49,9 +49,6 @@ http.interceptors.response.use(response => {
|
|||||||
if (response.data && response.data.code === 401) { // 401, token失效
|
if (response.data && response.data.code === 401) { // 401, token失效
|
||||||
clearLoginInfo()
|
clearLoginInfo()
|
||||||
router.push({name: 'login'})
|
router.push({name: 'login'})
|
||||||
setTimeout(() => {
|
|
||||||
window.location.reload()
|
|
||||||
}, 300);
|
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
}, error => {
|
}, error => {
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return fileRes.replace(
|
return fileRes.replace(
|
||||||
"https://sy-duanju.oss-cn-chengdu.aliyuncs.com/",
|
"https://sy-duanju.oss-cn-nanjing.aliyuncs.com/",
|
||||||
"https://short-video.hnsiyao.cn/"
|
"https://short-video.hnsiyao.cn/"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -628,7 +628,7 @@
|
|||||||
dataSelect() {
|
dataSelect() {
|
||||||
this.tableDataLoading = true
|
this.tableDataLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('admin/sdkType/getSdkTypeList'),
|
url: this.$http.adornUrl('sdkType/getSdkTypeList'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
'page': this.page,
|
'page': this.page,
|
||||||
@@ -784,7 +784,7 @@
|
|||||||
// this.startTime = this.info2.stockDate2
|
// this.startTime = this.info2.stockDate2
|
||||||
// }
|
// }
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('admin/sdkInfo/getSdkList'),
|
url: this.$http.adornUrl('/admin/sdkInfo/getSdkList'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
'page': this.page,
|
'page': this.page,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" class="login-captcha">
|
<el-col :span="10" class="login-captcha">
|
||||||
<img :src="captchaPath" @click="getCaptcha()" alt="">
|
<img :src="captchaPath" @click="getCaptcha()" alt="">
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getUUID } from '@/utils'
|
import { getUUID } from '@/utils'
|
||||||
import { entryName } from '@/utils/httpRequest'
|
import { entryName } from '@/utils/httpRequest'
|
||||||
|
import { method } from 'lodash'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -84,16 +85,24 @@
|
|||||||
this.$router.replace({ name: 'home' })
|
this.$router.replace({ name: 'home' })
|
||||||
} else {
|
} else {
|
||||||
this.getCaptcha()
|
this.getCaptcha()
|
||||||
this.$message.error(data.msg)
|
this.$message.error(data.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
getCaptcha () {
|
async getCaptcha () {
|
||||||
this.dataForm.uuid = getUUID()
|
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({
|
this.$http({
|
||||||
url: this.$http.adornUrl('sys/user/info/' + userId),
|
url: this.$http.adornUrl('sys/user/info/' + userId),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
userId: userId
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
@@ -1978,11 +1981,8 @@
|
|||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
console.log('-------')
|
|
||||||
this.tableDataLoading = false
|
this.tableDataLoading = false
|
||||||
let returnData = data.data;
|
let returnData = data.data;
|
||||||
console.log(returnData)
|
|
||||||
|
|
||||||
this.tableDataYe = returnData
|
this.tableDataYe = returnData
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -3081,7 +3081,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/152'),
|
url: this.$http.adornUrl('common/type/152'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
type:152
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
@@ -3093,7 +3096,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/153'),
|
url: this.$http.adornUrl('common/type/153'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
type:153
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
@@ -1410,7 +1410,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.url = fileRes.replace(
|
this.url = fileRes.replace(
|
||||||
"https://sy-duanju.oss-cn-chengdu.aliyuncs.com/",
|
"https://sy-duanju.oss-cn-nanjing.aliyuncs.com/",
|
||||||
"https://short-video.hnsiyao.cn/"
|
"https://short-video.hnsiyao.cn/"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -1787,7 +1787,7 @@ export default {
|
|||||||
courseType: this.courseType,
|
courseType: this.courseType,
|
||||||
isRecommend: this.isRecommend,
|
isRecommend: this.isRecommend,
|
||||||
status: this.statusType,
|
status: this.statusType,
|
||||||
remark: this.remark,
|
// remark: this.remark,
|
||||||
bannerId: this.fenleiId2,
|
bannerId: this.fenleiId2,
|
||||||
isPrice: this.isPrice,
|
isPrice: this.isPrice,
|
||||||
isOver: this.isOver,
|
isOver: this.isOver,
|
||||||
@@ -2550,6 +2550,7 @@ export default {
|
|||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
courseDetailsId: row.courseDetailsId,
|
courseDetailsId: row.courseDetailsId,
|
||||||
advertising: row.advertising,
|
advertising: row.advertising,
|
||||||
|
courseId: row.courseId,
|
||||||
}),
|
}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@@ -2591,6 +2592,7 @@ export default {
|
|||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
courseDetailsId: row.courseDetailsId,
|
courseDetailsId: row.courseDetailsId,
|
||||||
good: row.good,
|
good: row.good,
|
||||||
|
courseId: row.courseId,
|
||||||
}),
|
}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@@ -2651,6 +2653,9 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/247"),
|
url: this.$http.adornUrl("common/type/247"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@@ -2663,6 +2668,9 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/450"),
|
url: this.$http.adornUrl("common/type/450"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:450
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@@ -2673,6 +2681,9 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/451"),
|
url: this.$http.adornUrl("common/type/451"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:451
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@@ -2683,7 +2694,7 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/849"),
|
url: this.$http.adornUrl("common/type/849"),
|
||||||
method: "get",
|
method: "get",
|
||||||
params: this.$http.adornParams({}),
|
params: this.$http.adornParams({type:849}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
if (data.data.value == "是") {
|
if (data.data.value == "是") {
|
||||||
|
|||||||
@@ -1576,6 +1576,9 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/247'),
|
url: this.$http.adornUrl('common/type/247'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({})
|
data: this.$http.adornData({})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|||||||
@@ -1453,6 +1453,9 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/247'),
|
url: this.$http.adornUrl('common/type/247'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({})
|
data: this.$http.adornData({})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|||||||
@@ -1158,7 +1158,8 @@
|
|||||||
'page': this.page,
|
'page': this.page,
|
||||||
'limit': this.limit,
|
'limit': this.limit,
|
||||||
'member': this.member,
|
'member': this.member,
|
||||||
'phone': this.phone
|
'phone': this.phone,
|
||||||
|
type:88
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|||||||
@@ -148,7 +148,9 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/menu/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/sys/menu/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams({
|
||||||
|
menuId: this.dataForm.id
|
||||||
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.dataForm.id = data.menu.menuId
|
this.dataForm.id = data.menu.menuId
|
||||||
this.dataForm.type = data.menu.type
|
this.dataForm.type = data.menu.type
|
||||||
|
|||||||
@@ -130,7 +130,9 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/menu/delete/${id}`),
|
url: this.$http.adornUrl(`/sys/menu/delete/${id}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData({
|
||||||
|
menuId: id
|
||||||
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
@@ -72,12 +72,15 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/role/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/sys/role/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams({
|
||||||
|
roleId:this.dataForm.id
|
||||||
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataForm.roleName = data.role.roleName
|
this.dataForm.roleName = data.role.roleName
|
||||||
this.dataForm.remark = data.role.remark
|
this.dataForm.remark = data.role.remark
|
||||||
var idx = data.role.menuIdList.indexOf(this.tempKey)
|
var idx = data.role.menuIdList.indexOf(this.tempKey)
|
||||||
|
console.log(idx);
|
||||||
if (idx !== -1) {
|
if (idx !== -1) {
|
||||||
data.role.menuIdList.splice(idx, data.role.menuIdList.length - idx)
|
data.role.menuIdList.splice(idx, data.role.menuIdList.length - idx)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataForm.userName = data.user.username
|
this.dataForm.userName = data.user.username
|
||||||
|
|||||||
@@ -190,7 +190,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
@@ -193,7 +193,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
@@ -208,9 +208,12 @@ export default {
|
|||||||
page: this.tableData.page,
|
page: this.tableData.page,
|
||||||
limit: this.tableData.limit
|
limit: this.tableData.limit
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log("获取抽奖记录列表", data);
|
||||||
|
|
||||||
this.tableData.loading = false;
|
this.tableData.loading = false;
|
||||||
this.tableData.list = data.page.list;
|
this.tableData.list = data.data.list;
|
||||||
this.tableData.total = data.page.totalCount;
|
this.tableData.total = data.data.totalCount;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.tableData.loading = false;
|
this.tableData.loading = false;
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
@@ -1380,7 +1380,10 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`user/${userId}`),
|
url: this.$http.adornUrl(`user/${userId}`),
|
||||||
method: "get",
|
method: "get",
|
||||||
params: this.$http.adornParams({}),
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
userId: userId,
|
||||||
|
},
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code === 0) {
|
if (data.code === 0) {
|
||||||
console.log("data", data);
|
console.log("data", data);
|
||||||
@@ -1868,7 +1871,7 @@ export default {
|
|||||||
this.tableDataLoading = true;
|
this.tableDataLoading = true;
|
||||||
let userId = this.$route.query.userId;
|
let userId = this.$route.query.userId;
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("admin/sdkInfo/getSdkList"),
|
url: this.$http.adornUrl("sdkInfo/getSdkList"),
|
||||||
method: "get",
|
method: "get",
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
page: this.page,
|
page: this.page,
|
||||||
|
|||||||
@@ -1311,7 +1311,10 @@
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`user/${userId}`),
|
url: this.$http.adornUrl(`user/${userId}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
userId: userId,
|
||||||
|
},
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
@@ -998,7 +998,10 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`user/deleteUserByUserId/${delid}`),
|
url: this.$http.adornUrl(`user/deleteUserByUserId/${delid}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params: this.$http.adornData({})
|
params: this.$http.adornData({}),
|
||||||
|
data: {
|
||||||
|
'userId': delid
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<span>成功笔数:</span> {{ orderInfo.withdrawTotal.success.count }}
|
<span>成功笔数:</span> {{ orderInfo.withdrawTotal.success.count }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span>失败合计:</span> {{ orderInfo.withdrawTotal.fail.total }}
|
<span>失败合计:</span> {{ orderInfo.withdrawTotal.fail.count }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span>失败笔数:</span> {{ orderInfo.withdrawTotal.fail.count }}
|
<span>失败笔数:</span> {{ orderInfo.withdrawTotal.fail.count }}
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
<span>成功笔数:</span> {{ orderInfo.payTotal.success.count }}
|
<span>成功笔数:</span> {{ orderInfo.payTotal.success.count }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span>失败合计:</span> {{ orderInfo.payTotal.fail.total }}
|
<span>失败合计:</span> {{ orderInfo.payTotal.fail.count }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span>失败笔数:</span> {{ orderInfo.payTotal.fail.count }}
|
<span>失败笔数:</span> {{ orderInfo.payTotal.fail.count }}
|
||||||
@@ -148,12 +148,11 @@ export default {
|
|||||||
if (!this.queryForm.outTradeNo) return
|
if (!this.queryForm.outTradeNo) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const res = await queryByTradeNo({ outTradeNo: this.queryForm.outTradeNo })
|
const res = await queryByTradeNo({ outTradeNo: this.queryForm.outTradeNo })
|
||||||
console.log(res);
|
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
this.orderInfo = res.data.data
|
this.orderInfo = res.data.data
|
||||||
} else {
|
} else {
|
||||||
this.orderInfo = ''
|
this.orderInfo = ''
|
||||||
this.$message.error(res.data.msg)
|
this.$message.error(res.data.message)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.orderInfo = ''
|
this.orderInfo = ''
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
window.SITE_CONFIG = {};
|
window.SITE_CONFIG = {};
|
||||||
|
|
||||||
// api接口请求地址
|
// api接口请求地址
|
||||||
window.SITE_CONFIG['baseUrl'] = 'https://web.hnsiyao.cn/czg';
|
window.SITE_CONFIG['baseUrl'] = 'https://ditanxiong.gomyorder.cn/czg';
|
||||||
|
|
||||||
// cdn地址 = 域名 + 版本号
|
// cdn地址 = 域名 + 版本号
|
||||||
window.SITE_CONFIG['domain'] = './'; // 域名
|
window.SITE_CONFIG['domain'] = './'; // 域名
|
||||||
|
|||||||
Reference in New Issue
Block a user