[版本更新]

This commit is contained in:
zhangjing
2021-06-10 15:12:48 +08:00
parent b420399fd8
commit e3b1e0fe99
12 changed files with 45 additions and 28 deletions

View File

@@ -5,10 +5,12 @@ Page({
*/
data: {
address : '', //默认收货地址
amount : '', //总金额
allAddress : '', //收货地址列表
addressShow : false, //收货地址显示
noticeShow : false, //须知显示状态
pointMoreShow : false, //重要提示显示状态
freight : '', //运费
isdeliver : -1,
groupId : '', //权益id
contData : '', //全局内容
@@ -20,8 +22,8 @@ Page({
platIndex : 0, //选择提交方式下标
payWayIndex : 0, //选择支付方式下标
payWay :[
{value: 0, name: "微信支付"},
{value: 1, name: "沃钱包支付"}
{value: 0, name: "微信支付"}
// {value: 1, name: "沃钱包支付"}
]
},
@@ -47,7 +49,7 @@ Page({
* 详情
*/
rightsInfo() {
wx.$api.index.welfares(this.data.groupId).then(res=>{
wx.$api.index.welfares(this.data.groupId, this.data.address.id, this.data.isdeliver).then(res=>{
let obj = res.data.detail.right.express
let defGet = res.data.detail.right.def_get
let arr = new Array
@@ -69,6 +71,8 @@ Page({
address : res.data.address,
allAddress : res.data.all_address,
contData : res.data.detail,
freight : res.data.freight,
amount : res.data.total,
platformCp : arr,
rightData : res.data.detail.right,
remark : res.data.detail.remark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"'),