From 2da160d1ef882dbf072dad845084748043b11fbb Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期一, 20 三月 2023 14:09:31 +0800
Subject: [PATCH] 公共宣传-我要注册
---
miniprogram/pages/user/pubulicty/index.ts | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/miniprogram/pages/user/pubulicty/index.ts b/miniprogram/pages/user/pubulicty/index.ts
index 1c1aef5..36c2870 100644
--- a/miniprogram/pages/user/pubulicty/index.ts
+++ b/miniprogram/pages/user/pubulicty/index.ts
@@ -4,12 +4,65 @@
Page({
data: {
+ cardFig:true,
swcurrent: 0,
causeList: [],
isShow: false
},
+ register(e){
+ console.log(e);
+
+ },
+ getMobile(){
+ // 鑾峰彇鎵嬫満鍙�
+ wx.request(
+ {
+ url:userCause.globalData.url+ "/wx/user/myself",
+ method:"GET",
+ data:{
+ id:wx.getStorageSync('id')
+ },
+ header:{'token':wx.getStorageSync('token')},
+ success:(res)=>{
+ console.log(res)
+ if (res.data.data.userMobile) {
+ this.getUserRegister(res.data.data.userMobile)
+ }
+ }
+ })
+
+ },
+ // 閫氳繃鎵嬫満鍙锋煡璇㈡槸鍚︽槸宸叉敞鍐岀敤鎴�
+ getUserRegister(phone){
+ wx.request(
+ {
+ url:userCause.globalData.url+ "/wx/isExist",
+ method:"GET",
+ data:{
+ phone:phone
+ },
+ header:{'token':wx.getStorageSync('token')},
+ success:(res)=>{
+ console.log(res)
+
+ }
+ })
+ },
// 浜嬩欢澶勭悊鍑芥暟
onLoad() {
+ this.getMobile()
+ let info=wx.getStorageSync('card')
+ console.log(info);
+
+ if (info) {
+ this.setData({
+ cardFig :false
+ })
+ }else{
+ this.setData({
+ cardFig :true
+ })
+ }
wx.request(
{
url: userCause.globalData.url + "/wx/publicity",
--
Gitblit v1.8.0