This commit is contained in:
Sliverber 2024-02-28 18:06:05 +08:00
parent 3114de2973
commit c20f73b27d
11 changed files with 51 additions and 14 deletions

View File

@ -3,9 +3,9 @@ ENV = 'development'
# base api # base api
# VUE_APP_BASE_API = '/dev-api' # VUE_APP_BASE_API = '/dev-api'
# VUE_APP_BASE_API = 'http://117.50.215.20:20400' # VUE_APP_BASE_API = 'http://106.75.49.247:20400'
# VUE_APP_BASE_API = 'https://yruibao.com' VUE_APP_BASE_API = 'https://yruibao.com/admin'
VUE_APP_BASE_API = 'http://106.75.49.247:20400' # VUE_APP_BASE_API = 'http://192.168.2.26:20401'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,

View File

@ -3,6 +3,6 @@ ENV = 'production'
# base api # base api
# VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = 'http://117.50.215.20:20400' # VUE_APP_BASE_API = 'http://106.75.49.247:20400'
# VUE_APP_BASE_API = 'https://yruibao.com' VUE_APP_BASE_API = 'https://yruibao.com/admin'
VUE_APP_BASE_API = 'http://106.75.49.247:20400' # VUE_APP_BASE_API = 'http://192.168.2.26:20401'

View File

