Commit 0d7ee547 by zhangmeng

添加了一些注释

parent a72501d1
No preview for this file type
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/integral-mall/static/css/app.63b25a55d07ad242f3f34366f91e90cd.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/integral-mall/static/js/manifest.003beacb9c9ae622c7f2.js></script><script type=text/javascript src=/integral-mall/static/js/vendor.7611b6f4ffb724a2700b.js></script><script type=text/javascript src=/integral-mall/static/js/app.5124ee89bb7d799a49e1.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/integral-mall/static/css/app.6caa95a4a966142c816ec420925bb1ea.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/integral-mall/static/js/manifest.003beacb9c9ae622c7f2.js></script><script type=text/javascript src=/integral-mall/static/js/vendor.7611b6f4ffb724a2700b.js></script><script type=text/javascript src=/integral-mall/static/js/app.9cad7656f251429e6425.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<section class="sms-lib">
<div :class="pbSize">
<div class="pb22">
<span class="pr10">{{total}}</span>
<el-input :disabled="disabled" v-model="listParams.searchParam" class="w200" clearable placeholder="请输入卡券名称" @change="getCardList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<span class="fz12 gray pl20">领取限制 < 100的卡券不支持选择,系统已自动过滤</span>
......@@ -14,10 +14,10 @@
</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="cardName" label="卡券名称"></el-table-column>
<el-table-column :show-overflow-tooltip="true" align="left" prop="subName" label="备注名"></el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="cardLimit" label="兑换限制"></el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="couponStock" label="库存"></el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="cardName" label="卡券名称"></el-table-column>
<el-table-column :show-overflow-tooltip="true" align="left" prop="subName" label="备注名"></el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="cardLimit" label="兑换限制"></el-table-column>
<el-table-column :show-overflow-tooltip="false" align="left" prop="couponStock" label="库存"></el-table-column>
</el-table>
<el-pagination v-show="tableList.length && showPagination" background class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
</section>
......@@ -31,10 +31,6 @@ export default {
type:String,
default:''
},
pbSize:{
type:String,
default:'pb22'
},
cardIdName:{
type:String,
default:'coupCardId'
......
......@@ -88,6 +88,7 @@ import {formateDateTimeByType,numberToWeekChinese} from '@/utils/index.js';
this.editShow = false;
this.$emit('update:show',false);
},
// 编辑快递
editExpress() {
this.editShow = true;
this.params = {
......@@ -96,6 +97,7 @@ import {formateDateTimeByType,numberToWeekChinese} from '@/utils/index.js';
courierNumber:this.info.courierNumber
};
},
// 提交按钮
submitExpress() {
if (!this.params.logisticsCompanyId) {
this.$tips({type:'warning',message:'请选择快递'});
......@@ -125,17 +127,17 @@ import {formateDateTimeByType,numberToWeekChinese} from '@/utils/index.js';
}
});
},
// 获取快递列表
async getLogisticsList() {
let res = await getLogisticsList();
if (res.errorCode === 0) {
this.logisticsOptions = res.result || [];
}
},
// 获取快递基本信息
async getLogisticsInfo() {
this.loading = true;
// let res = await getLogisticsInfo({integralMallProExchangeId:'ff80808161c2416c0161c66026d40007'});
let res = await getLogisticsInfo({integralMallProExchangeId:this.id});
if (res.errorCode === 0) {
this.info = res.result.changeLog || {};
this.list = res.result.traces || [];
......@@ -145,12 +147,8 @@ import {formateDateTimeByType,numberToWeekChinese} from '@/utils/index.js';
v.time = formateDateTimeByType(dateTime,'HH-mm-ss');
v.day = '周'+numberToWeekChinese(dateTime.getDay());
})
console.log(this.list)
}
this.loading = false;
console.log(res)
},
}
};
......
......@@ -46,7 +46,6 @@ import {getMemberInfo} from '@/service/api/mallApi.js';
export default {
name:'member-info',
props:{
row:{
type:Object,
......@@ -64,7 +63,6 @@ export default {
gzhicongray:require('../../../assets/img/status@gzhgray.png'),
xcxicongray:require('../../../assets/img/status@xcxgray.png'),
xcxicon:require('../../../assets/img/status@xcx.png'),
}
},
methods:{
......@@ -74,11 +72,9 @@ export default {
getSingleInfo() {
getMemberInfo({memberId:this.row.memberId}).then(res => {
if (res.errorCode === 0) {
this.singleInfo = res.result;
this.singleInfo = res.result || {};
}
console.log(res);
})
},
linkDetail() {
window.open(`/member/#/wechatmemberDetail?memberId=${this.row.memberId}`);
......
......@@ -12,7 +12,7 @@
</template>
<script>
import { updateStockService, updateIntegralCostService,updateCashCostService } from '@/service/api/mallApi.js';
import { updateStockService, updateIntegralCostService, updateCashCostService } from '@/service/api/mallApi.js';
export default {
props: {
......@@ -30,6 +30,7 @@ export default {
}
},
methods:{
// 提交更新并刷新列表
async submit() {
// try {
console.log(this.value,this.theType,this.model.inputValue,this.precision)
......@@ -59,8 +60,9 @@ export default {
// this.$tips({type:'error',message: '更新失败'});
// }
},
// 编辑操作
edit() {
// 这里precision不能更新
// 这里precision不能更新 所以加上nextTick
this.$nextTick(_ => {
this.model[this.theType + 'Flag'] = true;
this.$set(this.model,'inputValue',this.model[this.theType]);
......
......@@ -73,10 +73,12 @@ import memberInfoCom from '../common/member-info';
};
},
created() {
// 更新面包屑
this.$store.commit('mutations_breadcrumb',[{name:'积分商城'},{name:'优惠券',path:'/coupon'},{name:'优惠券兑换记录',path:''}]);
this.getPageExchangeLogsList();
},
methods: {
// 列表方法
handleSizeChange(val) {
this.listParams.pageSize = val;
this.getPageExchangeLogsList();
......@@ -85,6 +87,7 @@ import memberInfoCom from '../common/member-info';
this.listParams.currentPage = val;
this.getPageExchangeLogsList();
},
// 拉去列表
async getPageExchangeLogsList() {
this.loading = true;
if (this.dateTime) {
......
import { getGradeList, getCategoryList, createIntegralProService, getIntegralMallProInfo, createCategoryService } from '@/service/api/mallApi.js';
import cardTemp from '../common/card-temp.vue';
// import dmUploadAvatar from '@/components/upload/avatar';
import { formateDateTimeByType } from '@/utils/index.js';
export default {
components: {
'card-temp': cardTemp,
// dmUploadAvatar
'card-temp': cardTemp
},
data() {
return {
......@@ -72,6 +70,7 @@ export default {
},
methods: {
// init 拉取详情
async getIntegralMallProInfo() {
let res = await getIntegralMallProInfo({ integralMallProId: this.$route.params.id });
if (res.errorCode === 0) {
......@@ -133,6 +132,7 @@ export default {
this.sendChildData.storeGroupIds = val.storeGroupIds || ''
this.sendChildData.storeIds = val.storeIds || []
},
// 拉取会员等级列表
async getGradeList() {
let res = await getGradeList();
if (res.errorCode === 0) {
......@@ -149,6 +149,7 @@ export default {
this.form.proName = val.cardName || '';
}
},
// 添加时间段
addTimeRange() {
let length = this.timeRangeList.length;
if (length >= 5) {
......@@ -157,6 +158,7 @@ export default {
}
this.$set(this.timeRangeList, length, { timeRange: ['', ''] })
},
// 删除时间段
delTimeRange(index) {
this.timeRangeList.splice(index, 1);
},
......@@ -177,7 +179,6 @@ export default {
return;
}
console.log(this.timeRangeList)
let params = {
integralMallProId: this.form.integralMallProId || '',
......@@ -316,4 +317,4 @@ export default {
})
}
}
};
\ No newline at end of file
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment