|
@@ -126,7 +126,7 @@
|
|
|
toastr.options.timeOut = '1500';
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
- // var baseUrl = 'http://test.androidscloud.com'
|
|
|
+ var baseUrl = 'https://test.androidscloud.com'
|
|
|
let timer,flag = true;
|
|
|
var url = window.location.href;
|
|
|
url = url.split('/')
|
|
@@ -373,10 +373,10 @@
|
|
|
contentType: "application/json",
|
|
|
dataType: 'json',
|
|
|
cache: false,
|
|
|
- success: function (res) {
|
|
|
+ success: (res) => {
|
|
|
if (res.status === 0) {
|
|
|
init();
|
|
|
- const shareInfo = res.data.shareInfo;
|
|
|
+ var shareInfo = res.data;
|
|
|
if (isAndroid) {
|
|
|
window.native.share(shareInfo.title, shareInfo.content, shareInfo.gotoUrl, shareInfo.shareImg)
|
|
|
} else if (isIOS) {
|
|
@@ -519,9 +519,9 @@
|
|
|
str += `<div class="data-row">
|
|
|
<div class="award-card">星曜${records[i].effectiveTimeStr}卡</div>
|
|
|
<div class="record-time">${records[i].createTime}</div>
|
|
|
- <div class="${records[i].receiveType === 0?'record-operate':'record-operate operate-btn'}"
|
|
|
+ <div class="${records[i].receive === 1?'record-operate':'record-operate operate-btn'}"
|
|
|
data-awardId="${records[i].id}" data-awardName="星曜${records[i].effectiveTimeStr}卡">
|
|
|
- ${records[i].receiveType === 0?'已使用':'使用'}</div>
|
|
|
+ ${records[i].receive === 1?'已使用':'使用'}</div>
|
|
|
</div>`
|
|
|
}
|
|
|
$('.data-list').eq(0).append(str)
|