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

内蒙古网站制作公司营销方案策划书

内蒙古网站制作公司,营销方案策划书,成都互联网公司十强,免费建造网站现在目前比较火热的一款app交友盲盒是通过uniappspringboot技术来制作的#xff0c;原理其实很简单#xff0c;大家一看便知。 大家自行下载到手机里面去使用即可#xff0c;不支持ios手机 演示地址#xff1a;https://share.weiyun.com/l3ovztce 下面就是给大家分享源码了… 现在目前比较火热的一款app交友盲盒是通过uniappspringboot技术来制作的原理其实很简单大家一看便知。 大家自行下载到手机里面去使用即可不支持ios手机 演示地址https://share.weiyun.com/l3ovztce 下面就是给大家分享源码了实现原理就是前端像后端发请求拿到数据渲染页面就这么简单 首页页面  templateview classcontentview classtopimage src../../static/bg.png modewidthFix/image/viewview classsubjectview classleftview classimgmanimage src../../static/man.png mode/image/viewview classchair/viewview classman男生盒子/viewview classenter clickenterman放入男生纸条/viewview classout clickoutman取出男生纸条/view/viewview classrightview classimgwumanimage src../../static/wuman.png mode/image/viewview classchair/viewview classman女生盒子/viewview classenter clickwumen放入女生纸条/viewview classout clickoutmen取出女生纸条/view/view/viewview classsub我的纸条/view/view /templatescriptexport default {data() {return {title: Hello}},onLoad() {},methods: {wumen() {uni.navigateTo({url: /pages/index/from/from})},outmen() {uni.navigateTo({url: /pages/index/from/from1})},enterman() {uni.navigateTo({url: /pages/index/from/from2})},outman() {uni.navigateTo({url: /pages/index/from/from3})}}} /scriptstyle scoped langscss.imgwuman {image {width: 800rpx;height: 800rpx;}position: absolute;top: -78%;left: -68%;}.imgman {image {width: 800rpx;height: 800rpx;}position: absolute;top: -78%;left: -65%;}.top {width: 100%;height: 300rpx;/* background-color: pink; */border-radius: 50rpx;box-sizing: border-box;}.top image {box-sizing: border-box;width: 100%;height: 100%;}.subject {height: 600rpx;margin-top: 10%;// background-color: aliceblue;display: flex;justify-content: center;align-items: center;}.subject .left {position: relative;width: 45%;height: 550rpx;background-color: #119DFC;margin-right: 30rpx;}.subject .left {border-radius: 20rpx;.chair {width: 200rpx;height: 30rpx;border-radius: 50rpx;background-color: #fff;margin: 50rpx auto;}.man {font-size: 50rpx;font-family: 宋体;text-align: center;color: #fff;}}.subject .right {position: relative;border-radius: 20rpx;width: 45%;height: 550rpx;background-color: #FF538F;}.subject .right {border-radius: 20rpx;.chair {width: 200rpx;height: 30rpx;border-radius: 50rpx;background-color: #fff;margin: 50rpx auto;}.man {font-size: 50rpx;font-family: 宋体;text-align: center;color: #fff;}}.enter,.out {position: relative;z-index: 9;width: 300rpx;height: 100rpx;background-color: #000;color: #fff;text-align: center;border-radius: 15rpx;margin: 0 auto;margin-top: 18%;line-height: 100rpx;}.sub {width: 90%;height: 100rpx;background-color: #FA91A8;margin: 0 auto;margin-top: 5%;border-radius: 50rpx;text-align: center;line-height: 100rpx;} /style 男生放入卡片页面 templateview classu-form :modelform refuFormu-form-item label姓名 propnameu-input v-modelform.name //u-form-itemu-form-item labelQQ号 propnumu-input v-modelform.num //u-form-itemu-form-item label微信 propintrou-input v-modelform.intro //u-form-itemu-form-item label手机 propphoneu-input v-modelform.phone //u-form-item/u-formu-button clicksubmit提交/u-button/view /templatescriptexport default {data() {return {form: {name: ,intro: ,num: ,phone: },rules: {name: [{required: true,message: 请输入姓名,// 可以单个或者同时写两个触发验证方式 trigger: [change, blur],}],num: [{required: true,message: 请输入QQ号,trigger: [change, blur]},{type: number,message: QQ号必须为数字,trigger: [change]},{}],intro: [{}]}};},methods: {submit() {let that this;this.$refs.uForm.validate(valid {if (valid) {console.log(验证通过);uni.request({url: http://8.130.120.38:5531/girl/add,method: POST,data: {name: that.form.name,qq: that.form.num,weixi: that.form.intro,phone: that.form.phone,},success: (res {if (res.data.data 添加成功) {uni.showToast({title: 添加成功,mask: true});that.form.name ;that.form.num ;that.form.intro ;that.form.phone ;setTimeout(() {uni.switchTab({url: /pages/index/index});}, 1500);}console.log(res);})})} else {console.log(验证失败);}});}},// 必须要在onReady生命周期因为onLoad生命周期组件可能尚未创建完毕onReady() {this.$refs.uForm.setRules(this.rules);}}; /script 男生取出卡片页面 templateview classu-form :modelform refuFormu-form-item label姓名 propnameu-input v-modelform.name //u-form-itemu-form-item labelQQ号 propnumu-input v-modelform.num //u-form-itemu-form-item label微信 propintrou-input v-modelform.intro //u-form-itemu-form-item label手机 propphoneu-input v-modelform.phone //u-form-item/u-formu-button clicksubmit提交/u-button/view /templatescriptexport default {data() {return {form: {name: ,intro: ,num: ,phone: },rules: {name: [{required: true,message: 请输入姓名,// 可以单个或者同时写两个触发验证方式 trigger: [change, blur],}],num: [{required: true,message: 请输入QQ号,trigger: [change, blur]},{type: number,message: QQ号必须为数字,trigger: [change]},],intro: [{}]}};},methods: {submit() {let that this;this.$refs.uForm.validate(valid {if (valid) {console.log(验证通过);uni.request({url: http://8.130.120.38:5531/man/add,method: POST,data: {name: that.form.name,qq: that.form.num,weixi: that.form.intro,phone: that.form.phone,},success: (res {if (res.data.data 添加成功) {uni.showToast({title: 添加成功,mask: true});that.form.name ;that.form.num ;that.form.intro ;that.form.phone ;setTimeout(() {uni.switchTab({url: /pages/index/index});}, 1500);}console.log(res);})})} else {console.log(验证失败);}});}},// 必须要在onReady生命周期因为onLoad生命周期组件可能尚未创建完毕onReady() {this.$refs.uForm.setRules(this.rules);}}; /script 女生的取出和放入都是和男生一样的 pages.json页面设置 {// pages.jsoneasycom: {^u-(.*): uview-ui/components/u-$1/u-$1.vue},// easycom: {// ^u-(.*): uview-ui/components/u-$1/u-$1.vue,// autoscan: true,// custom: {// ^uni-(.*): /components/uni-$1.vue, // 匹配components目录内的vue文件// ^vue-file-(.*): packageName/path/to/vue-file-$1.vue // 匹配node_modules内的vue文件// }// },pages: [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages{path: pages/index/index,style: {navigationBarTitleText: 交友盲盒}}, {path: pages/mine/mine,style: {navigationBarTitleText: 个人信息,enablePullDownRefresh: false}}, {path: pages/index/from/from,style: {navigationBarTitleText: 放入女生纸条,enablePullDownRefresh: false}},{path: pages/index/from/from1,style: {navigationBarTitleText: 取出女生纸条,enablePullDownRefresh: false}},{path: pages/index/from/from2,style: {navigationBarTitleText: 放入男生纸条,enablePullDownRefresh: false}},{path: pages/index/from/from3,style: {navigationBarTitleText: 取出男生纸条,enablePullDownRefresh: false}},{path: pages/getcode/getcode,style: {navigationBarTitleText: 取出男生信息,enablePullDownRefresh: false}},{path: pages/getcode/getcodenv,style: {navigationBarTitleText: 取出女生信息,enablePullDownRefresh: false}}],globalStyle: {navigationBarTextStyle: black,navigationBarTitleText: uni-app,navigationBarBackgroundColor: #F8F8F8,backgroundColor: #F8F8F8},uniIdRouter: {},tabBar: {selectedColor: #F394AA,list: [{text: 首页,pagePath: pages/index/index,iconPath: static/sy.png,selectedIconPath: static/syxz.png},{text: 我的,pagePath: pages/mine/mine,iconPath: static/wd.png,selectedIconPath: static/w.png}]} } 注意代码里面使用了uview-ui框架大家需要自己引入自己的项目哦传送教程https://xuqu.gitee.io/components/downloadSetting.html
http://www.pierceye.com/news/700282/

