diff --git a/antis-app-siberian/components/yz-audio/index.scss b/antis-app-siberian/components/yz-audio/index.scss index 89be3db..598d377 100644 --- a/antis-app-siberian/components/yz-audio/index.scss +++ b/antis-app-siberian/components/yz-audio/index.scss @@ -17,8 +17,10 @@ } } .imt-audio{ - background: #ccc; + // background: #f2e2ac; + width: 100%; + margin-top: -90rpx; overflow: hidden; display: flex; box-sizing: border-box; @@ -37,11 +39,11 @@ .titlebox { display: flex; - line-height: 100rpx; + line-height: 138rpx; margin-bottom: 10rpx; .title { font-size: 30rpx; - max-width: 60%; + max-width: 100%; @include textoverflow; } @@ -69,10 +71,10 @@ } .audio-slider { padding-top: 10rpx; - margin-left: 150rpx; + // margin-left: 150rpx; position: absolute; bottom: 40rpx; - width: 75vw; + width: 90vw; left: 0; padding: 0; } diff --git a/antis-app-siberian/components/yz-audio/yz-audio.vue b/antis-app-siberian/components/yz-audio/yz-audio.vue index 33c3f35..ce0857d 100644 --- a/antis-app-siberian/components/yz-audio/yz-audio.vue +++ b/antis-app-siberian/components/yz-audio/yz-audio.vue @@ -1,7 +1,7 @@ @@ -45,7 +56,7 @@ 因此这里只能用video来实现,video能倍速播放,不能熄屏播放、不能后台播放。而且避免了用createInnerAudioContext()实现的跳转到别的页面,还在播放的问题 因此应用程序可以在需要后台播放的时候(需要用户操作触发),再暂停这个控件的播放,然后自己用getBackgroundAudioManager实现后台播放 */ - + import Vue from 'vue'; export default { props: { @@ -73,124 +84,119 @@ type: String, default: '' }, - }, + }, data() { return { - src:"", - poster:"", - name:"...", - singer:"...", - duration:0, - currentTime:0, - playState:"pause",//"loading"/"playing"/"pause" - isSliderChanging:false, + src: "", + poster: "", + name: "...", + singer: "...", + duration: 0, + currentTime: 0, + playState: "pause", //"loading"/"playing"/"pause" + isSliderChanging: false, + time: 0, + videoCtx: undefined }; }, - created:function(){ + created() { //自定义组件,需要传递第二个参数为this,否则后续的pause等操作不起作用 - this.videoCtx = uni.createVideoContext("videoPlayer",this); - } - , - methods:{ - setSrc:function(value) - { + this.videoCtx = uni.createVideoContext("videoPlayer", this); + }, + + methods: { + setSrc: function(value) { this.src = value; }, - setPoster:function(value) - { + setPoster: function(value) { this.poster = value; }, - setName:function(value) - { + setName: function(value) { this.name = value; }, - setSinger:function(value) - { + setSinger: function(value) { this.singer = value; }, - playerOnPlay:function(e) - { - this.playState="playing"; - this.$emit("play"); + playerOnPlay: function(e) { + this.playState = "playing"; + this.$emit("play"); }, - playerOnPause:function(e) - { - this.playState="pause"; + playerOnPause: function(e) { + this.playState = "pause"; this.$emit("pause"); }, - playerOnEnded:function(e) - { - this.playState="pause"; + playerOnEnded: function(e) { + this.playState = "pause"; this.$emit("ended"); }, - playerOnTimeupdate:function(e) - { - this.playState="playing"; + playerOnTimeupdate: function(e) { + this.playState = "playing"; this.duration = e.detail.duration; this.currentTime = e.detail.currentTime; - this.$emit("timeUpdate",e.detail); + this.$emit("timeUpdate", e.detail); }, - playerOnWaiting:function(e) - { - this.playState="loading"; + playerOnWaiting: function(e) { + this.playState = "loading"; }, - playerOnError:function(e) - { + playerOnError: function(e) { + console.log('音频爆发错误', e) uni.showToast({ - title:"播放出错"+e - }); - this.playState="pause"; - this.$emit("error",e); + title: "播放出错" + e + }); + this.playState = "pause"; + this.$emit("error", e); }, - formatSeconds:function(seconds){ + formatSeconds: function(seconds) { var result = typeof seconds === "string" ? parseFloat(seconds) : seconds; if (isNaN(result)) return ""; - let h = Math.floor(result / 3600) < 10 - ? "0" + Math.floor(result / 3600) - : Math.floor(result / 3600); - let m = Math.floor((result / 60) % 60) < 10 - ? "0" + Math.floor((result / 60) % 60) - : Math.floor((result / 60) % 60) + h * 60; - let s = Math.floor(result % 60) < 10 - ? "0" + Math.floor(result % 60) - : Math.floor(result % 60); - return `${m}:${s}`; - }, - stop:function() - { + let h = Math.floor(result / 3600) < 10 ? + "0" + Math.floor(result / 3600) : + Math.floor(result / 3600); + let m = Math.floor((result / 60) % 60) < 10 ? + "0" + Math.floor((result / 60) % 60) : + Math.floor((result / 60) % 60) + h * 60; + let s = Math.floor(result % 60) < 10 ? + "0" + Math.floor(result % 60) : + Math.floor(result % 60); + return `${m}:${s}`; + }, + stop: function() { this.videoCtx.stop(); - } - , - seek:function(t){ + }, + seek: function(t) { + console.log('这是seek', this.time) this.videoCtx.seek(t); }, - play:function(){ + play: function() { var that = this; - this.videoCtx.play();//在有的H5浏览器里,如果play不是用户触发的,则play()会报错 - + this.videoCtx.play(); //在有的H5浏览器里,如果play不是用户触发的,则play()会报错 }, - pause:function(){ + pause: function() { this.videoCtx.pause(); }, - playbackRate:function(value){ + playbackRate: function(value) { + // this.$nextTick(()=>{ this.videoCtx.playbackRate(value); //playbackRate不能在play之前或者之后立即调用,否则只有很少几率会成功 + // }) + // this.$forceUpdate() }, - sliderChange:function(e){ + sliderChange: function(e) { this.isSliderChanging = false; + this.time = e.detail.value + console.log('滚动条的时间', this.time) //要通过e.detail.value获取,否则如果通过dom去读取slider的value //就会存在滚动条拖不动的情况 this.videoCtx.seek(e.detail.value); }, - sliderChanging:function() - { + sliderChanging: function() { this.isSliderChanging = true; - }, + }, }, } diff --git a/antis-app-siberian/package.json b/antis-app-siberian/package.json index cd40522..24cdcbd 100644 --- a/antis-app-siberian/package.json +++ b/antis-app-siberian/package.json @@ -7,4 +7,4 @@ "音频播放器", "变速" ] -} +} \ No newline at end of file diff --git a/antis-app-siberian/pages.json b/antis-app-siberian/pages.json index c043352..ff269d3 100644 --- a/antis-app-siberian/pages.json +++ b/antis-app-siberian/pages.json @@ -1,5 +1,15 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + + + + + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "首页" + } + }, { "path": "pages/video/index", "style": { @@ -7,11 +17,23 @@ } }, { - "path": "pages/index/index", + "path": "pages/CDKEY/index", "style": { - "navigationBarTitleText": "首页" + "navigationBarTitleText": "模考兑换码" } }, + + + + + + + + + + + + { "path": "pages/payResult/index", "style": { @@ -24,7 +46,7 @@ "navigationBarTitleText": "登录" } }, - + { "path": "pages/Report/result", "style": { @@ -86,14 +108,14 @@ "navigationBarTitleText": "专属二维码" } }, - + { "path": "pages/Report/index", "style": { "navigationBarTitleText": "在线报备" } }, - + { "path": "pages/my/info", "style": { @@ -204,7 +226,7 @@ "list": [{ "text": "首页", "selectedIconPath": "static/tab/yesindex.png", - "pagePath":"pages/index/index", + "pagePath": "pages/index/index", "iconPath": "static/tab/noindex.png" }, { "text": "资料", diff --git a/antis-app-siberian/pages/CDKEY/index.vue b/antis-app-siberian/pages/CDKEY/index.vue new file mode 100644 index 0000000..cf8f2ad --- /dev/null +++ b/antis-app-siberian/pages/CDKEY/index.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/antis-app-siberian/pages/InvitedOrder/index.vue b/antis-app-siberian/pages/InvitedOrder/index.vue index b7cbab7..f5d9c0c 100644 --- a/antis-app-siberian/pages/InvitedOrder/index.vue +++ b/antis-app-siberian/pages/InvitedOrder/index.vue @@ -49,7 +49,7 @@ 合计 - {{'¥'+item.totalMoney}} + {{'¥'+item.totalMoneys}} diff --git a/antis-app-siberian/pages/Report/index.vue b/antis-app-siberian/pages/Report/index.vue index 86feb77..0241f9d 100644 --- a/antis-app-siberian/pages/Report/index.vue +++ b/antis-app-siberian/pages/Report/index.vue @@ -349,6 +349,7 @@ that.model.topCard=[] uni.chooseImage({ count:1, + sourceType:['album','camera'], success(res) { console.log('这是成功',res) uni.uploadFile({ @@ -366,7 +367,7 @@ let info=JSON.parse(e.data) let file={ "name": info.data.name, - "fileId": res.tempFilePaths[0], + "fileId": info.data.name, "url": info.data.url } that.model.topCard.push(file) @@ -411,7 +412,7 @@ let info=JSON.parse(e.data) let file={ "name": info.data.name, - "fileId": res.tempFilePaths[0], + "fileId": info.data.name, "url": info.data.url } that.model.bottomCard.push(file) diff --git a/antis-app-siberian/pages/Report/newIndex.vue b/antis-app-siberian/pages/Report/newIndex.vue index 89faeb5..8db79ae 100644 --- a/antis-app-siberian/pages/Report/newIndex.vue +++ b/antis-app-siberian/pages/Report/newIndex.vue @@ -215,6 +215,7 @@ that.form.orderImg=[] uni.chooseImage({ count:1, + sourceType:['album','camera'], success(res) { console.log('这是成功',res) uni.uploadFile({ diff --git a/antis-app-siberian/pages/comfirmorder/index.vue b/antis-app-siberian/pages/comfirmorder/index.vue index c7c5578..e5bd4b6 100644 --- a/antis-app-siberian/pages/comfirmorder/index.vue +++ b/antis-app-siberian/pages/comfirmorder/index.vue @@ -139,6 +139,11 @@ v-model="form.orderinfo.email"> + + 请注意,下单后将会及时发送考试兑换Voucher + 我们遵循统一的退款政策:购买Voucher后14自然日内,同时距离考试时间开始大于48小时可以联系客服提出退款申请。 + 退款有可能会收取一定的行政费用,详情请参见退款政策。 + @@ -294,14 +299,7 @@ icon: 'none' }) bl = false - } else if (!(/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ - .test(this.form.orderinfo.email))) { - uni.showToast({ - title: '请输入正确得邮箱格式', - icon: 'none' - }) - bl = false - } else if (!this.form.orderinfo.email) { + } else if (!this.form.orderinfo.email) { uni.showToast({ title: '请输入邮箱', icon: 'none' @@ -320,6 +318,7 @@ }, // 提交支付 Confirm() { + console.log('Ceshi') let that = this; uni.requestSubscribeMessage({ tmplIds: ['kRVg7meiHm-R1EMxtXDepwT_4cb0YXMpJfAdae9qH5k'], @@ -338,6 +337,9 @@ icon: 'none' }) } + }, + fail(error){ + console.log('信息',error) } }) }, diff --git a/antis-app-siberian/pages/index/index.vue b/antis-app-siberian/pages/index/index.vue index f3296f2..2c100e9 100644 --- a/antis-app-siberian/pages/index/index.vue +++ b/antis-app-siberian/pages/index/index.vue @@ -2,11 +2,11 @@ - + 【朗思测评考试中心】 - 郎思官方报名中心|郎思官方SELT考试中心 + 朗思官方报名中心|朗思官方SELT考试中心 广受考试好评考试中心 @@ -14,15 +14,15 @@ style="border-top-left-radius:40rpx;border-top-right-radius:40rpx;z-index:1;min-height:600rpx;width:100%;background-color:white;position:absolute;top:735rpx;"> - + - + 认可院校 @@ -30,8 +30,8 @@ - + 备考资料 @@ -39,8 +39,8 @@ - + 证件报备 @@ -69,36 +69,49 @@ diff --git a/antis-app-siberian/pages/login/index.vue b/antis-app-siberian/pages/login/index.vue index fd9d1af..a57e00f 100644 --- a/antis-app-siberian/pages/login/index.vue +++ b/antis-app-siberian/pages/login/index.vue @@ -4,8 +4,8 @@ - + @@ -19,7 +19,7 @@ - + 我已阅读并同意