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.
1 lines
2.0 KiB
1 lines
2.0 KiB
import{d as e,a,i as t,j as l,w as s,k as o,K as r,L as i,n as p,aa as d,Z as n,x as u,N as c,q as m,t as x}from"./index-c1dbaba4.js";import{_ as f}from"./u-input.d53f0aa0.js";import{_}from"./u-button.78b6f378.js";import"./u-icon.d4bf195f.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.4b2cb429.js";const b={sdkConfigs:{maps:{qqmap:{key:"6ZDBZ-CLSLX-66747-7MVM4-HLK47-XMBXU"}}},router:{mode:"history",base:"/wap/"}},g=e({__name:"develop",setup(e){const g=a({siteId:"",baseUrl:`${location.origin}/api/`,imgUrl:""}),h=()=>{if(0==g.siteId.length)return void d({title:n("siteIdPlaceholder"),icon:"none"});if(!/^[0-9]+$/.test(g.siteId))return void d({title:n("pleaseEnterNumber"),icon:"none"});uni.setStorageSync("wap_site_id",g.siteId);let e=uni.getStorageSync("develop_before_path")||"/app/pages/index/index";"/app/pages/index/develop"==e&&(e="/app/pages/index/index"),e=e.replace("/",""),uni.removeStorageSync("develop_before_path"),location.href=`${location.origin}${b.router.base}${e}`};return(e,a)=>{const d=u,b=c,v=m(x("u-input"),f),I=m(x("u-button"),_);return t(),l(d,{class:"mt-[80rpx] px-[60rpx]"},{default:s((()=>[o(d,{class:"font-bold text-xl mb-[80rpx]"},{default:s((()=>[r(i(p(n)("developTitle")),1)])),_:1}),o(d,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(b,{class:"mb-[10rpx]"},{default:s((()=>[r(i(p(n)("baseUrl")),1)])),_:1}),o(b,{class:"text-sm"},{default:s((()=>[r(i(g.baseUrl),1)])),_:1})])),_:1}),o(d,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(b,{class:"mb-[10rpx]"},{default:s((()=>[r(i(p(n)("imgUrl")),1)])),_:1}),o(b,{class:"text-sm"},{default:s((()=>[r(i(g.imgUrl),1)])),_:1})])),_:1}),o(d,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(b,{class:"mb-[20rpx]"},{default:s((()=>[r(i(p(n)("siteId")),1)])),_:1}),o(v,{modelValue:g.siteId,"onUpdate:modelValue":a[0]||(a[0]=e=>g.siteId=e),clearable:"",placeholder:p(n)("siteIdPlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),o(I,{type:"primary",onClick:h,class:"mt-[80rpx]"},{default:s((()=>[r(i(p(n)("confirm")),1)])),_:1})])),_:1})}}});export{g as default};
|
|
|