|
|
@@ -49,6 +49,39 @@
|
|
|
/>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="input-col">
|
|
|
+ <view class="title">微服务:</view>
|
|
|
+ <view class="input-box">
|
|
|
+ <input
|
|
|
+ class="lab-input"
|
|
|
+ v-model="service_path"
|
|
|
+ type="text"
|
|
|
+ placeholder="请输入微服务路径"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="input-col">
|
|
|
+ <view class="title">sdk:</view>
|
|
|
+ <view class="input-box">
|
|
|
+ <input
|
|
|
+ class="lab-input"
|
|
|
+ v-model="sdkKey"
|
|
|
+ type="text"
|
|
|
+ placeholder="请输入sdk"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="input-col">
|
|
|
+ <view class="title">logo:</view>
|
|
|
+ <view class="input-box">
|
|
|
+ <input
|
|
|
+ class="lab-input"
|
|
|
+ v-model="headerImg"
|
|
|
+ type="text"
|
|
|
+ placeholder="请输入sdk"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -62,6 +95,9 @@
|
|
|
no: "",
|
|
|
tenant: "",
|
|
|
token: "",
|
|
|
+ service_path: "",
|
|
|
+ sdkKey: "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp",
|
|
|
+ headerImg: "static/images/header.png",
|
|
|
};
|
|
|
},
|
|
|
onMounted() {
|
|
|
@@ -74,6 +110,12 @@
|
|
|
this.token =
|
|
|
uni.getStorageSync("labsop_android_token") ||
|
|
|
process.uniEnv.VUE_APP_TOKEN;
|
|
|
+ this.service_path = uni.getStorageSync("labsop_service_path") || "";
|
|
|
+ this.sdkKey =
|
|
|
+ uni.getStorageSync("labsop_sdkKey") ||
|
|
|
+ "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp";
|
|
|
+ this.headerImg =
|
|
|
+ uni.getStorageSync("labsop_headerImg") || "static/images/header.png";
|
|
|
},
|
|
|
onShow() {
|
|
|
this.ip =
|
|
|
@@ -85,11 +127,35 @@
|
|
|
this.token =
|
|
|
uni.getStorageSync("labsop_android_token") ||
|
|
|
process.uniEnv.VUE_APP_TOKEN;
|
|
|
+ this.service_path = uni.getStorageSync("labsop_service_path") || "";
|
|
|
+ this.sdkKey =
|
|
|
+ uni.getStorageSync("labsop_sdkKey") ||
|
|
|
+ "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp";
|
|
|
+ this.headerImg =
|
|
|
+ uni.getStorageSync("labsop_headerImg") || "static/images/header.png";
|
|
|
},
|
|
|
onLoad() {},
|
|
|
methods: {
|
|
|
+ testSave() {
|
|
|
+ uni.setStorageSync("labsop_ip", this.ip || "");
|
|
|
+ uni.setStorageSync("labsop_no", this.no || "");
|
|
|
+ uni.setStorageSync("labsop_tenant", this.tenant || "");
|
|
|
+ uni.setStorageSync("labsop_android_token", this.token || "");
|
|
|
+ uni.setStorageSync("labsop_service_path", this.service_path || "");
|
|
|
+ uni.setStorageSync(
|
|
|
+ "labsop_sdkKey",
|
|
|
+ this.sdkKey || "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp"
|
|
|
+ );
|
|
|
+ this.headerImg =
|
|
|
+ uni.getStorageSync("labsop_headerImg") || "static/images/header.png";
|
|
|
+ uni.redirectTo({
|
|
|
+ url: "/",
|
|
|
+ });
|
|
|
+ },
|
|
|
// 激活引擎
|
|
|
confirm() {
|
|
|
+ // this.testSave();
|
|
|
+ // return;
|
|
|
if (!this.no) {
|
|
|
uni.showToast({
|
|
|
title: "终端编号不能为空",
|
|
|
@@ -101,7 +167,7 @@
|
|
|
module.activeEngine(
|
|
|
{
|
|
|
appId: "F4G44DgYsCFdZbfi4va9aE81bhTsRjHQvFUXxr9V5ym9",
|
|
|
- sdkKey: "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp",
|
|
|
+ sdkKey: this.sdkKey,
|
|
|
},
|
|
|
(res) => {
|
|
|
console.log(res);
|
|
|
@@ -119,6 +185,18 @@
|
|
|
"labsop_android_token",
|
|
|
this.token || ""
|
|
|
);
|
|
|
+ uni.setStorageSync(
|
|
|
+ "labsop_service_path",
|
|
|
+ this.service_path || ""
|
|
|
+ );
|
|
|
+ uni.setStorageSync(
|
|
|
+ "labsop_sdkKey",
|
|
|
+ this.sdkKey ||
|
|
|
+ "CUjFXiqfJtDp6gZKUPKTSPLuVsKoyqw7WPgbQA5o7ebp"
|
|
|
+ );
|
|
|
+ this.headerImg =
|
|
|
+ uni.getStorageSync("labsop_headerImg") ||
|
|
|
+ "static/images/header.png";
|
|
|
uni.showToast({
|
|
|
title: "保存成功",
|
|
|
duration: 1000,
|