Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
Chao Sun
CFFP-HB
Commits
cde515cd
Commit
cde515cd
authored
Apr 13, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IOS上架,按要求调整(1.APP访问相机和照片的用途描述;2.用户不登录可以访问非基于帐户的功能)
parent
f3019583
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
14 deletions
+30
-14
components/bootpage/bootpage.vue
+8
-8
manifest.json
+6
-0
pages/courseDetail/courseDetail.vue
+16
-6
No files found.
components/bootpage/bootpage.vue
View file @
cde515cd
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<text
class=
"file"
@
click=
"getFile(2)"
>
隐私政策
</text>
<text
class=
"file"
@
click=
"getFile(2)"
>
隐私政策
</text>
</view>
</view>
<view
class=
"footer"
@
click=
"login()"
>
<view
class=
"footer"
@
click=
"login()"
>
<text
style=
"line-height: 80rpx;"
>
登录
</text>
<text
style=
"line-height: 80rpx;"
>
{{
loginTypeSync
==
'visitor'
?
'购买'
:
'登录'
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
""
style=
"width: 80rpx;height: 80rpx;margin: auto;"
@
click=
"closebootpage()"
>
<view
class=
""
style=
"width: 80rpx;height: 80rpx;margin: auto;"
@
click=
"closebootpage()"
>
...
@@ -43,11 +43,13 @@
...
@@ -43,11 +43,13 @@
sendCode
:
'获取验证码'
,
sendCode
:
'获取验证码'
,
disabledSendBtn
:
false
,
disabledSendBtn
:
false
,
remainTimes
:
60
,
remainTimes
:
60
,
userId
:
''
userId
:
''
,
loginTypeSync
:
''
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
orderId
,
222
)
this
.
loginTypeSync
=
uni
.
getStorageSync
(
'loginType'
);
//console.log(this.orderId, 222)
},
},
methods
:
{
methods
:
{
getFile
(
type
){
getFile
(
type
){
...
@@ -70,8 +72,6 @@
...
@@ -70,8 +72,6 @@
}
else
{
}
else
{
common
.
errorDialog
(
2
,
'手机号校验错误'
)
common
.
errorDialog
(
2
,
'手机号校验错误'
)
}
}
},
},
delayTime
()
{
delayTime
()
{
this
.
disabledSendBtn
=
true
;
this
.
disabledSendBtn
=
true
;
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'
pw
login'
);
uni
.
setStorageSync
(
'loginType'
,
'
code
login'
);
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
// uni.navigateTo({
// uni.navigateTo({
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,8 @@
},
},
closebootpage
()
{
closebootpage
()
{
debugger
;
//
debugger;
this
.
$emit
(
'close'
,
this
.
userId
)
this
.
$emit
(
'close'
,
this
.
userId
,
this
.
loginTypeSync
)
},
},
}
}
}
}
...
...
manifest.json
View file @
cde515cd
...
@@ -66,6 +66,12 @@
...
@@ -66,6 +66,12 @@
"com.apple.developer.associated-domains"
:
[
"applinks:mcffp.anjibao.cn"
,
"applinks:mapp.cffp.org.cn"
]
"com.apple.developer.associated-domains"
:
[
"applinks:mcffp.anjibao.cn"
,
"applinks:mapp.cffp.org.cn"
]
}
}
},
},
"privacyDescription"
:
{
//可选,JSON对象,iOS隐私信息访问的许可描述
"NSPhotoLibraryUsageDescription"
:
"需要访问您的相册才能上传所需的照片或您的个人资料"
,
//可选,字符串类型,系统相册读取权限描述
"NSPhotoLibraryAddUsageDescription"
:
"需要访问您的相册才能保存所需的照片或您的个人资料"
,
//可选,字符串类型,系统相册写入权限描述
"NSCameraUsageDescription"
:
"需要访问您的相机才能拍摄所需的照片或您的个人资料"
//可选,字符串类型,摄像头使用权限描述
},
"idfa"
:
false
"idfa"
:
false
},
},
/*
SDK配置
*/
/*
SDK配置
*/
...
...
pages/courseDetail/courseDetail.vue
View file @
cde515cd
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
</view>
</view>
<!-- 购买按钮 -->
<!-- 购买按钮 -->
<view
class=
"buyBox"
@
click=
"saveOrder()"
v-if=
"courseInfo.status == 1 && courseInfo.coursePrice != 0"
>
<view
class=
"buyBox"
@
click=
"saveOrder()"
v-if=
"courseInfo.status == 1 && courseInfo.coursePrice != 0"
>
<text>
{{loginType=='visitor' ? '登录/注册' : '购买'}}
</text>
<text>
购买
</text>
</view>
</view>
</view>
</view>
...
@@ -209,17 +209,26 @@
...
@@ -209,17 +209,26 @@
};
};
},
},
methods
:
{
methods
:
{
close
(
val
)
{
close
(
val
,
loginTypeSync
)
{
if
(
val
)
{
if
(
val
)
{
this
.
startTime
=
Date
.
parse
(
new
Date
())
/
1000
;
uni
.
setStorageSync
(
'h5_startTime'
,
this
.
startTime
)
this
.
sharelogin
=
false
this
.
sharelogin
=
false
this
.
userId
=
val
this
.
userId
=
val
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
this
.
courseDetail
();
this
.
courseDetail
();
console
.
log
(
loginTypeSync
,
222
)
if
(
loginTypeSync
===
"visitor"
){
setTimeout
(()
=>
{
if
(
this
.
courseInfo
.
status
==
1
){
this
.
jumppurchase
();
}
},
500
)
}
else
{
this
.
startTime
=
Date
.
parse
(
new
Date
())
/
1000
;
uni
.
setStorageSync
(
'h5_startTime'
,
this
.
startTime
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
getuserRead
(
this
.
courseInfo
.
status
)
this
.
getuserRead
(
this
.
courseInfo
.
status
)
},
500
)
},
500
)
}
}
else
{
}
else
{
this
.
sharelogin
=
false
this
.
sharelogin
=
false
}
}
...
@@ -350,9 +359,10 @@
...
@@ -350,9 +359,10 @@
// 订单保存
// 订单保存
saveOrder
()
{
saveOrder
()
{
if
(
this
.
loginType
===
'visitor'
)
{
if
(
this
.
loginType
===
'visitor'
)
{
uni
.
navigateTo
({
this
.
sharelogin
=
true
/* uni.navigateTo({
url: '/components/login/login'
url: '/components/login/login'
})
})
*/
}
else
{
}
else
{
if
(
this
.
coursesharing
==
'1'
)
{
if
(
this
.
coursesharing
==
'1'
)
{
this
.
h5jump
()
this
.
h5jump
()
...
...
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