Browse Source

新增会员信息

新增密码修改
个人中心新增积分,余额,收藏显示
master
杜叶春 2 years ago
parent
commit
eef6a51f47
  1. 5
      app.json
  2. 2
      app.wxss
  3. BIN
      images/filter.png
  4. BIN
      images/member/component_lv_0.png
  5. BIN
      images/member/component_lv_1.png
  6. BIN
      images/member/component_lv_2.png
  7. BIN
      images/member/component_lv_3.png
  8. BIN
      images/member/component_lv_4.png
  9. BIN
      images/member/component_lv_5.png
  10. BIN
      images/member/component_lv_6.png
  11. BIN
      images/member/lv_0.png
  12. BIN
      images/member/lv_1.png
  13. BIN
      images/member/lv_2.png
  14. BIN
      images/member/lv_3.png
  15. BIN
      images/member/lv_4.png
  16. BIN
      images/member/lv_5.png
  17. BIN
      images/member/lv_6.png
  18. 5
      pages/category/category.wxml
  19. 21
      pages/category/category.wxss
  20. 41
      pages/coupon/index.js
  21. 16
      pages/index/index.js
  22. 6
      pages/index/index.wxml
  23. 7
      pages/index/index.wxss
  24. 26
      pages/listdetail/listdetail.js
  25. 7
      pages/listdetail/listdetail.wxml
  26. 4
      pages/login/login.wxml
  27. 66
      pages/member/member.js
  28. 4
      pages/member/member.json
  29. 2
      pages/member/member.wxml
  30. 1
      pages/member/member.wxss
  31. 10
      pages/order/pay.js
  32. 12
      pages/order/pay.wxml
  33. 13
      pages/order/pay.wxss
  34. 40
      pages/set/password.js
  35. 23
      pages/set/password.wxml
  36. 80
      pages/set/password.wxss
  37. 42
      pages/set/set.wxml
  38. 6
      pages/set/set.wxss
  39. 5
      pages/user/score.json
  40. 3
      pages/user/score.wxml
  41. 65
      pages/user/transfer.js
  42. 3
      pages/user/transfer.json
  43. 44
      pages/user/transfer.wxml
  44. 97
      pages/user/transfer.wxss
  45. 175
      pages/user/transfer1.js
  46. 3
      pages/user/transfer1.json
  47. 61
      pages/user/transfer1.wxml
  48. 124
      pages/user/transfer1.wxss
  49. 61
      pages/user/transfer_jifen.js
  50. 87
      pages/user/user.js
  51. 74
      pages/user/user.wxml
  52. 57
      pages/user/user.wxss
  53. 1
      pages/user/wallet.json
  54. 11
      pages/user/wallet.wxml
  55. 7
      utils/server.js

5
app.json

