1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

支付宝小程序、微信小程序输出到不同dist目录;一些小调整

This commit is contained in:
2022-11-27 00:30:25 +08:00
parent 070cb9a997
commit 286b244457
6 changed files with 26 additions and 17 deletions

View File

@@ -15,7 +15,7 @@
#myQrcode {
display: block;
margin: 0 auto;
margin: 30px auto;
}
#show-text {

View File

@@ -2,7 +2,7 @@
<view id="codeView" :style="{ display: isShow }">
<view id="user-text"><text>{{ userText }}</text></view>
<view id="time-text"><text>{{ time }}</text></view>
<canvas type="2d" style="width: 70vw; height: 70vw;" id="myQrcode"></canvas>
<canvas type="2d" style="width: 250px; height: 250px;" id="myQrcode"></canvas>
<view id="show-text"><text :style="{ color: showTextColor }">{{ showText }}</text></view>
<view id="small-text"><text>下拉可刷新</text></view>
</view>
@@ -40,6 +40,7 @@ export default {
console.log('onHide')
clearInterval(this.timeInterval);
this.isShow = 'none'
this.time = ''
},
onPullDownRefresh() {
@@ -47,6 +48,7 @@ export default {
Taro.showNavigationBarLoading();
clearInterval(this.timeInterval);
this.isShow = 'none'
this.time = ''
this.userInfo = Taro.getStorageSync("userInfo");
if (!this.userInfo) {
Taro.redirectTo({
@@ -112,7 +114,7 @@ export default {
canvas: canvas,
canvasId: 'myQrcode',
width: 260,
padding: 30,
padding: 0,
background: '#ffffff',
foreground: foreground,
text: text,