Commit 2dff1a96 authored by zhouyx's avatar zhouyx

咨询服务发送钉钉消息。

parent ad74750a
This diff is collapsed.
...@@ -13,7 +13,7 @@ const Config = { ...@@ -13,7 +13,7 @@ const Config = {
/** /**
* @description: 默认接口地址 * @description: 默认接口地址
*/ */
// apiBaseUrl: "http://localhost:6066", // apiBaseUrl: "http://localhost:6006",
apiBaseUrl: "http://47.92.102.113:6006", apiBaseUrl: "http://47.92.102.113:6006",
// apiBaseUrl: "http://154.8.185.122:8002", // apiBaseUrl: "http://154.8.185.122:8002",
timeout: 30000, // 请求超时时间 timeout: 30000, // 请求超时时间
......
...@@ -308,9 +308,9 @@ ...@@ -308,9 +308,9 @@
placeholder="请填写您的邮箱" placeholder="请填写您的邮箱"
></Input> ></Input>
</FormItem> </FormItem>
<FormItem label="留言" prop="ly"> <FormItem label="留言" prop="note">
<Input <Input
v-model.trim="entity.ly" v-model.trim="entity.note"
type="textarea" type="textarea"
placeholder="请填写您想对我们说的" placeholder="请填写您想对我们说的"
></Input> ></Input>
...@@ -443,6 +443,7 @@ export default { ...@@ -443,6 +443,7 @@ export default {
email: "", email: "",
note: "", note: "",
type: "", type: "",
come:"",
}, },
screenY: 0, screenY: 0,
rules: { rules: {
...@@ -597,7 +598,8 @@ export default { ...@@ -597,7 +598,8 @@ export default {
sendMessage() { sendMessage() {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
this.$api.post("/message/create", this.entity).then((r) => { this.entity.come=window.location.href;
this.$api.post("/message/ding", this.entity).then((r) => {
if (r.success) { if (r.success) {
// console.log(r); // console.log(r);
this.$Message.success("留言成功!"); this.$Message.success("留言成功!");
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment