Commit efbd2c11 authored by Mac's avatar Mac

1

parent 5772ac75
...@@ -43,6 +43,61 @@ ...@@ -43,6 +43,61 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 佣金显示 -->
<!-- <view class="is_share" v-if="g.share > 0 && hideshare == false && setting.is_show_korea == 0" style="top: 240px" > -->
<view class="sharebox" v-if=" hideshare == false && shareData && shareData.IsShow && (shareData.Data.MaxShare>0|| shareData.Data.MyBuyCommission>0)" :style="{top:topheight+'px'}">
<view class="is_share" v-if="shareData.Data.MaxShare>0" >
<image src="@/static/images/icon/WechatIMG424.png" style="width: 18px; margin-left: 12px; opacity: 1; height: auto" mode="widthFix"/>
<view style="display: flex;
flex-direction: column;
margin-left: 8px;
font-size: 10px;
color: #fff;
opacity: 1;
"
>
<Text>即刻分享赚</Text>
<Text>{{ shareData.Data.MaxShare }}</Text>
</view>
<u-icon name="close"
style="position: absolute; right: 4px; top: 10px"
color="#fff"
size="36"
@click="hideshare = true"
></u-icon>
</view>
<!-- 佣金返的一样这个暂时注释掉 -->
<!-- <view class="is_share" v-if="shareData.Data.MyBuyCommission>0" >
<image
src="@/static/images/icon/WechatIMG424.png"
style="width: 18px; margin-left: 12px; opacity: 1; height: auto"
mode="widthFix"
/>
<view
style="
display: flex;
flex-direction: column;
margin-left: 8px;
font-size: 10px;
color: #fff;
opacity: 1;
"
>
<Text>即刻购买省</Text>
<Text>{{ shareData.Data.MyBuyCommission }}</Text>
</view>
<u-icon
v-if="shareData.Data.MaxShare==0"
name="close"
style="position: absolute; right: 4px; top: 10px"
color="#fff"
size="36"
@click="hideshare = true"
></u-icon>
</view> -->
</view>
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<view <view
@click="goback" @click="goback"
...@@ -1032,6 +1087,9 @@ export default { ...@@ -1032,6 +1087,9 @@ export default {
U: {}, U: {},
appid: encodeURIComponent(JSON.stringify({ appId: "2021002181604459" })), appid: encodeURIComponent(JSON.stringify({ appId: "2021002181604459" })),
userId: uni.getStorageSync("mall_UserInfo").UserId, userId: uni.getStorageSync("mall_UserInfo").UserId,
hideshare: false,
topheight:0,
shareData:null
}; };
}, },
created() {}, created() {},
...@@ -1046,6 +1104,10 @@ export default { ...@@ -1046,6 +1104,10 @@ export default {
this.delMsg.cityId = option.cityId; this.delMsg.cityId = option.cityId;
} }
this.getDetails(); this.getDetails();
this.U = uni.getStorageSync("mall_UserInfo");
if (this.U) {
this.getLXYProductSharf()
}
let that = this; let that = this;
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
...@@ -1054,6 +1116,7 @@ export default { ...@@ -1054,6 +1116,7 @@ export default {
paddingTop: `${res.statusBarHeight}px`, paddingTop: `${res.statusBarHeight}px`,
opacity: 0, opacity: 0,
}; };
that.topheight = 55+res.statusBarHeight
}, },
}); });
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
...@@ -1123,6 +1186,7 @@ export default { ...@@ -1123,6 +1186,7 @@ export default {
// }, // },
reloadUserinfo() { reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
this.getLXYProductSharf()
}, },
//关闭登录窗口 //关闭登录窗口
gbAuth() { gbAuth() {
...@@ -1190,6 +1254,20 @@ export default { ...@@ -1190,6 +1254,20 @@ export default {
: Math.floor(e.detail.scrollTop - 100) / 100; : Math.floor(e.detail.scrollTop - 100) / 100;
this.$forceUpdate(); this.$forceUpdate();
}, },
getLXYProductSharf(){//获取显示返佣金额
this.request2(
{
url: "/api/appletgoods/GetLXYProductSharfCommission",
data:{TCID:this.delMsg.tcid},
},
(res) => {
this.shareData = res.data;
},
(err) => {
}
);
},
//获取详情 //获取详情
getDetails() { getDetails() {
this.apipost( this.apipost(
...@@ -1983,4 +2061,23 @@ export default { ...@@ -1983,4 +2061,23 @@ export default {
padding-left: 30rpx; padding-left: 30rpx;
/* #endif */ /* #endif */
} }
.sharebox{
position: absolute;
top: 57px;
right: 0;
z-index: 99;
}
.is_share {
width: 125px;
height: 38px;
border-top-left-radius: 22.5px;
border-bottom-left-radius: 22.5px;
background: #111;
opacity: 0.8;
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 5px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment