currentVideo
This commit is contained in:
@@ -2,6 +2,27 @@
|
||||
<view class="commonPageBox">
|
||||
<public-module></public-module>
|
||||
<view class="header_box"></view>
|
||||
<view class="appJump">
|
||||
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')">
|
||||
<view class="img">
|
||||
<image
|
||||
src="@/static/icon/ic_login_health.png"
|
||||
mode="widthFix"
|
||||
></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>一路健康</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zmzm item flexbox" @click="appjumpfun('nuttyreading')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/home_icon_3.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>疯子读书</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main_content_box">
|
||||
<view class="curriculum_box">
|
||||
<view
|
||||
@@ -161,14 +182,12 @@
|
||||
</view>
|
||||
<view class="learning_box_bottom"></view>
|
||||
</view>
|
||||
<view class="learning_box listening_box bottomBox">
|
||||
<!-- <view class="learning_box listening_box bottomBox">
|
||||
<view class="item_img" @click="handleGoApp">
|
||||
<image src="@/static/tab/bottom1.png" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="item_img">
|
||||
<!-- <image src="@/static/tab/bg.png" mode="aspectFill"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -480,6 +499,72 @@ export default {
|
||||
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&id=${v.id}`,
|
||||
});
|
||||
},
|
||||
appjumpfun(name) {
|
||||
let bagName = "";
|
||||
let schemes = "";
|
||||
if (name == "nuttyreading") {
|
||||
bagName = "com.cn.nuttyreading";
|
||||
schemes = "nuttyreading";
|
||||
}
|
||||
if (name == "everhealth") {
|
||||
bagName = "cn.com.everhealth";
|
||||
schemes = "everhealth";
|
||||
}
|
||||
// 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);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
// }
|
||||
}
|
||||
},
|
||||
goGoodsDetail(v) {
|
||||
console.log(v);
|
||||
uni.navigateTo({
|
||||
@@ -956,4 +1041,40 @@ function calcTimer(timer) {
|
||||
// padding-left: 60rpx;
|
||||
// background-image: url("@/static/icon/noticebg.png");
|
||||
}
|
||||
.appJump {
|
||||
width: 190rpx;
|
||||
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 8%;
|
||||
z-index: 1;
|
||||
.item {
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
margin-bottom: 40rpx;
|
||||
border: 1px solid #fff;
|
||||
border-right: none;
|
||||
align-items: center;
|
||||
padding-right: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
overflow: hidden;
|
||||
border-radius: 50rpx 0 0 50rpx;
|
||||
text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.img {
|
||||
// width: 60rpx; height: 60rpx;
|
||||
padding: 6rpx;
|
||||
overflow: hidden;
|
||||
background-color: #fff; border-radius: 100%;
|
||||
image {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user