From f3bcf62be3182320fbb14d8b42c635e4ecbc9f83 Mon Sep 17 00:00:00 2001 From: xuetaotao Date: Sat, 19 Feb 2022 13:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E5=AE=A1=E6=A0=B8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=B3=E8=BD=ACH5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 商户审核页面跳转H5 --- pages/user/user.js | 38 ++++++++++++++++++++++++-------------- pages/user/user.wxml | 33 ++++++++++++++++++--------------- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/pages/user/user.js b/pages/user/user.js index d4dd12a..c325da0 100644 --- a/pages/user/user.js +++ b/pages/user/user.js @@ -1,14 +1,15 @@ import common from "../../utils/https/common"; // pages/user/user.js import userApi from "../../utils/https/user" +let app = getApp() Page({ /** * 页面的初始数据 */ data: { - height:0, - info:null + height: 0, + info: null }, /** @@ -17,30 +18,39 @@ Page({ onLoad: function (options) { let rect = wx.getMenuButtonBoundingClientRect(); this.setData({ - height:rect.top+rect.height + height: rect.top + rect.height + }) + + }, + /** + * 跳转H5的商户审核页面 + */ + gotoH5Audit: function () { + app.globalData.weburl = "https://m.cloud.sz-trip.com/Audit" + wx.navigateTo({ + url: '/pages/pbService/web/index' }) - }, - retail:function(){ - common.user_post('commission/getCommissionUser',{}).then(res=>{ - if(res.code==0){ + retail: function () { + common.user_post('commission/getCommissionUser', {}).then(res => { + if (res.code == 0) { wx.navigateTo({ url: 'retail/apply/index', }) } - else if(res.data.status==0){ + else if (res.data.status == 0) { wx.showToast({ title: '正在审核中,请联系管理员', - icon:'none' + icon: 'none' }) } - else if(res.data.status==2){ + else if (res.data.status == 2) { wx.showToast({ title: '审核拒绝,请联系管理员', - icon:'none' + icon: 'none' }) } - else if(res.data.status==1){ + else if (res.data.status == 1) { wx.navigateTo({ url: 'retail/index', }) @@ -58,9 +68,9 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - userApi.user_post("user/getMyInfo").then(res=>{ + userApi.user_post("user/getMyInfo").then(res => { this.setData({ - info:res.data + info: res.data }) }) }, diff --git a/pages/user/user.wxml b/pages/user/user.wxml index 9af4ba4..055cf2c 100644 --- a/pages/user/user.wxml +++ b/pages/user/user.wxml @@ -1,11 +1,14 @@ - + - {{info.nickname}} + {{info.nickname}} + id:{{info.id}} @@ -43,27 +46,27 @@ - 购物车 + 购物车 - + - 团体订单 + 团体订单 - 在线客服 + 在线客服 - 我的卡券 + 我的卡券 - 我的收藏 - - - 商户审核 + 我的收藏 + + 商户审核 + - 实名认证 + 实名认证 - 出游人信息 + 出游人信息 - 收货地址 + 收货地址 - + \ No newline at end of file