@@ -120,7 +120,7 @@ export default {
<style lang="stylus" scoped>
.popper-dropdown-menu-user {
- width: 160px;
+ min-width: 160px;
}
</style>
@@ -2,6 +2,16 @@ import { BaseService, Service } from '@/cool';
@Service('product')
export class ProductService extends BaseService {
-
+ // 花材详细
+ productDetail(data) {
+ return this.request({
+ url: '/product/detail',
+ params: data
+ }).then(res => {
+ return {
+ list: res
+ };
+ });
+ }
export default new ProductService();
@@ -332,9 +332,12 @@ export default {
tabClick (tab, e) {
this.app.refresh({ classId: this.classId });
},
- replaceBtnFn() {
+ replaceBtnFn(id) {
this.addDialog = true
this.getAllClass()
+ this.$service.product.productDetail(res => {
+ console.log(res)
+ })
onLoad ({ ctx, app }) {
if (this.$route.query.classId) {