美文网首页
新增装备接口联调

新增装备接口联调

作者: 曹锦花 | 来源:发表于2019-06-17 19:49 被阅读0次
        // 新增装备
        adminEquipmentCreateEquipment () {
            let equipmentBuyConfigsArr = []
            this.formDynamic.items.forEach((item, index) => {
              let obj = {
                normalPrice: item.normalPrice,
                periodDay: item.thePurchaseTime,
                realPrice: item.price
              }
              equipmentBuyConfigsArr.push(obj)
            })
            let params = {
              id:null,
              basePrice:this.formValidate.basePrice,//排序方式
              description:this.formValidate.instructions,//说明
              downFlag:this.formValidate.downFlag,//坐骑状态
              equipmentBuyConfigs: equipmentBuyConfigsArr,
              equipmentName: [
                  {
                      name: this.formValidate.chinese,
                      language: 'zh'
                  },
                  {
                      name: this.formValidate.english,
                      language: 'en'
                  },
                  {
                      name: this.userBaseInfo.SaudiArabia,
                      language: 'ar'
                  }
              ],// 装备名称
              equipmentLevel:this.formValidate.level,//装备等级:1初级、2中级、3高级
              equipmentType:2,//装备类型 1:头像框 2:坐骑
              fragmentCount:this.formValidate.fragmentCount,//碎片数量
              imgUrl: this.formValidate.imgUrl,//图片
              gainFlag:this.formValidate.gainFlag,//获取方式:1商城购买、2VIP专享、3赠送、4兑换
              resourceUrlAndroid:this.formValidate.resourceUrlAndroid,//安卓动效URL
              resourceUrlIos:this.formValidate.resourceUrlIos,//IOS动效URL
            };
    
            adminEquipmentCreateEquipment(params).then(res => {
                if (res.code == 0) {
                } else {
                    this.$Message.error(res.message);
                }
            });
        },
    
    

    相关文章

      网友评论

          本文标题:新增装备接口联调

          本文链接:https://www.haomeiwen.com/subject/zxwzfctx.html