shop-applet/pages/product/addGoods/addGoodDetils.vue

73 lines
1.4 KiB
Vue
Raw Normal View History

2023-09-20 18:16:59 +08:00
<template>
<view class="container">
<input-goods-detils @getProductContent="getProductContent" :title="store_name" :prodectContent="goodsDis" :maxLength="200"></input-goods-detils>
<view class="handle"><view class="handle_button" @click="save">保存</view></view>
</view>
</template>
<script>
import inputGoodsDetils from '../components/inputGoodsDetils.vue';
import { navigateTo, navigateBack, setStorage, getStorage } from '../../../libs/uniApi.js';
export default {
components: {
inputGoodsDetils
},
data() {
return {
goodsDis: {imageList: []},
store_name:''
}
},
created() {
this.initData();
},
methods: {
initData() {
if(getStorage('goodsDis')) {
this.goodsDis = getStorage('goodsDis');
}
},
getProductContent(obj) {
// console.log(obj);
this.goodsDis = obj;
2023-10-07 10:03:29 +08:00
this.a=obj.store_name;
2023-09-20 18:16:59 +08:00
},
save() {
setStorage('goodsDis', this.goodsDis);
navigateBack(1);
}
}
}
</script>
<style lang="scss" scoped>
.container {
padding-top: 20rpx;
}
.handle {
width: 100%;
height: 126rpx;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
left: 0;
bottom: 0;
&_button {
width: 690rpx;
height: 86rpx;
background: #e93323;
border-radius: 43px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #ffffff;
}
}
</style>