| | |
| | | </view> |
| | | </block> |
| | | </view> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | title: '会员卡共享', |
| | | content: '确认共享您的会员卡?', |
| | | success: async function(res) { |
| | | if (res.confirm) { |
| | | await editShareTypeApi(postData).then(async(res) =>{ |
| | | if(res.code == 200){ |
| | | if(res.confirm){ |
| | | await editShareTypeApi(postData).then(async res1 =>{ |
| | | if(res1.code == 200){ |
| | | uni.showToast({ |
| | | title:'共享成功!' |
| | | title:'共享成功!', |
| | | }) |
| | | await getAskShareList() |
| | | }else{ |
| | | uni.showToast({ |
| | | title:'共享失败!', |
| | | icon:'none' |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | title: '会员卡共享', |
| | | content: '确认取消共享?', |
| | | success: async function(res) { |
| | | if (res.confirm) { |
| | | await editShareTypeApi(postData).then(async(res) =>{ |
| | | if(res.code == 200){ |
| | | if(res.confirm) { |
| | | await editShareTypeApi(postData).then(async(res2) =>{ |
| | | if(res2.code == 200){ |
| | | uni.showToast({ |
| | | title:'取消共享成功!' |
| | | }) |
| | | await getAskShareList() |
| | | }else{ |
| | | uni.showToast({ |
| | | title:'取消失败!', |
| | | icon:'none' |
| | | }) |
| | | } |
| | | }) |
| | | } |