提交 fe0d9ad4 编写于 作者: guangjun.yang's avatar guangjun.yang

1、开发激活/购买流程(内部逻辑)

2、部分弹框UI及交互
3、对接部分修改的接口
上级 3b99e2c7
......@@ -130,10 +130,12 @@ export default {
let param = {
area: provinceId + "",
cardType: 1,
pageNum: 1,
pageSize: 1
goodsType: 2,
cardTypeList: [1],
// pageNum: 1,
// pageSize: 1
};
this.POST("trade/goods/cardList", param).then(res => {
this.POST("trade/goods/cardList_v2", param).then(res => {
if (res.code == "000000") {
this.showLoading = false;
this.isShowPopup = true;
......
......@@ -449,7 +449,7 @@ export default {
let param = {
setEntry: true
};
this.GET(`cme/projectCard/queryNoUsedCard/2`, param).then(({ data }) => {
this.GET(`cme/projectCard/queryNoUsedCard/${this.project.goodsType}/${this.project.cardType}`, param).then(({ data }) => {
this.hasNoUsedCard = data.hasNoUsedCard;
if (data.hasNoUsedCard == 1) {
this.cmeCardModels = data.cmeCardModels[0] || {};
......@@ -477,8 +477,10 @@ export default {
changeCardAction(cardKey, isInTips) {
let _this = this;
let param = {
idType: 1,
cardKey: cardKey,
cardType: 2,
cardType: this.project.cardType || 2,
goodsType: this.project.goodsType || 2,
portalProjectId: this.projectId,
setEntry: true
};
......@@ -667,9 +669,11 @@ export default {
getCardInfoByProvinceId(provinceId) {
let param = {
area: provinceId + "",
cardType: 2,
pageNum: 1,
pageSize: 1
cardType: this.project.cardType || 2,
cardTypeList: [ this.project.cardType || 3],
goodsType: this.project.goodsType,
// pageNum: 1,
// pageSize: 1
};
this.POST("trade/goods/cardList", param).then(res => {
if (res.code == "000000") {
......
......@@ -543,7 +543,7 @@ export default {
let param = {
setEntry: true
};
this.GET(`cme/projectCard/queryNoUsedCard/2`, param).then(({ data }) => {
this.GET(`cme/projectCard/queryNoUsedCard/${this.project.goodsType}/${this.project.cardType}`, param).then(({ data }) => {
this.hasNoUsedCard = data.hasNoUsedCard;
if (data.hasNoUsedCard == 1) {
this.cmeCardModels = data.cmeCardModels[0] || {};
......@@ -556,8 +556,10 @@ export default {
changeCardAction(cardKey, isInTips) {
let _this = this;
let param = {
idType: 1,
cardKey: cardKey,
cardType: 2,
cardType: this.project.cardType || 2,
goodsType: this.project.goodsType || 2,
channel: 3,
portalProjectId: this.projectId,
setEntry: true
......@@ -666,11 +668,13 @@ export default {
getCardInfoByProvinceId(provinceId) {
let param = {
area: provinceId + "",
cardType: 2,
pageNum: 1,
pageSize: 1
cardType: this.project.cardType || 2,
cardTypeList: [ this.project.cardType || 3],
goodsType: this.project.goodsType,
// pageNum: 1,
// pageSize: 1
};
this.POST("trade/goods/cardList", param).then(res => {
this.POST("trade/goods/cardList_v2", param).then(res => {
if (res.code == "000000") {
this.showLoading = false;
this.cardInfo = (res.data && res.data[0]) || {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册