Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
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
游洁
thinkApp
Commits
1948f5fd
Commit
1948f5fd
authored
Sep 26, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6e1e7b8c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
15 deletions
+50
-15
index.vue
src/pages/FriendsAndRelatives/index.vue
+37
-7
index.vue
src/pages/MyChild/index.vue
+1
-1
fail.vue
src/pages/index/fail.vue
+1
-1
login.vue
src/pages/login/login.vue
+8
-2
person.vue
src/pages/person/person.vue
+3
-4
No files found.
src/pages/FriendsAndRelatives/index.vue
View file @
1948f5fd
...
...
@@ -139,13 +139,13 @@
<view
class=
"header-list flex_between_center"
>
<view
class=
"header-left flex"
>
<view
class=
"left-text flex"
style=
"width: 99rpx;height: 99rpx;"
>
<text>
3
</text>
<text>
{{
ContractNum
||
0
}}
</text>
<view>
人
</view>
</view>
<text
class=
"left-title"
>
亲友团
</text>
</view>
<view
class=
"header-right flex"
>
<view
class=
"right-image"
@
click=
"invite"
>
<view
class=
"right-image"
>
<button
class=
"right-button"
data-name=
"shareBtn"
open-type=
"share"
></button>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164163000_619.png"
style=
"width: 99rpx;height: 99rpx;"
></image>
...
...
@@ -172,6 +172,7 @@
</view>
<view
class=
"list-right"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164166000_196.png"
@
click
.
stop=
"DelData(item)"
style=
"width: 36rpx;height: 35rpx;"
></image>
</view>
</view>
...
...
@@ -220,6 +221,7 @@
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
ContractNum
:
null
,
loading
:
true
,
Account
:
''
,
showPopup
:
false
,
...
...
@@ -235,8 +237,26 @@
imgGirl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png'
});
const
methods
=
{
invite
(){
// 删除接口
DelData
(
item
){
uni
.
showModal
({
title
:
'提示'
,
content
:
'将要删除数据,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
let
Msg
=
{
}
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
title
:
'已取消'
,
icon
:
'none'
,
duration
:
500
})
}
}
});
},
usernameInput
(
val
)
{
data
.
Account
=
val
.
detail
;
...
...
@@ -251,22 +271,32 @@
},
2000
)
},
};
let
that
=
methods
;
onMounted
(()
=>
{
})
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(
options
)
{
this
.
ContractNum
=
options
.
ContractNum
},
onShow
(){
},
onReachBottom
()
{
},
onShareAppMessage
()
{
let
erpUserInfo
=
uni
.
getStorageSync
(
'erpUserInfo'
)
let
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
// console.log(uni.getStorageSync('RealPhone'),'==')
// console.log(uni.getStorageSync('Account'))
return
{
title
:
"邀请好友"
,
query
:
"/pages/login/login"
,
query
:
`/pages/login/login?RealPhone=
${
erpUserInfo
.
RealPhone
}
&Account=
${
userInfo
.
Account
}
`
,
imageUrl
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png"
,
};
},
...
...
src/pages/MyChild/index.vue
View file @
1948f5fd
...
...
@@ -240,7 +240,7 @@
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
let
Msg
=
{
ExamId
:
item
.
ExamId
}
}
else
if
(
res
.
cancel
)
{
...
...
src/pages/index/fail.vue
View file @
1948f5fd
...
...
@@ -21,7 +21,7 @@
uni
.
navigateBack
(
1
);
return
;
}
let
a
=
this
.
$r
outer
.
go
(
-
1
);
let
a
=
outer
.
go
(
-
1
);
if
(
a
==
undefined
){
uni
.
reLaunch
({
url
:
'/pages/index/index'
...
...
src/pages/login/login.vue
View file @
1948f5fd
...
...
@@ -67,8 +67,14 @@
...
methods
,
};
},
onLoad
()
{
onLoad
(
options
)
{
// 微信邀请过来的数据存储
if
(
options
.
RealPhone
){
uni
.
setStorageSync
(
'RealPhone'
,
options
.
RealPhone
)
}
if
(
options
.
Account
){
uni
.
setStorageSync
(
'Account'
,
options
.
Account
)
}
}
};
</
script
>
...
...
src/pages/person/person.vue
View file @
1948f5fd
...
...
@@ -43,7 +43,7 @@
我的小孩
</view>
</view>
<view
class=
"orderItem "
@
click=
"jumpPage(`/pages/FriendsAndRelatives/index`)"
>
<view
class=
"orderItem "
@
click=
"jumpPage(`/pages/FriendsAndRelatives/index`
,pageData.ContractNum
)"
>
<view
class=
" flex_between_center"
style=
"width:100%"
>
<view
class=
"orderNum"
>
{{
pageData
.
ContractNum
||
0
}}
</view>
<image
src=
"../../static/image/person/order3.png"
mode=
"aspectFill"
class=
"orderIcon"
></image>
...
...
@@ -231,10 +231,9 @@
})
}
},
jumpPage
(
url
)
{
jumpPage
(
url
,
num
)
{
uni
.
navigateTo
({
url
:
url
,
url
:
num
?
url
+
'?ContractNum='
+
num
:
url
,
});
},
async
getData
()
{
...
...
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