文档修改
This commit is contained in:
parent
81805a7955
commit
0c1a561545
@ -82,12 +82,14 @@ export default {
|
|||||||
return res.json();
|
return res.json();
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const data = res.data || {};
|
const data = res.data || {};
|
||||||
|
// alert(JSON.stringify(data))
|
||||||
let shareinfo = {
|
let shareinfo = {
|
||||||
title: title || data.title || '泰古润',
|
title: title || data.title || '泰古润',
|
||||||
desc: data.contents || '汇聚平凡梦想,共创美好未来',
|
desc: data.contents || '汇聚平凡梦想,共创美好未来',
|
||||||
imgUrl: imgUrl || data.img,
|
imgUrl: imgUrl || data.img,
|
||||||
link: this.$getShareLink(),
|
link: this.$getShareLink(),
|
||||||
};
|
};
|
||||||
|
// alert(JSON.stringify(shareinfo))
|
||||||
const jsApiList = data.jsApiList || ['onMenuShareTimeline', 'onMenuShareAppMessage', 'updateAppMessageShareData', 'updateTimelineShareData'];
|
const jsApiList = data.jsApiList || ['onMenuShareTimeline', 'onMenuShareAppMessage', 'updateAppMessageShareData', 'updateTimelineShareData'];
|
||||||
const openTagList = data.openTagList || ['wx-open-launch-weapp'];
|
const openTagList = data.openTagList || ['wx-open-launch-weapp'];
|
||||||
jsApiList.push('wx-open-launch-weapp');
|
jsApiList.push('wx-open-launch-weapp');
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
<div class="manager_dbox">
|
<div class="manager_dbox">
|
||||||
<div @click="navigateAndClose('Home')">
|
<div @click="navigateAndClose('Home')">
|
||||||
<img src="/img/my_u4.png" alt="">
|
<img src="/img/my_u4.png" alt="">
|
||||||
<span>首页</span>
|
<span>主页</span>
|
||||||
<van-icon class="r" name="arrow"></van-icon>
|
<van-icon class="r" name="arrow"></van-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -334,11 +334,11 @@ app.config.globalProperties.$validIdCard = (idCard) => {
|
|||||||
app.config.globalProperties.$getShareLink = () => {
|
app.config.globalProperties.$getShareLink = () => {
|
||||||
const query = app.config.globalProperties.$route.query;
|
const query = app.config.globalProperties.$route.query;
|
||||||
const recommend = localStorage.getItem('cellphone');
|
const recommend = localStorage.getItem('cellphone');
|
||||||
let link = Object.keys(query).filter(x => x != 'RecommendCode').map(x => {
|
const params = Object.keys(query).filter(x => x != 'RecommendCode').map(x => {
|
||||||
return `${x}=${query[x]}`;
|
return `${x}=${query[x]}`;
|
||||||
}).join('&');
|
});
|
||||||
link += `&RecommendCode=${recommend}`;
|
params.push(`RecommendCode=${recommend}`);
|
||||||
return `${location.href.split('?')[0]}?${link}`;
|
return `${location.href.split('?')[0]}?${params.join('&')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CH
|
// CH
|
||||||
|
|||||||
@ -38,12 +38,15 @@
|
|||||||
</van-tabs>
|
</van-tabs>
|
||||||
</div>
|
</div>
|
||||||
<div class="goodslist">
|
<div class="goodslist">
|
||||||
|
<div class="content">
|
||||||
<van-sidebar v-model="goodsCategoryIndex">
|
<van-sidebar v-model="goodsCategoryIndex">
|
||||||
<van-sidebar-item name="" title="全部产品" @click="changeThird('')" />
|
<van-sidebar-item name="" title="全部产品" @click="changeThird('')" />
|
||||||
<van-sidebar-item v-for="item in selectedThird" :key="item.id" :title="item.name"
|
<van-sidebar-item v-for="item in selectedThird" :key="item.id" :title="item.name"
|
||||||
@click="changeThird(item.id)" />
|
@click="changeThird(item.id)" />
|
||||||
</van-sidebar>
|
</van-sidebar>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
<div class="pro-list">
|
<div class="pro-list">
|
||||||
<div class="px">
|
<div class="px">
|
||||||
<a @click="toggleValue(0)" :class="searchParams.SortType == 0 ? 'a' : ''">
|
<a @click="toggleValue(0)" :class="searchParams.SortType == 0 ? 'a' : ''">
|
||||||
@ -75,7 +78,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="price">
|
<div class="price">
|
||||||
<b><span>¥</span>{{ item.saleprice?.toFixed(2) }}</b>
|
<b><span>¥</span>{{ item.saleprice?.toFixed(2) }}</b>
|
||||||
<span class="r" style="color: #8a8a8a;font-size: 3.2vw;">销量{{ item.salenums
|
<span class="r" style="color: #8a8a8a;font-size: 3.2vw;">销量{{
|
||||||
|
item.salenums
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export default {
|
|||||||
this.$get(`/v1/client/DShopsClient/${id}`).then(res => {
|
this.$get(`/v1/client/DShopsClient/${id}`).then(res => {
|
||||||
this.shopname = res.data.shopname
|
this.shopname = res.data.shopname
|
||||||
this.shopimg = res.data.shopimg
|
this.shopimg = res.data.shopimg
|
||||||
this.link = `${location.origin}${location.pathname}#/Checkout?id=${res.data.userid}`
|
this.link = `${location.origin}${location.pathname}#/Checkout?id=${res.data.userid}&RecommendCode=${localStorage.getItem('cellphone')}`
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.generateImage()
|
this.generateImage()
|
||||||
})
|
})
|
||||||
|
|||||||
@ -28,10 +28,10 @@
|
|||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="tip" v-if="!isScanning && !result && !error">将二维码放入框内即可自动扫描</div>
|
<div class="tip" v-if="!isScanning && !result && !error">将二维码放入框内即可自动扫描</div>
|
||||||
<div class="error" v-if="error">{{ error }}</div>
|
<div class="error" v-if="error">{{ error }}</div>
|
||||||
<div class="result" v-if="result">
|
<!-- <div class="result" v-if="result">
|
||||||
<div class="label">扫描结果:</div>
|
<div class="label">扫描结果:</div>
|
||||||
<div class="value">{{ result }}</div>
|
<div class="value">{{ result }}</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 开始扫描提示 -->
|
<!-- 开始扫描提示 -->
|
||||||
|
|||||||
@ -40,10 +40,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="_remark" v-if="data.remark">
|
<div class="_remark" v-if="data.usermsg">
|
||||||
<p>买家留言: </p>
|
<p>买家留言: </p>
|
||||||
<span class="r">
|
<span class="r">
|
||||||
{{ data.remark || '无' }}
|
{{ data.usermsg || '无' }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="_detail">
|
<div class="_detail">
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<span>-¥{{ data.payjifen?.toFixed(2) }}</span>
|
<span>-¥{{ data.payjifen?.toFixed(2) }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p v-if="data.payquan > 0">
|
<p v-if="data.payquan > 0">
|
||||||
会员卡额度抵扣
|
会员卡抵扣
|
||||||
<span>-¥{{ data.payquan?.toFixed(2) }}</span>
|
<span>-¥{{ data.payquan?.toFixed(2) }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@ -96,7 +96,7 @@
|
|||||||
<span>{{ $formatGMT(data.exporttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
<span>{{ $formatGMT(data.exporttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p v-if="data.receipttime">
|
<p v-if="data.receipttime">
|
||||||
收货时间
|
完成时间
|
||||||
<span>{{ $formatGMT(data.receipttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
<span>{{ $formatGMT(data.receipttime, 'yyyy-MM-dd HH:mm:ss') }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p v-if="data.evaltime">
|
<p v-if="data.evaltime">
|
||||||
|
|||||||
@ -187,7 +187,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
const isReturningFromDetail = sessionStorage.getItem('TradeList_fromDetail') === '1'
|
const isReturningFromDetail = sessionStorage.getItem('TradeList_fromDetail') === '1'
|
||||||
sessionStorage.removeItem('TradeList_fromDetail')
|
sessionStorage.removeItem('TradeList_fromDetail')
|
||||||
|
this.loadFilterOptions()
|
||||||
if (!isReturningFromDetail) {
|
if (!isReturningFromDetail) {
|
||||||
sessionStorage.setItem('TradeList_scroll', '0')
|
sessionStorage.setItem('TradeList_scroll', '0')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,8 +43,17 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
activated() {
|
||||||
|
this.startPolling()
|
||||||
|
},
|
||||||
|
deactivated() {
|
||||||
|
this.stopPolling()
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init()
|
this.startPolling()
|
||||||
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
this.stopPolling()
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -53,6 +62,7 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
link: '',
|
link: '',
|
||||||
ewm: {},
|
ewm: {},
|
||||||
|
pollingTimer: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -64,6 +74,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
startPolling() {
|
||||||
|
this.init()
|
||||||
|
this.stopPolling()
|
||||||
|
this.pollingTimer = setInterval(() => {
|
||||||
|
this.init()
|
||||||
|
}, 3000)
|
||||||
|
},
|
||||||
|
stopPolling() {
|
||||||
|
if (this.pollingTimer) {
|
||||||
|
clearInterval(this.pollingTimer)
|
||||||
|
this.pollingTimer = null
|
||||||
|
}
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.$get('/v1/client/DUserlipinquansClient').then(res => {
|
this.$get('/v1/client/DUserlipinquansClient').then(res => {
|
||||||
this.items = res.data?.items || []
|
this.items = res.data?.items || []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user