Commit 8d82340b authored by xishifeng's avatar xishifeng

查看数量限制修改

parent 64f297c2
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<body style="display: none;"> <body style="display: none;">
<div id="app"> <div id="app">
<main> <main>
<section v-if="d.lookShopArr && (d.lookShopArr.isPanParty || (d.lookShopArr.residue_num>0))"> <section v-if="dataCode==200">
<table> <table>
<tbody> <tbody>
<tr> <tr>
...@@ -127,7 +127,8 @@ ...@@ -127,7 +127,8 @@
</tbody> </tbody>
</table> </table>
</section> </section>
<section v-else>查看数量已达上限</section> <section v-else-if="dataCode==102">查看数量已达上限</section>
<section v-else></section>
</main> </main>
</div> </div>
<script src="/app/js/libs/require.min.js" data-js="/app/js/shop_detail_pc.js" data-main="/app/js/main" data-norem="yes" defer async="true"></script> <script src="/app/js/libs/require.min.js" data-js="/app/js/shop_detail_pc.js" data-main="/app/js/main" data-norem="yes" defer async="true"></script>
......
...@@ -6,11 +6,11 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'],function ...@@ -6,11 +6,11 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'],function
el: '#app', el: '#app',
data: { data: {
user_info_obj, user_info_obj,
dataCode: 200,
d: {} d: {}
}, },
created: function() { created: function() {
var _this = this; var _this = this;
document.body.style.display = 'block';
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: '/broker/getShopDetail', url: '/broker/getShopDetail',
...@@ -24,7 +24,9 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'],function ...@@ -24,7 +24,9 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'],function
beforeSend: function() {}, beforeSend: function() {},
success: function(_data) { success: function(_data) {
if(typeof _data === 'object') { if(typeof _data === 'object') {
_this.dataCode = _data['code'];
if(_data['code'] == '200') { if(_data['code'] == '200') {
document.body.style.display = 'block';
_this.d = _data.data; _this.d = _data.data;
} else { } else {
layerTipsX(_data['msg']); layerTipsX(_data['msg']);
......
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