Commit 283fc740b7999c68a1faf6ea6249b6411d055abb

Authored by pengye
1 parent dfe8a36b

发送意向店铺通知短信

@@ -74,6 +74,21 @@ Page({ @@ -74,6 +74,21 @@ Page({
74 if (res.ret != 200) { 74 if (res.ret != 200) {
75 return util.toast(res.msg, 'none') 75 return util.toast(res.msg, 'none')
76 } 76 }
  77 + this.sendIntentionFun()
  78 + })
  79 + },
  80 + // 发送意向店铺通知短信
  81 + sendIntentionFun(){
  82 + App.SaiYouYun.SendIntention({
  83 + shopname:this.data.sellername.trim(),
  84 + shopnumber:this.data.phone.trim(),
  85 + name:this.data.rname.trim(),
  86 + address: this.data.map_address,
  87 + openid: getApp().openid,
  88 + }).then(res => {
  89 + if (res.ret != 200) {
  90 + return util.toast(res.msg, 'none')
  91 + }
77 wx.redirectTo({ 92 wx.redirectTo({
78 url: '/pages/customer/collectSeller', 93 url: '/pages/customer/collectSeller',
79 }) 94 })
@@ -725,5 +725,10 @@ export default { @@ -725,5 +725,10 @@ export default {
725 'App.SellerVersion.SetSellerCollect':{ 725 'App.SellerVersion.SetSellerCollect':{
726 openid:'openid' 726 openid:'openid'
727 }, 727 },
  728 +
  729 + // 发送意向店铺通知短信
  730 + 'App.SaiYouYun.SendIntention':{
  731 + openid:'openid'
  732 + },
728 733
729 } 734 }