|
@@ -128,6 +128,11 @@ $('.icon-edit').on('touchstart', function(e) { |
|
@@ -128,6 +128,11 @@ $('.icon-edit').on('touchstart', function(e) { |
128
|
count,
|
128
|
count,
|
129
|
canEditNum;
|
129
|
canEditNum;
|
130
|
|
130
|
|
|
|
131
|
+ if ($this.parents('.off-shell-goods').length) {
|
|
|
132
|
+ tip.show('商品已下架');
|
|
|
133
|
+ return false;
|
|
|
134
|
+ }
|
|
|
135
|
+
|
131
|
//如果点击的是上次编辑的商品,直接显示chose-pannel
|
136
|
//如果点击的是上次编辑的商品,直接显示chose-pannel
|
132
|
if (skn === previousEditSkn) {
|
137
|
if (skn === previousEditSkn) {
|
133
|
chosePanel.show();
|
138
|
chosePanel.show();
|
|
@@ -173,6 +178,11 @@ $('.icon-edit').on('touchstart', function(e) { |
|
@@ -173,6 +178,11 @@ $('.icon-edit').on('touchstart', function(e) { |
173
|
$('.icon-del').on('touchstart', function(e) {
|
178
|
$('.icon-del').on('touchstart', function(e) {
|
174
|
var $this = $(this);
|
179
|
var $this = $(this);
|
175
|
|
180
|
|
|
|
181
|
+ if ($this.parents('.off-shell-goods').length) {
|
|
|
182
|
+ tip.show('商品已下架');
|
|
|
183
|
+ return false;
|
|
|
184
|
+ }
|
|
|
185
|
+
|
176
|
e.stopPropagation();
|
186
|
e.stopPropagation();
|
177
|
|
187
|
|
178
|
dialog.showDialog({
|
188
|
dialog.showDialog({
|