Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
a3325348
Commit
a3325348
authored
May 12, 2020
by
程南
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品手机号授权
parent
b82e6ee4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
skuPopup.js
src/component/skuPopup/skuPopup.js
+12
-1
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+2
-0
project.config.json
src/project.config.json
+1
-1
wxService.js
src/utils/wxService.js
+0
-1
No files found.
src/component/skuPopup/skuPopup.js
View file @
a3325348
...
@@ -97,7 +97,11 @@ Component({
...
@@ -97,7 +97,11 @@ Component({
productPrice
:{
productPrice
:{
type
:
Number
,
type
:
Number
,
value
:
0
value
:
0
}
},
currentHasMobile
:
{
type
:
Boolean
,
type
:
false
},
},
},
attached
()
{
attached
()
{
...
@@ -146,6 +150,13 @@ Component({
...
@@ -146,6 +150,13 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
//获取手机号回调
getPhoneNumber
(
res
=
{})
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'getMobile'
,
res
);
})
},
confirm
()
{
confirm
()
{
if
(
this
.
data
.
curSpec
.
length
<
1
){
if
(
this
.
data
.
curSpec
.
length
<
1
){
wx
.
showToast
({
wx
.
showToast
({
...
...
src/pages/productDetail/productDetail.wxml
View file @
a3325348
...
@@ -192,6 +192,8 @@
...
@@ -192,6 +192,8 @@
product-stock="{{productInfo.stock}}"
product-stock="{{productInfo.stock}}"
currentHasUserInfo="{{currentHasUserInfo}}"
currentHasUserInfo="{{currentHasUserInfo}}"
bind:getAuth="_getUserInfo"
bind:getAuth="_getUserInfo"
bind:getMobile="userGetMobile"
currentHasMobile="{{currentHasMobile}}"
/>
/>
<card-modal
<card-modal
...
...
src/project.config.json
View file @
a3325348
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wxac09792264c49b5c"
,
"appid"
:
"wxac09792264c49b5c"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"projectname"
:
"
7.0-%E7%83%AD%E9%A3%8E
%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"debugOptions"
:
{
"hidedInDevtools"
:
[]
"hidedInDevtools"
:
[]
},
},
...
...
src/utils/wxService.js
View file @
a3325348
...
@@ -820,7 +820,6 @@ class WXService extends Http {
...
@@ -820,7 +820,6 @@ class WXService extends Http {
title
:
'用户登录中..'
,
title
:
'用户登录中..'
,
});
});
_self
.
getAuthUserInfo
(
res
.
detail
,
'phoneNumber'
).
then
(
res
=>
{
_self
.
getAuthUserInfo
(
res
.
detail
,
'phoneNumber'
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
this
.
setData
({
currentHasMobile
:
true
,
currentHasMobile
:
true
,
currentHasUserInfo
:
true
,
currentHasUserInfo
:
true
,
...
...
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