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
0805fa4b
Commit
0805fa4b
authored
Sep 27, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1af06a4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
21 deletions
+42
-21
erp.js
src/api/erp.js
+12
-0
main.js
src/main.js
+3
-0
addFriendsAndRelatives.vue
src/pages/FriendsAndRelatives/addFriendsAndRelatives.vue
+1
-1
index.vue
src/pages/FriendsAndRelatives/index.vue
+26
-20
No files found.
src/api/erp.js
View file @
0805fa4b
...
...
@@ -189,4 +189,16 @@ export function GetOrderPage(data) {
method
:
'post'
,
data
})
}
/**
* 微信邀请
* @param {JSON参数} data
*/
export
function
CreateFriendQrCode
(
data
)
{
return
request
({
url
:
'/AppletCenter/CreateFriendQrCode'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/main.js
View file @
0805fa4b
...
...
@@ -5,10 +5,13 @@ import App from './App.vue'
import
Toast
from
"./wxcomponents/vant/toast/toast"
;
import
Dialog
from
"./wxcomponents/vant/dialog/dialog"
;
import
plugin
from
'./utils/plugin'
let
app
=
createApp
(
App
)
app
.
provide
(
"$toast"
,
Toast
)
app
.
provide
(
"$dialog"
,
Dialog
)
app
.
use
(
plugin
)
app
.
config
.
globalProperties
.
$erpImgUrl
=
process
.
env
.
NODE_ENV
==
"development"
?
'http://192.168.10.128:8900'
:
'https://jjswapi.oytour.com'
// app.config.globalProperties.$toast = Toast;//全局挂载方法
// app.component('v-MessageBox',MessageBox);//全局注册组件
app
.
mount
()
src/pages/FriendsAndRelatives/addFriendsAndRelatives.vue
View file @
0805fa4b
...
...
@@ -45,7 +45,7 @@
<view
class=
"addChild-header flex"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664160541000_21.png"
style=
"width: 352rpx;height: 218rpx;"
></image>
<text>
李欣芮
の
亲友团
</text>
<text>
李欣芮
的
亲友团
</text>
</view>
<view
class=
"title"
>
Ranjunjun邀请您加入亲友团
...
...
src/pages/FriendsAndRelatives/index.vue
View file @
0805fa4b
...
...
@@ -152,12 +152,12 @@
</view>
<view
class=
"header-right flex"
>
<view
class=
"right-image"
>
<button
class=
"right-button"
data-name=
"shareBtn"
open-type=
"share"
></button>
<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>
<text
class=
"left-title"
>
微信邀请
</text>
</view>
<view
class=
"right-image"
style=
"margin-right: 33rpx;"
@
click=
"showPopup=true"
>
<view
class=
"right-image"
style=
"margin-right: 33rpx;"
@
click=
"showPopup=true
,QRcode()
"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164159000_60.png"
style=
"width: 99rpx;height: 99rpx;"
></image>
<text
class=
"left-title"
>
面对面邀请
</text>
...
...
@@ -190,7 +190,7 @@
round
>
<view
style=
"padding: 63rpx;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664160541000_21.pn
g"
<image
:src=
"QRcodeIm
g"
style=
"width: 378rpx;height: 377rpx;"
></image>
</view>
<view
class=
"cross-box"
>
...
...
@@ -216,7 +216,7 @@
import
Loadmore
from
"../../components/loadmore.vue"
;
import
bottom
from
"../../components/bottom"
;
import
{
GetFriend
GetFriend
,
CreateFriendQrCode
}
from
"../../api/erp"
;
export
default
{
components
:
{
...
...
@@ -228,6 +228,10 @@
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
erpUrl
:
''
,
QRcodeImg
:
''
,
erpUserInfo
:
null
,
userInfo
:
null
,
FriendCount
:
null
,
loading
:
true
,
Account
:
''
,
...
...
@@ -237,10 +241,6 @@
pageSize
:
10
},
dataList
:
[],
imgUrlG
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663930765000_891.png'
,
imgUrlR
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663930765000_218.png'
,
imgBoy
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663932008000_116.png'
,
imgGirl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png'
});
const
methods
=
{
// 删除接口
...
...
@@ -267,15 +267,19 @@
usernameInput
(
val
)
{
data
.
Account
=
val
.
detail
;
},
addChild
(){
data
.
loading
=
false
setTimeout
(()
=>
{
data
.
loading
=
true
uni
.
navigateBack
({
delta
:
1
});
},
2000
)
},
async
QRcode
(){
uni
.
showLoading
()
let
msg
=
{
url
:
`/pages/FriendsAndRelatives/addFriendsAndRelatives?RealPhone=
${
this
.
erpUserInfo
.
RealPhone
}
&Account=
${
this
.
userInfo
.
Account
}
`
,
//"www.baidu.com",
width
:
200
}
let
res
=
await
CreateFriendQrCode
(
msg
);
if
(
res
)
{
uni
.
hideLoading
()
data
.
QRcodeImg
=
data
.
erpUrl
+
res
.
Data
console
.
log
(
data
.
QRcodeImg
,
'---'
)
}
},
async
getData
()
{
uni
.
showLoading
()
let
res
=
await
GetFriend
(
data
.
msg
);
...
...
@@ -309,19 +313,21 @@
this
.
FriendCount
=
options
.
FriendCount
},
onShow
(){
this
.
erpUrl
=
this
.
$erpImgUrl
this
.
erpUserInfo
=
uni
.
getStorageSync
(
'erpUserInfo'
)
this
.
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
this
.
getData
()
},
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?RealPhone=
${
erpUserInfo
.
RealPhone
}
&Account=
${
userInfo
.
Account
}
`
,
query
:
`/pages/login/login?RealPhone=
${
this
.
erpUserInfo
.
RealPhone
}
&Account=
${
this
.
userInfo
.
Account
}
`
,
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