| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <!-- 遮罩:点击自己关闭,点击子元素不关闭 -->
- <view class="popup-mask" @click="closePopup">
- <view class="popup-box">
- <!-- 标题 -->
- <view class="popup-title">提示</view>
- <!-- 内容 -->
- <view class="popup-content">
- 平台可提供代建广告服务,内容更优质
- </view>
- <!-- 按钮 -->
- <button class="popup-btn" @click="handleContact">
- 联系平台
- </button>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "AdServicePopup",
- props: {
- visible: {
- type: Boolean,
- default: false,
- },
- },
- methods: {
- // 联系平台
- handleContact() {
- // uni.showToast({
- // title: "正在联系平台",
- // icon: "none",
- // });
- this.$emit("contact");
- },
- // 关闭弹窗
- closePopup() {
- this.$emit("update:visible", false);
- },
- },
- };
- </script>
- <style scoped>
- /* 遮罩 */
- .popup-mask {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.7);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 999;
- }
- /* 弹窗内容盒子 */
- .popup-box {
- width: 80%;
- height:408rpx;
-
- background: #fff;
- border-radius: 16rpx;
- padding: 48rpx 32rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- }
- .popup-title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- /* margin-bottom: 86rpx; */
- }
- .popup-content {
- font-size: 32rpx;
- color: #333;
- text-align: center;
- /* margin-bottom: 97rpx; */
- }
- .popup-btn {
- width: 100%;
- height: 68rpx;
- line-height: 68rpx;
- background: #409eff;
- color: #fff;
- border-radius: 44rpx;
- font-size: 32rpx;
- border: none;
- }
- </style>
|