|
@@ -52,7 +52,7 @@ var app = new Vue({
|
|
|
$.post('/api/market/getInfo', {type: 2, id: sid}, function (res) {
|
|
$.post('/api/market/getInfo', {type: 2, id: sid}, function (res) {
|
|
|
$.hideLoading();
|
|
$.hideLoading();
|
|
|
if (res.code == 'success') {
|
|
if (res.code == 'success') {
|
|
|
- if(res.data.id<=0){
|
|
|
|
|
|
|
+ if(res.data.id<=0 || typeof(res.data.id) == 'undefined'){
|
|
|
$.showLoading('参数错误,用户不存在', 'text');
|
|
$.showLoading('参数错误,用户不存在', 'text');
|
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
|
location.href = '/weixin/market/index';
|
|
location.href = '/weixin/market/index';
|