123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <view class="box">
- <image class="inviteImg" :src="image" ></image>
- <view class="lyy-b-but">长按图片下载</view>
-
- </view>
- </template>
- <script>
- import { getCombinationPoster } from '@/api/product.js';
- import { mapState } from 'vuex';
- export default {
- data() {
- return {
- image:'',
- ptId:'',
- }
- },
- computed: {
- ...mapState(['baseURL','urlFile'])
- },
- onLoad(option) {
-
- this.ptId = option.id;
-
- this.spread = option.spread;
-
- this.getCombinationPoster();
- },
- methods: {
-
- getCombinationPoster() {
- let obj = this;
- getCombinationPoster({
- id:obj.ptId,
-
- url:obj.baseURL+obj.urlFile+'/#/pages/product/groupBooking/detail?id='+obj.ptId+'&spread='+obj.spread,
- from:'wechat',
-
-
- from:'routine',
- url:'/pages/product/groupBooking/detail?id='+obj.ptId
-
- }).then((e) => {
- obj.image = e.data.url;
- }).catch((e) => {
- console.log(e);
- })
- }
- },
- }
- </script>
- <style lang="scss">
- page{
- background-color: #FFFFFF;
- height: 100%;
- }
- .box{
- .inviteImg{
- width: 750rpx;
- height: 1200rpx;
- }
- }
- .lyy-b-but {
- height: 80rpx;
- background: #fc5b62;
- border-radius: 100rpx;
- text-align: center;
- color: white;
- line-height: 80rpx;
- font-size: 32rpx;
- margin: 0 100rpx;
- }
- </style>
|