当前位置: 首页 > news >正文

电商网站建设机构平台推广

电商网站建设机构,平台推广,郑州睿网站建设,wordpress做成微信小程序这是Popup组件基于微博小程序&#xff0c;需要改变标签&#xff0c;以及一写方法 支持四个方向抽屉&#xff0c;以及中间弹出功能 // 用法 <template><wbx-view style"height: 100vh;"><!-- 对话框组件 --><wbx-view><wbx-text click&quo…

这是Popup组件基于微博小程序,需要改变标签,以及一写方法

支持四个方向抽屉,以及中间弹出功能

// 用法
<template><wbx-view style="height: 100vh;"><!-- 对话框组件 --><wbx-view><wbx-text @click="openpup()">打开</wbx-text></wbx-view><WBXpopupref="popupRef"positionType="center"popupWidth="300px"popupHeight="400px"><template slot="popupContent"><wbx-view ref="drawer" style="padding: 16px;box-sizing: border-box; display: flex;flex-direction:column;justify-items: center;align-items: center;"><wbx-text style="font-size: 18px;height:26px;line-height: 26px;font-weight: 500;color:#000">我们仍在生成您的AI新身份</wbx-text><wbx-view@click="guan()"style="width: 70px; height: 70px; border: 2px solid #000"></wbx-view></wbx-view></template></WBXpopup></wbx-view>
</template><script>
/*** @type WBXAppOption*/
import WBXpopup from "../../commpents/wbx-popup/index.vue"
const pageOptions = {data() {return {};},methods: {openpup() {this.$refs.popupRef.openFn();},guan() {this.$refs.popupRef.closeFn();},},components: {WBXpopup,//弹出框},wbox: {onLoad() { },onShow() {// 页面显示/切入前台时触发},onHide() {// 页面隐藏时触发},onUnload() {// 页面退出时触发},},mounted() { },
};
export default pageOptions;
</script><style></style>
  //封装的组件
<template><wbx-view><wbx-viewv-if="showPopup"@click="closeFn()"style="background-color: rgba(0, 0, 0, 0.5);position: fixed;width: 100vw;height: 100vh;top: 0px;left: 0;display: flex;flex-direction: row;justify-content: center;align-items: center;transition: all 0.5s ease;z-index: 1;"><wbx-view :style="{width:popupWidth,height:popupHeight}" style=" transition: all 0.5s ease;z-index: 2; background-color: #fff;" v-if="positionType=='center'" ><slot name="popupContent"></slot></wbx-view><wbx-view :style="drawerStyle" v-else><slot name="popupContent"></slot></wbx-view></wbx-view></wbx-view>
</template><script>
/*openFn() 打开对话框closeFn() 关闭对话框positionType  从那边出来,抽屉的方向  left right bottom top center popupWidth: 对话框的宽popupHeight: 对话框的高
*/
export default {data() {return {showPopup: false,isOpen: false,};},props: {positionType: {type: String,default: "right",},popupWidth: {type: String,default: "300px",},popupHeight: {type: String,default: "300px",},},computed: {drawerStyle() {const style = {transition: "all 0.5s",zIndex: 2,backgroundColor: "#fff",position: "fixed",};if (this.positionType === "left" || this.positionType === "right") {style.width = this.popupWidth;style.height = "100vh";style[this.positionType] = this.isOpen ? "0px" : `-${this.popupWidth}`;} else  {style.width = "100vw";style.height = this.popupHeight;style[this.positionType] = this.isOpen ? "0" : `-${this.popupHeight}`;} return style;},},methods: {openFn() {this.showPopup = true;this.$nextTick(() => {setTimeout(() => {this.isOpen = true;}, 50);});},closeFn() {this.isOpen = false;setTimeout(() => {this.showPopup = false;}, 500);},},
};
</script>
<style></style>
http://www.zhongyajixie.com/news/45733.html

相关文章:

  • 那个网站是做副食批发怎么联系百度人工服务
  • 网站建设优劣势分析谷歌关键词查询工具
  • 好的网站建设专业公司优化大师哪个好
  • 织梦网站装修公司源码网络公司seo教程
  • 湖南省金力电力建设有限公司 网站全球疫情最新数据
  • 服务器上发布网站培训网站推广
  • 做淘宝网站怎么弄的网络推广公司口碑
  • 建设银行信用卡中心网站营销软件培训
  • 有人做网站吗名优网站关键词优化
  • 给国外网站做流量做推广的公司
  • 浙江省建设局城市平台网站今天的新闻摘抄
  • 南宁如何做百度的网站友情链接购买平台
  • 做图片网站用什么程序百度最新秒收录方法2023
  • 山东省建设厅网站地址电商运营怎么做如何从零开始
  • 时尚手表网站今天今日新闻头条最新消息
  • 无锡市网站设计nba交易最新消息
  • web购物网站如何做百度入驻
  • 企业如何建自己的网站西安市网站
  • 如何提取网页中的视频石家庄百度推广排名优化
  • 来年做哪些网站能致富自学seo大概需要多久
  • 有哪些网站可以做外贸长沙seo外包
  • 网站宝建站广州专做优化的科技公司
  • 网站建设80hoe品牌推广方式都有哪些
  • iis 5.1 新建网站在线域名ip查询
  • 企业网站如何做推广店铺推广渠道有哪些
  • 深圳做网站可用乐云seo十年上海网络公司seo
  • 做类似淘宝网站多少钱网络营销的四大要素
  • 余姚网站建设深圳网站建设三把火科技
  • wordpress 行距怎么优化
  • 网站开发 教程济南seo怎么优化