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
0eedf152
Commit
0eedf152
authored
Apr 14, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增两个页面+邀请人的头像显示
parent
22681fd6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
218 additions
and
16 deletions
+218
-16
components/title/title.vue
+28
-0
home/introduce/introduce.vue
+135
-0
my/coupon/index.vue
+2
-1
my/invite/index.vue
+17
-0
package.json
+2
-2
pages.json
+10
-1
pages/home/index.vue
+12
-10
pages/order/index.vue
+0
-2
utils/common.css
+12
-0
No files found.
components/title/title.vue
0 → 100644
View file @
0eedf152
<
template
>
<view
class=
"d-flex"
>
<view
class=
"line"
></view>
<view
class=
"font-28 font-bold"
>
{{
title
}}
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:{
title
:{
type
:
String
,
default
:
''
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.line
{
width
:
6
rpx
;
height
:
36
rpx
;
background
:
#2C66FF
;
border-radius
:
3
rpx
;
margin-right
:
10
rpx
;
}
</
style
>
\ No newline at end of file
home/introduce/introduce.vue
0 → 100644
View file @
0eedf152
<
template
>
<view
class=
"container"
>
<view
class=
"content"
v-if=
"type == 0"
>
<image
src=
"https://cdn.uviewui.com/uview/swiper/swiper2.png"
></image>
<view
class=
"content-introduce"
>
<view
class=
"font m-b-10"
>
公司名称:
</view>
<view
class=
"font-28 m-b-34"
>
上海印宏网络科技有限公司
</view>
<view
class=
"font m-b-10"
>
公司地址:
</view>
<view
class=
"font-28 m-b-34"
>
上海市青浦区赵巷镇移动智地1号楼911号
</view>
<view
class=
"font m-b-10"
>
联系电话:
</view>
<view
class=
"font-28 m-b-34"
>
17717504500
</view>
</view>
<view
class=
"content-tip"
>
<Title
title=
"邀请新用户成功进入小程序,每单可享受九折优惠"
/>
</view>
<u-button
text=
"分享"
open-type=
"share"
color=
"#2C66FF"
:customStyle=
"
{margin:'0 20rpx',width:'710rpx',height:'80rpx',borderRadius: '10rpx'}">
</u-button>
</view>
<view
class=
"content"
v-if=
"type == 1"
>
<image
src=
"https://cdn.uviewui.com/uview/swiper/swiper3.png"
></image>
<view
class=
"content-text"
>
<Title
title=
"服务展示"
/>
<view
class=
"font"
>
维修服务内容主要按用户所填写的内容、视频、语音描述展示,基本主要分为家电维修、家电清洗、家电安装、水电维修、管道疏通、防水漏补、开锁换锁等类。每一类别下还有不同的服务项目,例如在家电维修类别下,主要有热水器维修、空调维修、洗衣机维修、油烟机维修等;管道疏通类别下主要有马桶疏通、下水道疏通、洗手盆疏通等。用户可以根据自己的需要去填写。下单报价。浏览后,用户可以点击具体的服务内容了解详情。
</view>
<Title
title=
"活动专区"
/>
<view
class=
"font"
>
活动专区主要是平台推出的一些优惠活动(优惠券),例如邀请享折扣、新人福利券等丰富的福利优惠活动
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
Title
from
'@/components/title/title.vue'
export
default
{
components
:
{
Title
},
data
()
{
return
{
type
:
'0'
,
// 判断是从第几张轮播图跳过来的
}
},
methods
:
{
},
onLoad
(
options
)
{
this
.
type
=
options
.
type
},
onShareAppMessage
(
options
)
{
var
that
=
this
;
let
token
=
uni
.
getStorageSync
(
'token'
)
if
(
token
)
{
var
shareObj
=
{
title
:
"新人力小程序"
,
// 默认是小程序的名称(可以写slogan等)
path
:
`/my/login/login?id=
${
that
.
$store
.
state
.
login
.
userInfo
.
user
.
id
}
`
,
// 默认是当前页面,必须是以‘/'开头的完整路径
};
// 来自页面内的按钮的转发
if
(
options
.
from
==
'button'
)
{
var
eData
=
options
.
target
.
dataset
;
console
.
log
(
eData
.
name
);
// shareBtn
// 此处可以修改 shareObj 中的内容
shareObj
.
path
=
`/my/login/login?id=
${
that
.
$store
.
state
.
login
.
userInfo
.
user
.
id
}
`
;
}
console
.
log
(
"shareObj"
,
shareObj
)
// 返回shareObj
return
shareObj
;
// 设置菜单中的转发按钮触发转发事件时的转发内容
}
else
{
uni
.
showModal
({
title
:
'请登录'
,
content
:
'您需要登录才能使用该功能'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
that
.
$uniGo
.
reLaunch
({
url
:
'/my/login/login'
})
}
else
if
(
res
.
cancel
)
{
uni
.
navigateBack
()
}
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.container
{
.content
{
width
:
100%
;
>image
{
width
:
100%
;
height
:
300
rpx
;
}
&
-introduce
{
text-align
:
center
;
margin-top
:
179
rpx
;
}
&
-tip
{
padding
:
71
rpx
40
rpx
30
rpx
40
rpx
;
box-sizing
:
border-box
;
}
&
-text
{
padding
:
34
rpx
40
rpx
;
box-sizing
:
border-box
;
>view
{
padding
:
20
rpx
0
30
rpx
0
;
box-sizing
:
border-box
;
line-height
:
38
rpx
;
}
}
}
}
</
style
>
my/coupon/index.vue
View file @
0eedf152
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<view
class=
"index-content-item-qu"
v-for=
"(item,index) in useCouponList"
@
click=
"optionData.type === 'pay'?jump(item):null"
>
<view
class=
"index-content-item-qu"
v-for=
"(item,index) in useCouponList"
@
click=
"optionData.type === 'pay'?jump(item):null"
>
<image
class=
"index-content-item-qu-bg"
src=
"@/static/icon/xy01.png"
mode=
""
></image>
<image
class=
"index-content-item-qu-bg"
src=
"@/static/icon/xy01.png"
mode=
""
></image>
<view
class=
"index-content-item-qu-bl"
>
<view
class=
"index-content-item-qu-bl"
>
<text
class=
"index-content-item-qu-bl-tl"
>
满减优惠券
</text>
<text
class=
"index-content-item-qu-bl-tl"
v-if=
"item.couponType == 0"
>
满减优惠券
</text>
<text
class=
"index-content-item-qu-bl-tl"
v-if=
"item.couponType == 1"
>
新用户券
</text>
<view
class=
"index-content-item-qu-bl-lk"
>
<view
class=
"index-content-item-qu-bl-lk"
>
<view
class=
"index-content-item-qu-bl-lk-t"
>
<view
class=
"index-content-item-qu-bl-lk-t"
>
<text>
¥
</text>
<text>
¥
</text>
...
...
my/invite/index.vue
View file @
0eedf152
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"d-flex flex-wrap"
>
<view
class=
"invate-avatar"
v-for=
"(item,index) in inviteList"
>
<image
:src=
"item.headImgUrl"
mode=
""
></image>
</view>
</view>
</view>
</view>
<!--
<u-button
text=
"继续邀请新用户"
color=
"#2C66FF"
:customStyle=
"
{
<!--
<u-button
text=
"继续邀请新用户"
color=
"#2C66FF"
:customStyle=
"
{
width: '710rpx',
width: '710rpx',
...
@@ -166,6 +171,18 @@
...
@@ -166,6 +171,18 @@
}
}
}
}
}
}
.invate-avatar
{
width
:
68
rpx
;
height
:
68
rpx
;
background
:
#f5f5f5
;
border-radius
:
50%
;
margin-right
:
20
rpx
;
margin-bottom
:
20
rpx
;
image{
width
:
100%
;
height
:
100%
;
}
}
.invite-btn
{
.invite-btn
{
position
:
fixed
;
position
:
fixed
;
...
...
package.json
View file @
0eedf152
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
"env"
:
{
"env"
:
{
"UNI_PLATFORM"
:
"mp-weixin"
,
"UNI_PLATFORM"
:
"mp-weixin"
,
"UNI_BASE_ENV"
:
"uat"
,
"UNI_BASE_ENV"
:
"uat"
,
"UNI_BASE_URL"
:
"http://xinrenli.nyinhong.com"
,
"UNI_BASE_URL"
:
"http
s
://xinrenli.nyinhong.com"
,
"UNI_BASE_API"
:
"/api"
"UNI_BASE_API"
:
"/api"
},
},
"define"
:
{
"define"
:
{
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
"env"
:
{
"env"
:
{
"UNI_PLATFORM"
:
"mp-weixin"
,
"UNI_PLATFORM"
:
"mp-weixin"
,
"UNI_BASE_ENV"
:
"production"
,
"UNI_BASE_ENV"
:
"production"
,
"UNI_BASE_URL"
:
"https://
pepsibdp.masterkong.com.cn
"
,
"UNI_BASE_URL"
:
"https://
xinrenli.nyinhong.com
"
,
"UNI_BASE_API"
:
"/api"
"UNI_BASE_API"
:
"/api"
},
},
"define"
:
{
"define"
:
{
...
...
pages.json
View file @
0eedf152
...
@@ -58,7 +58,16 @@
...
@@ -58,7 +58,16 @@
"navigationBarTitleText"
:
"订单详情"
,
"navigationBarTitleText"
:
"订单详情"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}]
}
,{
"path"
:
"introduce/introduce"
,
"style"
:
{
"navigationBarTitleText"
:
"简介"
,
"enablePullDownRefresh"
:
false
}
}
]
},
},
{
{
"root"
:
"my"
,
//子包的根目录
"root"
:
"my"
,
//子包的根目录
...
...
pages/home/index.vue
View file @
0eedf152
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
globalData
:
getApp
().
globalData
,
globalData
:
getApp
().
globalData
,
scrollTopHeader
:
0
,
scrollTopHeader
:
0
,
swiperList
:
[
swiperList
:
[
'https://cdn.uviewui.com/uview/swiper/swiper1.png'
,
//
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
'https://cdn.uviewui.com/uview/swiper/swiper2.png'
,
'https://cdn.uviewui.com/uview/swiper/swiper2.png'
,
'https://cdn.uviewui.com/uview/swiper/swiper3.png'
,
'https://cdn.uviewui.com/uview/swiper/swiper3.png'
,
],
],
...
@@ -144,17 +144,19 @@
...
@@ -144,17 +144,19 @@
url
:
`/home/index/index?id=
${
info
.
id
}
`
url
:
`/home/index/index?id=
${
info
.
id
}
`
});
});
},
},
handleSwiper
(
index
){
handleSwiper
(
index
)
{
console
.
log
(
index
,
'下表'
)
console
.
log
(
index
,
'下表'
)
let
data
=
{
// let data = {
id
:
"1645720411777540114"
// id: "1645720411777540114"
}
// }
let
subscript
=
1
// let subscript = 1
// this.$uniGo.navigateTo({
// url: `/demand/index/index?detailInfo=${encodeURIComponent(JSON.stringify(data))}&subscript=${subscript}`
// // url: `/demand/index/index?subscript=${this.subscript}`
// });
this
.
$uniGo
.
navigateTo
({
this
.
$uniGo
.
navigateTo
({
url
:
`/demand/index/index?detailInfo=
${
encodeURIComponent
(
JSON
.
stringify
(
data
))}
&subscript=
${
subscript
}
`
url
:
`/home/introduce/introduce?type=`
+
index
// url: `/demand/index/index?subscript=${this.subscript}`
});
});
},
},
loadMore
()
{
loadMore
()
{
console
.
log
(
'加载更多'
)
console
.
log
(
'加载更多'
)
...
...
pages/order/index.vue
View file @
0eedf152
...
@@ -88,8 +88,6 @@
...
@@ -88,8 +88,6 @@
that
.
total
=
total
that
.
total
=
total
if
(
that
.
total
<=
that
.
queryParams
.
pageSize
){
if
(
that
.
total
<=
that
.
queryParams
.
pageSize
){
that
.
loadStatus
=
'nomore'
that
.
loadStatus
=
'nomore'
}
else
{
that
.
loadStatus
=
'loading'
}
}
if
(
that
.
queryParams
.
pageNum
==
1
){
if
(
that
.
queryParams
.
pageNum
==
1
){
that
.
articleList
=
rows
that
.
articleList
=
rows
...
...
utils/common.css
View file @
0eedf152
...
@@ -186,9 +186,20 @@
...
@@ -186,9 +186,20 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
}
}
.font-28
{
font-size
:
28
rpx
;
}
.noData-text
{
.noData-text
{
color
:
#989898
;
color
:
#989898
;
text-align
:
center
;
text-align
:
center
;
margin
:
20
rpx
0
;
margin
:
20
rpx
0
;
}
}
.m-b-10
{
margin-bottom
:
10
rpx
;
}
.m-b-34
{
margin-bottom
:
34
rpx
;
}
\ No newline at end of file
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