|
@@ -35,6 +35,90 @@
|
|
|
<link rel="stylesheet" type="text/css" href="css/WXtrialInterface.css" />
|
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css" />
|
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css" />
|
|
|
+ <style>
|
|
|
+ .try-use-wrap, .buy-phone-wrap, .look-wrap{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 9999;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .try-use-container{
|
|
|
+ width: 80%;
|
|
|
+ height: 409px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 0.66em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .time-close-wrap{
|
|
|
+ width: 5.46em;
|
|
|
+ height: 2em;
|
|
|
+ line-height: 2em;
|
|
|
+ text-align: center;
|
|
|
+ position: absolute;
|
|
|
+ top: 0.24em;
|
|
|
+ right: 0.3em;
|
|
|
+ background: rgba(0, 0, 0, 0.49);
|
|
|
+ border-radius: 1.26em;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #FFFFFF;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bug-wrap{
|
|
|
+ width: 90%;
|
|
|
+ height: 115px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 10px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .bug-title{
|
|
|
+ text-align: center;
|
|
|
+ margin: 25px 0;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-list{
|
|
|
+ width: 100%;
|
|
|
+ height: 44px;
|
|
|
+ line-height: 44px;
|
|
|
+ border-top: 1px solid rgba(238,238,238,1);
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn{
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cannel-btn{
|
|
|
+ font-size: 18px;
|
|
|
+ color: #666666;
|
|
|
+ }
|
|
|
+
|
|
|
+ .go-bug{
|
|
|
+ font-size: 18px;
|
|
|
+ color: #3B7FFF;
|
|
|
+ border-left: 1px solid rgba(238,238,238,1);
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
|
|
|
<body class="scroll h-player" style="overscroll-behavior: contain;">
|
|
@@ -108,7 +192,7 @@
|
|
|
</div>
|
|
|
<div class="buy-phone-wrap">
|
|
|
<div class="bug-wrap">
|
|
|
- <div class="bug-title">体验完整云手机服务请前往购买</div>
|
|
|
+ <div class="bug-title">获得极致体验服务请购买云手机</div>
|
|
|
<div class="btn-list">
|
|
|
<div class="btn cannel-btn">取消</div>
|
|
|
<div class="btn go-bug">去购买</div>
|
|
@@ -222,6 +306,10 @@
|
|
|
var baseUrl = url[0] + '//' + url[2];
|
|
|
console.log(baseUrl)
|
|
|
var parameters = GetRequest();
|
|
|
+ var form = {};
|
|
|
+ form.token = parameters['token'];
|
|
|
+ form.mealType = parameters['mealType'];
|
|
|
+ form.userCardId = parameters['userCardId'];
|
|
|
|
|
|
if (parameters['mealType'] === 'VIP') {
|
|
|
$(".loading_sceen_pic").attr('src', '../static/img/home_bg_VIP.png');
|
|
@@ -252,9 +340,6 @@
|
|
|
isAudioPlay = true;
|
|
|
}
|
|
|
});
|
|
|
- var form = {};
|
|
|
-
|
|
|
- form.token = parameters['token'];
|
|
|
var orientation = 0; //0 竖屏,1横屏
|
|
|
function array_unique(arr) {
|
|
|
return arr.filter(function (e, i) {
|
|
@@ -273,7 +358,7 @@
|
|
|
},
|
|
|
type: 'get',
|
|
|
dataType: 'json',
|
|
|
- success: function (res) {
|
|
|
+ success: function (res) {systemBuriedPoint
|
|
|
if (res.status === 0) {
|
|
|
if (res.data.length) {
|
|
|
cutList = array_unique(res.data)
|
|
@@ -770,6 +855,7 @@
|
|
|
|
|
|
// 激活码广告相关配置
|
|
|
function getConfigByPhoneType() {
|
|
|
+ console.log('form', form)
|
|
|
return new Promise((resolve, reject) => {
|
|
|
$.ajax({
|
|
|
url: baseUrl + "/api/pay/v5/trialCodeConfig/getConfigByPhoneType",
|
|
@@ -957,7 +1043,7 @@
|
|
|
}
|
|
|
systemBuriedPoint(pointName);
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: '/packageA/order/buy/index'
|
|
|
+ url: '/packageA/order/renew/index'
|
|
|
})
|
|
|
})
|
|
|
// 放弃
|
|
@@ -981,6 +1067,23 @@
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ // 埋点
|
|
|
+ function systemBuriedPoint(pointName){
|
|
|
+ $.ajax({
|
|
|
+ url: baseUrl + "/api/public/v1/systemBuriedPoint/stat",
|
|
|
+ headers: {
|
|
|
+ 'Authorization': form.token
|
|
|
+ },
|
|
|
+ type: 'post',
|
|
|
+ data:JSON.stringify({
|
|
|
+ pointName: pointName
|
|
|
+ }),
|
|
|
+ contentType:"application/json",
|
|
|
+ dataType: 'json',
|
|
|
+ success: function (res) {}
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
function Close() { // webworker 关闭,清理
|
|
|
var cmd = {
|
|
|
cmd: 0
|