相关文章:

  • 美辰网站建设网站建设公司转型做什
  • 创意网站界面怎么查注册公司的名字可不可以用
  • 微友说是做网站维护让帮忙投注中小企业经营管理培训班
  • 网站开发宣传标语虚拟币挖矿网站开发
  • wordpress是否免费网站移动端seo
  • 加盟网站建设服务极简风格 wordpress
  • phpcms v9 网站模板seo优化的技巧
  • 域名备案网站要不要关7k7k网页游戏
  • 虚拟主机发布网站吗汕头建站平台
  • wap站是什么意思啊阿里云建设网站的步骤
  • 网站备案 异地可以做视频的网站
  • 淘宝网站c 设计怎么做安卓手机做网站
  • 嘉兴做网站建设的公司电商网名大全
  • 欢迎访问中国建设银行网站密码重置wordpress wp_parse_args
  • 普通电脑可以做网站服务器吗找人做网站需要什么条件
  • 长沙公司网站的建设网站图片尺寸
  • 高端网站定制费用是多少php网站建设制作
  • 广州营销型网站建设费用wordpress最新版下载
  • 洛阳网站设计公司xiamiplayer for wordpress
  • 做网站模版形象墙logo墙设计图
  • 视频网站怎么做防盗链好的装修效果图网站
  • 个人音乐分享网站源码移动网站建设的前景
  • 谷歌自建站和优化网站有很多304状态码
  • 甘肃 网站建设高端品牌护肤品
  • 南昌网站建设公司哪家好导航类网站怎么做
  • 织梦如何做汽车贸易网站wordpress调用主站的文章
  • 软件公司网站模板下载上海史特网站建设
  • 辽宁省锦州市住房与城乡建设厅网站网站的建设特色
  • 笨鸟网站开发如何做vip微信电影网站
  • 网站正在建设中图片南召seo快速排名价格