Commit a95d9fd0 authored by beisir's avatar beisir

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents 91ad93f9 51abda43
...@@ -7,16 +7,16 @@ ...@@ -7,16 +7,16 @@
const protocol = window.location.protocol; const protocol = window.location.protocol;
const qiniuHost = protocol + '//kdspstatic.q-gp.com/'; const qiniuHost = protocol + '//kdspstatic.q-gp.com/';
const shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址 const shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址
const talosHost = 'https://talos-vcc3.liangkebang.net'; const talosHost = 'https://talos-test1.liangkebang.net';
const faceHost = 'https://auth-vcc3.liangkebang.net'; const faceHost = 'https://auth-test1.liangkebang.net';
const kdspHost = 'https://kdsp-api-vcc3.liangkebang.net'; const kdspHost = 'https://kdsp-api-test1.liangkebang.net';
const localHost = 'https://group-buy-vcc3.liangkebang.net'; // 测试环境页面地址 const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页面地址
// const talosHost = 'http://192.168.29.89:8098'; // 唐峰 // const talosHost = 'http://192.168.29.89:8098'; // 唐峰
// const talosHost = 'http://192.168.25.210:8080'; // 张超 // const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.28.83:80'; // 董彪 // const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰 // const talosHost = 'http://192.168.25.122:8098'; // 王永杰
// const talosHost = protocol + '//192.168.28.41'; // 超人 // const talosHost = protocol + '//192.168.28.41'; // 超人
const opapiHost = 'https://opapi-vcc3.liangkebang.net'; const opapiHost = 'https://opapi-test1.liangkebang.net';
const VCC_CHANNEL = ''; const VCC_CHANNEL = '';
const TERMINAL = 'H5'; const TERMINAL = 'H5';
const VERSION = '7.9.00'; const VERSION = '7.9.00';
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<group-desc-info <group-desc-info
:group-info="detailInfo.groupBuyInfo || {}" :group-info="detailInfo.groupBuyInfo || {}"
:timestemp="groupTimestemp" :timestemp="groupTimestemp"
:show-button-group="showShareButton" :show-button-group="true"
@changeButtonVisible="changeButtonVisible" @changeButtonVisible="changeButtonVisible"
/> />
<successInfo :group-info="detailInfo.groupBuyInfo || {}" /> <successInfo :group-info="detailInfo.groupBuyInfo || {}" />
...@@ -119,7 +119,6 @@ export default { ...@@ -119,7 +119,6 @@ export default {
showInfo: false, showInfo: false,
inProgress: false, // 活动是否已经开始 inProgress: false, // 活动是否已经开始
countDownText: '', countDownText: '',
showShareButton: false, // 是否显示分享按钮
stockPercentage: 0, stockPercentage: 0,
// 以下是原有的data // 以下是原有的data
detailParam: { detailParam: {
...@@ -188,7 +187,6 @@ export default { ...@@ -188,7 +187,6 @@ export default {
} }
console.log(this.stockPercentage); console.log(this.stockPercentage);
} }
this.showShareButton = res.groupBuyInfo.groupBuyStatus == 1 ? true : false;
this.imgList = res.imageUrl || []; this.imgList = res.imageUrl || [];
this.detailInfo = res; this.detailInfo = res;
this.setStartStatus(res); this.setStartStatus(res);
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
/> />
</div> </div>
</div> </div>
<Goods /> <!-- <Goods /> -->
<sharePic ref="sharePic" :share-pic-data="sharePicData" @outputPicUrl="outputPicUrl" /> <sharePic ref="sharePic" :share-pic-data="sharePicData" @outputPicUrl="outputPicUrl" />
</div> </div>
</template> </template>
...@@ -72,13 +72,13 @@ import { goUrlExtends } from './extends'; ...@@ -72,13 +72,13 @@ import { goUrlExtends } from './extends';
import CouponCard from './components/CouponCard.vue'; import CouponCard from './components/CouponCard.vue';
import { getCouponList } from '@/api/pay.api'; import { getCouponList } from '@/api/pay.api';
import groupBuyApi from '@/api/groupBuy'; import groupBuyApi from '@/api/groupBuy';
import Goods from '@/components/RecoGoods/RecoGoods.vue'; // import Goods from '@/components/RecoGoods/RecoGoods.vue';
import { isApp, isWxMp } from '@/service/validation.service'; import { isApp, isWxMp } from '@/service/validation.service';
import { EventBus } from '@/service/utils.service'; import { EventBus } from '@/service/utils.service';
import sharePic from '@/components/sharePic'; import sharePic from '@/components/sharePic';
export default { export default {
components: { components: {
Goods, // Goods,
CouponCard, CouponCard,
sharePic sharePic
}, },
...@@ -94,14 +94,15 @@ export default { ...@@ -94,14 +94,15 @@ export default {
payStatusName: '', payStatusName: '',
payMethodName: '', payMethodName: '',
payType: '', payType: '',
sharePicData: {} sharePicData: {},
picUrl: ''
}; };
}, },
created() { created() {
const { orderNo, reason, finalAmt, freeAmount, payType } = this.$route.query; const { orderNo, reason, amount, freeAmount, payType } = this.$route.query;
const { success } = this.$route.meta; const { success } = this.$route.meta;
this.payType = payType || ''; this.payType = payType || '';
this.money = finalAmt || ''; this.money = amount || '';
this.orderNo = orderNo; this.orderNo = orderNo;
this.reason = reason || ''; this.reason = reason || '';
this.isSuccess = success || false; this.isSuccess = success || false;
...@@ -111,9 +112,14 @@ export default { ...@@ -111,9 +112,14 @@ export default {
this.getCouponList(); this.getCouponList();
}, },
mounted() { mounted() {
EventBus.$on('shareClickItem', ({ ev }) => { const _this = this;
EventBus.$on('shareClickItem', async function({ ev, nativeBridge }) {
if (ev === 'pic') { if (ev === 'pic') {
// 处理图片url // 处理图片url
nativeBridge.openNewUrl({
newUrl: `/pages/goodshare/index?url=${encodeURIComponent(JSON.stringify(_this.picUrl))}`
});
_this.$store.dispatch('goods_share_close');
} }
}); });
}, },
...@@ -123,12 +129,12 @@ export default { ...@@ -123,12 +129,12 @@ export default {
methods: { methods: {
outputPicUrl(res) { outputPicUrl(res) {
console.log(res); console.log(res);
this.$store.dispatch('goods_share_open', { res }); this.picUrl = res;
this.$store.dispatch('goods_share_open');
console.log(this.picUrl);
}, },
async setShareData() { async setShareData() {
const [res] = await groupBuyApi.getGroupShareInfo({ const [res] = await groupBuyApi.getGroupShareInfo(this.orderNo);
orderNo: this.orderNo
});
this.sharePicData = res; this.sharePicData = res;
this.$refs.sharePic.createAndUploadPic(); this.$refs.sharePic.createAndUploadPic();
}, },
......
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