Merge pull request '新增商品位置移动' (#1) from main into prod
Reviewed-on: jia/shop-applet#1
This commit is contained in:
commit
4cba438873
|
@ -196,7 +196,9 @@
|
||||||
} from '@/api/api.js'
|
} from '@/api/api.js'
|
||||||
import {
|
import {
|
||||||
chooseImage,
|
chooseImage,
|
||||||
Toast
|
Toast,
|
||||||
|
getStorage,
|
||||||
|
navigateTo
|
||||||
} from '@/libs/uniApi'
|
} from '@/libs/uniApi'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -215,12 +217,12 @@
|
||||||
// src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
|
// src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
|
||||||
src: '/static/images/SMRK/bar.png'
|
src: '/static/images/SMRK/bar.png'
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// name: '非标扫码入库',
|
name: '非标手动入库',
|
||||||
// type: 3,
|
type: 3,
|
||||||
// // src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
|
// src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png'
|
||||||
// src: '/static/images/SMRK/img.png'
|
src: '/static/images/SMRK/img.png'
|
||||||
// }
|
}
|
||||||
],
|
],
|
||||||
shadowStyle: {
|
shadowStyle: {
|
||||||
backgroundImage: "none",
|
backgroundImage: "none",
|
||||||
|
@ -551,8 +553,9 @@
|
||||||
this.scanCode();
|
this.scanCode();
|
||||||
this.pageType = 1;
|
this.pageType = 1;
|
||||||
}else {
|
}else {
|
||||||
this.photograph();
|
// this.photograph();
|
||||||
this.pageType = 2;
|
// this.pageType = 2;
|
||||||
|
this.jumpAddGoods();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 扫码
|
// 扫码
|
||||||
|
@ -645,7 +648,23 @@
|
||||||
this.showModel = false;
|
this.showModel = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
// 跳转添加商品界面
|
||||||
|
jumpAddGoods() {
|
||||||
|
const data = getStorage('addGoodsFormData');
|
||||||
|
if (data && data.product_id) {
|
||||||
|
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
|
||||||
|
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'];
|
||||||
|
waitDeleteData.forEach(item => {
|
||||||
|
if (getStorage(item)) {
|
||||||
|
removeStorage(item);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
navigateTo(1, '/pages/product/addGoods/index', {
|
||||||
|
mer_id: this.mer_id
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
|
@ -688,8 +707,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.select_item {
|
.select_item {
|
||||||
// width: 220.84rpx;
|
width: 220.84rpx;
|
||||||
width: 336rpx;
|
// width: 336rpx;
|
||||||
height: 189.47rpx;
|
height: 189.47rpx;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
<block>
|
<block>
|
||||||
<swiper-item :class="{ active: 0 == swiperCur }">
|
<swiper-item :class="{ active: 0 == swiperCur }">
|
||||||
<view class="slide-navigator">
|
<view class="slide-navigator">
|
||||||
<view class="item" hover-class='none' @click="jumpAddGoods">
|
<!-- <view class="item" hover-class='none' @click="jumpAddGoods">
|
||||||
<image mode='widthFix' class="image" src="../static/images/product_add.png">
|
<image mode='widthFix' class="image" src="../static/images/product_add.png">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">添加商品</text>
|
<text class="text">添加商品</text>
|
||||||
</view>
|
</view> -->
|
||||||
<navigator class="item"
|
<navigator class="item"
|
||||||
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`"
|
:url="`/pages/product/goodsOnSale/index?mer_id=${mer_id}&type=1`"
|
||||||
hover-class='none'>
|
hover-class='none'>
|
||||||
|
@ -481,8 +481,7 @@
|
||||||
const data = getStorage('addGoodsFormData');
|
const data = getStorage('addGoodsFormData');
|
||||||
if (data && data.product_id) {
|
if (data && data.product_id) {
|
||||||
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
|
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
|
||||||
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'
|
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'];
|
||||||
];
|
|
||||||
waitDeleteData.forEach(item => {
|
waitDeleteData.forEach(item => {
|
||||||
if (getStorage(item)) {
|
if (getStorage(item)) {
|
||||||
removeStorage(item);
|
removeStorage(item);
|
||||||
|
|
Loading…
Reference in New Issue