Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
程默
mayi-mp-shop
Commits
7ab23970
Commit
7ab23970
authored
Jan 23, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加log
parent
f1b69ef6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
2 deletions
+26
-2
src/pages/wo/checkHistory/index.vue
+3
-0
src/pages/wo/editPicture/index.vue
+2
-2
src/pages/wo/improveInformation/index.vue
+4
-0
src/pages/wo/showPassCheck/index.vue
+3
-0
src/pages/wo/verification/index.vue
+3
-0
src/pages/wo/writeInformation/index.vue
+11
-0
No files found.
src/pages/wo/checkHistory/index.vue
View file @
7ab23970
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
index
from
"@/api/index"
;
import
index
from
"@/api/index"
;
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
export
default
{
name
:
"checkHistory"
,
name
:
"checkHistory"
,
data
()
{
data
()
{
...
@@ -62,6 +64,7 @@ export default {
...
@@ -62,6 +64,7 @@ export default {
checkOrVerified
:
2
,
checkOrVerified
:
2
,
};
};
index
.
getHistoryByVerifier
(
query
).
then
((
res
)
=>
{
index
.
getHistoryByVerifier
(
query
).
then
((
res
)
=>
{
log
.
info
(
'getHistoryByVerifier'
,
query
,
res
)
this
.
loaded
=
true
;
this
.
loaded
=
true
;
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
res
.
data
.
ok
==
"true"
)
{
if
(
res
.
data
.
ok
==
"true"
)
{
...
...
src/pages/wo/editPicture/index.vue
View file @
7ab23970
...
@@ -23,7 +23,7 @@ export default {
...
@@ -23,7 +23,7 @@ export default {
console
.
log
(
options
.
src
,
"----------22"
);
console
.
log
(
options
.
src
,
"----------22"
);
const
device
=
wx
.
getSystemInfoSync
();
// 获取设备信息
const
device
=
wx
.
getSystemInfoSync
();
// 获取设备信息
const
width
=
device
.
windowWidth
;
// 示例为一个与屏幕等宽的正方形裁剪框
const
width
=
device
.
windowWidth
;
// 示例为一个与屏幕等宽的正方形裁剪框
const
height
=
device
.
windowHeight
-
12
0
;
const
height
=
device
.
windowHeight
-
20
0
;
let
cropperOptions
=
{
let
cropperOptions
=
{
src
:
""
,
src
:
""
,
id
:
"canvasId"
,
id
:
"canvasId"
,
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
zoom
:
8
,
// 缩放系数
zoom
:
8
,
// 缩放系数
cut
:
{
cut
:
{
x
:
(
width
-
260
)
/
2
,
// 裁剪框x轴起点
x
:
(
width
-
260
)
/
2
,
// 裁剪框x轴起点
y
:
(
height
-
3
2
0
)
/
2
,
// 裁剪框y轴期起点
y
:
(
height
-
3
0
0
)
/
2
,
// 裁剪框y轴期起点
width
:
260
,
// 裁剪框宽度
width
:
260
,
// 裁剪框宽度
height
:
320
,
// 裁剪框高度
height
:
320
,
// 裁剪框高度
},
},
...
...
src/pages/wo/improveInformation/index.vue
View file @
7ab23970
...
@@ -93,6 +93,8 @@
...
@@ -93,6 +93,8 @@
import
live
from
"@/api/live"
;
import
live
from
"@/api/live"
;
import
index
from
"@/api/index"
;
import
index
from
"@/api/index"
;
import
{
DFSImg
}
from
'@/utils/common.js'
import
{
DFSImg
}
from
'@/utils/common.js'
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
export
default
{
name
:
"improveInformation"
,
name
:
"improveInformation"
,
data
()
{
data
()
{
...
@@ -137,6 +139,7 @@ export default {
...
@@ -137,6 +139,7 @@ export default {
});
});
this
.
editImg
=
false
;
this
.
editImg
=
false
;
live
.
getUserInfo
().
then
(
res
=>
{
live
.
getUserInfo
().
then
(
res
=>
{
log
.
info
(
'getUserInfo'
,
res
)
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
res
.
data
.
ok
==
'true'
){
if
(
res
.
data
.
ok
==
'true'
){
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
=
res
.
data
.
data
;
...
@@ -218,6 +221,7 @@ export default {
...
@@ -218,6 +221,7 @@ export default {
headPortraitUrl
:
this
.
userInfo
.
headPortraitUrl
headPortraitUrl
:
this
.
userInfo
.
headPortraitUrl
}
}
index
.
update_info
(
query
).
then
(
res
=>
{
index
.
update_info
(
query
).
then
(
res
=>
{
log
.
info
(
'update_info'
,
query
,
res
)
if
(
res
.
data
.
ok
==
'true'
){}
if
(
res
.
data
.
ok
==
'true'
){}
})
})
},
},
...
...
src/pages/wo/showPassCheck/index.vue
View file @
7ab23970
...
@@ -63,6 +63,8 @@ import live from "@/api/live";
...
@@ -63,6 +63,8 @@ import live from "@/api/live";
import
index
from
"@/api/index"
;
import
index
from
"@/api/index"
;
import
{
DFSImg
}
from
"@/utils/common.js"
;
import
{
DFSImg
}
from
"@/utils/common.js"
;
import
QRCode
from
"@/utils/weapp-qrcode.js"
;
import
QRCode
from
"@/utils/weapp-qrcode.js"
;
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
export
default
{
name
:
"showPassCheck"
,
name
:
"showPassCheck"
,
data
()
{
data
()
{
...
@@ -141,6 +143,7 @@ export default {
...
@@ -141,6 +143,7 @@ export default {
},
},
getQrCode
()
{
getQrCode
()
{
index
.
generatorUniqueCodeByDynamic
().
then
((
res
)
=>
{
index
.
generatorUniqueCodeByDynamic
().
then
((
res
)
=>
{
log
.
info
(
'generatorUniqueCodeByDynamic'
,
res
)
if
(
res
.
data
.
ok
==
"true"
)
{
if
(
res
.
data
.
ok
==
"true"
)
{
this
.
qrCode
=
res
.
data
.
data
.
uniqueCode
;
this
.
qrCode
=
res
.
data
.
data
.
uniqueCode
;
this
.
updateTime
=
res
.
data
.
data
.
createDatetime
;
this
.
updateTime
=
res
.
data
.
data
.
createDatetime
;
...
...
src/pages/wo/verification/index.vue
View file @
7ab23970
...
@@ -90,6 +90,8 @@
...
@@ -90,6 +90,8 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
index
from
"@/api/index"
;
import
index
from
"@/api/index"
;
import
{
DFSImg
}
from
"@/utils/common.js"
;
import
{
DFSImg
}
from
"@/utils/common.js"
;
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
export
default
{
name
:
"verification"
,
name
:
"verification"
,
data
()
{
data
()
{
...
@@ -154,6 +156,7 @@ export default {
...
@@ -154,6 +156,7 @@ export default {
this
.
showInfo
=
false
;
this
.
showInfo
=
false
;
this
.
loaded
=
false
;
this
.
loaded
=
false
;
index
.
getInfoByUniqueCode
(
this
.
checkText
).
then
((
res
)
=>
{
index
.
getInfoByUniqueCode
(
this
.
checkText
).
then
((
res
)
=>
{
log
.
info
(
'getInfoByUniqueCode'
,
this
.
checkText
,
res
)
wx
.
hideLoading
();
wx
.
hideLoading
();
this
.
loaded
=
true
;
this
.
loaded
=
true
;
if
(
res
.
data
.
ok
==
"true"
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
ok
==
"true"
&&
res
.
data
.
data
)
{
...
...
src/pages/wo/writeInformation/index.vue
View file @
7ab23970
...
@@ -78,6 +78,8 @@
...
@@ -78,6 +78,8 @@
<
script
>
<
script
>
import
login
from
"@/api/login"
;
import
login
from
"@/api/login"
;
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
export
default
{
name
:
"writeInformation"
,
name
:
"writeInformation"
,
data
()
{
data
()
{
...
@@ -200,6 +202,7 @@ export default {
...
@@ -200,6 +202,7 @@ export default {
});
});
let
query
=
{
customerName
:
this
.
name
,
identityCard
:
this
.
idNum
};
let
query
=
{
customerName
:
this
.
name
,
identityCard
:
this
.
idNum
};
login
.
get_certified_info
(
query
).
then
((
res
)
=>
{
login
.
get_certified_info
(
query
).
then
((
res
)
=>
{
log
.
info
(
'get_certified_info'
,
query
,
res
)
if
(
res
.
data
.
ok
==
"true"
)
{
if
(
res
.
data
.
ok
==
"true"
)
{
let
infoData
=
res
.
data
.
data
;
let
infoData
=
res
.
data
.
data
;
this
.
mini_certified
(
infoData
);
this
.
mini_certified
(
infoData
);
...
@@ -230,6 +233,7 @@ export default {
...
@@ -230,6 +233,7 @@ export default {
code
:
this
.
code
,
code
:
this
.
code
,
};
};
login
.
mini_certified
(
query
).
then
((
res
)
=>
{
login
.
mini_certified
(
query
).
then
((
res
)
=>
{
log
.
info
(
'mini_certified'
,
query
,
res
)
if
(
res
.
data
.
ok
==
"true"
)
{
if
(
res
.
data
.
ok
==
"true"
)
{
wx
.
login
({
wx
.
login
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
...
@@ -242,6 +246,7 @@ export default {
...
@@ -242,6 +246,7 @@ export default {
spokesmanShopId
:
""
,
spokesmanShopId
:
""
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
log
.
info
(
'miniLogin'
,
res
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
sessionId
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
sessionId
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
"认证通过"
,
title
:
"认证通过"
,
...
@@ -269,6 +274,12 @@ export default {
...
@@ -269,6 +274,12 @@ export default {
},
},
fail
:
(
err
)
=>
{},
fail
:
(
err
)
=>
{},
});
//重新登录
});
//重新登录
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"error"
,
duration
:
1000
,
});
}
}
});
});
},
},
...
...
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