Commit 274773d4dc2c3e8aff73f8863e7fecbbfc6dc890

Authored by 王强
2 parents 5f55c435 9f3d916d
src/main.js
@@ -9,7 +9,7 @@ import { Toast, Indicator,InfiniteScroll } from "mint-ui"; @@ -9,7 +9,7 @@ import { Toast, Indicator,InfiniteScroll } from "mint-ui";
9 import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview, Tab, Tabs} from "vant"; 9 import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview, Tab, Tabs} from "vant";
10 import App from "./App"; 10 import App from "./App";
11 import IdCard from './common/IdCard'; 11 import IdCard from './common/IdCard';
12 -import VueClipboard from 'vue-clipboard2' 12 +import VueClipboard from 'vue-clipboard2';
13 import VueBus from 'vue-bus'; 13 import VueBus from 'vue-bus';
14 Vue.use(Vuex); 14 Vue.use(Vuex);
15 Vue.use(VueResource); 15 Vue.use(VueResource);
@@ -50,7 +50,7 @@ import 'url-search-params-polyfill'; @@ -50,7 +50,7 @@ import 'url-search-params-polyfill';
50 Vue.config.productionTip = false; 50 Vue.config.productionTip = false;
51 51
52 // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod") 52 // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod")
53 -Vue.prototype.mode = "dev"; 53 +Vue.prototype.mode = "test";
54 54
55 // 微信JS-SDK对象 55 // 微信JS-SDK对象
56 Vue.prototype.jweixin = { 56 Vue.prototype.jweixin = {
src/pages/mall/mall.vue
@@ -3,15 +3,23 @@ @@ -3,15 +3,23 @@
3 <!-- 下拉刷新 --> 3 <!-- 下拉刷新 -->
4 <!-- <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> --> 4 <!-- <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> -->
5 <!-- nav --> 5 <!-- nav -->
6 - <!-- nav -->  
7 - <!-- <back-box 6 + <!-- H5唤起App组件 -->
  7 + <call-app-box
  8 + class="call-app-box"
  9 + :style="'padding-top: ' + $parent.top.value + 'px'"
  10 + ref="callApp"
  11 + v-if="!isCNLive.value"
  12 + :callApps="$parent.callApps"
  13 + >
  14 + </call-app-box>
  15 + <back-box
8 v-if="$parent.isBack && $parent.isCNLive.value" 16 v-if="$parent.isBack && $parent.isCNLive.value"
9 class="back-box" 17 class="back-box"
10 :style="'padding-top: ' + $parent.top.value + 'px'" 18 :style="'padding-top: ' + $parent.top.value + 'px'"
11 @back="back" 19 @back="back"
12 :backs="backs" 20 :backs="backs"
13 > 21 >
14 - </back-box> --> 22 + </back-box>
15 <!--轮播--> 23 <!--轮播-->
16 <swiper 24 <swiper
17 v-if="banner" 25 v-if="banner"
@@ -86,6 +94,7 @@ @@ -86,6 +94,7 @@
86 <script> 94 <script>
87 // 引入组件 95 // 引入组件
88 import { Toast, Indicator } from "mint-ui"; 96 import { Toast, Indicator } from "mint-ui";
  97 +import callAppBox from "@/components/callAppBox/callAppBox";
89 import swiper from "@/components/swiper/swiper"; 98 import swiper from "@/components/swiper/swiper";
90 import swiperItem from "@/components/swiperItem/swiperItem"; 99 import swiperItem from "@/components/swiperItem/swiperItem";
91 import discountZone from "@/components/discountZone/discountZone"; 100 import discountZone from "@/components/discountZone/discountZone";
@@ -118,7 +127,8 @@ export default { @@ -118,7 +127,8 @@ export default {
118 style7, 127 style7,
119 horizList, 128 horizList,
120 tabBox, 129 tabBox,
121 - backBox 130 + backBox,
  131 + callAppBox
122 }, 132 },
123 created() { 133 created() {
124 // 获取优选库精选活动 134 // 获取优选库精选活动
@@ -147,6 +157,25 @@ export default { @@ -147,6 +157,25 @@ export default {
147 }); 157 });
148 } 158 }
149 }, 159 },
  160 + mounted() {
  161 + // 唤起详情页
  162 + if (typeof this.$parent.getOpenApp === "function") {
  163 + this.$parent.getOpenApp({
  164 + type: 38,
  165 + id: this.$route.query.id || 0,
  166 + url: ""
  167 + });
  168 + }
  169 +
  170 + // 分享详情页
  171 + if (typeof this.$parent.getShareData === "function") {
  172 + this.$parent.getShareData({
  173 + type: 38,
  174 + id: this.$route.query.id || 0,
  175 + url: ""
  176 + });
  177 + }
  178 + },
150 methods: { 179 methods: {
151 // 下拉刷新 180 // 下拉刷新
152 // onRefresh() { 181 // onRefresh() {