Commit cde515cd by wenyang

IOS上架,按要求调整(1.APP访问相机和照片的用途描述;2.用户不登录可以访问非基于帐户的功能)

parent f3019583
......@@ -20,7 +20,7 @@
<text class="file" @click="getFile(2)">隐私政策</text>
</view>
<view class="footer" @click="login()">
<text style="line-height: 80rpx;">登录</text>
<text style="line-height: 80rpx;">{{loginTypeSync=='visitor' ? '购买' : '登录'}}</text>
</view>
</view>
<view class="" style="width: 80rpx;height: 80rpx;margin: auto;" @click="closebootpage()">
......@@ -43,11 +43,13 @@
sendCode: '获取验证码',
disabledSendBtn: false,
remainTimes:60,
userId:''
userId:'',
loginTypeSync:''
}
},
mounted() {
console.log(this.orderId, 222)
this.loginTypeSync = uni.getStorageSync('loginType');
//console.log(this.orderId, 222)
},
methods: {
getFile(type){
......@@ -70,8 +72,6 @@
}else{
common.errorDialog(2,'手机号校验错误')
}
},
delayTime() {
this.disabledSendBtn = true;
......@@ -121,7 +121,7 @@
if(res['success']){
this.userId = String(res['data']['userId']);
uni.setStorageSync('isLogin','1');
uni.setStorageSync('loginType','pwlogin');
uni.setStorageSync('loginType','codelogin');
uni.setStorageSync('cffp_userId', this.userId);
uni.setStorageSync('uni-token', res.data['token']);
// uni.navigateTo({
......@@ -139,8 +139,8 @@
},
closebootpage() {
debugger;
this.$emit('close', this.userId)
//debugger;
this.$emit('close', this.userId,this.loginTypeSync)
},
}
}
......
......@@ -66,6 +66,12 @@
"com.apple.developer.associated-domains" : [ "applinks:mcffp.anjibao.cn", "applinks:mapp.cffp.org.cn" ]
}
},
"privacyDescription" : {
//可选,JSON对象,iOS隐私信息访问的许可描述
"NSPhotoLibraryUsageDescription" : "需要访问您的相册才能上传所需的照片或您的个人资料", //可选,字符串类型,系统相册读取权限描述
"NSPhotoLibraryAddUsageDescription" : "需要访问您的相册才能保存所需的照片或您的个人资料", //可选,字符串类型,系统相册写入权限描述
"NSCameraUsageDescription" : "需要访问您的相机才能拍摄所需的照片或您的个人资料" //可选,字符串类型,摄像头使用权限描述
},
"idfa" : false
},
/* SDK配置 */
......
......@@ -116,7 +116,7 @@
</view>
<!-- 购买按钮 -->
<view class="buyBox" @click="saveOrder()" v-if="courseInfo.status == 1 && courseInfo.coursePrice != 0">
<text>{{loginType=='visitor' ? '登录/注册' : '购买'}}</text>
<text>购买</text>
</view>
</view>
......@@ -209,17 +209,26 @@
};
},
methods: {
close(val) {
close(val,loginTypeSync) {
if (val) {
this.startTime = Date.parse(new Date()) / 1000;
uni.setStorageSync('h5_startTime', this.startTime)
this.sharelogin = false
this.userId = val
uni.setStorageSync('cffp_userId', this.userId);
this.courseDetail();
setTimeout(() => {
this.getuserRead(this.courseInfo.status)
}, 500)
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(() => {
this.getuserRead(this.courseInfo.status)
}, 500)
}
} else {
this.sharelogin = false
}
......@@ -350,9 +359,10 @@
// 订单保存
saveOrder() {
if (this.loginType === 'visitor') {
uni.navigateTo({
this.sharelogin = true
/* uni.navigateTo({
url: '/components/login/login'
})
}) */
} else {
if (this.coursesharing == '1') {
this.h5jump()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment