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

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

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