Commit 2fd18c68 authored by 罗超's avatar 罗超

2

parent 64219d78
<template> <template>
<view class="wordPronItem"> <view class="wordPronItem">
<text style="font-size: 20rpx;color:#4c50e7; position: absolute;top:10rpx;left:20rpx">{{type==1?'复习':""}}</text>
<view class="num"> <view class="num">
{{cur}}/{{total}}<text style="margin-left: 6rpx;font-size: 20rpxs;">{{type==0?'':"复习"}}</text> {{cur}}/{{total}}
</view> </view>
<view class="meaning"> <view class="meaning">
{{item.WordWrite}} {{item.WordWrite}}
...@@ -135,10 +136,12 @@ ...@@ -135,10 +136,12 @@
.wordPronItem { .wordPronItem {
width: 640rpx; width: 640rpx;
height: 990rpx; min-height: 990rpx;
box-shadow: 0rpx 15rpx 80rpx 0rpx #E9E9E9; box-shadow: 0rpx 15rpx 80rpx 0rpx #E9E9E9;
border-radius: 24rpx; border-radius: 24rpx;
margin: 100rpx auto 0; margin: 100rpx auto 0;
position: relative;
overflow: hidden;
} }
.wordPronItem .num { .wordPronItem .num {
...@@ -156,6 +159,8 @@ ...@@ -156,6 +159,8 @@
color: #111111; color: #111111;
margin-bottom: 80rpx; margin-bottom: 80rpx;
text-align: center; text-align: center;
/* text-align-last: left; */
word-wrap: break-word;
} }
.Japanese { .Japanese {
...@@ -163,7 +168,10 @@ ...@@ -163,7 +168,10 @@
font-weight: bold; font-weight: bold;
color: #111111; color: #111111;
text-align: center; text-align: center;
/* text-align-last: left; */
margin-bottom: 60rpx; margin-bottom: 60rpx;
word-wrap: break-word;
padding: 0 20rpx;
} }
.wordPronItem .desc { .wordPronItem .desc {
......
...@@ -164,16 +164,15 @@ ...@@ -164,16 +164,15 @@
}); });
}, },
}; };
onMounted(() => {
that.getData();
});
let that = methods; let that = methods;
return { return {
...toRefs(data), ...toRefs(data),
...methods ...methods
}; };
}, },
onShow() {
this.getData();
}
}; };
</script> </script>
......
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
if (this.current >= total) { if (this.current >= total) {
this.current = total - 1 this.current = total - 1
} }
console.log('onShow',this.current)
}, },
onLoad(options) { onLoad(options) {
console.log("options", options); console.log("options", options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment