|
@@ -29,7 +29,7 @@
|
|
|
<view class="slot-tips">
|
|
|
文件将以邮件的形式发送到指定邮箱
|
|
|
</view>
|
|
|
- <u--input :focus="showUModal" placeholder="请输入邮箱" v-model="eMail" border="bottom" clearable />
|
|
|
+ <u--input :focus="focus" placeholder="请输入邮箱" v-model="eMail" border="bottom" clearable />
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
</view>
|
|
@@ -44,13 +44,21 @@ export default {
|
|
|
sat_sharematerialid: 0,
|
|
|
showUModal: false,
|
|
|
eMail: "",
|
|
|
- detail: {}
|
|
|
+ detail: {},
|
|
|
+ focus: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.sat_sharematerialid = options.id;
|
|
|
this.getDetail();
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ showUModal: function (newVale) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.focus = newVale;
|
|
|
+ }, 300)
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
getDetail() {
|
|
|
this.$Http.basic({
|
|
@@ -87,12 +95,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
previewBook() {
|
|
|
- /* const innerAudioContext = uni.createInnerAudioContext();
|
|
|
- innerAudioContext.src = 'https://web-ext-storage.dcloud.net.cn/uni-app/ForElise.mp3';
|
|
|
- innerAudioContext.autoplay = true;
|
|
|
- innerAudioContext.loop = true;
|
|
|
- innerAudioContext.play();
|
|
|
- this.$Http.innerAudioContext = innerAudioContext; */
|
|
|
+ /* const innerAudioContext = uni.createInnerAudioContext();
|
|
|
+ innerAudioContext.src = 'https://web-ext-storage.dcloud.net.cn/uni-app/ForElise.mp3';
|
|
|
+ innerAudioContext.autoplay = true;
|
|
|
+ innerAudioContext.loop = true;
|
|
|
+ innerAudioContext.play();
|
|
|
+ this.$Http.innerAudioContext = innerAudioContext; */
|
|
|
|
|
|
let parems = encodeURIComponent(JSON.stringify({
|
|
|
"accesstoken": uni.getStorageSync('userMsg').token,
|