소스 검색

..

git-svn-id: svn://svn7.apicloud.com/A6007457911931/%E5%9C%88%E5%A4%9A%E5%A4%9A@639 0e1a2743-8d03-4e5a-a60c-7e26af42b145
1149931599@qq.com 4 년 전
부모
커밋
9836c4fc2a
2개의 변경된 파일3개의 추가작업 그리고 31개의 파일을 삭제
  1. 2 20
      html/frame0.html
  2. 1 11
      html/home/showgoods.html

+ 2 - 20
html/frame0.html

@@ -242,6 +242,7 @@ apiready = function() {
     _adv_goods_id = api.pageParam.advgoodsid;
     _adv_store_id = api.pageParam.advstoreid;
     _adv_article_id = api.pageParam.advarticleid;
+	reqPermission('storage');
     setIosTopBar();
     getAddress();
     get_adv();
@@ -249,7 +250,6 @@ apiready = function() {
     // get_advx();
     getRouteData();
     webtoappinit();
-	getQx();
     // getRouteHotelData();
     _myalias = "member" + $api.getStorage("memberid");
     jpushInit();
@@ -296,25 +296,7 @@ $("#hotel-list").on("tap", ".home-hotel-list", function() {
     });
     return false;
 })
-function getQx(){
-	var has = hasPermission('storage');
-	if(!has || !has[0] || !has[0].granted){
-	    api.confirm({
-	        title: '提醒',
-	        msg: "没有获得 APP存储 权限\n是否前往设置?",
-	        buttons: ['去设置', '取消']
-	    }, function (ret, err) {
-	        var index = ret.buttonIndex;
-	        if (index == 1) {
-	            reqPermission('storage');
-	        } else {
-	           api.toast({ msg: '获取APP存储权限失败...' }); 
-	        }
-	    });
-	    // $(".border-none").removeClass("mask-hidden");
-	    return false;
-	}
-}
+
 $(".scan-barcode").on("tap", function() {
     var has = hasPermission('camera');
     if(!has || !has[0] || !has[0].granted){

+ 1 - 11
html/home/showgoods.html

@@ -900,9 +900,6 @@ $(".share-item-friend").on("tap", function() {
 	    cache: true,
 	    allowResume: true
 	}, function(ret, err) {
-		console.log("1");
-		console.log(JSON.stringify(ret));
-		console.log(JSON.stringify(err));
 		 if (ret.state == 1) {
 			var str=ret.savePath.slice(-3);
 			var str2="";
@@ -920,14 +917,7 @@ $(".share-item-friend").on("tap", function() {
 				userName: 'gh_344fb21bce0f',
 				path: 'pages/index/shop?id='+_keyid+'&store_id'+_storeid+'&isfx=true'
 			}, function(ret, err) {
-				// console.log("2");
-				// console.log(str2);
-				// console.log(_description);
-				// console.log(_shareurl);
-				// console.log(_keyid);
-				// console.log(_storeid);
-				// console.log(JSON.stringify(ret));
-				// console.log(JSON.stringify(err));
+
 			})
 		}
 	})