Commit f410f21c authored by 袁玲利's avatar 袁玲利

渤海银行提现金额置空

parents f1f2f9ee 87c4fee1
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
sessionid: sessionID, sessionid: sessionID,
wechattype: 1 wechattype: 1
} }
if(bankInfo.accountType == 4) {
// 渤海银行提现amount置空值
params.amount = "";
}
$.ajax({ $.ajax({
url: withdrawSmsUrl, url: withdrawSmsUrl,
type: "POST", type: "POST",
......
...@@ -54,29 +54,70 @@ ...@@ -54,29 +54,70 @@
<view class="warn"></view> <view class="warn"></view>
<view>您尚未开通垫资守护,本次限免垫资已用完~</view> <view>您尚未开通垫资守护,本次限免垫资已用完~</view>
</view> --> </view> -->
<view class="tip normal"> <view class="tip normal">
<view class="safe"></view> <view class="safe"></view>
<view>垫资守护服务,限时免费体验中~</view> <view>垫资守护服务,限时免费体验中~</view>
</view> </view>
</view> </view>
</view> </view>
<view class="img"></view> <view class="img"></view>
<view class="open"> <view class="open" v-if="CompusComsumeData.sch_open_cons_membership">
<view class="finger"></view> <view class="finger"></view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") {
gHost = "https://uat-pay.xiaopay.net";
}
export default { export default {
data() { data() {
return { return {
faceType: "", faceType: "",
fromPage: "", fromPage: "",
sessionId: "",
CompusComsumeData: {}
}; };
}, },
onLoad: function (options) {}, onLoad: function (options) {
this.sessionId = options.sessionId || "";
},
onShow() {}, onShow() {},
methods: {
// 小程序游戏统计接口
async GetCompusComsumeData() {
$.ajax({
url:
gHost +
"/wechat/svweapp/GetCompusComsumeData?sessionid=" +
this.sessionId,
type: "post",
dataType: "json",
contentType: "application/x-www-form-urlencoded",
data: {
feeType: 3,
},
success: function (res) {
if (res.code == 10000) {
console.log(res);
this.CompusComsumeData = res.results
return;
}
uni.showToast({
icon: "none",
mask: true,
title: res.message,
});
return;
},
error: function (error) {
reject(error);
},
});
},
},
}; };
</script> </script>
...@@ -250,7 +291,7 @@ export default { ...@@ -250,7 +291,7 @@ export default {
background-size: cover; background-size: cover;
} }
.safe { .safe {
align-self: center; align-self: center;
width: 33rpx; width: 33rpx;
height: 33rpx; height: 33rpx;
margin-right: 4rpx; margin-right: 4rpx;
...@@ -263,7 +304,7 @@ export default { ...@@ -263,7 +304,7 @@ export default {
.normal { .normal {
background: rgba(254, 221, 160, 0.5); background: rgba(254, 221, 160, 0.5);
border-radius: 24rpx; border-radius: 24rpx;
color: #935100; color: #935100;
} }
} }
} }
......
...@@ -104,6 +104,13 @@ export default { ...@@ -104,6 +104,13 @@ export default {
description: "奇思妙想的拼图世界", description: "奇思妙想的拼图世界",
appId: "wxb5612f7e17786c46", appId: "wxb5612f7e17786c46",
}, },
{
icon: this.$ImgUrl + "gameOrder/game13.png",
name: "酷鼠宝快跑",
score: "跑酷消除",
description: "一款轻松快乐的消除游戏。快些挖洞,帮助鼠宝逃离大蛇的追击吧!",
appId: "wxad3052c2d2a34787",
},
], ],
params: { params: {
sessionid: "", sessionid: "",
...@@ -115,22 +122,36 @@ export default { ...@@ -115,22 +122,36 @@ export default {
second: 0, second: 0,
}; };
}, },
onShow() {
uni.$on("refreshPage", (data) => {
console.log(data, "ttttttttttttt");
if (data.reload) {
this.init();
}
});
},
mounted() { mounted() {
this.games.sort(() => 0.5 - Math.random());
if (this.getQueryParams("userId")) {
this.params.userid = this.getQueryParams("userId");
}
if (this.getQueryParams("sessionid")) {
this.params.sessionid = this.getQueryParams("sessionid");
}
this.params.behavior = "viewPage";
this.params.data = "gameOrder";
this.GameStatistics();
this.init(); this.init();
}, },
methods: { methods: {
init() { init() {
const self = this; const self = this;
this.games.sort(() => 0.5 - Math.random());
this.params.userid =
this.getQueryParams("userId") || uni.getStorageSync("userid");
this.params.sessionid =
this.getQueryParams("sessionid") || uni.getStorageSync("sessionid");
this.params.behavior = "viewPage";
this.params.data = "gameOrder";
this.GameStatistics();
if (this.params.userid) {
uni.setStorageSync("userid", this.params.userid);
}
if (this.params.sessionid) {
uni.setStorageSync("sessionid", this.params.sessionid);
}
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.second += 1; this.second += 1;
if (this.second == 5) { if (this.second == 5) {
...@@ -225,6 +246,12 @@ export default { ...@@ -225,6 +246,12 @@ export default {
// uni.navigateToMiniProgram({ // uni.navigateToMiniProgram({
// appId: game.appId, // appId: game.appId,
// }); // });
this.params.userid =
this.getQueryParams("userId") || uni.getStorageSync("userid");
this.params.sessionid =
this.getQueryParams("sessionid") || uni.getStorageSync("sessionid");
console.log(this.params.userid, "zzzzzzzuserid");
console.log(this.params.sessionid, "zzzzzzzsessionid");
this.params.behavior = "click"; this.params.behavior = "click";
this.params.data = game.appId; this.params.data = game.appId;
this.GameStatistics(); this.GameStatistics();
...@@ -242,6 +269,8 @@ export default { ...@@ -242,6 +269,8 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
} }
// 移除监听,避免内存泄露
uni.$off("refreshPage");
}, },
}; };
</script> </script>
...@@ -295,6 +324,7 @@ export default { ...@@ -295,6 +324,7 @@ export default {
font-size: 20rpx; font-size: 20rpx;
color: rgba(0, 0, 0, 0.35); color: rgba(0, 0, 0, 0.35);
margin-left: 12rpx; margin-left: 12rpx;
white-space: nowrap;
} }
.game-description { .game-description {
...@@ -307,6 +337,7 @@ export default { ...@@ -307,6 +337,7 @@ export default {
.launch-btn { .launch-btn {
width: 110rpx; width: 110rpx;
min-width: 110rpx;
height: 56rpx; height: 56rpx;
background-image: url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/gameOrder/playgame.png"); background-image: url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/gameOrder/playgame.png");
background-repeat: no-repeat; background-repeat: no-repeat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment