Commit fc89f46e by 李嘉林

测试订阅

parent 651f7d68
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
"pages/wxArticle/main", "pages/wxArticle/main",
"pages/userInfo/main", "pages/userInfo/main",
"pages/memberCode/main", "pages/memberCode/main",
"pages/toMini/main" "pages/toMini/main",
"pages/paySuccess/main"
], ],
"subPackages": [ "subPackages": [
{ {
......
<template>
<!-- 支付成功页 -->
<div class="paySuccess" @click="toDingyue">
点击订阅
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: "",
data() {
return {};
},
components: {},
computed: {},
created() {},
mounted() {},
methods: {
toDingyue() {
wx.requestSubscribeMessage({
tmplIds: ['cTgB0EMEibieOPU6HWPbmr3YCea7MZYCryxmi2_fS5o','pWi2-icKybK1fSSjRf-wrsQE1jmsuEp1QgPTAxn2nB0'],
success (res) {
console.log(res,'-------------res')
}
})
}
},
};
</script>
<style lang="scss" scoped>
.paySuccess{
margin-top: 200px;
}
</style>
import Vue from 'vue'
import App from './index'
const app = new Vue(App)
app.$mount()
{
"navigationBarTitleText": "登录",
"usingComponents": {
"van-checkbox": "/static/vant/checkbox/index",
"van-popup":"/static/vant/popup/index",
"van-picker": "/static/vant/picker/index",
"van-icon":"/static/vant/icon/index",
"photo-gallery":"/static/nativeComponents/PhotoGallery/index",
"notice":"/static/nativeComponents/Notice/index"
},
"navigationStyle":"custom"
}
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