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