Commit 21668197 authored by Mac's avatar Mac

图片放大

parent 8cd1155e
......@@ -3,7 +3,7 @@
length="auto" :safeAreaInsetBottom="true" @close="popupClose" :z-index="9999" close-icon="close">
<view class="goodsku">
<view class="goods">
<image :src="goodimage" class="img"></image>
<image :src="goodimage" class="img" @click="previewImage(0,goodimage)"></image>
<view class="chosen-info">
<view class="price" :style="{ color: mc }">
<text class="small"></text>
......@@ -478,7 +478,14 @@
if (this.skuObj) {
this.goodprice = (parseFloat(this.skuObj.price) * parseFloat(this.gc)).toFixed(2);
}
}
},
previewImage(index, images) {
images = [images]
uni.previewImage({
urls: images,
current: index,
});
},
}
};
</script>
......
......@@ -87,6 +87,11 @@
<Text>{{sharedata.CustomModel.OutstandingCommissionName}}</Text>
<Text>{{sharedata.UserInfo.WJSCommission!=null ?sharedata.UserInfo.WJSCommission:0}}</Text>
</view>
<view style="width: 2px;height: 25px;background: #FFFFFF;justify-content: space-between;"></view>
<view class="center_item" style="font-size: 12px;color: #FFFFFF;" @click="gosales()">
<Text>销售额</Text>
<Text>0元</Text>
</view>
</view>
<!-- 会员购买 -->
<view class="buyvip" v-if="words.isshowvipbuypic==1" @click="goUrl(words.vipbuyurl)">
......@@ -363,6 +368,12 @@
scrollTopHandler() {
this.scrollTop = 0;
},
gosales(){//跳转销售额
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
uni.navigateTo({
url: '/pages/share/salesvolume?UserId='+UserId
});
}
}
}
</script>
......@@ -453,13 +464,13 @@
}
.shareindexStyle .sharebox_topc {
width: 94%;
width: 100%;
height: 40px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
padding: 0 20px;
justify-content: space-between;
padding: 0 10px;
margin-top: 18px;
}
......@@ -477,6 +488,7 @@
}
.shareindexStyle .center_item {
width: calc((100vw - 25px)/3);
height: 100%;
display: flex;
flex-direction: column;
......
<template>
<view class="salesvolume">
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
pageTitle: "销售额",
msg: {
UserId: 0,
StartTime: '',
EndTime: '',
},
mainColor: "",
secondary: '',
pricecolor: '',
};
},
created() {
this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(options) {
if (options && options.UserId) {
this.msg.UserId = options.UserId;
this.getTime()
}
},
methods: {
getTime() {
var myDate = new Date();
this.msg.EndTime = myDate.getFullYear() + '-' + (myDate.getMonth()+1) + '-' + myDate.getDate()
var startDate = new Date(myDate.setDate(myDate.getDate() - 7))//计算当前时间的前7天的时间
this.msg.StartTime = startDate.getFullYear() + '-' + (startDate.getMonth()+1) + '-' + startDate.getDate()
this.init()
},
init() {
this.request2({
url: '/api/AppletUser/GetSellMoneyStatistics',
data: this.msg
},
res => {
if (res.resultCode == 1) {
}
}
);
},
},
};
</script>
<style>
.salesvolume {
width: 100%;
height: 100vh;
background: #FFF;
}
</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