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
a3842167
Commit
a3842167
authored
Sep 28, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7bf4e94a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
10 deletions
+55
-10
erp.js
src/api/erp.js
+1
-1
addFriendsAndRelatives.vue
src/pages/FriendsAndRelatives/addFriendsAndRelatives.vue
+46
-6
index.vue
src/pages/FriendsAndRelatives/index.vue
+8
-3
No files found.
src/api/erp.js
View file @
a3842167
...
@@ -137,7 +137,7 @@ export function GetOrderPage(data) {
...
@@ -137,7 +137,7 @@ export function GetOrderPage(data) {
*/
*/
export
function
SetMyChild
(
data
)
{
export
function
SetMyChild
(
data
)
{
return
request
({
return
request
({
url
:
'/AppletCenter/SetMyChild'
,
url
:
'/AppletCenter/SetMyChild
_V2
'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
...
...
src/pages/FriendsAndRelatives/addFriendsAndRelatives.vue
View file @
a3842167
...
@@ -88,7 +88,9 @@
...
@@ -88,7 +88,9 @@
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
const
{
ctx
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
options
:
null
,
nickName
:
''
,
nickName
:
''
,
AccountName
:
''
,
AccountName
:
''
,
OldUnionId
:
''
,
OldUnionId
:
''
,
...
@@ -207,23 +209,52 @@
...
@@ -207,23 +209,52 @@
})
})
},
},
async
getData
()
{
async
getData
()
{
uni
.
showLoading
()
//
uni.showLoading()
let
res
=
await
GetUserInfoByUnionId
(
data
.
msg
);
let
res
=
await
GetUserInfoByUnionId
(
data
.
msg
);
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
uni
.
hideLoading
()
//
uni.hideLoading()
data
.
nickName
=
res
.
Data
.
WeChatName
data
.
nickName
=
res
.
Data
.
WeChatName
}
else
{
}
else
{
uni
.
hideLoading
()
//
uni.hideLoading()
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
Message
,
title
:
res
.
Message
,
icon
:
"none"
,
icon
:
"none"
,
});
});
}
}
uni
.
showModal
({
title
:
'提示res'
,
content
:
JSON
.
stringify
(
res
.
Data
),
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
}
else
if
(
res
.
cancel
)
{
}
}
});
},
},
};
};
let
that
=
methods
;
let
that
=
methods
;
onMounted
(()
=>
{
onMounted
(()
=>
{
var
url
=
ctx
.
$scope
.
$page
.
fullPath
;
data
.
OldUnionId
=
decodeURIComponent
(
url
.
split
(
'='
)[
1
])
data
.
AccountName
=
decodeURIComponent
(
url
.
split
(
'='
)[
2
])
data
.
msg
.
Unionid
=
data
.
OldUnionId
uni
.
showModal
({
title
:
'ctx'
,
content
:
JSON
.
stringify
(
ctx
.
$scope
.
$page
.
fullPath
),
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
}
else
if
(
res
.
cancel
)
{
}
}
});
});
});
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
@@ -231,9 +262,18 @@
...
@@ -231,9 +262,18 @@
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
OldUnionId
=
options
.
unionId
uni
.
showModal
({
this
.
AccountName
=
options
.
AccountName
title
:
'options'
,
this
.
msg
.
Unionid
=
this
.
OldUnionId
content
:
JSON
.
stringify
(
options
),
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
}
else
if
(
res
.
cancel
)
{
}
}
});
},
},
onShow
(){
onShow
(){
this
.
getData
()
this
.
getData
()
...
...
src/pages/FriendsAndRelatives/index.vue
View file @
a3842167
...
@@ -260,6 +260,8 @@
...
@@ -260,6 +260,8 @@
let
res
=
RemoveMyChild
(
msg
);
let
res
=
RemoveMyChild
(
msg
);
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
data
.
dataList
=
[]
data
.
msg
.
pageIndex
=
1
that
.
getData
()
that
.
getData
()
}
else
{
}
else
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -280,7 +282,8 @@
...
@@ -280,7 +282,8 @@
async
QRcode
(){
async
QRcode
(){
uni
.
showLoading
()
uni
.
showLoading
()
let
msg
=
{
let
msg
=
{
url
:
`/pages/FriendsAndRelatives/addFriendsAndRelatives?unionid=
${
data
.
wxUserAuthInfo
.
unionid
}
&AccountName=
${
data
.
erpUserInfo
.
AccountName
}
`
,
// url:'/pages/index/index',
url
:
`/pages/FriendsAndRelatives/addFriendsAndRelatives?unionId=
${
data
.
wxUserAuthInfo
.
unionid
}
&AccountName=
${
data
.
erpUserInfo
.
AccountName
}
`
,
width
:
200
width
:
200
}
}
let
res
=
await
CreateFriendQrCode
(
msg
);
let
res
=
await
CreateFriendQrCode
(
msg
);
...
@@ -310,6 +313,7 @@
...
@@ -310,6 +313,7 @@
}
else
{
}
else
{
data
.
pageState
=
"more"
;
data
.
pageState
=
"more"
;
}
}
data
.
FriendCount
=
data
.
dataList
.
length
}
}
},
},
};
};
...
@@ -332,6 +336,7 @@
...
@@ -332,6 +336,7 @@
this
.
wxUserAuthInfo
=
uni
.
getStorageSync
(
'wxUserAuthInfo'
)
this
.
wxUserAuthInfo
=
uni
.
getStorageSync
(
'wxUserAuthInfo'
)
this
.
erpUserInfo
=
uni
.
getStorageSync
(
'erpUserInfo'
)
this
.
erpUserInfo
=
uni
.
getStorageSync
(
'erpUserInfo'
)
this
.
getData
()
this
.
getData
()
encodeURIComponent
},
},
onReachBottom
()
{
onReachBottom
()
{
...
@@ -339,8 +344,8 @@
...
@@ -339,8 +344,8 @@
onShareAppMessage
()
{
onShareAppMessage
()
{
return
{
return
{
title
:
`
${
this
.
erpUserInfo
.
AccountName
}
邀请你加入亲友团`
,
title
:
`
${
this
.
erpUserInfo
.
AccountName
}
邀请你加入亲友团`
,
path
:
`/pages/FriendsAndRelatives/addFriendsAndRelatives
??unionid=
${
this
.
wxUserAuthInfo
.
unionid
}
&AccountName=
${
this
.
erpUserInfo
.
AccountName
}
`
,
path
:
`/pages/FriendsAndRelatives/addFriendsAndRelatives`
,
query
:
`
`
,
query
:
`unionId=
${
this
.
wxUserAuthInfo
.
unionid
}
&AccountName=
${
this
.
erpUserInfo
.
AccountName
}
`
,
imageUrl
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png"
,
imageUrl
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png"
,
};
};
},
},
...
...
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