|
@@ -5,7 +5,6 @@
|
|
src="~@/static/logo.png"
|
|
src="~@/static/logo.png"
|
|
mode="aspectFit"
|
|
mode="aspectFit"
|
|
class="img"
|
|
class="img"
|
|
- @click="toogle"
|
|
|
|
></image>
|
|
></image>
|
|
</view>
|
|
</view>
|
|
<view class="form">
|
|
<view class="form">
|
|
@@ -87,28 +86,28 @@ export default {
|
|
url: "../WorkingHours/index",
|
|
url: "../WorkingHours/index",
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- toogle() {
|
|
|
|
- this.count++;
|
|
|
|
- if (this.count == 8) {
|
|
|
|
- const env = uni.getStorageSync("ENV");
|
|
|
|
- if (env == "dev") {
|
|
|
|
- uni.setStorageSync("ENV", "deploy");
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: "none",
|
|
|
|
- title: "已切换成正式环境",
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- uni.setStorageSync("ENV", "dev");
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: "none",
|
|
|
|
- title: "已切换成测试环境",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- setTimeout(() => {
|
|
|
|
- location.reload();
|
|
|
|
- }, 1500);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // toogle() {
|
|
|
|
+ // this.count++;
|
|
|
|
+ // if (this.count == 8) {
|
|
|
|
+ // const env = uni.getStorageSync("ENV");
|
|
|
|
+ // if (env == "dev") {
|
|
|
|
+ // uni.setStorageSync("ENV", "deploy");
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // icon: "none",
|
|
|
|
+ // title: "已切换成正式环境",
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // uni.setStorageSync("ENV", "dev");
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // icon: "none",
|
|
|
|
+ // title: "已切换成测试环境",
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // location.reload();
|
|
|
|
+ // }, 1500);
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
forget() {
|
|
forget() {
|
|
this.count2++;
|
|
this.count2++;
|
|
if (this.count2 >= 5) {
|
|
if (this.count2 >= 5) {
|