|
|
@@ -1,6 +1,11 @@
|
|
|
<template>
|
|
|
<div class="app-content" @click="operateBottomShow = false">
|
|
|
- <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="change" itemWidth="50%" />
|
|
|
+ <app-tabs
|
|
|
+ :tabs="tabs"
|
|
|
+ :isFixed="true"
|
|
|
+ :currentTab="tabIndex"
|
|
|
+ @change="change"
|
|
|
+ itemWidth="50%" />
|
|
|
<!-- 中间 -->
|
|
|
<div class="app-middle">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop" :style="{height:height+'px'}">
|
|
|
@@ -42,10 +47,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 操作 -->
|
|
|
- <operate-module v-show="operateShow" :top="operateTop" :right="30" :btnData="btnData" />
|
|
|
+ <operate-module
|
|
|
+ @clickFn="operateList"
|
|
|
+ v-if="operateShow"
|
|
|
+ :top="operateTop"
|
|
|
+ :right="30"
|
|
|
+ :btnData="btnData" />
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
+ <app-wrapper-empty
|
|
|
+ title="暂无数据"
|
|
|
+ :is-empty="$util.isEmpty(list.data)" />
|
|
|
</block>
|
|
|
<!--内容部分 end -->
|
|
|
</scroll-view>
|
|
|
@@ -65,9 +77,23 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 操作弹窗 -->
|
|
|
- <operate-line-module v-if="operateBottomShow" :btnData="btnBottomData" :bottom="120" :right="528" />
|
|
|
+ <operate-line-module
|
|
|
+ v-if="operateBottomShow"
|
|
|
+ :btnData="btnBottomData"
|
|
|
+ @clickFn="operateLine"
|
|
|
+ :bottom="120"
|
|
|
+ :right="528" />
|
|
|
<!-- 删除提示 -->
|
|
|
- <modal-module :show="delModal" :maskClosable="false" @cancel="modalCancel" @click="delModalClick" content="确定删除该商品吗?" color="#333" :size="32" padding="30rpx 30rpx"></modal-module>
|
|
|
+ <modal-module
|
|
|
+ :show="delModal"
|
|
|
+ :maskClosable="false"
|
|
|
+ @cancel="modalCancel"
|
|
|
+ @click="delModalClick"
|
|
|
+ content="确定删除该商品吗?"
|
|
|
+ color="#333"
|
|
|
+ :size="32"
|
|
|
+ padding="30rpx 30rpx">
|
|
|
+ </modal-module>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -131,6 +157,7 @@
|
|
|
{
|
|
|
name: '通用简介',
|
|
|
click: () => {
|
|
|
+ console.log(780)
|
|
|
// alert('请在电脑端进行设置!')
|
|
|
this.$msg('请在电脑端进行设置!')
|
|
|
}
|
|
|
@@ -155,7 +182,7 @@
|
|
|
{
|
|
|
text: '编辑',
|
|
|
icon: 'iconbianji',
|
|
|
- click: () => {
|
|
|
+ click: function() {
|
|
|
this.$util.pageTo({
|
|
|
url: '/admin/goodsManage/add',
|
|
|
query: {
|
|
|
@@ -202,6 +229,30 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ operateLine(index){
|
|
|
+ if(index === 0){
|
|
|
+ this.$util.pageTo('/admin/goodsManage/freight')
|
|
|
+ }else if(index ===1 ){
|
|
|
+ this.$msg('请在电脑端进行设置!')
|
|
|
+ }else if(index ===2 ){
|
|
|
+ this.$util.pageTo('/admin/goodsManage/price-increase')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ operateList(index){
|
|
|
+ if(index === 0){
|
|
|
+ this.$util.pageTo({
|
|
|
+ url: '/admin/goodsManage/add',
|
|
|
+ query: {
|
|
|
+ type: this.tabIndex,
|
|
|
+ id: this.operateData.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else if(index === 1){
|
|
|
+ this.changeStatusFn()
|
|
|
+ }else if(index === 2){
|
|
|
+ this.delModal = true
|
|
|
+ }
|
|
|
+ },
|
|
|
async sInit() {
|
|
|
this._getClass()
|
|
|
this._list()
|