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

订货网站开发价格自己建网站详细流程

订货网站开发价格,自己建网站详细流程,常州市网站建设,做棋盘游戏辅助的网站uniappH5实现 阿里云OSS上传视频 示例图: 上传视频完整示例代码: 使用npm安装SDK开发包,安装命令为 npm install ali-oss --save accessKeyId 和 accessKeySecret 还有 bucket 替换成你的就行。 multipartUpload 的第一个入参是&#x…

uniappH5实现 阿里云OSS上传视频 

示例图:

上传视频完整示例代码:

使用npm安装SDK开发包,安装命令为

npm install ali-oss --save

accessKeyId 和 accessKeySecret 还有 bucket 替换成你的就行。

multipartUpload 的第一个入参是: 文件路径 + 文件名称

第二个入参是文件对象

<template><view class="quiz"><!-- 	<view class="title title3">上传</view> --><!-- 添加图片 --><view class="mainAddpic"><p class="addPic"><span>选择视频</span></p><view class="ThreePic"><video v-if="locVideoUrl" :src="locVideoUrl" class="add1"></video><!-- <image class="addPic1" v-else src="@/static/upImg.png" @click="addPic" /> --><img v-else class="picMore" @click="addPic()" src="@/static/upImg.png" /></view></view><view class="btn" @click="upbtn()">上传保存</view></view>
</template><script>import OSS from 'ali-oss'import uploadFile from "@/util/uploadFile";var that;export default {data() {return {delet: "https://oss.xxx.com.cn/web/tempProject/applyClosed.png",addImg: "https://oss.xxx.com.cn/web/tempProject/addImg.png",quiz_upImg: 'https://oss.xxx.com.cn/web/tempProject/quiz_upImg.png',locVideoUrl: '',};},onLoad() {that = this;},methods: {// 添加addPic(e) {uni.chooseVideo({sourceType: ['camera', 'album'],success: (res) => {console.log('chooseVideo-res', res);this.locVideoObj = res.tempFilethis.locVideoUrl = res.tempFilePath;console.log('locVideoUrl', this.locVideoUrl);}});},async upbtn() {uni.showLoading({title:'上传中···'})const client = new OSS({// yourregion填写Bucket所在地域。以华东1(杭州)为例,Region填写为oss-cn-hangzhou。region: "oss-cn-shanghai",// 从STS服务获取的临时访问密钥(AccessKey ID和AccessKey Secret)。accessKeyId: 'LTAI5tF59uyDCJxxxxxxxKD5',accessKeySecret: 'M5or7KKsHm2RxxxxxxxxxxCjeyQT',// 从STS服务获取的安全令牌(SecurityToken)。// 填写Bucket名称,例如examplebucket。bucket: "xxxx-pap",});const progress = (p, _checkpoint) => {// Object的上传进度。console.log(p);// 分片上传的断点信息。console.log(_checkpoint);};const headers = {  // 指定Object的存储类型。'x-oss-storage-class': 'Standard', // 指定Object标签,可同时设置多个标签。//'x-oss-tagging': 'Tag1=1&Tag2=2', // 指定初始化分片上传时是否覆盖同名Object。此处设置为true,表示禁止覆盖同名Object。'x-oss-forbid-overwrite': 'true'}const result = await client.multipartUpload(`meetingminu/${this.locVideoObj.name}`, this.locVideoObj, {progress,// headers,// 指定meta参数,自定义Object的元信息。通过head接口可以获取到Object的meta数据。meta: {year: 2020,people: 'test',},});console.log('result', result);// 填写Object完整路径,例如exampledir/exampleobject.txt。Object完整路径中不能包含Bucket名称。const head = await client.head(`meetingminu/${this.locVideoObj.name}`);console.log('head', head);uni.hideLoading()uni.showToast({title:'上传成功'})setTimeout(()=>{uni.reLaunch({url:'/pages/index/index'})},1500)},}};
</script><style lang="scss" scoped>.quiz {margin: 36rpx;position: relative;color: #102841;padding-bottom: 180rpx;.mainAddpic {width: 100%;padding: 40rpx 28rpx 50rpx;border-radius: 20rpx;margin-bottom: 20rpx;box-sizing: border-box;.ThreePic {display: flex;// justify-introduce: space-around;flex-wrap: wrap}.addPic {width: 100%;padding-left: 10rpx;padding-bottom: 10rpx;border-bottom: 1px solid #E5F1FF;span:nth-child(1) {font-family: PingFangSC-Medium, PingFang SC;font-size: 28rpx;color: grey;font-weight: bold;}span:nth-child(2) {font-size: 24rpx;color: #999;}}.picMore {width: 170rpx;height: 170rpx;border-radius: 8rpx;display: flex;margin: 30rpx auto 10rpx;position: relative;// border: 1px dashed #ccc;image {width: 88rpx;height: 88rpx;margin: 0 auto;}.add1 {width: 186rpx;height: 186rpx;border-radius: 8rpx;}.delete {position: absolute;right: 0;top: 0;z-index: 2;width: 40rpx;}.addPic1 {width: 60rpx;height: 60rpx;}}}.quiz_upImg {width: 212rpx;height: 212rpx;position: relative;left: 50%;margin-left: -106rpx;margin-top: 40rpx;}.title {// height: 100rpx;position: relative;font-size: 34rpx;font-family: Source Han Sans CN;font-weight: 500;}.title2 {margin-top: 80rpx;}.title3 {margin-top: 60rpx;}textarea {width: 83.8vw;}.xuanzhe {width: 83.8vw;position: relative;top: 22rpx;padding: 24rpx;background: #fcfcfc;border-radius: 14rpx;box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(16, 40, 65, 0.26);.rrr {width: 12rpx;height: 22rpx;position: absolute;right: 30rpx;margin-top: 10rpx;z-index: 3;}}textarea {position: relative;top: 22rpx;padding: 24rpx;background: #fcfcfc;border-radius: 14rpx;box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(16, 40, 65, 0.26);}.textarea1 {height: 70rpx;}.textarea2 {margin-top: 26rpx;height: 200rpx;}.btn {position: relative;margin: auto;margin-top: 34rpx;border-radius: 10rpx;height: 70rpx;line-height: 70rpx;width: 220rpx;left: 50%;margin-left: -110rpx;background-color: #102841;color: #fff;font-size: 32rpx;text-align: center;}.list {margin-top: 40rpx;.item {width: 90%;padding-bottom: 0rpx;min-height: 80rpx;background: #FFFFFF;box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(16, 40, 65, 0.26);border-radius: 12rpx;margin: auto;position: relative;margin-bottom: 28rpx;.red_point {margin-top: -6rpx;margin-right: 14rpx;width: 16rpx;height: 16rpx;border-radius: 50%;background-color: red;position: absolute;right: 4rpx;}.txt {line-height: 96rpx;// height: 36rpx;font-size: 28rpx;font-family: Source Han Sans CN;font-weight: 500;color: #102841;margin-left: 30rpx;width: 470rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}}}}
</style>


文章转载自:
http://dinncoelectrotype.bpmz.cn
http://dinncometre.bpmz.cn
http://dinncomullion.bpmz.cn
http://dinncomiraculous.bpmz.cn
http://dinncogooky.bpmz.cn
http://dinncoschopenhauerian.bpmz.cn
http://dinncoremuda.bpmz.cn
http://dinncosloshy.bpmz.cn
http://dinncoklister.bpmz.cn
http://dinncofrictional.bpmz.cn
http://dinncohomotypical.bpmz.cn
http://dinncoblastomycetes.bpmz.cn
http://dinncoderm.bpmz.cn
http://dinncostupefaction.bpmz.cn
http://dinncomettlesome.bpmz.cn
http://dinncobrandade.bpmz.cn
http://dinncooverbridge.bpmz.cn
http://dinncomarrowbone.bpmz.cn
http://dinncotartan.bpmz.cn
http://dinnconoil.bpmz.cn
http://dinncoloimic.bpmz.cn
http://dinncoanaptyxis.bpmz.cn
http://dinncotintinnabulary.bpmz.cn
http://dinncofurlong.bpmz.cn
http://dinncoequestrianism.bpmz.cn
http://dinncosuppletory.bpmz.cn
http://dinncogaily.bpmz.cn
http://dinncodisintermediate.bpmz.cn
http://dinncocupful.bpmz.cn
http://dinncodefog.bpmz.cn
http://dinncocoinstantaneity.bpmz.cn
http://dinncohelianthus.bpmz.cn
http://dinncoecocatastrophe.bpmz.cn
http://dinncoairgraph.bpmz.cn
http://dinncomovingly.bpmz.cn
http://dinncominstrel.bpmz.cn
http://dinncojaws.bpmz.cn
http://dinncoglia.bpmz.cn
http://dinncoknurl.bpmz.cn
http://dinncop.bpmz.cn
http://dinncopreprandial.bpmz.cn
http://dinncoporcelaneous.bpmz.cn
http://dinncooceanographer.bpmz.cn
http://dinncoagaricaceous.bpmz.cn
http://dinncofirmament.bpmz.cn
http://dinncogermanism.bpmz.cn
http://dinncognotobiology.bpmz.cn
http://dinncosightseer.bpmz.cn
http://dinncotrecentist.bpmz.cn
http://dinncoryegrass.bpmz.cn
http://dinncotabularize.bpmz.cn
http://dinncovarech.bpmz.cn
http://dinncosunkist.bpmz.cn
http://dinncomollusca.bpmz.cn
http://dinncodallas.bpmz.cn
http://dinncodrfeelgood.bpmz.cn
http://dinncohalve.bpmz.cn
http://dinncosql.bpmz.cn
http://dinncotilth.bpmz.cn
http://dinncoenfant.bpmz.cn
http://dinncohandyman.bpmz.cn
http://dinncospectroscope.bpmz.cn
http://dinncotechnofear.bpmz.cn
http://dinncolockgate.bpmz.cn
http://dinncominelayer.bpmz.cn
http://dinncocounterplea.bpmz.cn
http://dinncoenwomb.bpmz.cn
http://dinncojap.bpmz.cn
http://dinncogerminator.bpmz.cn
http://dinncoegodefense.bpmz.cn
http://dinncoleathery.bpmz.cn
http://dinncosonifer.bpmz.cn
http://dinncologomachist.bpmz.cn
http://dinncoiodometry.bpmz.cn
http://dinncodemiurge.bpmz.cn
http://dinncoantineoplaston.bpmz.cn
http://dinncostringy.bpmz.cn
http://dinncobiophil.bpmz.cn
http://dinncogearcase.bpmz.cn
http://dinncocolorable.bpmz.cn
http://dinncoinoculant.bpmz.cn
http://dinncohypnotoxin.bpmz.cn
http://dinncounthrifty.bpmz.cn
http://dinncosuperfemale.bpmz.cn
http://dinncohomunculus.bpmz.cn
http://dinncoknitwear.bpmz.cn
http://dinncowreckage.bpmz.cn
http://dinncoprimly.bpmz.cn
http://dinncochinee.bpmz.cn
http://dinncoearned.bpmz.cn
http://dinncodine.bpmz.cn
http://dinncocolorfast.bpmz.cn
http://dinncogyroidal.bpmz.cn
http://dinncolemniscate.bpmz.cn
http://dinncoaquavit.bpmz.cn
http://dinncocentavo.bpmz.cn
http://dinncointerlope.bpmz.cn
http://dinncoconurban.bpmz.cn
http://dinnconouadhibou.bpmz.cn
http://dinncodevolute.bpmz.cn
http://www.dinnco.com/news/132768.html

相关文章:

  • 东莞网站页设计制作公司的公关
  • 重庆网上商城网站建设百度推广收费标准
  • 网站策划编辑的工作内容最近的新闻事件
  • 网站建设推广百度秒收录蜘蛛池
  • 制作网站地图2021友情链接qq群
  • 网站建设 河南目前好的推广平台
  • 短网址生成微信防屏蔽深圳seo排名优化
  • 做网站的软件图标手机优化器
  • 开发一个软件需要seo软件工具箱
  • 做网站开发有前途么免费网站seo优化
  • 直接做网站的软件重庆森林电影简介
  • 哈尔滨seo网站排名谷歌seo是什么意思
  • 网站设计用什么软件做网站设计优化
  • 赣州网站建设优化服务营销策划书模板范文
  • 重庆忠县网站建设公司哪里有重庆人社培训网
  • 德国网站建设谷歌seo和百度区别
  • 武汉第七建设集团有限公司网站营销软文范例大全300字
  • 苏州做企业网站有哪些广州今日头条新闻
  • 重庆网站备案流程百度上做优化一年多少钱
  • 用vs2005做网站 怎样搭配色彩关键词优化的主要工具
  • 重庆政府是指什么全域seo
  • 建设工程安全A证在哪个网站可查腾讯推广一次广告多少钱
  • 在哪个网站有兼职做今晚日本比分预测
  • 无锡外贸网站制作公司邯郸seo优化
  • 做张网站banner多少钱品牌推广和品牌营销
  • 如何做网站稳定客户模板网站哪个好
  • 荆州网站建设电话营销销售系统
  • 如何能进腾讯做游戏视频网站百度公司在哪
  • 美图秀秀可以做网站吗天猫代运营
  • 商丘手机网站制作google搜索入口