Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
E
etaoshop-dz
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
etaoshop-dz
提交
85fb0ce3
提交
85fb0ce3
编写于
5月 08, 2024
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
.
上级
9c673c2f
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
28 行删除
+18
-28
workspace.xml
.idea/workspace.xml
+15
-16
app.js
app.js
+1
-1
index.js
pages/index.js
+2
-11
未找到文件。
.idea/workspace.xml
浏览文件 @
85fb0ce3
...
...
@@ -2,7 +2,6 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"8836328f-bafb-4666-8053-185078535f28"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/pages/index.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/pages/index.js"
afterDir=
"false"
/>
</list>
...
...
@@ -51,11 +50,11 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/pages/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
490
"
>
<caret
line=
"3
0"
column=
"36"
lean-forward=
"true"
selection-start-line=
"30"
selection-start-column=
"36"
selection-end-line=
"30"
selection-end-column=
"36
"
/>
<state
relative-caret-position=
"
1023
"
>
<caret
line=
"3
1"
column=
"13"
selection-start-line=
"31"
selection-start-column=
"13"
selection-end-line=
"31"
selection-end-column=
"13
"
/>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
</folding>
...
...
@@ -63,11 +62,11 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"app.js"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"app.js"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/app.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"594"
>
<caret
line=
"39"
column=
"4
3"
selection-start-line=
"39"
selection-start-column=
"43"
selection-end-line=
"39"
selection-end-column=
"43
"
/>
<caret
line=
"39"
column=
"4
4"
selection-start-line=
"39"
selection-start-column=
"44"
selection-end-line=
"39"
selection-end-column=
"44
"
/>
</state>
</provider>
</entry>
...
...
@@ -203,7 +202,7 @@
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"1
4761
000"
/>
<option
name=
"totallyTimeSpent"
value=
"1
5766
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"1912"
y=
"-8"
width=
"1936"
height=
"1056"
extended-state=
"6"
/>
...
...
@@ -400,22 +399,22 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"594"
>
<caret
line=
"39"
column=
"43"
selection-start-line=
"39"
selection-start-column=
"43"
selection-end-line=
"39"
selection-end-column=
"43"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/pages/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
490
"
>
<caret
line=
"3
0"
column=
"36"
lean-forward=
"true"
selection-start-line=
"30"
selection-start-column=
"36"
selection-end-line=
"30"
selection-end-column=
"36
"
/>
<state
relative-caret-position=
"
1023
"
>
<caret
line=
"3
1"
column=
"13"
selection-start-line=
"31"
selection-start-column=
"13"
selection-end-line=
"31"
selection-end-column=
"13
"
/>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"594"
>
<caret
line=
"39"
column=
"44"
selection-start-line=
"39"
selection-start-column=
"44"
selection-end-line=
"39"
selection-end-column=
"44"
/>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
app.js
浏览文件 @
85fb0ce3
...
...
@@ -37,7 +37,7 @@ App({
//正式:https://wxapplets.edstao.com
globalData
:
{
userInfo
:
null
,
defurl
:
'https://
etaoh5dz-pre
.edstao.com'
,
defurl
:
'https://
wxapplets-jyx
.edstao.com'
,
userInfo
:
''
}
})
\ No newline at end of file
pages/index.js
浏览文件 @
85fb0ce3
...
...
@@ -27,18 +27,9 @@ Page({
userInfo
=
name
;
this
.
setData
({
url
:
this
.
data
.
defurl
+
'/weixin/QRCode?t='
+
new
Date
().
getTime
()
+
'&name='
+
name
+
'&code='
+
code
,
userInfo
:
name
});
if
(
!
name
)
{
this
.
setData
({
url
:
"https://etaoh5dz-pre.edstao.com"
})
//
this.getwxsession()
//
this.setData({url:"https://etaoh5dz-pre.edstao.com"})
this
.
getwxsession
()
}
if
(
options
.
brandid
){
let
newUrl
=
'/brand/shop'
;
let
path
=
encodeURIComponent
(
newUrl
+
'?brandid='
+
options
.
brandid
);
const
weburl2
=
encodeURIComponent
(
this
.
data
.
defurl
+
'/weixin/QRCode&&from=wx&url='
+
path
+
'&name='
+
name
);
wx
.
redirectTo
({
url
:
'/pages/index?weburl='
+
weburl2
})
}
}
if
(
userInfo
){
app
.
globalData
.
userInfo
=
userInfo
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录