Commit 06f2628d by 前端

修复分享样式

1 parent 43f17c3b
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
import { ssoApi } from "../../api/api"; import { ssoApi } from "../../api/api";
import { componentsMixin } from "../../mixins/index"; import { componentsMixin } from "../../mixins/index";
Component({ Component({
externalClasses: ['test-class','class'], externalClasses: ['custom-class'],
behaviors: [componentsMixin], behaviors: [componentsMixin],
options: { // options: {
styleIsolation: 'shared' // styleIsolation: 'isolated'
}, // },
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
...@@ -96,5 +96,9 @@ ...@@ -96,5 +96,9 @@
// .isFullSucreen { // .isFullSucreen {
// width: 100%; // width: 100%;
// } // }
.product_full{
flex:1;
display: flex;
align-items: center;
}
<view class="fixBottom test-class class"> <view class="fixBottom custom-class">
<view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn"> <view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<!-- <view class="isFullSucreen"> --> <!-- <view class="isFullSucreen"> -->
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button> <button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button> <button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<!-- </view> --> <!-- </view> -->
</view> </view>
<view wx:if="{{type == 'product'}}" class="isFullSucreen"> <view wx:if="{{type == 'product'}}" class="isFullSucreen product_full">
<block wx:if="{{hasPhone}}"> <block wx:if="{{hasPhone}}">
<view class="forward-box"> <view class="forward-box">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image> <image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
......
...@@ -10,19 +10,3 @@ ...@@ -10,19 +10,3 @@
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
} }
.pro_phone_number {
.isFullSucreen {
flex: 1;
display: flex !important;
align-items: center !important;
}
}
.test {
.isFullSucreen {
flex: 1;
display: flex;
align-items: center;
}
}
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/productDetail/productDetail.wxml--> <!--packagesList/pages/productDetail/productDetail.wxml-->
<pro-detail id="pro-detail" custom-class="{{!hasPhoneNumber?'max_page_height':''}}" actNum="{{actNum}}" cardInfo="{{cardInfo}}" activeNavIdx="{{activeNavIdx}}"></pro-detail> <pro-detail id="pro-detail" custom-class="{{!hasPhoneNumber?'max_page_height':''}}" actNum="{{actNum}}" cardInfo="{{cardInfo}}" activeNavIdx="{{activeNavIdx}}"></pro-detail>
<pro-phone-number test-class="pro_phone_number" type="product" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></pro-phone-number>
\ No newline at end of file \ No newline at end of file
<pro-phone-number custom-class="pro_phone_number" type="product" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></pro-phone-number>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!