替换小程序二维码

master
DataCall 1 year ago
parent f6b65aff41
commit 9ee4f01157

@ -42,7 +42,7 @@
<el-col :span="3"> <el-col :span="3">
<el-image <el-image
style="height: 150px" style="height: 150px"
:src="'data:image/png;base64,'+ miniImg" :src="require('@/assets/QRCode/wechat_mini.jpg')"
fit="fill" fit="fill"
></el-image> ></el-image>
</el-col> </el-col>
@ -152,7 +152,6 @@ import {mapGetters} from 'vuex'
import OrderLineChart from "@/views/dashboard/OrderLineChart.vue"; import OrderLineChart from "@/views/dashboard/OrderLineChart.vue";
import TopProduct from "@/views/components/IndexOrderPanelGroup/TopProduct.vue"; import TopProduct from "@/views/components/IndexOrderPanelGroup/TopProduct.vue";
import {memberAndCartStatistics, orderAndAftersaleStatistics} from "@/api/statistics"; import {memberAndCartStatistics, orderAndAftersaleStatistics} from "@/api/statistics";
import {getMiniWechatImg} from '@/api/ums/member';
const DATA_FROM_BACKEND = { const DATA_FROM_BACKEND = {
columns: ['date', 'orderCount','orderAmount'], columns: ['date', 'orderCount','orderAmount'],
@ -183,7 +182,6 @@ export default {
}, },
data() { data() {
return { return {
miniImg: '',
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
text: '最近一周', text: '最近一周',
@ -247,14 +245,8 @@ export default {
this.orderAndAftersaleStat() this.orderAndAftersaleStat()
this.initOrderCountDate() this.initOrderCountDate()
this.getData() this.getData()
this.initMiniWechatImg()
}, },
methods: { methods: {
initMiniWechatImg() {
getMiniWechatImg({scene: 1}).then(res => {
this.miniImg = res.data
})
},
handleDateChange() { handleDateChange() {
this.getData(); this.getData();
}, },

Loading…
Cancel
Save