123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <template name="sharealert">
- <view class="alert spec" :class="specClass">
- <view class="model-warp">
- <view class="content">
- <view class="text-content">
- <view class="title">分享登录</view>
- <view class="text">
- <text>分享后,机构联系人可直接通过分享页面登录并绑定微信成为运营人员</text>
- </view>
- </view>
- <view class="alert-btn">
- <view class="btn btn-cancel" @click="hideConfirm">取消</view>
- <!-- #ifdef MP-WEIXIN -->
- <button class="btn btn-confirm" open-type="share" @click="btnConfirm(bindId)">去分享</button>
- <!-- #endif -->
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- name:'sharealert',
- props:{
- bindId:{
- type:Number
- }
- },
- data() {
- return{
- shareCode:'',
- }
- },
- created() {
-
- },
- methods:{
- hideConfirm(){
- this.$parent.isShareModal = false
- },
- btnConfirm(orderID){//点击事件
- this.$emit('btnConfirm')
- }
- }
- }
- </script>
- <style lang="scss">
- /*弹窗*/
- .model-warp.none{
- display: none;
- }
- .model-warp.show{
- display: block;
- }
- .model-warp{
- width: 100%;
- height: 100%;
- background: rgba(0,0,0,0.3);
- position: fixed;
- top: 0;
- left: 0;
- z-index: 10000;
- transition: all 0.4s;
- &.none{
- display: none;
- }
- &.show{
- display: block;
- }
- .content{
- width: 518rpx;
- height: 360rpx;
- position: absolute;
- background: $bg-color;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
- border-radius: 24rpx;
- .text-content{
- width: 448rpx;
- height: 200rpx;
- padding: 30rpx 35rpx;
- float: left;
- .title{
- line-height: 44rpx;
- font-size: $font-size-28;
- color: $text-color;
- text-align: center;
- font-weight: bold;
- margin-bottom: 36rpx;
- }
- .share{
- line-height: 36rpx;
- font-size: $font-size-26;
- color: $text-color;
- text-align: justify;
- margin-top: 22rpx;
- font-weight: normal;
- .txt{
- margin-left: 10rpx;
- color: #FF2A2A;
- }
- }
- .text{
- line-height: 44rpx;
- font-size: $font-size-28;
- color: $text-color;
- text-align: justify;
- margin-top: 22rpx;
- }
- }
- .alert-btn{
- width: 80%;
- height: 70rpx;
- display: flex;
- margin: 0 auto;
- .btn{
- flex: 1;
- line-height: 70rpx;
- font-size: $font-size-28;
- text-align: center;
- color: #FFFFFF;
- border-radius: 35rpx;
- padding: 0;
- margin: 0 15rpx;
- &.btn-cancel{
- background: #e1e1e1;
- }
- &.btn-confirm{
- background: #4ad04c;
- }
- }
- }
- }
- }
- </style>
|