@ -36,8 +36,6 @@
"pages/group_buy/payfor",
"pages/group_buy/cantuan",
"pages/group_buy/comment",
"pages/user/transfer",
"pages/user/transfer1",
"pages/login/login",
"pages/notice/notice",
"pages/notice/index",
@ -52,7 +50,8 @@
"pages/order/payment",
"pages/store/myStore",
"pages/userinfo/userinfo",
"pages/set/password"
"pages/set/password",
"pages/member/member"
],
"window": {
"backgroundTextStyle": "light",

2
app.wxss

@ -450,10 +450,10 @@ button[type="warn"] {
background-color:#fff;
width: 100%;
border-bottom:1px solid #eee;
display: flex;
}
.sort-btn{
width:25%;
float:left;
text-align: center;
height:90rpx;
line-height:90rpx;

BIN
images/filter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

BIN
images/member/component_lv_0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
images/member/component_lv_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
images/member/component_lv_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
images/member/component_lv_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
images/member/component_lv_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

BIN
images/member/component_lv_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
images/member/component_lv_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
images/member/lv_0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
images/member/lv_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
images/member/lv_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
images/member/lv_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
images/member/lv_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
images/member/lv_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
images/member/lv_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

5
pages/category/category.wxml

@ -39,12 +39,15 @@
<view class="t_container">
<!--左侧栏-->
<view class="nav_left">
<scroll-view scroll-y="true" style="height:99%;">
<scroll-view scroll-y="true" style="height:100%;">
<view wx:for="{{cateItems}}" wx:key="cateItems">
<!--当前项的id等于item项的id,那个就是当前状态-->
<!--用data-index记录这个数据在数组的下标位置,使用data-id设置每个item的id值,供打开2级页面使用-->
<view class="list_cell">
<view class="line {{curNav == item.cate_id ? 'active' : ''}}"></view>
<view class="nav_left_items {{curNav == item.cate_id ? 'active' : ''}}" bindtap="switchRightTab" data-index="{{index}}" data-id="{{item.cate_id}}">{{item.cate_name}}</view>
</view>
</view>
</scroll-view>
</view>
<!--右侧栏-->

21
pages/category/category.wxss

@ -13,7 +13,7 @@ page{
width: 100%;
height: 100%;
background-color: #fff;
color: #939393;
color: #888888;
padding-top:47px;
}
/*左侧栏主盒子*/
@ -31,14 +31,15 @@ page{
}
/*左侧栏list的item*/
.nav_left .nav_left_items{
width: 100%;
/*每个高30px*/
height: 40px;
/*垂直居中*/
line-height: 40px;
/*再设上下padding增加高度,总高42px*/
padding: 6px 0;
padding: 5px 0;
/*只设下边线*/
border-bottom: 1px solid #dedede;
/* border-bottom: 1px solid #dedede; */
/*文字14px*/
font-size: 14px;
overflow:hidden;
@ -47,7 +48,19 @@ page{
.nav_left .nav_left_items.active{
/*背景色变成白色*/
background: #fff;
color: #7a896c;
color: #fa5151;
}
.list_cell{
display: flex;
align-items: center;
}
.nav_left .line{
width:6rpx;
height:45rpx;
background-color:white;
}
.nav_left .line.active{
background-color: #fa5151;
}
/*右侧栏主盒子*/
.nav_right{

41
pages/coupon/index.js

@ -31,7 +31,7 @@ Page({
bgcolor: app.d.bgcolor
});
this.requestaward();
this.mycoupon();
// this.mycoupon();
}
},
@ -63,34 +63,17 @@ Page({
// 请求活动
requestaward: function () {
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=Coupon&m=index',
method: 'post',
data: {
openid: app.globalData.userInfo.openid,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
if (res.data.status == 2) {
wx.navigateBack({
delta: 1
});
} else {
var list = res.data.list;
that.setData({
list: list,
remind: ''
});
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
});
WXAPI.couponList({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
}).then(res => {
if (res.code == 200) {
var data = res.data
that.setData({
list: data.list,
remind: ''
})
}
});
},

16
pages/index/index.js

@ -17,6 +17,7 @@ Page({
circular: true, // 是否采用衔接滑动
scrollLeft: 0, //tab标题的滚动条位置
current: 0, //当前选中的Tab项
scrollTop: 0,
page: 1,
index: 1,
cont: 1,
@ -270,7 +271,7 @@ Page({
obm: function () {
var that = this;
var timestamp = Date.parse(new Date());
console.log(timestamp, that.data.timestamp)
// console.log(timestamp, that.data.timestamp)
if (timestamp - that.data.timestamp > 2000) {
that.setData({
timestamp: timestamp,
@ -281,7 +282,6 @@ Page({
remind: ''
});
that.getMore();
},
/**
* Tab的点击切换事件
@ -465,11 +465,13 @@ Page({
url: event.currentTarget.dataset.path,
})
},
zhiding() {
wx.pageScrollTo({
scrollTop: 0,
duration: 300
});
/**
* 点击按钮滚动条回到页面顶部
*/
backTop:function(){
this.setData({
scrollTop:0
})
},
onShareAppMessage: function (res) {
// var that = this;

6
pages/index/index.wxml

@ -79,7 +79,7 @@
<view class="out">
<!-- <swiper class='out' current='{{current}}' autoplay="{{false}}" bindchange="contentChange"> -->
<!-- <swiper-item wx:for="{{titleList}}" wx:for-item="item" wx:key="id"> -->
<scroll-view scroll-y="true" bindscrolltolower="obm">
<scroll-view scroll-y="true" scroll-top="{{scrollTop}}" bindscrolltolower="obm">
<!-- /首页轮播图/ -->
<!-- wx:if="{{item.cid == 0 && banner.length >0}}" -->
@ -150,7 +150,7 @@
</view>
<!-- 好物优选结束 -->
<!-- 优选店铺 -->
<view class="mch" wx:if="{{r_mch}}">
<view class="mch" wx:if="{{r_mch.length > 0}}">
<view class="home_title">
<view class="mch_name">优选店铺</view>
<image class="home_title_bg" src="/images/home_title_bg.png"></image>
@ -281,7 +281,7 @@
</block>
</view>
<image class="zhiding" src="/images/zhiding.png" bindtap="zhiding"></image>
<image class="zhiding" src="/images/zhiding.png" bindtap="backTop"></image>
<!--模态弹窗-->
<view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
<view class="modalDlg" wx:if="{{showModal && sign_status == 1}}">

7
pages/index/index.wxss

@ -215,7 +215,12 @@ scroll-view{
padding-top: 190rpx;
flex: auto;
width: 100%;
height: 100%;
/* height: 100%; */
/* 1.容器总高度为100vh
2.上方搜索菜单为90rpx
3.下方tabBar菜单的高度不用减
*/
height: calc(100vh - 190rpx);
}
swiper {

26
pages/listdetail/listdetail.js

@ -289,19 +289,19 @@ Page({
}
},
tabchage: function () {
if (this.data.heng == 'xs') {
this.setData({
heng: 'bxs',
shu: 'xs',
xianshi: 'icon-yduipaibanleixingduicheng'
})
} else {
this.setData({
heng: 'xs',
shu: 'bxs',
xianshi: 'icon-yduipaibanleixingliebiao'
})
}
// if (this.data.heng == 'xs') {
// this.setData({
// heng: 'bxs',
// shu: 'xs',
// xianshi: 'icon-yduipaibanleixingduicheng'
// })
// } else {
// this.setData({
// heng: 'xs',
// shu: 'bxs',
// xianshi: 'icon-yduipaibanleixingliebiao'
// })
// }
},
showModal: function () {
// 显示遮罩层

7
pages/listdetail/listdetail.wxml

@ -28,7 +28,7 @@
<view style='height:90rpx'></view>
<view class='sort-wrap fd'>
<view class="sort-btn {{select == 0 ? 'select' : ''}}" bindtap="default">
最新
综合
</view>
<view class="sort-btn {{select == 1 ? 'select' : ''}}" data-index="{{daindex1}}" data-sel="{{daindex1}}" bindtap="choosesort1">
销量
@ -38,8 +38,9 @@
价格
<image src="{{imageurl2}}"></image>
</view>
<view class='sort-btn'>
<view class='iconfont {{xianshi}}' bindtap="tabchage"> </view>
<view class='sort-btn' bindtap="tabchage">
筛选
<image src="/images/filter.png"></image>
</view>
</view>
<view class="list" wx:if="{{shopList.length > 0}}">

4
pages/login/login.wxml

@ -12,12 +12,12 @@
<!-- 用户名 -->
<view class="userCs">
<image src="/images/user.png" class="user"></image>
<input placeholder="请输入账号/手机号" type="text" bindinput="accountInput" />
<input placeholder="请输入账号/手机号" type="text" value="{{account}}" bindinput="accountInput" />
</view>
<!-- 密码 -->
<view class=passwordCs">
<image src="/images/pass.png" class="pass"></image>
<input placeholder="请输入密码" type="password" bindinput="passwordInput" />
<input placeholder="请输入密码" type="password" value="{{password}}" bindinput="passwordInput" />
</view>
<!-- <button open-type="getPhoneNumber" hidden="{{false}}" lang="zh_CN" bindgetphonenumber="bindPhoneNumber">微信一键登录</button> -->
<view class="forgetView" bindtap="forgetAct">忘记密码?</view>

66
pages/member/member.js

@ -0,0 +1,66 @@
// pages/member/member.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

4
pages/member/member.json

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "会员中心"
}

2
pages/member/member.wxml

@ -0,0 +1,2 @@
<!--pages/member/member.wxml-->
<text>pages/member/member.wxml</text>

1
pages/member/member.wxss

@ -0,0 +1 @@
/* pages/member/member.wxss */

10
pages/order/pay.js

@ -36,6 +36,7 @@ Page({
pages_sx: true,
dz_stu: false,
productAry: '',
remark: '',
},
go: function (e) {
console.log(e);
@ -134,8 +135,6 @@ Page({
// that.setData({
// remind: true
// });
// }
// },
// error: function (e) {
@ -234,6 +233,11 @@ Page({
}
});
},
remarkInput: function(e) {
this.setData({
remark: e.detail.value
})
},
// 点击优惠券
tapMainMenu: function (e) { // 获取当前显示的一级菜单标识
var coupon_id = e.target.id;
@ -557,7 +561,7 @@ Page({
cart_id: that.data.cartId,
address_id: that.data.addrId,
coupon_id: 0,
remarks: '',
remarks: that.data.remark,
vipSource: 0,
product: that.data.productAry,
pay_type: that.data.paytype,

12
pages/order/pay.wxml

@ -83,6 +83,14 @@
<text wx:if="{{freight == 0}}" class="right">包邮</text>
<text wx:else class="right">{{freight}}元</text>
</view>
<view class="pay_qb pd" style='border-bottom:1px solid #eee;'>
<text class="left">订单备注</text>
<input name="name" placeholder="选填,请先和商家协商一致" type="text" value="{{remark}}" bindinput="remarkInput" />
</view>
<view class="pay_qb pd" style='border-bottom:10px solid #eee;'>
<text class="left"></text>
<text class="right">小计:{{total}}</text>
</view>
<view wx:if="{{discount}}" bindtap="setModalStatus" data-type="" data-status="1" style='border-bottom:1px solid #eee;padding:10px;'>
<view style='float:left;font-size:16px;'>优惠券</view>
<view style='float:right'>
@ -103,7 +111,7 @@
<view wx:if="{{pay_xs}}">
<view style='height:10px;width:100%;background:#eee;'></view>
<view class="pay_zf pd">
<text class="left">选择支付方式</text>
<text class="left">选择支付方式</text>
</view>
<view class="pay_zf pd" style='border-bottom:none;padding-right:3px;'>
<radio-group class="radio-group left" bindchange="updataRadio">
@ -123,7 +131,7 @@
<!-- 结算 -->
<view class='pay_foot'>
<view class="pay_fk">
<view class="zhifu mt10 ">合计
<view class="zhifu mt10 ">付款金额
<span class="font_20 red" total="{{total}}">¥ {{total}}</span>
</view>
<button wx:if="{{pay_xs}}" class="right btn_zf" type="primary" id="{{paytype}}" style='background:#FA5151;;border-radius:0;' disabled="{{btnDisabled}}" formType="submit" bindtap="createProductOrderByWX">立即支付</button>

13
pages/order/pay.wxss

@ -140,6 +140,19 @@ width: 100%;
.pay_zf{
border-bottom: 1px solid #eee;
}
.pay_qb input{
/* padding-top: 20rpx; */
/* margin-right: 45rpx; */
float: right;
text-align: right;
/* height: 100rpx; */
width: 480rpx;
font-size: 28rpx;
color: #333333;
}
.input-placeholder{
color: #b9b8b8;
}
.pd{
padding:10px;
}

40
pages/set/password.js

@ -7,16 +7,46 @@ Page({
* 页面的初始数据
*/
data: {
password: '',
newPwd: '',
confirmpwd: '',
},
originalInput: function (e) {
this.setData({
password: e.detail.value
})
},
passwordInput: function (e) {
this.setData({
newPwd: e.detail.value
})
},
confirmInput: function (e) {
this.setData({
confirmpwd: e.detail.value
})
},
confirm() {
confirmAct() {
var that = this;
if (!that.data.password) {
app.toast('请输入旧密码')
return;
}
if (!that.data.newpwd) {
app.toast('请输入新密码')
return;
}
if (that.data.newpwd != that.data.confirmpwd) {
app.toast('新密码不一致')
return;
}
WXAPI.updatepassword({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
password: '',
newPwd: '',
confirm: '',
password: that.data.password,
newPwd: that.data.newPwd,
confirm: that.data.confirmpwd,
}).then(res => {
if (res.code == 200) {
wx.showToast({

23
pages/set/password.wxml

@ -1,2 +1,23 @@
<!--pages/set/password.wxml-->
<text>pages/set/password.wxml</text>
<view class="page">
<!--密码登录-->
<view class='password'>
<!-- 旧密码 -->
<view class="userCs">
<!-- <image src="/images/user.png" class="user"></image> -->
<input placeholder="请输入原密码" type="password" value="{{address}}" bindinput="originalInput" />
</view>
<!-- 新密码 -->
<view class=passwordCs">
<!-- <image src="/images/pass.png" class="pass"></image> -->
<input placeholder="请输入新密码" type="password" value="{{newPwd}}" bindinput="passwordInput" />
</view>
<!-- 密码 -->
<view class=passwordCs">
<!-- <image src="/images/pass.png" class="pass"></image> -->
<input placeholder="请确认新密码" type="password" value="{{confirmpwd}}" bindinput="confirmInput" />
</view>
<view class="loginView" bindtap="confirmAct">确认</view>
</view>
</view>

80
pages/set/password.wxss

@ -1 +1,79 @@
/* pages/set/password.wxss */
/* pages/set/password.wxss */
page{
background-color: #F4F5F6;
}
.password{
display: flex;
flex-direction:column;
}
/* 图片+输入框+下划线的父容器view */
.userCs{
margin-top: 50rpx;
margin-left: 30rpx;
display: flex;
width:690rpx ;
height: 110rpx ;
background-color: white;
border-radius: 20rpx;
}
/* 用户名图标 */
.userCs .user{
margin-top: 25rpx;
margin-left: 30rpx;
width: 55rpx;
height: 55rpx;
}
/* 用户名输入框 */
.userCs input{
width: 500rpx;
font-size: 30rpx ;
margin-top: 35rpx;
margin-left: 30rpx;
line-height: 55rpx;
}
/* 密码图标+输入框+小眼睛图标+下划线父容器view */
.passwordCs{
margin-top: 30rpx;
margin-left: 30rpx;
display: flex;
width:690rpx ;
height: 110rpx ;
background-color: white;
border-radius: 20rpx;
}
/* 密码图标 */
.passwordCs .pass{
margin-top: 25rpx;
margin-left: 30rpx;
width: 55rpx;
height: 55rpx;
}
/* 眼睛 图标*/
.passwordCs .eye{
margin-top: 5rpx;
margin-left: 65rpx;
width: 55rpx;
height: 55rpx;
}
/* 密码输入框 */
.passwordCs input{
width: 500rpx;
font-size: 30rpx ;
margin-top: 35rpx;
margin-left: 30rpx;
line-height: 55rpx;
}
.loginView{
/* margin: 300rpx 90rpx 25rpx; */
margin-top: 100rpx;
margin-left: 30rpx;
width: 690rpx;
height: 80rpx;
background-color:#F95B43;
border-radius: 20rpx;
font-size: 32rpx;
color: white;
display: flex;
align-items: center;
justify-content: center;
}

42
pages/set/set.wxml

@ -1,23 +1,23 @@
<!--pages/set/set.wxml-->
<view class="function" style='background:#fff'>
<button class="function_list" bindtap="changePwd">
<view class='function_left'>
<view class='function_text'>修改密码 </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
</view>
</button>
<view class="function" style='background:#fff'>
<button class="function_list" bindtap='clearStorage'>
<view class='function_left'>
<view class='function_text'>清除缓存 </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
</view>
</button>
</view>
<view class="logoutView" bindtap="logout">退出登录</view>
<button class="function_list" bindtap="changePwd">
<view class='function_left'>
<view class='function_text'>修改密码 </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
</view>
</button>
<button class="function_list" bindtap='clearStorage'>
<view class='function_left'>
<view class='function_text'>清除缓存 </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
</view>
</button>
</view>
<view class="logoutView" bindtap="logout">退出登录</view>

6
pages/set/set.wxss

@ -12,15 +12,15 @@
display:flex;
justify-content:space-between;
background:#fff;
margin:0;
/* margin:0;
padding:0; */
padding:0;
color:#666;
border:0;
}
.function_left{
display: flex;
font-size:16px;
margin-left:5px;
margin-left:12px;
padding-top: 3px;
}
.function .iconfont {

5
pages/user/score.json

@ -1 +1,4 @@
{}
{
"usingComponents": {},
"navigationBarTitleText": "我的积分"
}

3
pages/user/score.wxml

@ -31,9 +31,6 @@
<text style='font-size:36px'>{{score}}</text>
</view>
</view>
<navigator class="dibu_2" url="../user/transfer_jifen" wx:if="{{switch == 1}}">
<view id="{{paytype}}" type="primary" bindtap="submit" style='background:{{bgcolor}};width:80px;text-align:center;margin:0 auto;line-height:1.4em;margin-top:20px;'>转账 </view>
</navigator>
</view>
<view class="use_detail" style="width:95%;height:800rpx;margin:0 auto;">

65
pages/user/transfer.js

@ -1,65 +0,0 @@
// pages/user/transfer.js
var app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
inp_money: 0,
iv: '',
encryptedData: '',
islogin: false,
remind: '加载中',
bank_name: ''
},
//页面加载完成函数
onReady: function () {
var that = this;
that.setData({
remind: ''
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.checkSession({
success: function (e) {
console.log(e)
console.log('session_key 未过期' + app.globalData.userInfo.session_key)
//session_key 未过期,并且在本生命周期一直有效
app.globalData.userInfo['session_key'] = app.globalData.userInfo.session_key;
},
fail: function () {
// session_key 已经失效,需要重新执行登录流程
wx.login({
success: function (res) {
var code = res.code;
that.globalData.code = res.code;
//取出本地存储用户信息,解决需要每次进入小程序弹框获取用户信息
var userinfo = wx.getStorageSync('userInfo');
that.globalData.userInfo = userinfo;
app.getUserSessionKey(code, cb);
}
}); //重新登录
}
});
this.setData({
bgcolor: app.d.bf_color
});
},
//获取好友ID
withdrawals: function (e) {
var that = this;
var user_id = e.detail.value.user_id;
wx.redirectTo({//跳转
url: "../user/transfer1?user_id=" + user_id,
})
}
})

3
pages/user/transfer.json

@ -1,3 +0,0 @@
{
"navigationBarTitleText": "转账给好友"
}

44
pages/user/transfer.wxml

@ -1,44 +0,0 @@
<!--pages/user/transfer.wxml-->
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner" >
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
</view>
</view>
<!-- 加载页面结束 -->
<block wx:else>
<form bindsubmit="withdrawals">
<view class="page">
<view class="section">
<view class="text" >
<text class='t_3' >对方ID: </text>
</view>
<view class='inp'>
<input name="user_id" style='font-size:13px;width:100%;' name='user_id' placeholder="请输入要转账的好友ID" type='text' />
</view>
</view>
</view>
<view>
<button form-type='submit' class="tx" style='background-color:{{bgcolor}};border-radius:0px;'> 下一步 </button>
</view>
</form>
</block>

97
pages/user/transfer.wxss

@ -1,97 +0,0 @@
/* pages/user/transfer.wxss */
page{
background-color: rgb(240, 239, 245);
}
.page{
width:95%;
margin:20px auto;
background-color:#fff;
border-radius:25rpx;
}
.balance{
text-align: center;
padding:10px 20px;
font-size: 18px;
}
.bb{
text-align: center;
font-size: 12px;
}
.Withdraw{
padding: 10px 20px;
}
.cash{
border: 1px solid #ddd;
flex: 1;
margin-left: -1px;
font-size: 12px;
padding: 0 10px;
line-height: 30px;
height: 30px;
}
.tx{
/* background-color: #836FFF; */
background-color: #48474c;
color: #fff;
text-align: center;
height: 45px;
line-height: 45px;
bottom: 0;
width: 100%;
position: fixed;
}
.Phone{
/* border: 1px solid #ddd;
height: 40px;
line-height: 40px;
text-align: center;
border-radius:5px; */
font-size: 28rpx;
width: 30%;
padding-left:2%;
margin-top:5px;
}
.section{
padding: 12px 0;
width: 100%;
display:flex;
flex-direction:row;
font-size: 16px;
/* justify-content: center; */
}
.inp{
display:flex;
align-items:center;
width: 70%;
margin-top:2px;
}
.t_3{
margin-left: 15px;
font-size:13px;
}
.text{
width: 27%;
text-align:center;
}
.xt{
height:1px;
width:87%;
background:#eee;
margin:auto;
}
.sj_btn{
background:#FF6347;
color:#fff;
font-size:26rpx;
margin-left:250rpx;
}

175
pages/user/transfer1.js

@ -1,175 +0,0 @@
// pages/user/transfer1.js
var app = getApp()
var WXAPI = require('../../utils/server.js');
Page({
/**
* 页面的初始数据
*/
data: {
inp_money: 0,
iv: '',
encryptedData: '',
islogin: false,
remind: '加载中',
bank_name: ''
},
//页面加载完成函数
onReady: function () {
var that = this;
that.setData({
remind: ''
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.checkSession({
success: function (e) {
console.log(e)
console.log('session_key 未过期' + app.globalData.userInfo.session_key)
//session_key 未过期,并且在本生命周期一直有效
app.globalData.userInfo['session_key'] = app.globalData.userInfo.session_key;
},
fail: function () {
// session_key 已经失效,需要重新执行登录流程
wx.login({
success: function (res) {
var code = res.code;
that.globalData.code = res.code;
//取出本地存储用户信息,解决需要每次进入小程序弹框获取用户信息
var userinfo = wx.getStorageSync('userInfo');
that.globalData.userInfo = userinfo;
app.getUserSessionKey(code, cb);
}
}); //重新登录
}
});
this.setData({
bgcolor: app.d.bf_color
});
var that = this;
var user_id = options.user_id;
var colo = options.user_id;
var num = colo.substring(4)
var cor = num.replace(/\b(0+)/gi, "")
if (num == 0) {
user_id = "user" + 0
} else {
user_id = "user" + cor
}
wx.request({
url: app.d.ceshiUrl + '&action=user&m=selectuser',
method: 'post',
data: {
user_id: user_id,
openid: app.globalData.userInfo.openid
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status;
if (status == 1) {
var wx_name = res.data.user.wx_name;
var headimgurl = res.data.user.headimgurl;
var money = res.data.user.money;
that.setData({
wx_name: wx_name,
headimgurl: headimgurl,
money: money,
transfer_multiple: res.data.user.transfer_multiple,
});
} else {
wx.showToast({
title: res.data.err,
icon: 'loading',
duration: 1500
});
wx.redirectTo({
url: "../user/transfer",
})
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
});
},
//转账给好友
withdrawals1: function (e) {
console.log(this);
var that = this;
console.log(6666)
var money = Number(e.detail.value.money);
var user_id = that.options.user_id;
var mon = Number(that.data.money);//账户余额
console.log(mon);
console.log(money);
if (money > mon) {
wx.showToast({
title: '余额不足',
duration: 2000
});
}
if (money < 0 || money == '') {
wx.showToast({
title: '正确填写转账金额',
duration: 2000
});
}
if (mon >= money && money > 0) {
wx.request({
url: app.d.ceshiUrl + '&action=user&m=transfer',
method: 'post',
data: {
user_id: user_id,
openid: app.globalData.userInfo.openid,
money: money
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status;
if (status == 1) {
wx.showToast({
title: res.data.err,
icon: 'loading',
duration: 1500
});
wx.redirectTo({
url: "../user/wallet",
});
} else {
wx.showToast({
title: res.data.err,
icon: 'none',
duration: 1500
});
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
});
}
}
})

3
pages/user/transfer1.json

@ -1,3 +0,0 @@
{
"navigationBarTitleText": "转账给好友"
}

61
pages/user/transfer1.wxml

@ -1,61 +0,0 @@
<!--pages/user/transfer1.wxml-->
<!--pages/user/transfer.wxml-->
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner" >
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
</view>
</view>
<!-- 加载页面结束 -->
<block wx:else>
<form bindsubmit="withdrawals1">
<view class="page">
<view class='user_top' style="background-color:{{bgcolor}}">
<view class='user_top_two'>
<image src="{{headimgurl ? headimgurl:'../../images/users.png'}}" />
<text class='user_mc'>{{wx_name}}</text>
</view>
</view>
<view class="section">
<view class="text">
<text class='t_3' >转账金额: </text>
</view>
<view class='inp'>
<input name="money" style='font-size:13px;width:100%;' placeholder="请输入转账金额" type='digit' />
<!-- <input name="money" value='{{user}}' name='money' /> -->
</view>
</view>
</view>
<view>
<text style='margin-left:13px;font-size:12px;color:gray;'>1. 最多可转金额为{{money}}</text>
</view>
<view>
<text style='margin-left:13px;font-size:12px;color:gray;'>2. 转账金额必须为{{transfer_multiple}}的倍数</text>
</view>
<view>
<button form-type='submit' class="tx" style='background-color:{{bgcolor}};border-radius:0px;'> 下一步 </button>
</view>
</form>
</block>

124
pages/user/transfer1.wxss

@ -1,124 +0,0 @@
/* pages/user/transfer1.wxss */
/* pages/user/transfer.wxss */
page{
background-color: rgb(240, 239, 245);
}
.page{
width:95%;
margin:20px auto;
background-color:#fff;
border-radius:25rpx;
margin-bottom:10px;
}
.balance{
text-align: center;
padding:10px 20px;
font-size: 18px;
}
.bb{
text-align: center;
font-size: 12px;
}
.Withdraw{
padding: 10px 20px;
}
.user_mc{
margin-top:15px;
font-size:32px;
margin-left:35px;
color: #fff;
}
.user_top{
height:320rpx;
}
.user_top_two{
display: -webkit-flex;
display: flex;
flex-direction: row;
justify-content: flex-start;
padding-left:40px;
padding-bottom:10px;
padding-top:25px;
}
.user_top image{
width:80px;
height: 80px;
border-radius:100px;
border:2px solid #fff;
}
.cash{
border: 1px solid #ddd;
flex: 1;
margin-left: -1px;
font-size: 12px;
padding: 0 10px;
line-height: 30px;
height: 30px;
}
.tx{
/* background-color: #836FFF; */
background-color: #48474c;
color: #fff;
text-align: center;
height: 45px;
line-height: 45px;
bottom: 0;
width: 100%;
position: fixed;
}
.Phone{
/* border: 1px solid #ddd;
height: 40px;
line-height: 40px;
text-align: center;
border-radius:5px; */
font-size: 28rpx;
width: 30%;
padding-left:2%;
margin-top:5px;
}
.section{
padding: 12px 0;
width: 100%;
display:flex;
flex-direction:row;
font-size: 16px;
/* justify-content: center; */
}
.inp{
display:flex;
align-items:center;
width: 70%;
margin-top:2px;
}
.t_3{
margin-left: 15px;
font-size:13px;
}
.text{
width: 27%;
text-align:center;
}
.xt{
height:1px;
width:87%;
background:#eee;
margin:auto;
}
.sj_btn{
background:#FF6347;
color:#fff;
font-size:26rpx;
margin-left:250rpx;
}

61
pages/user/transfer_jifen.js

@ -1,61 +0,0 @@
// pages/user/transfer_jifen.js
var app = getApp()
var WXAPI = require('../../utils/server.js');
Page({
/**
* 页面的初始数据
*/
data: {
inp_money: 0,
iv: '',
encryptedData: '',
islogin: false,
remind: '加载中',
bank_name: ''
},
//页面加载完成函数
onReady: function () {
var that = this;
that.setData({
remind: ''
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.checkSession({
success: function (e) {
//session_key 未过期,并且在本生命周期一直有效
app.globalData.userInfo['session_key'] = app.globalData.userInfo.session_key;
},
fail: function () {
// session_key 已经失效,需要重新执行登录流程
wx.login({
success: function (res) {
var code = res.code;
that.globalData.code = res.code;
//取出本地存储用户信息,解决需要每次进入小程序弹框获取用户信息
var userinfo = wx.getStorageSync('userInfo');
that.globalData.userInfo = userinfo;
app.getUserSessionKey(code, cb);
}
}); //重新登录
}
});
this.setData({
bgcolor: app.d.bf_color
});
},
//获取好友ID
withdrawals: function (e) {
var user_id = e.detail.value.user_id;
wx.redirectTo({//跳转
url: "../user/transfer_jifen1?user_id=" + user_id,
})
}
})

87
pages/user/user.js

@ -11,26 +11,26 @@ Page({
navBarHeight: wx.getStorageSync('statusBarHeight') + wx.getStorageSync('navBarHeight') + 'px',
pop: null,
list: [
{
icon: 'wdsc.png',
text: '我的收藏',
url: 'collection/collection'
},
// {
// icon: 'zj.png',
// text: '历史记录',
// url: 'footprint/footprint'
// },
// },
{
icon: 'grzl.png',
text: '个人资料',
url: 'userinfo/userinfo'
},
{
icon: 'dz.png',
text: '地址管理',
url: 'address/index'
},
{
icon: 'grzl.png',
text: '个人资料',
url: 'userinfo/userinfo'
}
},
// {
// icon: 'fp.png',
// text: '发票管理',
// url: 'address/index'
// }
],
cont: 1,
remind: '加载中',
@ -61,11 +61,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// var plug_ins = app.globalData.userInfo.plug_ins; // 插件
// this.setData({
// bgcolor: app.d.bgcolor, // 背景颜色
// plug_ins: plug_ins, // 插件
// });
this.requestMyData();
},
//页面加载完成函数
@ -75,6 +70,63 @@ Page({
that.setData({
remind: ''
});
},
//会员中心
navToMemberCenter() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/member/member'
})
},
navToCoupon() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/coupon/index'
})
},
navToScore() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/user/score'
})
},
navToWallet() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/user/wallet'
})
},
//我的收藏
navToCollection() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/collection/collection'
})
},
onShow: function () {
var that = this;
@ -99,6 +151,7 @@ Page({
var data = res.data;
if (data.data) {
that.setData({
collection_num: data.data.collection_num,
xxnum: data.data.xxnum,
user: data.data.user,
logo: data.data.logo,

74
pages/user/user.wxml

@ -24,7 +24,6 @@
</view>
<!-- 加载页面结束 -->
<block wx:else>
<!-- 导航栏 -->
<view class="navigation-container" style="height:{{navBarHeight}}">
<view class="navigation-bar" style="padding-top:{{statusBarHeight}};height:{{navBarHeight-statusBarHeight}}">
@ -40,12 +39,17 @@
<!-- 用户基本信息 -->
<view class='user_top' style="background-color:{{bgcolor}}">
<view class='user_top_two'>
<image style='display:block;' class='user_top_image' src="{{user.headimgurl ? user.headimgurl:'/images/heads.png'}}" />
<image class='user_top_image' src="{{user.headimgurl ? user.headimgurl:'/images/heads.png'}}" />
<block wx:if="{{user}}">
<view class='user_mc' bindtap="copyText" data-text="{{user.user_id}}" style='display:block;'>
<view class='user_name'>{{user.user_name}}</view>
<text class='userid_font'>用户积分:{{user.score}}</text>
<text class='userid_font' wx:if="{{tjr}}" style="margin-left: 16px;">{{tjr}}</text>
<!-- <image class="level" wx:if="{{user.level==1}}" src="/images/member/lv_1.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
<image class="level" wx:elif="{{user.level==2}}" src="/images/member/lv_2.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
<image class="level" wx:elif="{{user.level==3}}" src="/images/member/lv_3.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
<image class="level" wx:elif="{{user.level==4}}" src="/images/member/lv_4.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
<image class="level" wx:elif="{{user.level==5}}" src="/images/member/lv_5.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
<image class="level" wx:elif="{{user.level==6}}" src="/images/member/lv_6.png" mode="aspectFill" bindtap="navToMemberCenter"></image> -->
<image class="level" src="/images/member/lv_1.png" mode="aspectFill" bindtap="navToMemberCenter"></image>
</view>
</block>
<block wx:else>
@ -58,6 +62,28 @@
</view>
</view>
<view class="card_bottom">
<view bindtap="navToCoupon">
<view>{{user.coupon_num?user.coupon_num:'—'}}</view>
<text>优惠券</text>
</view>
<view bindtap="navToScore">
<view>{{user.score?user.score:'—'}}</view>
<text>积分</text>
</view>
<view bindtap="navToWallet">
<view>
{{user.money?user.money:'—'}}
</view>
<text>余额</text>
</view>
<view bindtap="navToCollection">
<view class="relative" style="top: -6rpx;">
{{collection_num?collection_num:'—'}}
</view>
<text>我的收藏</text>
</view>
</view>
<!-- 我的订单 -->
<view class='user_dd'>
<view class='dd_stu'>
@ -66,12 +92,11 @@
<text>我的订单</text>
</view>
<view class='order_right'>
<view class='order_my'>查看全部订单</view>
<view class='order_my'>查看全部</view>
<view class="iconfont icon-iconset0424"></view>
</view>
</view>
<!-- </navigator> -->
<view class='order_list'>
<!-- <navigator class='list' url="../order/order?currentTab=1&order_type1=payment&otype=pay"> -->
<view class="list" data-id="../order/order?index=1&status=payment" catchtap="jumpgo">
@ -82,7 +107,6 @@
<view style='margin-top:5px'>待付款</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=2&order_type1=send&otype=pay"> -->
<view class="list" data-id="../order/order?index=2&status=send" catchtap="jumpgo">
<text class='tishi' wx:if="{{dfh_num > 0}}">{{dfh_num}}</text>
@ -92,7 +116,6 @@
<view style='margin-top:5px'>待发货</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=3&order_type1=receipt&otype=pay"> -->
<view class="list" data-id="../order/order?index=3&status=receipt" catchtap="jumpgo">
<text class='tishi' wx:if="{{dsh_num > 0}}">{{dsh_num}}</text>
@ -102,7 +125,6 @@
<view style='margin-top:5px'>待收货</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=4&order_type1=evaluate&otype=pay"> -->
<view class="list" data-id="../order/order?index=4&status=evaluete" catchtap="jumpgo">
<text class='tishi' wx:if="{{dpj_num > 0}}">{{dpj_num}}</text>
@ -112,7 +134,6 @@
<view style='margin-top:5px'>待评价</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../return_goods/index?currentTab=0&otype=whole"> -->
<view class="list" data-id="../return_goods/index?currentTab=0&otype=whole" catchtap="jumpgo">
<text class='tishi' wx:if="{{th > 0}}">{{th}}</text>
@ -122,49 +143,22 @@
<view style='margin-top:5px'>退货/售后</view>
</view>
<!-- </navigator> -->
</view>
</view>
<!-- 功能列表 -->
<view class="function" style='background:#fff'>
<block wx:for="{{plug_ins}}" wx:key="id">
<view class="function_list" catchtap='jumpgo' data-id="{{item.subtitle_url}}">
<view class='function_left'>
<image style="width:25px;height:25px;margin:auto;" src='{{item.subtitle_image}}'></image>
<view class='function_text'>{{item.subtitle_name}} </view>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
</view>
</view>
</block>
</view>
<view class="function" style='background:#fff'>
<block wx:for="{{list}}" wx:key="id">
<view class="function_list" catchtap='jumpgo' data-id="../{{item.url}}">
<view class="function_list" catchtap='jumpgo' data-id="/pages/{{item.url}}">
<view class='function_left'>
<image style="width: 25px;height: 25px;margin: auto;" src='../../images/icons/{{item.icon}}'></image>
<image style="width: 25px;height: 25px;margin: auto;" src='/images/icons/{{item.icon}}'></image>
<view class='function_text'>{{item.text}} </view>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
<image src="/images/x_right.png"></image>
</view>
</view>
</block>
</view>
<view class="hh">
<navigator url="../article/article?id={{item.Article_id}}" wx:for="{{article}}" wx:key="Article_id">
<view class="qbdd mt10 jiantou">
<view class="font_14 c3">{{item.Article_title}}</view>
<view class="fl_r c9 font_12 l_h20 text-length" hover-class="none" style="margin-right: 5px;height: 100%;">
{{item.Article_prompt}}
</view>
<image src="../../images/x_right.png" style="border: 0;border-radius: 0;margin: auto;margin-right: 5px;"></image>
</view>
</navigator>
</view>
<view class='bottom'>
<view class='bottom_1'>
<image src="{{logo}}"></image>

57
pages/user/user.wxss

@ -9,6 +9,57 @@ page{
right: 40rpx;
margin-top: -100rpx;
}
.card_bottom{
display: flex;
padding: 10rpx 30rpx 30rpx 30rpx;
}
.card_bottom>view{
flex: 1;
height: 70rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card_bottom>view view{
font-size: 32rpx;
line-height: 26rpx;
color: #333333;
font-family: 'DIN';
font-weight: bold;
}
.card_bottom>view view text{
color: #999999;
}
.card_bottom>view text{
font-size: 24rpx;
line-height: 24rpx;
color: #888888;
margin-top: auto;
}
.card_bottom>view image{
width: 38rpx;
height: 38rpx;
}
.card_bottom>view .xxnum{
position: absolute;
right: 0;
top: 0;
transform: translate(50%, -50%);
padding: 4rpx 6rpx;
background: black;
border-radius: 12rpx;
font-size: 22rpx;
line-height: 16rpx;
color: #FFFFFF;
font-weight: 300;
}
.xxnum {
position: absolute;
left: 20rpx;
@ -52,6 +103,10 @@ text{
font-size:25px;
line-height: 40px;
}
.level {
width: 128rpx;
height: 45rpx;
}
.user_top{
margin-top: 10rpx;
height:420rpx;
@ -249,7 +304,7 @@ border-radius:5px;
height:30px;
}
.function_right{
margin-right:5px;
margin-right:8px;
}
.dd_img image{
border-radius:0;

1
pages/user/wallet.json

@ -1,3 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "我的钱包"
}

11
pages/user/wallet.wxml

@ -35,9 +35,9 @@
<view class="use_detail" style="width: 100%;margin: 0 auto;position: relative;height:55%;">
<view class="swiper-tab">
<view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">入账记录</view>
<view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">消费记录</view>
<view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">提现记录</view>
<view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">交易明细</view>
<view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">充值明细</view>
<view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">提现明细</view>
</view>
<swiper current="{{currentTab}}" class="swiper-box" duration="300" style="position:relative;" bindchange="bindChange">
<swiper-item >
@ -156,11 +156,6 @@
<view>
<text class="dibu_3">|</text>
</view>
<navigator class="dibu_2" url="../user/transfer">
<view>
<span class="dibu_t">转账</span>
</view>
</navigator>
</view>
</view>
</block>

7
utils/server.js

@ -72,6 +72,9 @@ module.exports = {
homeIndex: (data) => { //首页
return requestServer('app.index.index', 'post', data)
},
indexGetMore: (data) => { //查看更多
return requestServer('app.index.get_more', 'post', data)
},
newArrival: (data) => { //新品上市
return requestServer('app.index.new_arrival', 'post', data)
},
@ -117,6 +120,9 @@ module.exports = {
updatepassword: (data) => { //修改密码
return requestServer('app.user.updatepassword', 'post', data)
},
couponList: (data) => { //修改密码
return requestServer('app.coupon.index', 'post', data)
},
/* 商品 */
mchClass: (data) => { //店铺分类
return requestServer('app.index.mchClass', 'post', data)
@ -198,5 +204,4 @@ module.exports = {
},
}
Loading…
Cancel
Save