[添加洗车券]
This commit is contained in:
@@ -45,6 +45,8 @@ Page({
|
|||||||
|
|
||||||
// 获取卡券列表
|
// 获取卡券列表
|
||||||
this.couponInfo()
|
this.couponInfo()
|
||||||
|
|
||||||
|
console.log(this.data.platformCp[this.data.platIndex])
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
|
console.log(options)
|
||||||
// 登录方式-活动
|
// 登录方式-活动
|
||||||
this.setData({
|
this.setData({
|
||||||
way : options.way
|
way : options.way
|
||||||
@@ -40,7 +40,6 @@ Page({
|
|||||||
}else {
|
}else {
|
||||||
// 获取用户手机列表
|
// 获取用户手机列表
|
||||||
const logintel = wx.getStorageSync("users")
|
const logintel = wx.getStorageSync("users")
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
loginTel : logintel
|
loginTel : logintel
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -332,9 +332,11 @@ Page({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
wx.requestSubscribeMessage({
|
wx.requestSubscribeMessage({
|
||||||
tmplIds: ['6SJqWbasj42O_d7yET1s5G1eg62Z4SS3pByBeuXekSo'],
|
// 6SJqWbasj42O_d7yET1s5G1eg62Z4SS3pByBeuXekSo 正式
|
||||||
|
// g8cEL-Tf2_Pdh8VyBdsYbhv09VVm8om-ZblhXIaVDiY 测试
|
||||||
|
tmplIds: ['g8cEL-Tf2_Pdh8VyBdsYbhv09VVm8om-ZblhXIaVDiY'],
|
||||||
success: res=> {
|
success: res=> {
|
||||||
if(res.errMsg == "requestSubscribeMessage:ok") {
|
if(res["g8cEL-Tf2_Pdh8VyBdsYbhv09VVm8om-ZblhXIaVDiY"] == "accept") {
|
||||||
wx.$api.index.subscribe(1).then(res=>{
|
wx.$api.index.subscribe(1).then(res=>{
|
||||||
wx.showLoading({
|
wx.showLoading({
|
||||||
title: res.data,
|
title: res.data,
|
||||||
@@ -348,8 +350,6 @@ Page({
|
|||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
}).catch(err=>{
|
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user