|
|
@@ -155,6 +155,36 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+
|
|
|
+ getTemplateList(){
|
|
|
+ let that = this
|
|
|
+ that.$api.getTemplateList({
|
|
|
+ type:2
|
|
|
+ }).then(res=>{
|
|
|
+ let templateId = res.data.data.data.map(item=>{
|
|
|
+ return item.priTmplId
|
|
|
+ })
|
|
|
+
|
|
|
+ uni.requestSubscribeMessage({
|
|
|
+ tmplIds: templateId,
|
|
|
+ success: (res) =>{
|
|
|
+ console.log('+++++++++success++++++++',res)
|
|
|
+ let {errMsg,...param} = res
|
|
|
+ that.$api.updateSubscribe(param).then(res=>{
|
|
|
+ console.log('+++++++++++++updateSubscribe+++++++++++++',res)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail:(err)=>{
|
|
|
+ console.log('+++++++++++++fail+++++++++++++',err)
|
|
|
+ },
|
|
|
+ complete:(complete)=>{
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
clickListItem(e){
|
|
|
|
|
|
if (e.title === '亲情卡'){
|
|
|
@@ -166,6 +196,11 @@ export default {
|
|
|
url:e.to
|
|
|
})
|
|
|
})
|
|
|
+ }else if (e.title === '服务对象管理'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:e.to
|
|
|
+ })
|
|
|
+ this.getTemplateList()
|
|
|
}else {
|
|
|
uni.navigateTo({
|
|
|
url:e.to
|