Commit 9a06fa8c authored by 罗林杰's avatar 罗林杰

修改互要微信

parent 9395e780
...@@ -384,9 +384,7 @@ export default { ...@@ -384,9 +384,7 @@ export default {
againConfirm(){ againConfirm(){
const form = { const form = {
targetId: this.targetId, targetId: this.targetId,
type: '1', type: '1'
againRequest: '1',
wxOpenid: this.userInfo.wxOpenid
} }
wantWeChatTask(form).then(res=>{ wantWeChatTask(form).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
...@@ -400,6 +398,12 @@ export default { ...@@ -400,6 +398,12 @@ export default {
title: res.data.message, title: res.data.message,
icon: 'none' icon: 'none'
}) })
} else if (res.data.code == 1007){
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.getWxTask()
} else { } else {
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
...@@ -410,9 +414,7 @@ export default { ...@@ -410,9 +414,7 @@ export default {
applyPayConfirm(){ applyPayConfirm(){
const form = { const form = {
targetId: this.targetId, targetId: this.targetId,
type: '1', type: '1'
againRequest: '0',
wxOpenid: this.userInfo.wxOpenid
} }
wantWeChatTask(form).then(res=>{ wantWeChatTask(form).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
...@@ -426,6 +428,12 @@ export default { ...@@ -426,6 +428,12 @@ export default {
title: res.data.message, title: res.data.message,
icon: 'none' icon: 'none'
}) })
} else if (res.data.code == 1007){
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.getWxTask()
} else { } else {
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
...@@ -466,9 +474,7 @@ export default { ...@@ -466,9 +474,7 @@ export default {
const form = { const form = {
targetId: this.targetId, targetId: this.targetId,
status: '2', status: '2',
type: '2', type: '2'
againRequest: '0',
wxOpenid: this.userInfo.wxOpenid
} }
wantWeChatTask(form).then(res=>{ wantWeChatTask(form).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
......
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