@ -118,6 +118,7 @@ export function UpdateChannel(pram) {
price: pram.price, price: pram.price,
status: pram.status, status: pram.status,
remark: pram.remark, remark: pram.remark,
storeHide:pram.storeHide,
}; };
return request({ return request({
url: '/admin/channel/update', url: '/admin/channel/update',

View File

@ -32,6 +32,15 @@
:inactive-value="false" :inactive-value="false"
/> />
</el-form-item> </el-form-item>
<el-form-item label="渠道商品">
<el-switch
v-model="channelInfo.storeHide"
active-text="展示"
inactive-text="隐藏"
:active-value="true"
:inactive-value="false"
/>
</el-form-item>
<el-form-item label="备注:" prop="remark"> <el-form-item label="备注:" prop="remark">
<el-input type="textarea" v-model="channelInfo.remark"></el-input> <el-input type="textarea" v-model="channelInfo.remark"></el-input>
</el-form-item> </el-form-item>
@ -58,6 +67,8 @@ const obj = {
status: true, status: true,
remark: '', remark: '',
id: null, id: null,
storeHide:true,
}; };
export default { export default {
name: 'CreatChannel', name: 'CreatChannel',
@ -111,13 +122,16 @@ export default {
// this.channelInfo.downPaymentPercent = (this.channelInfo.downPaymentPercentStr)/100; // this.channelInfo.downPaymentPercent = (this.channelInfo.downPaymentPercentStr)/100;
console.log("----------- "+JSON.stringify(this.channelInfo)); console.log("----------- "+JSON.stringify(this.channelInfo));
let data = { let data = {
storeHide: this.channelInfo.storeHide,
name: this.channelInfo.name, name: this.channelInfo.name,
url: this.channelInfo.url, url: this.channelInfo.url,
price: this.channelInfo.price, price: this.channelInfo.price,
status: this.channelInfo.status, status: this.channelInfo.status,
remark: this.channelInfo.remark, remark: this.channelInfo.remark,
id: this.channelInfo.id id: this.channelInfo.id,
}; };
console.log(data,' storeHide: this.channelInfo.storeHide,');
this.channelInfo.id this.channelInfo.id
? UpdateChannel(data) ? UpdateChannel(data)
.then((res) => { .then((res) => {
@ -137,6 +151,7 @@ export default {
this.handleClose(); this.handleClose();
this.formValidate = Object.assign({}, obj); this.formValidate = Object.assign({}, obj);
this.$parent.getList(); this.$parent.getList();
clog
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

View File

@ -28,13 +28,13 @@
</el-table> </el-table>
<el-table v-loading="listLoading" :data="listData.list" style="width: 100%" size="mini"> <el-table v-loading="listLoading" :data="listData.list" style="width: 100%" size="mini">
<el-table-column prop="name" label="名称" min-width="50" align="center"/> <el-table-column prop="name" label="名称" min-width="50" align="center"/>
<el-table-column prop="createTime" label="添加日期" min-width="50" align="center"/> <el-table-column prop="createTime" label="添加日期" min-width="100" align="center"/>
<el-table-column prop="totalClickNum" label="总点击" min-width="50" align="center"/> <el-table-column prop="totalClickNum" label="总点击" min-width="50" align="center"/>
<el-table-column prop="totalRegisterNum" label="总注册" min-width="50" align="center"/> <el-table-column prop="totalRegisterNum" label="总注册" min-width="50" align="center"/>
<!-- <el-table-column prop="totalOrderNum" label="总订单(金额/数量)" min-width="120" /> --> <!-- <el-table-column prop="totalOrderNum" label="总订单(金额/数量)" min-width="120" /> -->
<el-table-column prop="totalOrderNum" label="总订单(金额/数量)" min-width="100" align="center"> <el-table-column prop="totalOrderNum" label="总订单(金额/数量)" min-width="100" align="center">
<template slot-scope="scope" > <template slot-scope="scope" >
<div class="cont" style="width: 100px;"> <div class="cont" >
{{scope.row. totalAmount}} / {{ scope.row. totalOrderNum}} {{scope.row. totalAmount}} / {{ scope.row. totalOrderNum}}
</div> </div>
</template> </template>
@ -45,12 +45,12 @@
<el-table-column prop="todayOrderNum" label="今日订单(金额/数量)" min-width="100" align="center"> <el-table-column prop="todayOrderNum" label="今日订单(金额/数量)" min-width="100" align="center">
<template slot-scope="scope" > <template slot-scope="scope" >
<div class="cont" style="width: 100px;"> <div class="cont" >
{{scope.row.todayOrderAmount}} / {{ scope.row.todayOrderNum}} {{scope.row.todayOrderAmount}} / {{ scope.row.todayOrderNum}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="todayConversionRatio" label="今日转化率" min-width="50" /> <el-table-column prop="todayConversionRatio" label="今日转化率" min-width="50" align="center"/>
<el-table-column prop="remark" label="备注 " min-width="50" /> <el-table-column prop="remark" label="备注 " min-width="50" />
<!-- <el-table-column prop="price" label="单价(元)" min-width="100" /> --> <!-- <el-table-column prop="price" label="单价(元)" min-width="100" /> -->
@ -272,6 +272,11 @@ export default {
navigator.clipboard.writeText(url) navigator.clipboard.writeText(url)
.then(() => { .then(() => {
console.log('URL已成功复制到剪贴板'); console.log('URL已成功复制到剪贴板');
this.$message({
message: '复制成功',
type: 'success',
center:true
});
}) })
.catch(err => { .catch(err => {
console.error('无法复制URL到剪贴板:', err); console.error('无法复制URL到剪贴板:', err);

View File

@ -143,6 +143,7 @@ export default {
} }
}); });
return arr; return arr;
}, },
}, },
mounted() { mounted() {

View File

@ -39,7 +39,7 @@ export default {
this.authStatus = Cache.local.has('auth-information') ? Cache.local.getJSON('auth-information') : null; this.authStatus = Cache.local.has('auth-information') ? Cache.local.getJSON('auth-information') : null;
this.notInformation = Cache.local.has('not-information') ? Cache.local.getJSON('not-information') : null; this.notInformation = Cache.local.has('not-information') ? Cache.local.getJSON('not-information') : null;
if (!this.authStatus) { if (!this.authStatus) {
this.getUniq(); // this.getUniq();
} }
} }
}, },

View File

@ -564,6 +564,7 @@ export default {
productId: res.id, productId: res.id,
giveIntegral: res.giveIntegral, giveIntegral: res.giveIntegral,
ficti: res.ficti, ficti: res.ficti,
isHide:res.isHide,
startTime: res.startTime || '', startTime: res.startTime || '',
stopTime: res.stopTime || '', stopTime: res.stopTime || '',
timeVal: [], timeVal: [],
@ -572,6 +573,7 @@ export default {
bargainNum: 2, bargainNum: 2,
peopleNum: 1, peopleNum: 1,
}; };
console.log( this.formValidate,' this.formValidate this.formValidate');
if (res.specType) { if (res.specType) {
res.attrValue.forEach((row) => { res.attrValue.forEach((row) => {
row.quota = row.stock; row.quota = row.stock;
@ -617,6 +619,7 @@ export default {
productId: res.productId, productId: res.productId,
giveIntegral: res.giveIntegral, giveIntegral: res.giveIntegral,
ficti: res.ficti, ficti: res.ficti,
isHide:res.isHide,
startTime: res.startTime || '', startTime: res.startTime || '',
stopTime: res.stopTime || '', stopTime: res.stopTime || '',
timeVal: timeVal:

View File

@ -310,7 +310,7 @@ export default {
}, },
mounted() { mounted() {
this.express = this.expressListNormal; this.express = this.expressListNormal;
this.getShipmentExpress(); // this.getShipmentExpress();
}, },
methods: { methods: {
checkPermi, checkPermi,

View File

@ -168,6 +168,16 @@
<el-radio :label="false">默认设置</el-radio> <el-radio :label="false">默认设置</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="是否隐藏商品:" props="isHide">
<el-radio-group
v-model="formValidate.isHide"
@change="onChangetype(formValidate.isHide)"
:disabled="isDisabled"
>
<el-radio :label="true" class="radio">隐藏</el-radio>
<el-radio :label="false">不隐藏</el-radio>
</el-radio-group>
</el-form-item>
</el-col> </el-col>
<!-- 多规格添加--> <!-- 多规格添加-->
<el-col v-if="formValidate.specType && !isDisabled" :span="24" class="noForm"> <el-col v-if="formValidate.specType && !isDisabled" :span="24" class="noForm">
@ -642,6 +652,7 @@ const defaultObj = {
// installmentConfigs:[], // installmentConfigs:[],
isHot: false, isHot: false,
isBest: false, isBest: false,
isHide:false,
tempId: '', tempId: '',
attrValue: [ attrValue: [
{ {
@ -1247,6 +1258,7 @@ export default {
attrValue: info.attrValue, attrValue: info.attrValue,
selectRule: info.selectRule, selectRule: info.selectRule,
isSub: info.isSub, isSub: info.isSub,
isHide:info.isHide,
content: this.$selfUtil.replaceImgSrcHttps(info.content), content: this.$selfUtil.replaceImgSrcHttps(info.content),
// installmentConfigs: info.storeProductInstallmentsList ==null?[]:info.storeProductInstallmentsList, // installmentConfigs: info.storeProductInstallmentsList ==null?[]:info.storeProductInstallmentsList,
// orderType: info.orderType, // orderType: info.orderType,