欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

微信小程序?qū)崿F(xiàn)婚禮邀請(qǐng)函全部流程

 更新時(shí)間:2024年10月02日 08:23:20   作者:張謹(jǐn)?shù)W  
本文介紹了如何使用微信小程序技術(shù)制作個(gè)性化的婚禮邀請(qǐng)函,包括頁(yè)面布局、交互設(shè)計(jì)和多媒體資源整合,詳細(xì)闡述了從功能需求到頁(yè)面設(shè)計(jì)、測(cè)試優(yōu)化以及發(fā)布流程的全面開發(fā)步驟,通過本項(xiàng)目,可以提升創(chuàng)意設(shè)計(jì)和用戶體驗(yàn)優(yōu)化的能力,需要的朋友可以參考下

目的

1.掌握微信小程序的開發(fā)技術(shù),包括頁(yè)面布局、交互設(shè)計(jì)、數(shù)據(jù)存儲(chǔ)等。

2.學(xué)會(huì)運(yùn)用微信小程序的各種組件和 API,實(shí)現(xiàn)個(gè)性化的婚禮邀請(qǐng)函功能。

3.通過制作婚禮邀請(qǐng)函小程序,提升創(chuàng)意設(shè)計(jì)和用戶體驗(yàn)優(yōu)化的能力。

4.了解如何在小程序中整合多媒體資源,如圖片、音樂、視頻等,以增強(qiáng)邀 請(qǐng)函的吸引力。

5.能夠?qū)⑿〕绦虬l(fā)布上線,與親朋好友分享幸福時(shí)刻,同時(shí)熟悉小程序的發(fā) 布流程和審核要求。

流程

確定婚禮邀請(qǐng)函小程序的功能需求,如展示新人照片、婚禮時(shí)間地點(diǎn)、RSVP 功能、地圖導(dǎo)航等。規(guī)劃小程序的頁(yè)面結(jié)構(gòu)和交互流程,確保用戶能夠方便地瀏覽和操作。

界面設(shè)計(jì):制作精美的頁(yè)面布局,包括首頁(yè)、婚禮詳情頁(yè)、RSVP 頁(yè)面等??梢允褂梦⑿判〕绦蛱峁┑慕M件,如視圖容器(view)、圖片(image)、文本(text)等,進(jìn)行頁(yè)面搭建。

測(cè)試與優(yōu)化:在開發(fā)過程中進(jìn)行多次測(cè)試,確保小程序的功能正常、界面美觀、交互流暢。檢查兼容性問題,確保小程序在不同設(shè)備和操作系統(tǒng)上都能正常運(yùn)行。根據(jù)測(cè)試結(jié)果進(jìn)行優(yōu)化,修復(fù)漏洞和改進(jìn)用戶體驗(yàn)。

代碼架構(gòu)

對(duì)應(yīng)代碼

index.wxml

<view class="player player-{{isPlayingMusic ? 'play' : 'pause'}}" bindtap="play">
  <image src="/images/music_icon.png" />
  <image src="/images/music_play.png" />
</view>
<!-- 背景圖片 -->
<image class="bg" src="/images/bg_1.png" />
<!-- 內(nèi)容區(qū)域 -->
<view class="content">
  <!-- 頂部GIF圖片 -->
  <image class="content-gif" src="/images/save_the_date.gif" />
  <!-- 標(biāo)題 -->
  <view class="content-title">邀請(qǐng)函</view>
  <!-- 新郎和新娘的合照 -->
  <view class="content-avatar">
    <image src="/images/avatar.png" />
  </view>
  <!-- 新娘和新郎的名字 -->
  <view class="content-info">
    <view class="content-name" bindtap="callGroom">
      <image src="/images/tel.png" />
      <view>張三石</view>
      <view>新郎</view>
    </view>
    <view class="content-wedding">
      <image src="/images/wedding.png"></image>
    </view>
    <view class="content-name" bindtap="callBride">
      <image src="/images/tel.png" />
      <view>張三石的愛人</view>
      <view>新娘</view>
    </view>
  </view>
  <!-- 婚禮信息 -->
  <view class="content-address">
    <view>我們誠(chéng)邀您來(lái)參加我們的婚禮</view>
    <view>時(shí)間:未來(lái)的某一天</view>
    <view>地點(diǎn):花海圓滿酒店</view>
  </view>
</view>

index.wxss

/* 音樂播放圖標(biāo) */

.player {
  position: fixed;
  top: 20rpx;
  right: 20rpx;
  /* 提高堆疊順序 */
  z-index: 1;
}

.player > image:first-child {
  width: 80rpx;
  height: 80rpx;
  /* 為唱片圖標(biāo)設(shè)置旋轉(zhuǎn)動(dòng)畫 */
  animation: musicRotate 3s linear infinite;
}

@keyframes musicRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.player > image:last-child {
  width: 28rpx;
  height: 80rpx;
  margin-left: -5px;
}

/* 播放狀態(tài) class為.player-play */

.player-play > image:first-child {
  animation-play-state: running;
}

.player-play > image:last-child {
  animation: musicStart 0.2s linear forwards;
}

/* 暫停狀態(tài) class為.player-pause */

.player-pause > image:first-child {
  animation-play-state: paused;
}

.player-pause > image:last-child {
  animation: musicStop 0.2s linear forwards;
}

@keyframes musicStart {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(20deg);
  }
}

