Commit c74e568c authored by 罗超's avatar 罗超

调整分享

parent d4cb3a43
......@@ -5,7 +5,7 @@
>
<view
class="ad-chi"
v-for="(item, index) in ad.list"
v-for="(item, index) in adtemp"
:key="index"
:style="[item.formatStyle]"
@click="clickHandler(item.link[0].new_link_url)"
......@@ -18,6 +18,11 @@
<script>
export default {
props: ["ad"],
data() {
return {
adtemp:[]
}
},
created() {
this.ad.list.forEach((x) => {
x.formatStyle = {
......@@ -33,6 +38,7 @@ export default {
if (this.ad.height == "auto") {
x.formatStyle.position = "unset";
}
this.adtemp.push(x)
});
},
methods: {
......
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
</head>
<body>
<noscript>
<strong>Please enable JavaScript to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
......@@ -84,5 +84,19 @@
},
"uniStatistics" : {
"enable" : false
},
"h5" : {
"router" : {
"mode" : "history",
"base" : "/h5/"
},
"template" : "h5.html",
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
}
}
}
}
}
......@@ -3,7 +3,8 @@
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
"pages": [{
"path": "pages/index/index"
"path": "pages/index/index",
"enablePullDownRefresh": true
},
{
"path": "pages/cart/cart"
......@@ -29,7 +30,7 @@
{
"path": "pages/webbox/webbox"
}
],
"subPackages": [{
"root": "pages/goods",
......@@ -48,22 +49,22 @@
}
]
},
// {
// "root": "pages/member",
// "pages": [{
// "path": "index/index"
// },
// {
// "path": "privilege"
// }
// ]
// },
// {
// "root": "pages/member",
// "pages": [{
// "path": "index/index"
// },
// {
// "path": "privilege"
// }
// ]
// },
{
"root": "pages/balance",
"pages": [
// {
// "path": "recharge"
// },
// {
// "path": "recharge"
// },
{
"path": "balance"
},
......@@ -74,20 +75,18 @@
}
]
},
{
"root": "pages/live",
"plugins": {
"live-player-plugin": {
"version": "1.0.18",
"provider": "wx2b03c6e691cd7370"
}
},
"pages": [
{
"path": "index"
}
]
},
{
"root": "pages/live",
"plugins": {
"live-player-plugin": {
"version": "1.0.18",
"provider": "wx2b03c6e691cd7370"
}
},
"pages": [{
"path": "index"
}]
},
{
"root": "pages/user-center",
"pages": [{
......@@ -109,12 +108,12 @@
{
"path": "cash/cash"
},
{
"path": "level/level"
},
{
"path": "examine"
}
{
"path": "level/level"
},
{
"path": "examine"
}
]
},
......@@ -210,15 +209,15 @@
]
}
],
// "rules": [{
// "action": "allow",
// "page": "*"
// }],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"backgroundColor": "#F8F8F8",
"app-plus": {
//#ifdef H5
"titleNView": false
//#endif
}
}
}
\ No newline at end of file
This diff is collapsed.
<template>
<view class="content" :style="{ 'padding-bottom': showtabs==ture? '100rpx':0 }">
<view class="content" v-if="myPageData.home_pages" :style="{ 'padding-bottom': showtabs==ture? '100rpx':0 }">
<u-tabs
v-if="myPageData.home_pages.navs.length > 1"
v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1"
name="name"
:list="myPageData.home_pages.navs"
:is-scroll="true"
......@@ -173,9 +173,10 @@ export default {
uni.showNavigationBarLoading();
},
onShareAppMessage(res) {
let uid=uni.getStorageSync('mall_UserInfo') ?uni.getStorageSync('mall_UserInfo').UserId:0
return {
title:this.setting.share_title?this.setting.share_title:uni.getStorageSync("basedata").mall.name,
path: "/pages/index/index?user_id=" + uni.getStorageSync('mall_UserInfo') ?uni.getStorageSync('mall_UserInfo').UserId:0,
path: "/pages/index/index?user_id=" + uid,
imageUrl: this.setting.share_pic?this.setting.share_pic:'',
};
},
......
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