订阅
This commit is contained in:
parent
8ebe968b1b
commit
88446d271c
@ -35,7 +35,6 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
appid: accountInfo.miniProgram.appId,
|
appid: accountInfo.miniProgram.appId,
|
||||||
});
|
});
|
||||||
console.log('contact page onLoad, options:', options);
|
|
||||||
|
|
||||||
// 检查是否已有用户信息
|
// 检查是否已有用户信息
|
||||||
if (wx.getStorageSync('user_info')) {
|
if (wx.getStorageSync('user_info')) {
|
||||||
|
|||||||
@ -144,5 +144,19 @@ Page({
|
|||||||
danceIndex: nextIndex,
|
danceIndex: nextIndex,
|
||||||
currentDance: danceList[nextIndex]
|
currentDance: danceList[nextIndex]
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
handleContact() {
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['9dCV3z7vRPBGm8iMtSXsD7ZVyUjld46w7HTH9zLnzWw'],
|
||||||
|
success: (res) => {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: `/pages/contact/index`
|
||||||
|
});
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user