Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
b992107c
Commit
b992107c
authored
Mar 15, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情
parent
0b2dd4d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
102 deletions
+142
-102
api/system/index.js
+1
-1
home/index/index.vue
+9
-4
my/invite/index.vue
+132
-97
No files found.
api/system/index.js
View file @
b992107c
...
@@ -8,7 +8,7 @@ const userNeedSquare = (params) => {
...
@@ -8,7 +8,7 @@ const userNeedSquare = (params) => {
}
}
// 获取订单详细信息
// 获取订单详细信息
const
orderDetailMsg
=
(
params
)
=>
{
const
orderDetailMsg
=
(
params
)
=>
{
return
ApiHttp
(
'/xinrenli/
article
'
,
params
,
'GET'
)
return
ApiHttp
(
'/xinrenli/
order/
'
,
params
,
'GET'
)
}
}
export
{
export
{
...
...
home/index/index.vue
View file @
b992107c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
标题
标题
</view>
</view>
<view
class=
""
>
<view
class=
""
>
灯泡坏了
{{
orderDetail
.
title
}}
</view>
</view>
</view>
</view>
<view
class=
"content-textarea"
>
<view
class=
"content-textarea"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
成交金额
成交金额
</view>
</view>
<view
class=
""
>
<view
class=
""
>
270
{{
orderDetail
.
actualAmount
}}
</view>
</view>
</view>
</view>
<view
class=
"content-photograph"
>
<view
class=
"content-photograph"
>
...
@@ -64,7 +64,8 @@
...
@@ -64,7 +64,8 @@
return
{
return
{
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
globalData
:
getApp
().
globalData
,
globalData
:
getApp
().
globalData
,
scrollTopHeader
:
0
scrollTopHeader
:
0
,
orderDetail
:{}
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -92,8 +93,12 @@
...
@@ -92,8 +93,12 @@
},
},
methods
:
{
methods
:
{
getDetailData
(
id
){
getDetailData
(
id
){
let
that
=
this
orderDetailMsg
({
id
:
id
}).
then
(
res
=>
{
orderDetailMsg
({
id
:
id
}).
then
(
res
=>
{
console
.
log
(
res
,
'详情'
)
console
.
log
(
res
.
data
,
'详情'
)
if
(
res
.
code
==
200
){
that
.
orderDetail
=
res
.
data
}
})
})
},
},
// 播放
// 播放
...
...
my/invite/index.vue
View file @
b992107c
<
template
>
<
template
>
<view
class=
"index"
>
<view>
<view
class=
"index-content"
>
<view
class=
"index-content-item"
>
<view
class=
"index"
>
<view
class=
"index-content-item-nav baiyin-flex baiyin-flex-c-b"
>
<view
class=
"index-content"
>
<text></text>
<view
class=
"index-content-item"
>
<view>
邀请新用户享受下单折扣
</view>
<view
class=
"index-content-item-nav baiyin-flex baiyin-flex-c-b"
>
</view>
<text></text>
<view
class=
"index-content-item-li"
>
1.成功邀请3位新用户,可享一单9折优惠
</view>
<view>
邀请新用户享受下单折扣
</view>
<view
class=
"index-content-item-li"
>
2.成功邀请5位新用户,可享两单9折优惠
</view>
</view>
<view
class=
"index-content-item-li"
>
3.成功邀请10位新用户,可享三单9折优惠
</view>
<view
class=
"index-content-item-li"
>
1.成功邀请3位新用户,可享一单9折优惠
</view>
</view>
<view
class=
"index-content-item-li"
>
2.成功邀请5位新用户,可享两单9折优惠
</view>
<view
class=
"index-content-item"
>
<view
class=
"index-content-item-li"
>
3.成功邀请10位新用户,可享三单9折优惠
</view>
<view
class=
"index-content-item-nav baiyin-flex baiyin-flex-c-b"
>
</view>
<text></text>
<view
class=
"index-content-item"
>
<view>
<view
class=
"index-content-item-nav baiyin-flex baiyin-flex-c-b"
>
我已邀请:
<text></text>
<text>
3位用户
</text>
<view>
</view>
我已邀请:
</view>
<text>
3位用户
</text>
</view>
</view>
</view>
</view>
<u-button
</view>
text=
"继续邀请新用户"
</view>
color=
"#2C66FF"
<u-button
text=
"继续邀请新用户"
color=
"#2C66FF"
:customStyle=
"
{
:customStyle=
"
{
width: '710rpx',
width: '710rpx',
height: '80rpx',
height: '80rpx',
borderRadius: '10rpx',
borderRadius: '10rpx',
padding: '0rpx',
padding: '0rpx',
position: 'absolute',
position: 'absolute',
left: '20rpx',
left: '20rpx',
bottom: '142rpx'
bottom: '142rpx'
}">
</u-button>
}"
>
</u-button>
</view>
</view>
<!--
<view>
</
template
>
<button
class=
"invite-btn"
data-name=
"shareBtn"
open-type=
"share"
>
继续邀请新用户
</button>
</view>
-->
<
script
>
</view>
import
apiBaseConfig
from
'@/config/index.js'
;
</
template
>
export
default
{
data
()
{
<
script
>
return
{
import
apiBaseConfig
from
'@/config/index.js'
;
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
export
default
{
globalData
:
getApp
().
globalData
,
data
()
{
scrollTopHeader
:
0
return
{
};
imgBgUrl
:
apiBaseConfig
.
imgBgUrl
,
},
globalData
:
getApp
().
globalData
,
onLoad
()
{},
scrollTopHeader
:
0
methods
:
{}
};
};
},
</
script
>
//分享
onShareAppMessage
()
{
<
style
lang=
"scss"
scoped
>
return
{
.index
{
title
:
'分享的标题'
&-content
{
}
margin
:
24
rpx
20
rpx
;
},
width
:
calc
(
100%
-
20
rpx
*
2
);
onLoad
()
{},
&-item
{
methods
:
{}
margin-bottom
:
30
rpx
;
};
&-nav
{
</
script
>
margin-bottom
:
20
rpx
;
>
text
{
<
style
lang=
"scss"
scoped
>
display
:
inline-block
;
.index
{
width
:
6
rpx
;
&-content
{
height
:
36
rpx
;
margin
:
24
rpx
20
rpx
;
background
:
#2c66ff
;
width
:
calc
(
100%
-
20
rpx
*
2
);
border-radius
:
3
rpx
;
margin-right
:
10
rpx
;
&-item
{
}
margin-bottom
:
30
rpx
;
>
view
{
font-size
:
28
rpx
;
&-nav
{
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
margin-bottom
:
20
rpx
;
font-weight
:
500
;
color
:
#333333
;
>text
{
>
text
{
display
:
inline-block
;
color
:
#2c66ff
;
width
:
6
rpx
;
}
height
:
36
rpx
;
}
background
:
#2c66ff
;
}
border-radius
:
3
rpx
;
&
-nav
:last-child
{
margin-right
:
10
rpx
;
margin-bottom
:
0
rpx
;
}
}
&
-li
{
>
view
{
font-size
:
24
rpx
;
font-size
:
28
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-family
:
AlibabaPuHuiTi-Medium
,
AlibabaPuHuiTi
;
font-weight
:
400
;
font-weight
:
500
;
color
:
#333333
;
color
:
#333333
;
margin-bottom
:
10
rpx
;
padding-left
:
14
rpx
;
>text
{
}
color
:
#2c66ff
;
&
-li
:last-child
{
}
margin-bottom
:
0
rpx
;
}
}
}
}
}
&
-nav
:last-child
{
}
margin-bottom
:
0
rpx
;
}
&
-li
{
font-size
:
24
rpx
;
font-family
:
AlibabaPuHuiTi-Regular
,
AlibabaPuHuiTi
;
font-weight
:
400
;
color
:
#333333
;
margin-bottom
:
10
rpx
;
padding-left
:
14
rpx
;
}
&
-li
:last-child
{
margin-bottom
:
0
rpx
;
}
}
}
}
.invite-btn
{
width
:
710
rpx
;
height
:
80
rpx
;
border-radius
:
10
rpx
;
//
padding
:
0
rpx
;
//
position
:
absolute
;
//
left
:
20
rpx
;
bottom
:
142
rpx
;
color
:
#FFFFFF
;
font-size
:
18px
;
text-align
:
center
;
line-height
:
80
rpx
;
background
:
#3476ff
;
//
transform
:
translate
(
50%
,
0
);
//
left
:
50%
;
//
margin-left
:
-350
rpx
;
}
</
style
>
</
style
>
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