Commit 2722a221 by cwq0219

商品-评价

1 parent f2507b68
......@@ -11,13 +11,13 @@
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
export const fetchConfig = function(isEnv = true) {
// console.log(1111111)
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......@@ -26,4 +26,4 @@ export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
}
\ No newline at end of file
<!-- 编辑商品 -->
<template>
<div class="edit-pro marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick">
<el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container">
<div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<div class="flex">
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
......@@ -321,9 +321,9 @@
</div>
</div>
</div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button>
<el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<el-dialog :visible.sync="isImgVisible">
......
<!-- 商品编辑 - 带货 -->
<template>
<div class="edit-product-dh marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick">
<el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container">
<div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
<div class="main-img-box">
......@@ -79,9 +79,9 @@
<img style="width: 375px; width: 375px;" v-show="item.resType == 1" :src="item.content" />
</div>
</div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button>
<el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!