|
|
@@ -49,10 +49,10 @@
|
|
|
<view class="item_list_title" v-if="productItem.className && productItem.className!=''">{{ productItem.className }}</view>
|
|
|
<!-- 下面这个key显示有问题,不要动,动了好像会有问题!!!! -->
|
|
|
<view class="item-row item-row--h260" :class="{ 'item-row--remark': productItem.itemRemark }" :key="productIndex">
|
|
|
- <ItemStock :info="productItem" @moreAction="moreAction"
|
|
|
+ <ItemStock :info="productItem"
|
|
|
@doPrintLabel="doPrintLabel" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff"
|
|
|
- :ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
|
- @cancelPreSellFn="cancelPreSellFn" @cancelLimitBuyFn="cancelLimitBuyFn" @breakSingleItem="breakSingleItem"
|
|
|
+ :ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
|
+ @cancelPreSellFn="cancelPreSellFn" @cancelLimitBuyFn="cancelLimitBuyFn"
|
|
|
@remarkCleared="syncItemRemark($event, '')">
|
|
|
</ItemStock>
|
|
|
</view>
|
|
|
@@ -93,18 +93,6 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
|
|
|
- <modal-module :show="moveLabelShow" @click="confirmToLosing" :maskClosable="true" title="挪动数量" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <div class="app-modal-input-wrap">
|
|
|
- <div class="inp-list-line">
|
|
|
- <div class="line-input">
|
|
|
- <input type="digit" ref="input" style="width:61.8%;text-align:center;" v-model="moveNum" @focus="moveNum=''" :adjust-position="false" class="inp-input" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
<uni-popup ref="globalClassImgRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
<view style="display:flex;padding:20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
<view v-for="(item, index) in globalClassData" :key="index" @tap.stop="globalChangeClass(index,item)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
@@ -114,94 +102,6 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
- <uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
|
|
|
- <view class="action-popup-container">
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="costChange()">成本变动</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="avCostChange()">平均成本变动</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="priceChange()">价格变动记录</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="varietyManage()">多颜色</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="copyCreate()">复制新建</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="editDesc()">图文介绍</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="shareItem()">分享商品</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="getMyPoster()">生成海报</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="orderRecord()">下单记录</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="onStockChange()">路上库存变动</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="preSell()">预售</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="doWaste()">报损</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="doPart()">拆散</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="delItem()">删除</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="addItemRemark()">增加备注</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="clearItemRemarkFn()">清除备注</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="sendStock()">分配库存</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item">
|
|
|
- <button class="action-button" @click="moveToLose()">挪到处理区</button>
|
|
|
- </view>
|
|
|
- <view class="action-button-item cancel">
|
|
|
- <button class="action-button cancel" @click="closeRightShow()">取消</button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-popup>
|
|
|
-
|
|
|
- <item-poster-popup ref="itemPosterPopup" :poster-url="posterUrl" @close="closePoster" @save="downloadPosterImg" />
|
|
|
-
|
|
|
- <modal-module :show="wasteShow" @click="wasteConfirm" :maskClosable="true" title="报损数量" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <view class="app-modal-input-wrap">
|
|
|
- <view class="inp-list-line">
|
|
|
- <view class="line-input">
|
|
|
- <input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="wasteBlur" :focus="wasteFocus" v-model="wasteNum" :adjust-position="false" class="inp-input" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
- <modal-module :show="partShow" @click="partConfirm" :maskClosable="true" title="拆散数量" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <view class="app-modal-input-wrap">
|
|
|
- <view class="inp-list-line">
|
|
|
- <view class="line-input">
|
|
|
- <input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="partBlur" :focus="partFocus" v-model="partNum" :adjust-position="false" class="inp-input" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
<modal-module :show="cancelPreSellShow" @click="cancelPreSellConfirm" :maskClosable="true" title="取消预售" padding="30rpx 30rpx" >
|
|
|
<template v-slot:content>
|
|
|
<view class="app-modal-input-wrap">
|
|
|
@@ -215,78 +115,47 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
|
|
|
- <modal-module :show="remarkShow" @click="remarkConfirm" :maskClosable="true" title="花材备注" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <view class="app-modal-input-wrap">
|
|
|
- <view class="inp-list-line">
|
|
|
- <view class="line-input">
|
|
|
- <input type="text" style="width:90%;text-align:center;" @blur="remarkBlur" :focus="remarkFocus" v-model="remarkText" maxlength="200" :adjust-position="false" class="inp-input" placeholder="请输入备注" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
- import ItemStock from "./components/item2";
|
|
|
- import ItemPosterPopup from "./components/item-poster-popup.vue";
|
|
|
- import itemPosterMixin from "./mixins/itemPosterMixin";
|
|
|
+ import ItemStock from "./components/warningItem";
|
|
|
import productMins from "@/mixins/product2";
|
|
|
import { mapGetters } from "vuex";
|
|
|
- import { getWeixinId } from "@/api/invite";
|
|
|
- import { print,cancelDiscountPrice,cancelPreSell,delStatusUpdate,cancelFullOffFn } from '@/api/product';
|
|
|
+ import { print,cancelDiscountPrice,cancelPreSell,cancelFullOffFn } from '@/api/product';
|
|
|
import { cancelLimitBuy } from '@/api/item';
|
|
|
- import { changeFrontHide,applyAuth,moveToLosing,updateItemRemark,clearItemRemark } from '@/api/item'
|
|
|
+ import { changeFrontHide } from '@/api/item'
|
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
- import { partItem } from "@/api/part"
|
|
|
- import { wastage } from "@/api/order"
|
|
|
export default {
|
|
|
name: "list",
|
|
|
components: {
|
|
|
AppSearchModule,
|
|
|
AppWrapperEmpty,
|
|
|
ItemStock,
|
|
|
- ItemPosterPopup,
|
|
|
uniPopup,
|
|
|
ModalModule
|
|
|
},
|
|
|
- mixins: [productMins, itemPosterMixin],
|
|
|
+ mixins: [productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
autoLoad: false,
|
|
|
selectJobType: "stock",
|
|
|
tabIndex: 0,
|
|
|
- getAppIdList:{},
|
|
|
status:0,
|
|
|
delStatus:0,
|
|
|
printItemId:0,
|
|
|
printType:0,
|
|
|
printLabelShow:false,
|
|
|
- moveLabelShow:false,
|
|
|
printNum:'',
|
|
|
- moveNum:'',
|
|
|
printFocus:false,
|
|
|
warning:0,
|
|
|
- currentInfo:{},
|
|
|
- wasteNum:'',
|
|
|
- wasteShow:false,
|
|
|
- wasteFocus:false,
|
|
|
- partNum:'',
|
|
|
- partShow:false,
|
|
|
- partFocus:false,
|
|
|
showClassImg:false,
|
|
|
priceOption:0,
|
|
|
cancelPreSellShow: false,
|
|
|
clearStockOption: -1,
|
|
|
- cancelPreSellItem: null,
|
|
|
- remarkShow: false,
|
|
|
- remarkText: '',
|
|
|
- remarkFocus: false
|
|
|
+ cancelPreSellItem: null
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
|
@@ -296,110 +165,8 @@
|
|
|
onLoad() {
|
|
|
uni.setNavigationBarTitle({ title: '库存预警' })
|
|
|
this.initItem()
|
|
|
- let that = this
|
|
|
- getWeixinId().then(res => {
|
|
|
- that.getAppIdList = res.data
|
|
|
- })
|
|
|
},
|
|
|
methods: {
|
|
|
- doPart(){
|
|
|
- this.closeRightShow()
|
|
|
- this.partShow = true
|
|
|
- let that = this
|
|
|
- setTimeout(x => {
|
|
|
- this.$nextTick(() => {
|
|
|
- that.partFocus = true
|
|
|
- })
|
|
|
- }, 300)
|
|
|
- },
|
|
|
- partBlur(){
|
|
|
- this.partFocus = false
|
|
|
- },
|
|
|
- closePartPop(){
|
|
|
- this.partShow = false
|
|
|
- this.partFocus = false
|
|
|
- this.partNum = ''
|
|
|
- },
|
|
|
- partConfirm(val){
|
|
|
- let that = this
|
|
|
- if (val.index == 0) {
|
|
|
- this.closePartPop()
|
|
|
- return
|
|
|
- }
|
|
|
- if(Number(that.partNum)<0){
|
|
|
- that.$msg('请填写数量')
|
|
|
- return false
|
|
|
- }
|
|
|
- let product = [{ productId:this.currentInfo.id,bigNum:that.partNum,smallNum:null,classId:0,itemId:this.currentInfo.itemId,ratio:this.currentInfo.ratio }]
|
|
|
- that.$util.confirmModal({content:'确认拆散?'},() => {
|
|
|
- partItem({product:JSON.stringify(product),remark:''}).then((res) => {
|
|
|
- if(res.code == 1){
|
|
|
- that.closePartPop()
|
|
|
- that.$msg('拆散成功')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- doWaste(){
|
|
|
- this.closeRightShow()
|
|
|
- this.wasteShow = true
|
|
|
- let that = this
|
|
|
- setTimeout(x => {
|
|
|
- this.$nextTick(() => {
|
|
|
- that.wasteFocus = true
|
|
|
- })
|
|
|
- }, 300)
|
|
|
- },
|
|
|
- wasteBlur(){
|
|
|
- this.wasteFocus = false
|
|
|
- },
|
|
|
- closeWastePop(){
|
|
|
- this.wasteShow = false
|
|
|
- this.wasteFocus = false
|
|
|
- this.wasteNum = ''
|
|
|
- },
|
|
|
- wasteConfirm(val){
|
|
|
- let that = this
|
|
|
- if (val.index == 0) {
|
|
|
- this.closeWastePop()
|
|
|
- return
|
|
|
- }
|
|
|
- if(Number(that.wasteNum)<0){
|
|
|
- that.$msg('请填写数量')
|
|
|
- return false
|
|
|
- }
|
|
|
- let product = [{ productId:this.currentInfo.id,bigNum:that.wasteNum,smallNum:null,classId:0,itemId:this.currentInfo.itemId,ratio:this.currentInfo.ratio }]
|
|
|
- that.$util.confirmModal({content:'确认报损?'},() => {
|
|
|
- wastage({product:JSON.stringify(product),remark:''}).then((res) => {
|
|
|
- if(res.code == 1){
|
|
|
- that.closeWastePop()
|
|
|
- that.$msg('报损成功')
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
- },
|
|
|
- moveToLose(){
|
|
|
- this.moveLabelShow = true
|
|
|
- this.moveNum = this.currentInfo.stock?parseFloat(this.currentInfo.stock):0
|
|
|
- },
|
|
|
- confirmToLosing(val){
|
|
|
- let that=this;
|
|
|
- if (val.index == 0) {
|
|
|
- that.moveLabelShow = false
|
|
|
- that.moveNum = ''
|
|
|
- return
|
|
|
- }
|
|
|
- that.$util.confirmModal({content:'确定挪动?'},() => {
|
|
|
- moveToLosing({id:this.currentInfo.id,num:that.moveNum}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- that.moveLabelShow = false
|
|
|
- that.moveNum = ''
|
|
|
- that.closeRightShow()
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
goSearchFn(){
|
|
|
this.searchFn()
|
|
|
},
|
|
|
@@ -489,9 +256,6 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- sendStock(){
|
|
|
- this.pageTo({url: '/admin/item/sendStock?id='+this.currentInfo.id+'&price='+this.currentInfo.price+'&stock='+this.currentInfo.stock+'&name='+this.currentInfo.name,type:2})
|
|
|
- },
|
|
|
selectFlowerNumFn(){
|
|
|
this.showClassImg = true
|
|
|
this.$refs.globalClassImgRef.open('top')
|
|
|
@@ -549,62 +313,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- addItemRemark(){
|
|
|
- this.closeRightShow()
|
|
|
- this.remarkText = this.currentInfo.itemRemark || ''
|
|
|
- this.remarkShow = true
|
|
|
- let that = this
|
|
|
- setTimeout(() => {
|
|
|
- that.$nextTick(() => {
|
|
|
- that.remarkFocus = true
|
|
|
- })
|
|
|
- }, 300)
|
|
|
- },
|
|
|
- remarkBlur(){
|
|
|
- this.remarkFocus = false
|
|
|
- },
|
|
|
- closeRemarkPop(){
|
|
|
- this.remarkShow = false
|
|
|
- this.remarkFocus = false
|
|
|
- this.remarkText = ''
|
|
|
- },
|
|
|
- remarkConfirm(val){
|
|
|
- let that = this
|
|
|
- if (val.index == 0) {
|
|
|
- this.closeRemarkPop()
|
|
|
- return
|
|
|
- }
|
|
|
- const text = (that.remarkText || '').trim()
|
|
|
- if (!text) {
|
|
|
- that.$msg('请填写备注')
|
|
|
- return
|
|
|
- }
|
|
|
- updateItemRemark({ id: that.currentInfo.id, itemRemark: text }).then(res => {
|
|
|
- if (res.code == 1) {
|
|
|
- that.syncItemRemark(that.currentInfo.id, text)
|
|
|
- that.closeRemarkPop()
|
|
|
- that.$msg(res.msg || '保存成功')
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- clearItemRemarkFn(){
|
|
|
- let that = this
|
|
|
- this.closeRightShow()
|
|
|
- if (!that.currentInfo.itemRemark) {
|
|
|
- that.$msg('暂无备注')
|
|
|
- return
|
|
|
- }
|
|
|
- that.$util.confirmModal({ content: '确定清除备注?' }, () => {
|
|
|
- clearItemRemark({ id: that.currentInfo.id }).then(res => {
|
|
|
- if (res.code == 1) {
|
|
|
- that.syncItemRemark(that.currentInfo.id, '')
|
|
|
- that.$msg(res.msg || '清除成功')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
syncItemRemark(id, itemRemark){
|
|
|
- this.currentInfo.itemRemark = itemRemark
|
|
|
if (!this.$util.isEmpty(this.globalItemData)) {
|
|
|
this.globalItemData.forEach((item, index) => {
|
|
|
if (item.id == id) {
|
|
|
@@ -613,130 +322,6 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- closeRightShow(){
|
|
|
- this.$refs.rightShowMore.close()
|
|
|
- },
|
|
|
- costChange(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/admin/changePrice/costChangeList?id='+this.currentInfo.id})
|
|
|
- },
|
|
|
- avCostChange(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/pagesStorehouse/stockWarn/detailed?id='+this.currentInfo.id+'&name='+this.currentInfo.name})
|
|
|
- },
|
|
|
- ptAuth(){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确认申请?'},() => {
|
|
|
- applyAuth({id:this.currentInfo.id}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.closeRightShow()
|
|
|
- that.$msg('已提交申请')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- delItem(){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
- delStatusUpdate({id:this.currentInfo.id,delStatus:1}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.closeRightShow()
|
|
|
- that.$msg('删除成功')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- onStockChange(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/pagesStorehouse/stockWarn/onStockChange?id='+this.currentInfo.id+'&name='+this.currentInfo.name})
|
|
|
- },
|
|
|
- priceChange(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/admin/changePrice/changeList?id='+this.currentInfo.id})
|
|
|
- },
|
|
|
- varietyManage(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: "/admin/item/xjSelect?itemId="+this.currentInfo.id})
|
|
|
- },
|
|
|
- copyCreate(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/admin/item/copy?id='+this.currentInfo.id})
|
|
|
- },
|
|
|
- orderRecord(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: "/admin/order/productOrder?productId="+this.currentInfo.id})
|
|
|
- },
|
|
|
- preSell(){
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: "/admin/item/presell?id="+this.currentInfo.id})
|
|
|
- },
|
|
|
- moreAction(item){
|
|
|
- this.currentInfo = item
|
|
|
- this.$refs.rightShowMore.open('top')
|
|
|
- },
|
|
|
- shareItem() {
|
|
|
- let that = this
|
|
|
- let id = this.currentInfo.id
|
|
|
- this.closeRightShow()
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- console.log('admin/ghsProduct/detail?shopId='+ that.loginInfo.shopId+'&id=0&ghsShopAdminId='+that.loginInfo.shopAdminId+'&id='+id)
|
|
|
- uni.navigateToMiniProgram({
|
|
|
- //姜枫-2021.04.13
|
|
|
- appId: that.getAppIdList.hd.miniAppId,
|
|
|
- path: 'admin/ghsProduct/detail?shopId='+ that.loginInfo.shopId+'&ghsShopAdminId='+that.loginInfo.shopAdminId+'&id='+id,
|
|
|
- //develop 开发版 trial 体验版 release 正式版
|
|
|
- envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
- extraData: {
|
|
|
- 'shopId': that.loginInfo.shopId,
|
|
|
- 'id': 0,
|
|
|
- 'name':'',
|
|
|
- },
|
|
|
- success (res) {
|
|
|
- }
|
|
|
- })
|
|
|
- // #endif
|
|
|
- // #ifdef APP-PLUS
|
|
|
- if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
|
|
|
- var sweixin
|
|
|
- plus.share.getServices(function(s){
|
|
|
- for (var i = 0; i < s.length; i++) {
|
|
|
- var t = s[i];
|
|
|
- if (t.id == 'weixin') {
|
|
|
- sweixin = t;
|
|
|
- }
|
|
|
- }
|
|
|
- let miniOriginalId = that.dictInfo.miniOriginalId && that.dictInfo.miniOriginalId.current && that.dictInfo.miniOriginalId.current.hd ? that.dictInfo.miniOriginalId.current.hd : ''
|
|
|
- if (sweixin) { //&& sweixin.nativeClient
|
|
|
- sweixin.launchMiniProgram({
|
|
|
- id: miniOriginalId,
|
|
|
- path: 'admin/ghsProduct/detail?shopId='+ that.loginInfo.shopId+'&ghsShopAdminId='+that.loginInfo.shopAdminId+'&id='+id,
|
|
|
- type: 0
|
|
|
- });
|
|
|
- } else {
|
|
|
- that.$msg('没有找到微信服务');
|
|
|
- return false;
|
|
|
- }
|
|
|
- }, function(e){
|
|
|
- that.$msg("没有找到微信服务哦")
|
|
|
- //that.$msg("获取微信失败:" + e.message)
|
|
|
- //console.log(JSON.stringify(e));
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.$msg("请安装微信,再打开小程序")
|
|
|
- return false
|
|
|
- }
|
|
|
- // #endif
|
|
|
- },
|
|
|
- affirm(val) {
|
|
|
- if (val.index === 0) {
|
|
|
- this.modalCancel();
|
|
|
- } else {
|
|
|
- }
|
|
|
- },
|
|
|
- editDesc() {
|
|
|
- this.closeRightShow()
|
|
|
- this.pageTo({url: '/admin/item/picTextAdd-Edit?itemId='+this.currentInfo.id})
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -831,18 +416,6 @@
|
|
|
z-index:999999;
|
|
|
}
|
|
|
|
|
|
- .action-popup-container {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: 1fr 1fr;
|
|
|
- gap: 24upx;
|
|
|
- padding: 50upx 40upx 60upx 40upx;
|
|
|
- max-height: 99vh;
|
|
|
- overflow-y: auto;
|
|
|
- width: 92vw;
|
|
|
- max-width: 650upx;
|
|
|
- margin: 0 auto;
|
|
|
- }
|
|
|
-
|
|
|
.modern-tabs-container {
|
|
|
padding: 0;
|
|
|
background-color: #f8f9fa;
|
|
|
@@ -915,46 +488,5 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .action-button-item {
|
|
|
- &.cancel {
|
|
|
- grid-column: 1 / -1;
|
|
|
- margin-top: 30upx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .action-button {
|
|
|
- width: 100%;
|
|
|
- height: 120upx;
|
|
|
- border: 2upx solid #d0d7de;
|
|
|
- border-radius: 16upx;
|
|
|
- background: #ffffff;
|
|
|
- color: #24292f;
|
|
|
- font-size: 34upx;
|
|
|
- font-weight: 600;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- box-shadow: 0 4upx 12upx rgba(0, 0, 0, 0.1);
|
|
|
- transition: all 0.15s ease;
|
|
|
- line-height: 1.2;
|
|
|
-
|
|
|
- &:active {
|
|
|
- background: #f6f8fa;
|
|
|
- transform: scale(0.96);
|
|
|
- border-color: #8c959f;
|
|
|
- }
|
|
|
-
|
|
|
- &.cancel {
|
|
|
- background: #f6f8fa;
|
|
|
- color: #656d76;
|
|
|
- border-color: #d0d7de;
|
|
|
- font-size: 32upx;
|
|
|
-
|
|
|
- &:active {
|
|
|
- background: #eaeef2;
|
|
|
- border-color: #8c959f;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
</style>
|
|
|
|