提交 f5d95533 authored 作者: lhh's avatar lhh

修改游客登录

上级 0d2250b8
No preview for this file type
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
</script> </script>
<style lang='scss'> <style lang='scss'>
.uni-page-head{
max-width: 500px !important;
}
html,body{
position: relative;
max-width: 500px;
margin: 0 auto;
}
/* /*
全局公共样式和字体图标 全局公共样式和字体图标
*/ */
......
...@@ -4,10 +4,17 @@ function jsonToQueryString(json) { ...@@ -4,10 +4,17 @@ function jsonToQueryString(json) {
.join('&'); .join('&');
} }
function getUrlParam(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)') //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg) //匹配目标参数
if (r != null) return unescape(r[2])
return null //返回参数值
}
export function eventSite(params) { export function eventSite(params) {
var p = jsonToQueryString(Object.assign({ var p = jsonToQueryString(Object.assign({
experiment_id: '7028276368903241728', experiment_id: getUrlParam('experiment_id'),
experiment_connection_id: '7201846824305426432', experiment_connection_id: getUrlParam('id'),
}, params)) }, params))
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', `https://saas-dml-pro.ezijing.com/api/lab/v1/experiment/member/event-create-by-shop?${p}`, true); xhr.open('GET', `https://saas-dml-pro.ezijing.com/api/lab/v1/experiment/member/event-create-by-shop?${p}`, true);
......
{ {
"name" : "mall-app-web", "name" : "mall-app-web",
"appid" : "", "appid" : "__UNI__990003A",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
"devServer" : { "devServer" : {
"https" : true, "https" : true,
"port" : 8060, "port" : 8060,
"host" : "dev.ezijing.com" "host" : "dev.ezijing.com"
}, },
// "domain" : "dev.ezijing.com", // "domain" : "dev.ezijing.com",
"router" : { "router" : {
......
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
</view> </view>
</view> </view>
<button class="confirm-btn" @click="toLogin" :disabled="logining">登录</button> <button class="confirm-btn" @click="toLogin" :disabled="logining">登录</button>
<button class="confirm-btn2" @click="toRegist" >获取体验账号</button> <!-- <button class="confirm-btn2" @click="toRegist" >获取体验账号</button> -->
<view class="forget-section" @click="toRegist"> <!-- <view class="forget-section" @click="toRegist">
忘记密码? 忘记密码?
</view> </view> -->
</view> </view>
<view class="register-section"> <!-- <view class="register-section">
还没有账号? 还没有账号?
<text @click="toRegist">马上注册</text> <text @click="toRegist">马上注册</text>
</view> </view> -->
</view> </view>
</template> </template>
......
...@@ -27,5 +27,19 @@ $uni-color-success: #4cd964; ...@@ -27,5 +27,19 @@ $uni-color-success: #4cd964;
$uni-color-warning: #f0ad4e; $uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d; $uni-color-error: #dd524d;
.uni-page-head{
max-width: 500px !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
.uni-tabbar{
max-width: 500px !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
.container{
max-width: 500px !important;
}
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>mall-app-web</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.97e92270.js></script><script src=/static/js/index.341fe32a.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论