parent
5601754066
commit
85075e3f7c
@ -0,0 +1,27 @@ |
||||
<template> |
||||
<view> |
||||
<view>测试中。。。。</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
url: 'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0' |
||||
} |
||||
}, |
||||
onLoad() { |
||||
this.jumpurl(); |
||||
}, |
||||
methods: { |
||||
jumpurl(){ |
||||
location.href = this.url; |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
|
||||
</style> |
@ -1,59 +1,90 @@ |
||||
<template> |
||||
<view> |
||||
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres" @click="jumpunionpay"></image> |
||||
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres1" @click="jumpMp"></image> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
imagewxUrl: app.globalData.imageWxImg, |
||||
imgadres: 'union1.jpg', |
||||
imgadres1: 'union2.jpg', |
||||
codes:'', |
||||
url:'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0=&id=40' |
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
var arr1 = decodeURIComponent(options.q); |
||||
var arr2 = arr1.split('='); |
||||
this.codes = arr2[2]; |
||||
}, |
||||
methods: { |
||||
//跳转银联支付 |
||||
jumpunionpay(){ |
||||
<template> |
||||
<view> |
||||
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres" @click="jumpunionpay"></image> |
||||
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres1" @click="jumpMp"></image> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
setUserParam, |
||||
HandleCode |
||||
} from '../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
imagewxUrl: app.globalData.imageWxImg, |
||||
imgadres: 'union1.jpg', |
||||
imgadres1: 'union2.jpg', |
||||
codes: '', |
||||
url: 'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0' |
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
var arr1 = decodeURIComponent(options.q); |
||||
var arr2 = arr1.split('='); |
||||
this.codes = arr2[2]; |
||||
}, |
||||
methods: { |
||||
//跳转银联支付 |
||||
jumpunionpay() { |
||||
// uni.navigateTo({ |
||||
// url:'unionPay-entrance/unionPay-entrance' |
||||
// }) |
||||
// uni.navigateToMiniProgram({ |
||||
// appId: '1900bc84497cab3b', |
||||
// path: '../../pages/goods/externalCoupon/externalCoupon', |
||||
// // extraData: { |
||||
// // 'data1': 'test' |
||||
// // }, |
||||
// success(res) { |
||||
// // 打开成功 |
||||
// } |
||||
// url:'../unionWeb/unionWeb' |
||||
// }) |
||||
|
||||
uni.showToast({ |
||||
title: '暂未开放', |
||||
duration: 2000, |
||||
icon: "none" |
||||
icon: 'none', |
||||
duration: 2000 |
||||
}) |
||||
}, |
||||
//跳转到小程序 |
||||
jumpMp(){ |
||||
uni.reLaunch({ |
||||
url: '../../pages/goods/externalCoupon/externalCoupon?id='+this.codes |
||||
}) |
||||
|
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
|
||||
// if (!app.globalData.userInfo) { |
||||
// uni.login({ |
||||
// provider: 'weixin', |
||||
// success: function(loginRes) { |
||||
// app.globalData.code = loginRes.code; |
||||
// // 请求接口 |
||||
// let params = { |
||||
// code: app.globalData.code |
||||
// } |
||||
// HandleCode(params).then(res => { |
||||
// if (res.return_code == '000000') { |
||||
// app.globalData.openId = res.return_data.openId; |
||||
// uni.navigateTo({ |
||||
// url: '../../pages/userLogin/userLogin' |
||||
// }) |
||||
// } |
||||
// }) |
||||
// } |
||||
// }) |
||||
// return; |
||||
// } |
||||
// let params = { |
||||
// param: this.codes |
||||
// } |
||||
// setUserParam(params).then(res => { |
||||
// if (res.return_code == '000000') { |
||||
// location.href = this.url; |
||||
// } else { |
||||
// uni.showToast({ |
||||
// title: res.return_msg, |
||||
// icon: 'none', |
||||
// duration: 2000 |
||||
// }) |
||||
// } |
||||
// }) |
||||
}, |
||||
//跳转到小程序 |
||||
jumpMp() { |
||||
uni.reLaunch({ |
||||
url: '../../pages/goods/externalCoupon/externalCoupon?id=' + this.codes |
||||
}) |
||||
|
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
|
||||
</style> |
||||
|
@ -0,0 +1,46 @@ |
||||
<template> |
||||
<view> |
||||
<web-view :src="url"> |
||||
<cover-view class="duiba-back-btn" bindtap="handleBackTo"> |
||||
<cover-image src="//yun.duiba.com.cn/saas/images/zjzy-icons/back-btn.png" @click="openurl()"></cover-image> |
||||
<button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" |
||||
@click="openurl">立即打开</button> |
||||
</cover-view> |
||||
</web-view> |
||||
<!-- <button open-type="launchApp" binderror="launchAppError">打开APP</button> --> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
url: 'https://unionpa.dctpay.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0=' |
||||
} |
||||
}, |
||||
methods: { |
||||
launchAppError(e) { |
||||
console.log(e.detail.errMsg) |
||||
}, |
||||
openurl() { |
||||
location.href = this.url; |
||||
uni.showToast({ |
||||
title: 'oooooo中', |
||||
icon: "none", |
||||
duration: 20000 |
||||
}); |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
.duiba-back-btn { |
||||
position: fixed; |
||||
z-index: 999999; |
||||
top: 20rpx; |
||||
left: 0; |
||||
width: 100rpx; |
||||
height: 50rpx; |
||||
} |
||||
</style> |
Loading…
Reference in new issue