Commit 729ac372 authored by jsz315's avatar jsz315

修改点击

parent ad3095cd
......@@ -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'),
......
......@@ -32,7 +32,7 @@
background-size: 100% 100%;
position: absolute;
z-index: 1;
right: 88px;
right: 110px;
top: 206px;
}
}
......
......@@ -294,7 +294,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){
......
......@@ -172,6 +172,9 @@ export default {
if(inMiniprogram && res.data.myself){
this.showShare = true;
}
if(PUSH){
this.showShare = true;
}
if (FROM === 'singlemessage' && res.data.myself) {
this.isShow = true;
}
......@@ -195,7 +198,7 @@ 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}`);
window.location.href = url;
},
closeModal() {
......
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