|
@@ -52,6 +52,14 @@ 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){
|
|
|
|
|
+ $.showLoading('参数错误,用户不存在', 'text');
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ location.href = '/weixin/market/index';
|
|
|
|
|
+ }, 1000)
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
_this.memberInfo = res.data
|
|
_this.memberInfo = res.data
|
|
|
_this.memberInfo.qrcode = _this.memberInfo.qrcode? _this.memberInfo.qrcode : '/themes/default/weixin/public/assets/img/qrcode.jpg'
|
|
_this.memberInfo.qrcode = _this.memberInfo.qrcode? _this.memberInfo.qrcode : '/themes/default/weixin/public/assets/img/qrcode.jpg'
|
|
|
_this.initShare()
|
|
_this.initShare()
|