Compare commits
2 Commits
master
...
master_php
| Author | SHA1 | Date | |
|---|---|---|---|
| 3abb12a538 | |||
| 9a6a4b4c1d |
@@ -15,7 +15,9 @@ const http = axios.create({
|
|||||||
|
|
||||||
// const requestURl = "http://localhost:8100/czg/";
|
// const requestURl = "http://localhost:8100/czg/";
|
||||||
// const requestURl = "https://web-api.hnsiyao.cn/czg/";//测试
|
// const requestURl = "https://web-api.hnsiyao.cn/czg/";//测试
|
||||||
const requestURl = "https://web.hnsiyao.cn/czg/";//正式
|
// const requestURl = "https://web.hnsiyao.cn/czg/";//正式
|
||||||
|
// const requestURl = "http://192.168.1.31:8080/admin/";//php本地
|
||||||
|
const requestURl = "https://playlet.test.sxczgkj.com/admin/";//php测试服
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求拦截
|
* 请求拦截
|
||||||
@@ -38,6 +40,7 @@ http.interceptors.response.use(response => {
|
|||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
}, error => {
|
}, error => {
|
||||||
|
console.log(error)
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
</el-button> -->
|
</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table v-loading="tableDataLoadingKm" :data="tableDataKm.records" @selection-change="changeFunP" >
|
<el-table v-loading="tableDataLoadingKm" :data="tableDataKm.records" @selection-change="changeFunP" >
|
||||||
<el-table-column type="selection">
|
<el-table-column type="selection">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
<el-table-column prop="sdkContent" label="卡密">
|
<el-table-column prop="sdkContent" label="卡密">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="sysUserName" label="渠道商名称">
|
<el-table-column prop="sysUserName" label="渠道商名称">
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="giveNum" label="赠送会员天数">
|
<el-table-column prop="giveNum" label="赠送会员天数">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
<el-button type="primary" @click="amendNoticeTo()">确 定</el-button>
|
<el-button type="primary" @click="amendNoticeTo()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 生成卡密 -->
|
<!-- 生成卡密 -->
|
||||||
<el-dialog title="生成卡密" :visible.sync="dialogFormVisible3" center width="70%">
|
<el-dialog title="生成卡密" :visible.sync="dialogFormVisible3" center width="70%">
|
||||||
<div style="margin-bottom: 10px;">
|
<div style="margin-bottom: 10px;">
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
<el-table-column prop="sdkContent" label="卡密">
|
<el-table-column prop="sdkContent" label="卡密">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="sysUserName" label="渠道商名称">
|
<el-table-column prop="sysUserName" label="渠道商名称">
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="giveNum" label="赠送会员天数" width="80">
|
<el-table-column prop="giveNum" label="赠送会员天数" width="80">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="qdRate" header-align="center" align="center" label="渠道佣金">
|
<el-table-column prop="qdRate" header-align="center" align="center" label="渠道佣金">
|
||||||
<!-- <template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
<span v-for="(item,index) in scope.row.roleEntityList" :key="index">{{item.roleName}} </span>
|
<span v-for="(item,index) in scope.row.roleEntityList" :key="index">{{item.roleName}} </span>
|
||||||
</template> -->
|
</template> -->
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="qdCode" header-align="center" align="center" label="渠道码">
|
<el-table-column prop="qdCode" header-align="center" align="center" label="渠道码">
|
||||||
@@ -395,7 +395,7 @@
|
|||||||
this.page = val;
|
this.page = val;
|
||||||
this.dataSelectKm()
|
this.dataSelectKm()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSizeChangeY(val) {
|
handleSizeChangeY(val) {
|
||||||
this.size1 = val;
|
this.size1 = val;
|
||||||
this.dataSelectYhq()
|
this.dataSelectYhq()
|
||||||
@@ -477,9 +477,9 @@
|
|||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (this.titles == '添加') {
|
if (this.titles == '添加') {
|
||||||
var url = 'couponCard/insertCouponCardType'
|
var url = 'couponCard/insertCouponCardType'
|
||||||
} else {
|
} else {
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
@@ -698,7 +698,7 @@
|
|||||||
'typeId': this.couponCardTypeId,
|
'typeId': this.couponCardTypeId,
|
||||||
'num':this.num,
|
'num':this.num,
|
||||||
'sysUserId':this.sysUserId,
|
'sysUserId':this.sysUserId,
|
||||||
|
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
@@ -723,7 +723,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 卡密列表
|
// 卡密列表
|
||||||
@@ -750,6 +750,7 @@
|
|||||||
'startTime': this.startTime,
|
'startTime': this.startTime,
|
||||||
'sysUserName':this.sysUserNameT,
|
'sysUserName':this.sysUserNameT,
|
||||||
'sysUserId':this.sysUserId,
|
'sysUserId':this.sysUserId,
|
||||||
|
'userId':this.sysUserId,
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
@@ -757,7 +758,7 @@
|
|||||||
this.tableDataLoadingKm = false
|
this.tableDataLoadingKm = false
|
||||||
let returnData = data.data;
|
let returnData = data.data;
|
||||||
this.tableDataKm = returnData
|
this.tableDataKm = returnData
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 详情跳转
|
// 详情跳转
|
||||||
@@ -780,7 +781,7 @@
|
|||||||
this.dataSelectKm()
|
this.dataSelectKm()
|
||||||
this.dialogFormVisibleKm = true
|
this.dialogFormVisibleKm = true
|
||||||
},
|
},
|
||||||
|
|
||||||
// 导出
|
// 导出
|
||||||
excelStair(){
|
excelStair(){
|
||||||
// var endTime = this.endTime
|
// var endTime = this.endTime
|
||||||
@@ -800,7 +801,7 @@
|
|||||||
'endTime': this.endTime,
|
'endTime': this.endTime,
|
||||||
'startTime': this.startTime,
|
'startTime': this.startTime,
|
||||||
'sysUserName':this.sysUserNameT
|
'sysUserName':this.sysUserNameT
|
||||||
|
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
@@ -859,7 +860,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
@@ -902,7 +903,7 @@
|
|||||||
qudaoBtn(){
|
qudaoBtn(){
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
this.dialogFormVisibleQd = true
|
this.dialogFormVisibleQd = true
|
||||||
|
|
||||||
},
|
},
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
@@ -932,7 +933,7 @@
|
|||||||
this.sysUserName = row.username
|
this.sysUserName = row.username
|
||||||
this.dialogFormVisibleQd = false
|
this.dialogFormVisibleQd = false
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if(this.$cookie.get('sysUserId')&&this.$cookie.get('sysUserId')!='null'){
|
if(this.$cookie.get('sysUserId')&&this.$cookie.get('sysUserId')!='null'){
|
||||||
|
|||||||
@@ -187,9 +187,13 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
// url: this.$http.adornUrl('app/Login/sendMsg/'+this.tableData.mobile+'/regis'),
|
// url: this.$http.adornUrl('app/Login/sendMsg/'+this.tableData.mobile+'/regis'),
|
||||||
url: this.$http.adornUrl(
|
url: this.$http.adornUrl(
|
||||||
"app/Login/sendMsg/" + this.dataForm.mobile + "/regis"
|
"Login/sendMsg/" + this.dataForm.mobile + "/regis"
|
||||||
),
|
),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params:{
|
||||||
|
phone: this.dataForm.mobile,
|
||||||
|
event:'regis'
|
||||||
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
@@ -251,7 +255,7 @@ export default {
|
|||||||
// 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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -277,18 +281,27 @@ export default {
|
|||||||
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(
|
const res =await this.$http({
|
||||||
`/captcha.jpg?uuid=${this.dataForm.uuid}`
|
url: this.$http.adornUrl("indetcode/getCode"),
|
||||||
);
|
method:'get',
|
||||||
|
params:{
|
||||||
|
uuid:this.dataForm.uuid
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log(res);
|
||||||
|
this.captchaPath=res.data.data.img
|
||||||
|
// this.captchaPath = this.$http.adornUrl(
|
||||||
|
// `/captcha.jpg?uuid=${this.dataForm.uuid}`
|
||||||
|
// );
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -955,9 +955,13 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
// url: this.$http.adornUrl('app/Login/sendMsg/'+this.tableData.mobile+'/regis'),
|
// url: this.$http.adornUrl('app/Login/sendMsg/'+this.tableData.mobile+'/regis'),
|
||||||
url: this.$http.adornUrl(
|
url: this.$http.adornUrl(
|
||||||
"app/Login/sendMsg/" + this.tableData.mobile + "/regis"
|
"Login/sendMsg/" + this.tableData.mobile + "/regis"
|
||||||
),
|
),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params:{
|
||||||
|
phone: this.tableData.mobile,
|
||||||
|
event:'regis'
|
||||||
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
@@ -1414,7 +1418,7 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// this.tableDataLoading1 = true
|
this.tableDataLoading1 = true
|
||||||
let userId = this.$cookie.get("userId");
|
let userId = this.$cookie.get("userId");
|
||||||
this.$http({
|
this.$http({
|
||||||
// url: this.$http.adornUrl('cash/cashMoney'),
|
// url: this.$http.adornUrl('cash/cashMoney'),
|
||||||
|
|||||||
Reference in New Issue
Block a user