Commit 5c9429ad authored by 孙高杰's avatar 孙高杰

隐藏拦截弹窗

parents eaefe4b5 bf154c4b
......@@ -71,7 +71,8 @@ class OssUpload {
co(function*() {
let relativeDir = _this.getRelativePath(fileDir);
const originPath = `${_this.options.originDir}${relativeDir}`; // cdn 路径
console.log("上传文件 " + config.build.assetsPublicPath + originPath);
console.log(originPath);
console.log("上传文件 " + config.build.host + originPath);
try {
originFile = yield _this.client.head(originPath);
} catch (error) {
......
......@@ -36,6 +36,7 @@ module.exports = {
build: {
// Template for index.html
host: process.env.NODE_ENV === 'production' ? prodDomain : testDomain,
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
......
......@@ -6,16 +6,16 @@
</section>
<section class="dui-share__methods" v-if="showMask">
<div class="mask" @click="onClose"></div>
<div class="share-wrap">
<!-- <div class="share-wrap">
<div class="close" @click="onClose"></div>
<h5>分享到微信</h5>
<ul>
<li class="J_weixin" @click="onGroup"> <div>微信群</div> </li>
<li class="J_pengyouquan" @click="onFriend"> <div>朋友圈</div> </li>
</ul>
</div>
<div class="gudide-des" v-if="showGuider">从菜单中点击转发分享</div>
<div class="share-yindao" v-if="showGuider">
</div> -->
<div class="gudide-des">从菜单中点击转发分享</div>
<div class="share-yindao">
<img src="//yun.dui88.com/h5/miniprogram/kejiji/images/guide.png" alt="">
</div>
</section>
......@@ -67,6 +67,10 @@ export default {
type: String,
default: ''
},
push: {
type: Boolean,
default: false
},
sellerid: {
type: Number,
default: null
......@@ -86,6 +90,10 @@ export default {
}
},
async onSend() {
if(this.push){
this.showMask = true;
return;
}
let res = await get(API.info, { scid: SCID });
//暂时去掉信息拦截
// if (res.success) {
......
......@@ -31,8 +31,8 @@
background: url("//yun.dui88.com/h5/miniprogram/kejiji/web/dianji-tip.png") no-repeat center;
background-size: 100% 100%;
position: absolute;
z-index: 1;
right: 88px;
z-index: 2;
right: 110px;
top: 206px;
}
}
......@@ -356,7 +356,7 @@
.act-shadow{
background: #fff;
border-radius: 12px;
width: 689px;
width: 666px;
height: 301px;
margin: 20px auto 30px;
display: flex;
......
......@@ -25,7 +25,7 @@
<div class="act-desc">{{getText(item.desc, 90)}}</div>
<div class="act-btns">
<div class="act-btn" @click="tryGame(item)">试玩</div>
<div class="act-btn act-share" @click="shareGame(item)">分享</div>
<div class="act-btn act-share" @click="shareGame(item, true)">分享</div>
</div>
</div>
<div class="act-ico" :class="'type'+(index+1)">{{item.contentTag}}</div>
......@@ -120,7 +120,8 @@ export default {
activitLyist: [],
weixinQrcode: '',
showInterceptModal: false,
sellerId: ""
sellerId: "",
loading: false
};
},
props: {
......@@ -294,7 +295,7 @@ export default {
});
},
getH5Authorize(){
let url = '/kjy/authorize/wxh5base?uri=/kjy/mp/content?mini=1';
let url = '/kjy/authorize/wxh5base?uri=' + encodeURIComponent('/kjy/mp/content' + location.search);
window.location.href = url;
},
jump(item){
......@@ -316,16 +317,26 @@ export default {
wx.miniProgram.navigateTo({url:`/pages/webview/main?url=${url}`});
}
},
async shareGame(item){
let res_ = await get(API.userInfo, {});
if (res_.success) {
this.weixinQrcode = res_.data.sellerWxQrCode;
this.sellerId = res_.data.sellerId;
}
// if (!this.weixinQrcode) {
// this.showInterceptModal = true;
// return;
// }
async shareGame(item, jump){
if(this.loading){
return;
}
this.loading = true;
setTimeout(() => {
this.loading = false;
}, 300);
if(!jump){
// let res_ = await get(API.userInfo, {});
// if (res_.success) {
// this.weixinQrcode = res_.data.sellerWxQrCode;
// this.sellerId = res_.data.sellerId;
// }
// if (!this.weixinQrcode) {
// this.showInterceptModal = true;
// return;
// }
}
this.hiding = false;
this.$emit("close");
if(this.hiding){
......@@ -334,6 +345,7 @@ export default {
let params = {
contentId: item.id
};
// wx.miniProgram.postMessage({data: "guide"});
let res = await get(API.getScId, params);
if (res.success) {
let id = res.data;
......
......@@ -60,25 +60,25 @@
}
.rili{
background: url("//yun.dui88.com/h5/miniprogram/kejiji/web/rili.png") no-repeat center;
background: url("//yun.dui88.com/h5/miniprogram/kejiji/web/rili3.png") no-repeat center;
background-size: contain;
position: relative;
width: 724px;
height: 294px;
margin: 0 auto 0 28px;
.img{
background: url("//yun.dui88.com/h5-mami/webgame/kejiji/webview/img/ren.png") no-repeat center;
background: url("//yun.dui88.com/h5/miniprogram/kejiji/images/rilis.gif") no-repeat center;
background-size: contain;
position: absolute;
width: 200px;
height: 150px;
left: 60px;
top: 60px;
width: 300px;
height: 240px;
left: 20px;
top: 20px;
}
.day{
width: 100px;
text-align: center;
font-size: 80px;
font-size: 72px;
color: #FFFFFF;
position: absolute;
left: 328px;
......@@ -99,8 +99,11 @@
position: absolute;
left: 504px;
top: 87px;
width: 108px;
width: 116px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.bad{
font-size: 24px;
......@@ -108,8 +111,11 @@
position: absolute;
left: 504px;
top: 148px;
width: 108px;
width: 116px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
.header{
......@@ -277,7 +283,7 @@
.new-title{
font-size: 32px;
color: #E21C2E;
line-height: 42px;
line-height: 56px;
margin-bottom: 30px;
font-weight: 600;
}
......@@ -403,10 +409,10 @@
display: flex;
align-items: center;
.long-line{
width: 135px;
height: 1px;
width: 90px;
height: 2px;
margin-right: 18px;
background: #999999;
background: #ccc;
}
}
}
......
......@@ -72,7 +72,7 @@
</div>
<share-footer v-if="showShare" @doshare="doshare" :sellerid="sellerId" :wxqrcode="wechatQrCode"></share-footer>
<share-footer v-if="showShare" @doshare="doshare" :sellerid="sellerId" :wxqrcode="wechatQrCode" :push="push"></share-footer>
<toastTip ref="toastTip"></toastTip>
<div class="dui-share__methods" v-if="isShow" @click="closeModal">
<div class="gudide-des">从菜单中点击转发分享</div>
......@@ -92,6 +92,7 @@ import toastTip from '../../components/toastTip'
import { startTime, endTime } from '../../../comm/readSec'
const SCID = getUrlParameter('scid');
const PUSH = getUrlParameter('push') == "push";
const API = {
h5info: '/kjy/mp/content/h5info'
}
......@@ -119,7 +120,8 @@ export default {
wechatQrCode: "",
loaded: false,
sellerId: null,
inMini: false
inMini: false,
push: false
};
},
components: {ShareFooter, toastTip},
......@@ -170,11 +172,17 @@ export default {
if(inMiniprogram && res.data.myself){
this.showShare = true;
}
if(PUSH){
this.showShare = true;
}
if (FROM === 'singlemessage' && res.data.myself) {
this.isShow = true;
}
var link = location.origin + location.pathname + location.search;
link = link.replace("mini=1", "mini=0");
link = link.replace("push=push", "push=0");
shareConfig({
link: location.origin + location.pathname + location.search,
link: link,
title: this.title,
desc: '来自' + this.sellerName + '的分享',
img: location.protocol + this.mainImgUrl,
......@@ -190,7 +198,8 @@ export default {
},
getH5Authorize(){
let url = '/kjy/authorize/wxh5base?uri=/kjy/mp/daily?scid=' + SCID;
// let url = '/kjy/authorize/wxh5base?uri=' + encodeURIComponent(`/kjy/mp/daily?scid=${SCID}&mini=${inMiniprogram?1:0}&push=${PUSH?1:0}`);
let url = '/kjy/authorize/wxh5base?uri=' + encodeURIComponent('/kjy/mp/daily' + encodeURIComponent(location.search));
window.location.href = url;
},
closeModal() {
......@@ -234,8 +243,7 @@ export default {
}
},
doshare(){
console.log(123);
// updateLink(123);
},
showTip(){
this.$refs.toastTip.showTip("小程序中不支持跳转");
......@@ -245,6 +253,10 @@ export default {
this.inMini = inMiniprogram;
this.initData();
startTime(SCID);
if(PUSH){
this.showShare = true;
this.push = true;
}
}
};
</script>
......
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