|
|
|
@ -25,7 +25,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="g_mt_40 g_ml_12 g_mr_12">
|
|
|
|
<view class="g_mt_40 g_ml_12 g_mr_12 vonfigbtn">
|
|
|
|
<rh-button btnText="保存" @clickBtn="handleSubmit" type="primary" size="full" style="width: 250px;" />
|
|
|
|
<rh-button btnText="保存" @clickBtn="handleSubmit" type="primary" size="full" style="width: 250px;" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="g_flex_row_end g_pr_20 g_mt_8 g_fs_14 g_mb_24" style="color: #576b95" @click="handleRestore">恢复</view>
|
|
|
|
<view class="g_flex_row_end g_pr_20 g_mt_8 g_fs_14 g_mb_24" style="color: #576b95" @click="handleRestore">恢复</view>
|
|
|
|
@ -109,6 +109,9 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!uni.getStorageSync("ORIGINAL_THEME_COLOR")) {
|
|
|
|
|
|
|
|
uni.setStorageSync("ORIGINAL_THEME_COLOR", getApp().globalData.themeColor);
|
|
|
|
|
|
|
|
}
|
|
|
|
uni.setStorageSync("DEMO_MODE_CONFIG", {
|
|
|
|
uni.setStorageSync("DEMO_MODE_CONFIG", {
|
|
|
|
appName: that.formData.appName,
|
|
|
|
appName: that.formData.appName,
|
|
|
|
logo: that.formData.logo,
|
|
|
|
logo: that.formData.logo,
|
|
|
|
@ -126,12 +129,12 @@ export default {
|
|
|
|
}, 1500);
|
|
|
|
}, 1500);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleRestore() {
|
|
|
|
handleRestore() {
|
|
|
|
let defaultThemeColor = "#fea702";
|
|
|
|
let originalThemeColor = uni.getStorageSync("ORIGINAL_THEME_COLOR") || getApp().globalData.themeColor;
|
|
|
|
uni.setStorageSync("DEMO_MODE_ENABLED", false);
|
|
|
|
uni.setStorageSync("DEMO_MODE_ENABLED", false);
|
|
|
|
let demoConfig = uni.getStorageSync("DEMO_MODE_CONFIG") || {};
|
|
|
|
let demoConfig = uni.getStorageSync("DEMO_MODE_CONFIG") || {};
|
|
|
|
demoConfig.enabled = false;
|
|
|
|
demoConfig.enabled = false;
|
|
|
|
uni.setStorageSync("DEMO_MODE_CONFIG", demoConfig);
|
|
|
|
uni.setStorageSync("DEMO_MODE_CONFIG", demoConfig);
|
|
|
|
getApp().globalData.themeColor = defaultThemeColor;
|
|
|
|
getApp().globalData.themeColor = originalThemeColor;
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
title: "已恢复",
|
|
|
|
title: "已恢复",
|
|
|
|
icon: "success",
|
|
|
|
icon: "success",
|
|
|
|
@ -193,4 +196,10 @@ export default {
|
|
|
|
transform: scale(1.1);
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.vonfigbtn{
|
|
|
|
|
|
|
|
.bocai_btn_mode_circle{
|
|
|
|
|
|
|
|
width: 250px !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|