Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhqg-mini
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhqg
zhqg-mini
Commits
7b5a7635
Commit
7b5a7635
authored
Oct 20, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分佣
parent
0a1bbdd9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
23 deletions
+43
-23
user.js
pages/user/user.js
+0
-1
index.wxss
pages/userAccount/distributionOrder/index.wxss
+1
-0
index.js
pages/userAccount/myTeam/index.js
+14
-7
index.wxml
pages/userAccount/myTeam/index.wxml
+8
-8
index.wxss
pages/userAccount/myTeam/index.wxss
+6
-2
index.wxss
pages/userAccount/withdrawalRecord/index.wxss
+2
-1
config.js
utils/config.js
+1
-1
http.js
utils/http.js
+11
-3
No files found.
pages/user/user.js
View file @
7b5a7635
...
@@ -18,7 +18,6 @@ Page({
...
@@ -18,7 +18,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
},
},
/**
/**
...
...
pages/userAccount/distributionOrder/index.wxss
View file @
7b5a7635
...
@@ -97,6 +97,7 @@ page {
...
@@ -97,6 +97,7 @@ page {
.offList{
.offList{
font-size: 30rpx;
font-size: 30rpx;
color: #999999;
color: #999999;
margin-top: 20rpx;
}
}
.li-head{
.li-head{
...
...
pages/userAccount/myTeam/index.js
View file @
7b5a7635
...
@@ -12,7 +12,8 @@ Page({
...
@@ -12,7 +12,8 @@ Page({
getTabs
:
0
,
getTabs
:
0
,
list
:
[],
list
:
[],
pageNum
:
1
,
pageNum
:
1
,
total
:
0
total
:
0
,
userId
:
null
},
},
// 选项卡切换
// 选项卡切换
...
@@ -20,7 +21,12 @@ Page({
...
@@ -20,7 +21,12 @@ Page({
this
.
setData
({
getTabs
:
data
.
currentTarget
.
dataset
.
index
,
list
:
[]
})
this
.
setData
({
getTabs
:
data
.
currentTarget
.
dataset
.
index
,
list
:
[]
})
this
.
userMyTeam
(
data
.
currentTarget
.
dataset
.
index
)
this
.
userMyTeam
(
data
.
currentTarget
.
dataset
.
index
)
},
},
goPage
(
e
)
{
let
url
=
e
.
currentTarget
.
dataset
.
url
wx
.
navigateTo
({
url
:
url
,
})
},
// 列表内容
// 列表内容
getList
()
{
getList
()
{
var
that
=
this
var
that
=
this
...
@@ -28,7 +34,7 @@ Page({
...
@@ -28,7 +34,7 @@ Page({
url
:
"/commission/getOrderPageList"
,
url
:
"/commission/getOrderPageList"
,
method
:
"GET"
,
method
:
"GET"
,
data
:
{
data
:
{
userId
:
app
.
globalData
.
userInfo
.
userId
,
userId
:
this
.
data
.
userId
,
pageNum
:
this
.
data
.
pageNum
,
pageNum
:
this
.
data
.
pageNum
,
pageSize
:
10
pageSize
:
10
},
},
...
@@ -41,7 +47,7 @@ Page({
...
@@ -41,7 +47,7 @@ Page({
list
:
list
,
list
:
list
,
total
:
res
.
result
.
total
total
:
res
.
result
.
total
})
})
console
.
log
(
'list'
,
that
.
data
.
list
)
console
.
log
(
'list'
,
that
.
data
.
list
)
}
}
};
};
http
.
request
(
params
);
http
.
request
(
params
);
...
@@ -51,7 +57,7 @@ Page({
...
@@ -51,7 +57,7 @@ Page({
url
:
"/commission/getParentName"
,
url
:
"/commission/getParentName"
,
method
:
"GET"
,
method
:
"GET"
,
data
:
{
data
:
{
userId
:
app
.
globalData
.
userInfo
.
userId
userId
:
this
.
data
.
userId
},
},
callBack
:
(
res
)
=>
{
callBack
:
(
res
)
=>
{
this
.
setData
({
this
.
setData
({
...
@@ -65,7 +71,6 @@ Page({
...
@@ -65,7 +71,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
getParentName
()
},
},
/**
/**
...
@@ -79,13 +84,15 @@ Page({
...
@@ -79,13 +84,15 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
console
.
log
(
"options"
,
this
.
options
.
userId
)
this
.
setData
({
this
.
setData
({
userId
:
this
.
options
.
userId
?
this
.
options
.
userId
:
app
.
globalData
.
userInfo
.
userId
,
list
:
[],
list
:
[],
pageNum
:
1
,
pageNum
:
1
,
total
:
0
total
:
0
})
})
this
.
getParentName
()
this
.
getList
();
this
.
getList
();
},
},
/**
/**
...
...
pages/userAccount/myTeam/index.wxml
View file @
7b5a7635
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<view class="page">
<view class="page">
<!-- 选项卡 -->
<!-- 选项卡 -->
<view class="user-info-show">
<view class="user-info-show">
<image class="user-portrait" src="{{pageInfo.pic}}"></image>
<image class="user-portrait" src="{{pageInfo.pic}}"></image>
<view class="user-name">
<view class="user-name">
<view>{{pageInfo.nickName}}</view>
<view>{{pageInfo.nickName}}</view>
<view>推荐人:您是由{{pageInfo.parentNickName}}推荐</view>
<view>我的推荐人:您是由{{pageInfo.parentNickName}}推荐</view>
</view>
</view>
</view>
</view>
<!-- <view class="tabs">
<!-- <view class="tabs">
<view wx:for="{{tabs}}" wx:key="index" bindtap="tabsGet" data-index="{{index}}"
<view wx:for="{{tabs}}" wx:key="index" bindtap="tabsGet" data-index="{{index}}"
class="{{getTabs == index ? 'tabsTrue' : 'tabsFalse'}}">{{item.name}}</view>
class="{{getTabs == index ? 'tabsTrue' : 'tabsFalse'}}">{{item.name}}</view>
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
<!-- 列表展示 -->
<!-- 列表展示 -->
<view class="list-box">
<view class="list-box">
<!-- 列表展示 -->
<!-- 列表展示 -->
<view class="li-box" wx:for="{{list}}" wx:key="index">
<view class="li-box" wx:for="{{list}}" wx:key="index"
bindtap="goPage" data-url="/pages/userAccount/myTeam/index?userId={{item.userId}}"
>
<image src="{{item.pic}}"></image>
<image src="{{item.pic}}"></image>
<view class="li-user">
<view class="li-user">
<
text>会员名称:{{item.nickName}}</text
>
<
view>{{item.nickName}}</view
>
<text>
成为会员:{{itme.userRegtime}}</text>
<text>
{{item.userRegtime}}</text>
</view>
</view>
<view class="li-num">
<view class="li-num">
<text>¥{{item.orderAmount}}</text>
<text>¥{{item.orderAmount}}</text>
...
...
pages/userAccount/myTeam/index.wxss
View file @
7b5a7635
...
@@ -99,7 +99,7 @@ page {
...
@@ -99,7 +99,7 @@ page {
.li-user{
.li-user{
flex: 1;
flex: 1;
display: flex;
display: flex;
align-items: center;
/* align-items: center; */
flex-direction: column;
flex-direction: column;
font-size: 30rpx;
font-size: 30rpx;
}
}
...
@@ -110,6 +110,8 @@ page {
...
@@ -110,6 +110,8 @@ page {
.li-user text:nth-child(2){
.li-user text:nth-child(2){
color: #999999;
color: #999999;
font-size: 26rpx;
margin-top: 10rpx;
}
}
.li-num{
.li-num{
...
@@ -133,6 +135,7 @@ page {
...
@@ -133,6 +135,7 @@ page {
}
}
.offList{
.offList{
font-size:
30
rpx;
font-size:
28
rpx;
color: #999999;
color: #999999;
margin-top: 20rpx;
}
}
\ No newline at end of file
pages/userAccount/withdrawalRecord/index.wxss
View file @
7b5a7635
...
@@ -86,8 +86,9 @@ page {
...
@@ -86,8 +86,9 @@ page {
}
}
.offList{
.offList{
font-size:
30
rpx;
font-size:
28
rpx;
color: #999999;
color: #999999;
margin-top: 20rpx;
}
}
.li-head{
.li-head{
...
...
utils/config.js
View file @
7b5a7635
var
domain
=
"http://192.168.31.1
32
:8086/capi"
;
//统一接口域名,测试环境
var
domain
=
"http://192.168.31.1
18
:8086/capi"
;
//统一接口域名,测试环境
exports
.
domain
=
domain
;
exports
.
domain
=
domain
;
utils/http.js
View file @
7b5a7635
...
@@ -22,11 +22,19 @@ function request(params, isGetTonken) {
...
@@ -22,11 +22,19 @@ function request(params, isGetTonken) {
responseType
:
params
.
responseType
==
undefined
?
'text'
:
params
.
responseType
,
responseType
:
params
.
responseType
==
undefined
?
'text'
:
params
.
responseType
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
statusCode
==
200
)
{
if
(
res
.
statusCode
==
200
)
{
console
.
log
(
res
.
data
.
code
)
//如果有定义了params.callBack,则调用 params.callBack(res.data)
//如果有定义了params.callBack,则调用 params.callBack(res.data)
if
(
params
.
callBack
)
{
if
(
res
.
data
.
code
==
undefined
||
res
.
data
.
code
==
1
)
{
params
.
callBack
(
res
.
data
);
if
(
params
.
callBack
)
{
}
params
.
callBack
(
res
.
data
);
}
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
note
,
icon
:
"none"
});
}
}
else
if
(
res
.
statusCode
==
500
)
{
}
else
if
(
res
.
statusCode
==
500
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
"服务器出了点小差"
,
title
:
"服务器出了点小差"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment