Selaa lähdekoodia

Merge branch 'master' of http://192.168.40.220/dmc/jz_applet into master

yxb
wq 1 vuosi sitten
vanhempi
commit
bd29ebff42
1 muutettua tiedostoa jossa 76 lisäystä ja 15 poistoa
  1. 76
    15
      subpackage/orders/interestsList.vue

+ 76
- 15
subpackage/orders/interestsList.vue Näytä tiedosto

<template> <template>
<view class="content"> <view class="content">
<view class="item" v-for="(item,index) in state.list" :key='index'>
<view @click="addInterestsList(item)" class="ul-item" v-for="(item, index) in state.list" :key="index">
<image style="width: 100%; height: 170rpx; border-radius: 20rpx"
:src="`${$imgUrl}applyCard/product-bg.png`"></image>
<view class="item-value">
<image class="icon-tip"
:src="state.sysType === 'WECHAT'?`${$imgUrl}applyCard/wechat.png` : `${$imgUrl}applyCard/alibaba.png`">
</image>
<view class="content">
<view class="title">
{{ item.productName }}
</view>
</view>
<view class="money">
¥:{{ item.discountPrice * 0.01 }}
</view>
</view>
</view>

<!-- <view class="item" v-for="(item,index) in state.list" :key='index'>
<view class="title" @click="addInterestsList(item)"> <view class="title" @click="addInterestsList(item)">
<view> <view>
<view v-if='item.children' style="display: inline-block;"> <view v-if='item.children' style="display: inline-block;">
</view> </view>
</view> </view>
<view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'> <view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'>
<view><text>{{itemChild.productName}}</text>&nbsp;&nbsp;<text>{{itemChild.discountPrice * 0.01}}</text>
<view>
<text>{{itemChild.productName}}</text>&nbsp;&nbsp;<text>{{itemChild.discountPrice * 0.01}}</text>
</view> </view>
</view> </view>
</view>
</view> -->
</view> </view>
</template> </template>


totalAmount: 0, //产品+权益产品金额 totalAmount: 0, //产品+权益产品金额
changeCardType: "",//储值卡转记账卡选权益产品 changeCardType: "",//储值卡转记账卡选权益产品
applyId: "", applyId: "",
orderId: ""
orderId: "",
sysType: ""
}) })


onLoad((option : any) => { onLoad((option : any) => {
// #ifdef MP-ALIPAY
state.sysType = 'ALI';
// #endif
// #ifdef MP-WEIXIN
state.sysType = 'WECHAT';
// #endif
console.log("promoteId", option) console.log("promoteId", option)
state.clientFee = option.clientFee; state.clientFee = option.clientFee;
state.userType = option.userType; state.userType = option.userType;
const openidData = stringToJson(result.data); const openidData = stringToJson(result.data);
state.openid = openidData.openid; state.openid = openidData.openid;
setItem("QYorder", state); setItem("QYorder", state);
// setItem("QYorder", result.data);
// state.openid = result.data.openid
}); });
// #endif // #endif
} }
</script> </script>


<style scoped lang="scss"> <style scoped lang="scss">
.content {
width: 100%;
height: 100vh;
}

.button { .button {
height: 80rpx; height: 80rpx;
background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%); background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
align-items: center; align-items: center;
} }


.title>checkbox-group {
// float: right;
}

.children { .children {
margin-left: 50rpx; margin-left: 50rpx;
margin-top: 16rpx; margin-top: 16rpx;
checkbox { checkbox {
transform: scale(0.8); transform: scale(0.8);
} }

.ul-item {
padding: 5px 20rpx;
display: flex;
align-items: center;

.item-value {
padding: 20rpx;
position: absolute;
display: flex;
align-items: center;
width: 80%;

.content {
width: 51%;

.title {
font-size: 32rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #ffffff;

}

.tip {
font-size: 24rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #ffffff;
}
}
}

.icon-tip {
width: 100rpx;
height: 100rpx;
}

.content {
margin-left: 40rpx;
}
}

.money {
color: white;
}
</style> </style>

Loading…
Peruuta
Tallenna