除了win7的问题外全修复了
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Created by HW on 2023/07/27.
|
||||
//
|
||||
|
||||
@ -34,7 +34,7 @@ MainScreen::MainScreen(QWidget *parent) :
|
||||
button->setStyleSheet("border-style:none;padding:10px;border-radius:5px;background-color:#09bb07;color:white;font-family:SimHei");
|
||||
//Plus Math icon by Icons8
|
||||
QString dir = QApplication::applicationDirPath();
|
||||
button->setText(QString::fromLocal8Bit("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"));
|
||||
button->setText(QString::fromLocal8Bit("打开微信"));
|
||||
//button->setStyleSheet("text-color:white");
|
||||
layout = new QHBoxLayout;
|
||||
miniblink = new QMiniBlink(this);
|
||||
@ -80,31 +80,43 @@ MainScreen::~MainScreen() {
|
||||
void MainScreen::firstUrl(QString url)
|
||||
{
|
||||
QString url_full;
|
||||
if (url.contains("http"))
|
||||
if (url.isEmpty())
|
||||
{
|
||||
url_full = url;
|
||||
url_full = "";
|
||||
}
|
||||
else if (url.contains("?"))
|
||||
{
|
||||
url_full = BASE_URL + url + url_param;
|
||||
emit changeUrl(url_full);
|
||||
}
|
||||
else
|
||||
{
|
||||
url_full = BASE_URL + url + url_param;
|
||||
url_full = BASE_URL + url + "?" + url_param;
|
||||
emit changeUrl(url_full);
|
||||
}
|
||||
emit changeUrl(url_full);
|
||||
}
|
||||
void MainScreen::clickButton1(QString op,QString url) {
|
||||
QString url_full;
|
||||
if(url.contains("http"))
|
||||
if (url.isEmpty())
|
||||
{
|
||||
url_full = url;
|
||||
}else
|
||||
url_full = "";
|
||||
}
|
||||
else if (url.contains("?"))
|
||||
{
|
||||
url_full = BASE_URL + url + url_param;
|
||||
emit changeUrl(url_full);
|
||||
}
|
||||
else
|
||||
{
|
||||
url_full = BASE_URL + url + "?" + url_param;
|
||||
emit changeUrl(url_full);
|
||||
}
|
||||
if (op == "openwechat") {
|
||||
OpenWeChatRequest open_wechat_request;
|
||||
QString msg = open_wechat_request.sendRequest();
|
||||
if(msg!="ok")
|
||||
{
|
||||
QMessageBox::information(this, QString::fromLocal8Bit("<EFBFBD><EFBFBD>ʾ"), msg);
|
||||
QMessageBox::information(this, QString::fromLocal8Bit("提示"), msg);
|
||||
return;
|
||||
}
|
||||
widget->setHidden(false);
|
||||
|
Reference in New Issue
Block a user