1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <view class="cu-modal" :class="{ show: visible }">
- <view class="mask" @click="close"></view>
- <view class="cu-dialog" style="background-color: transparent; width: 100%">
- <view class="relative wrapper">
- <view class="textBox">
- <view class="text">是否抓{{ pressType === 1 ? '一' : '五' }}次?</view>
- </view>
- <view class="cancel">
- <image :src="ossurl.welfare.toys.cancel" class="x" @click="close" />
- </view>
- <view class="confirm">
- <image :src="ossurl.welfare.toys.submit" class="x" @click="submit" />
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import ossurl from '@/utils/ossurl'
- export default {
- data() {
- return {
- ossurl,
- visible: false,
- pressType: 1
- }
- },
- methods: {
- show(type) {
- this.pressType = type
- this.visible = true
- },
- close() {
- this.visible = false
- },
- submit() {
- this.visible = false
- this.$emit('press', this.pressType)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .mask {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- }
- .wrapper {
- padding-bottom: 150rpx;
- }
- .textBox {
- margin: auto;
- position: relative;
- width: 588rpx;
- height: 226rpx;
- border-radius: 27rpx 27rpx 27rpx 27rpx;
- opacity: 1;
- border: 15rpx solid #ffedb9;
- background: #fed151;
- padding: 15rpx;
- }
- .text {
- background: #fffaee;
- height: 100%;
- line-height: 160rpx;
- font-weight: bold;
- font-size: 40rpx;
- color: #491700;
- text-align: center;
- }
- .cancel {
- position: absolute;
- bottom: 0rpx;
- left: 120rpx;
- }
- .confirm {
- position: absolute;
- bottom: 0rpx;
- right: 120rpx;
- }
- .x {
- width: 208rpx;
- height: 96rpx;
- }
- </style>
|