|
@@ -268,6 +268,11 @@ apiready = function() {
|
|
|
getAddress();
|
|
|
getmsgtotal();
|
|
|
});
|
|
|
+ api.addEventListener({
|
|
|
+ name: 'viewappear'
|
|
|
+ }, function(ret, err) {
|
|
|
+ getmsgtotal();
|
|
|
+ });
|
|
|
setTimeout(function(){
|
|
|
goto_adv();
|
|
|
}, 800);
|
|
@@ -449,9 +454,7 @@ function getRouteData() {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- getmsgtotal();
|
|
|
function_name();
|
|
|
-
|
|
|
}
|
|
|
|
|
|
function set_height() {
|
|
@@ -462,7 +465,6 @@ function set_height() {
|
|
|
}
|
|
|
|
|
|
function getmsgtotal() {
|
|
|
- // body...
|
|
|
$.ajax({
|
|
|
url: siteurl + 'v2/shop/msg_count',//'?do=getmsgtotal',
|
|
|
data: {
|
|
@@ -472,6 +474,7 @@ function getmsgtotal() {
|
|
|
dataType: 'json',
|
|
|
type: 'post',
|
|
|
success: function(datas) {
|
|
|
+ console.log(JSON.stringify(datas.data));
|
|
|
if (datas.result) {
|
|
|
if (datas.data.total > 0) {
|
|
|
$(".msg-total").text(datas.data.total);
|