You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
713 B
38 lines
713 B
2 years ago
|
// miniprogram/components/cloudTipModal/index.js
|
||
|
const { isMac } = require('../../envList.js');
|
||
|
|
||
|
Component({
|
||
|
|
||
|
/**
|
||
|
* 页面的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
showUploadTip: false,
|
||
|
tipText: isMac ? 'sh ./uploadCloudFunction.sh' : './uploadCloudFunction.bat'
|
||
|
},
|
||
|
properties: {
|
||
|
showUploadTipProps: Boolean
|
||
|
},
|
||
|
observers: {
|
||
|
showUploadTipProps: function(showUploadTipProps) {
|
||
|
this.setData({
|
||
|
showUploadTip: showUploadTipProps
|
||
|
});
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
onChangeShowUploadTip() {
|
||
|
this.setData({
|
||
|
showUploadTip: !this.data.showUploadTip
|
||
|
});
|
||
|
},
|
||
|
|
||
|
copyShell() {
|
||
|
wx.setClipboardData({
|
||
|
data: this.data.tipText,
|
||
|
});
|
||
|
},
|
||
|
}
|
||
|
|
||
|
});
|