Commit 274773d4dc2c3e8aff73f8863e7fecbbfc6dc890
Merge branch 'master' of http://bj.gitlab.cnlive.com/w-front-end/select_good
Showing
2 changed files
with
35 additions
and
6 deletions
src/main.js
| ... | ... | @@ -9,7 +9,7 @@ import { Toast, Indicator,InfiniteScroll } from "mint-ui"; |
| 9 | 9 | import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview, Tab, Tabs} from "vant"; |
| 10 | 10 | import App from "./App"; |
| 11 | 11 | import IdCard from './common/IdCard'; |
| 12 | -import VueClipboard from 'vue-clipboard2' | |
| 12 | +import VueClipboard from 'vue-clipboard2'; | |
| 13 | 13 | import VueBus from 'vue-bus'; |
| 14 | 14 | Vue.use(Vuex); |
| 15 | 15 | Vue.use(VueResource); |
| ... | ... | @@ -50,7 +50,7 @@ import 'url-search-params-polyfill'; |
| 50 | 50 | Vue.config.productionTip = false; |
| 51 | 51 | |
| 52 | 52 | // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod") |
| 53 | -Vue.prototype.mode = "dev"; | |
| 53 | +Vue.prototype.mode = "test"; | |
| 54 | 54 | |
| 55 | 55 | // 微信JS-SDK对象 |
| 56 | 56 | Vue.prototype.jweixin = { | ... | ... |
src/pages/mall/mall.vue
| ... | ... | @@ -3,15 +3,23 @@ |
| 3 | 3 | <!-- 下拉刷新 --> |
| 4 | 4 | <!-- <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> --> |
| 5 | 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 | 16 | v-if="$parent.isBack && $parent.isCNLive.value" |
| 9 | 17 | class="back-box" |
| 10 | 18 | :style="'padding-top: ' + $parent.top.value + 'px'" |
| 11 | 19 | @back="back" |
| 12 | 20 | :backs="backs" |
| 13 | 21 | > |
| 14 | - </back-box> --> | |
| 22 | + </back-box> | |
| 15 | 23 | <!--轮播--> |
| 16 | 24 | <swiper |
| 17 | 25 | v-if="banner" |
| ... | ... | @@ -86,6 +94,7 @@ |
| 86 | 94 | <script> |
| 87 | 95 | // 引入组件 |
| 88 | 96 | import { Toast, Indicator } from "mint-ui"; |
| 97 | +import callAppBox from "@/components/callAppBox/callAppBox"; | |
| 89 | 98 | import swiper from "@/components/swiper/swiper"; |
| 90 | 99 | import swiperItem from "@/components/swiperItem/swiperItem"; |
| 91 | 100 | import discountZone from "@/components/discountZone/discountZone"; |
| ... | ... | @@ -118,7 +127,8 @@ export default { |
| 118 | 127 | style7, |
| 119 | 128 | horizList, |
| 120 | 129 | tabBox, |
| 121 | - backBox | |
| 130 | + backBox, | |
| 131 | + callAppBox | |
| 122 | 132 | }, |
| 123 | 133 | created() { |
| 124 | 134 | // 获取优选库精选活动 |
| ... | ... | @@ -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 | 179 | methods: { |
| 151 | 180 | // 下拉刷新 |
| 152 | 181 | // onRefresh() { | ... | ... |