diff --git a/components/tagTree.vue b/components/tagTree.vue new file mode 100644 index 0000000..6b4d176 --- /dev/null +++ b/components/tagTree.vue @@ -0,0 +1,179 @@ + + + + + \ No newline at end of file diff --git a/pages/course/myCourse.vue b/pages/course/myCourse.vue index edf759a..93a329f 100644 --- a/pages/course/myCourse.vue +++ b/pages/course/myCourse.vue @@ -8,53 +8,70 @@ :activeStyle="activeStyle" :scrollable="scrollable" :list="tabList" itemStyle="padding-left: 15px; padding-right: 15px; height: 50px;"> - + + + + + + + + - - - - - - - - {{item.title}} - - - - - - - - - - - 了解课程 - - - + + + + + + + {{item.title}} + + + + + + + + + + + 了解课程 + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue index e307345..46c97c6 100644 --- a/pages/peanut/home.vue +++ b/pages/peanut/home.vue @@ -198,7 +198,24 @@ - + + + + + + + 疯子读书 + + + + + + + + 众妙之门 + + + @@ -586,7 +603,58 @@ url: '../bookShop/bookShopType?type=' + e }); }, - + appjumpfun(name){ + let bagName = '' + let schemes = '' + if(name == 'zmzm'){ + bagName = 'com.cn.zmzm' + schemes = 'zmzm' + } + if(name == 'nuttyreading'){ + bagName = 'com.cn.nuttyreading' + schemes = 'nuttyreading' + } + // if(name == 'everhealth'){ + if (plus.os.name == "Android") { //安卓 + if (plus.runtime.isApplicationExist({ //查看安卓系统手机有没有下载这款app + pname: bagName, //B款app云打包的包名 + })) { //安装了app + plus.runtime.launchApplication({ //打开app + pname: bagName, //B款app云打包的包名 + extra: { + url: `${schemes}://${bagName}` //B款app配置的schemes+云打包的包名 + }, + function(e) { + console.log("Open system default browser failed: " + e.message); + } + }) + } + else { //未安装app + plus.runtime.openURL(`https://a.app.qq.com/o/simple.jsp?pkgname=${bagName}`, function(res) { + //进入后台小哥哥给我的应用宝下载链接,让你们后台给你 + //这链接会判断你手机是ios还是Android,Android进入应用宝下载app + //跟下面的是一个链接 + console.log(res); + }); + } + } else if (plus.os.name == "iOS") { //苹果 + //因为ios查不到B款app在ios系统手机里面,其实下载了,也是检测不到,所以就不检测了 + //直接打开B款app,B款app没有的话,会进入回调报错,我们在回调去打开下载链接 + plus.runtime.launchApplication({ + action: "${schemes}://" + }, function(e) { + plus.runtime.openURL(`https://a.app.qq.com/o/simple.jsp?pkgname=${bagName}`, function(res) { + //进入后台小哥哥给我的appStore下载app链接,,让你们后台给你 + //这链接会判断你手机是ios还是Android,ios进入应用宝下载app + //跟上面的是一个链接 + console.log(res); + }); + }); + // } + + } + }, + // 三个列表跳页 onBookMore(e) { uni.navigateTo({ @@ -602,6 +670,19 @@