Commit cde515cd by wenyang

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

parent f3019583
...@@ -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','pwlogin'); uni.setStorageSync('loginType','codelogin');
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)
}, },
} }
} }
......
...@@ -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配置 */
......
...@@ -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();
setTimeout(() => { console.log(loginTypeSync, 222)
this.getuserRead(this.courseInfo.status) if(loginTypeSync === "visitor"){
}, 500) 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 { } 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()
......
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