@keyframes musicStop {
  from {
    transform: rotate(20deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* 背景圖 */

.bg {
  width: 100vw;
  height: 100vh;
}

/* 內(nèi)容區(qū)域 */

.content {
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 頂部gif圖 */

.content-gif {
  width: 19vh;
  height: 18.6vh;
  margin-bottom: 1.5vh;
}

/* 標(biāo)題 */

.content-title {
  font-size: 5vh;
  color: #ff4c91;
  text-align: center;
  margin-bottom: 2.5vh;
}

/* 頭像 */

.content-avatar image {
  width: 24vh;
  height: 24vh;
  border: 3px solid #ff4c91;
  border-radius: 50%;
}

/* 新郎新娘信息 */

.content-info {
  width: 55vw;
  text-align: center;
  margin-top: 4vh;
  display: flex;
  align-items: center;
}

.content-name {
  color: #ff4c91;
  font-size: 2.7vh;
  line-height: 4.5vh;
  font-weight: bold;
  position: relative;
}

.content-name > image {
  width: 2.6vh;
  height: 2.6vh;
  border: 1px solid #ff4c91;
  border-radius: 50%;
  position: absolute;
  top: -1vh;
  right: -3.6vh;
}

.content-wedding {
  flex: 1;
}

.content-wedding > image {
  width: 5.5vh;
  height: 5.5vh;
  margin-left: 20rpx;
}

/* 婚禮信息 */

.content-address {
  margin-top: 5vh;
  color: #ec5f89;
  font-size: 2.5vh;
  font-weight: bold;
  text-align: center;
  line-height: 4.5vh;
}

.content-address view:first-child {
  font-size: 3vh;
  padding-bottom: 2vh;
}

map.wxml

<map latitude="{{latitude}}" longitude="{{longitude}}" markers="{{markers}}" bindmarkertap="markertap" />

map.wxss

map {
  width: 100vw;
  height: 100vh;
}

picture.wxml

<swiper indicator-color="white" indicator-active-color="#ff4c91" indicator-dots autoplay interval="3500" duration="1000" vertical circular>
  <swiper-item wx:for="{{imgUrls}}" wx:key="*this">
    <image src="{{item}}" mode="aspectFill" />
  </swiper-item>
</swiper>

picture.wxss

swiper {
  height: 100vh;
}

image {
  width: 100vw;
  height: 100vh;
}

騰訊視頻插件,需要注冊(cè)企業(yè)微信公眾號(hào)(需要花錢),才可以使用,僅學(xué)習(xí)使用可忽略

video.wxml

<view class="video-list" wx:for="{{movieList}}" wx:key="user">
  <view class="video-title">標(biāo)題:{{item.title}}</view>
  <view class="video-time">時(shí)間:{{formatData(item.create_time)}}</view>
  <video src="{{item.src}}" objectFit="fill"></video> 
</view>
<view class="video-list">
  <view class="video-title">標(biāo)題:騰訊視頻插件演示</view>
  <view class="video-time">時(shí)間:2019-1-1 10:11:12</view>
  <txv-video vid="y0371c5p9cc" playerid="txv1"></txv-video>
</view>
<wxs module="formatData">
  module.exports = function(timestamp) {
    var date = getDate(timestamp)
    var y = date.getFullYear()
    var m = date.getMonth() + 1
    var d = date.getDate()
    var h = date.getHours()
    var i = date.getMinutes()
    var s = date.getSeconds()
    return y + '-' + m + '-' + d + ' ' + h + ':' + i + ':' + s
  }
</wxs>

vide.wxss

.video-list {
  box-shadow: 0 8rpx 17rpx 0 rgba(7, 17, 27, 0.1);
  margin: 10rpx 25rpx;
  padding: 20rpx;
  border-radius: 10rpx;
  margin-bottom: 30rpx;
  background: #fff;
}

.video-title {
  font-size: 35rpx;
  color: #333;
}

.video-time {
  font-size: 13px;
  color: #979797;
}

.video-list video {
  width: 100%;
  margin-top: 20rpx;
}

配置文件

project.config.json

{
  "description": "項(xiàng)目配置文件",
  "packOptions": {
    "ignore": [],
    "include": []
  },
  "setting": {
    "urlCheck": false,
    "es6": true,
    "enhance": false,
    "postcss": true,
    "preloadBackgroundData": false,
    "minified": true,
    "newFeature": true,
    "coverView": true,
    "nodeModules": false,
    "autoAudits": false,
    "showShadowRootInWxmlPanel": true,
    "scopeDataCheck": false,
    "uglifyFileName": false,
    "checkInvalidKey": true,
    "checkSiteMap": true,
    "uploadWithSourceMap": true,
    "compileHotReLoad": false,
    "useMultiFrameRuntime": true,
    "useApiHook": true,
    "useApiHostProcess": true,
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath": ""
    },
    "enableEngineNative": false,
    "bundle": false,
    "useIsolateContext": true,
    "useCompilerModule": true,
    "userConfirmedUseCompilerModuleSwitch": false,
    "userConfirmedBundleSwitch": false,
    "packNpmManually": false,
    "packNpmRelationList": [],
    "minifyWXSS": true
  },
  "compileType": "miniprogram",
  "libVersion": "2.14.1",
  "appid": "wx0298165ccea56bb4",
  "projectname": "invitation",
  "condition": {},
  "editorSetting": {
    "tabIndent": "insertSpaces",
    "tabSize": 2
  }
}

效果截圖

總結(jié) 

到此這篇關(guān)于微信小程序?qū)崿F(xiàn)婚禮邀請(qǐng)函的文章就介紹到這了,更多相關(guān)微信小程序婚禮邀請(qǐng)函內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論