Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
86f7d1e0
Commit
86f7d1e0
authored
Nov 05, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
228fcbf1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
510 additions
and
140 deletions
+510
-140
pages.json
pages.json
+2
-0
index.vue
pages/index/index.vue
+60
-131
share.vue
pages/reserve/components/share/share.vue
+1
-1
draw.vue
pages/reserve/draw.vue
+438
-0
goodsDetails.vue
pages/reserve/goodsDetails.vue
+6
-4
storeDetails.vue
pages/reserve/storeDetails.vue
+3
-4
No files found.
pages.json
View file @
86f7d1e0
...
...
@@ -451,6 +451,8 @@
"path"
:
"share_qrcode"
},{
"path"
:
"offline-success"
},{
"path"
:
"draw"
}
]
},
...
...
pages/index/index.vue
View file @
86f7d1e0
...
...
@@ -168,10 +168,6 @@
},
onLoad
(
options
)
{
let
that
=
this
;
options
=
{
storeId
:
8
,
id
:
6
,
JumpType
:
8
,
}
uni
.
getSystemInfo
({
success
(
res
)
{
that
.
titleStyle
=
{
...
...
@@ -246,7 +242,7 @@
this
.
getjump
(
options
.
scene
);
}
if
(
options
&&
options
.
storeId
)
{
this
.
fxstoreId
=
options
.
storeId
this
.
fxstoreId
=
options
.
storeId
;
}
// #ifdef MP-WEIXIN
wx
.
showShareMenu
({
...
...
@@ -307,48 +303,8 @@
};
that
.
updateuserinfo
(
msg
);
that
.
getPageType
()
that
.
sharejump
();
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
)
{
//商品详情
uni
.
navigateTo
({
url
:
"/pages/goods/goods?GoodsId="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
2
)
{
//直播列表
uni
.
navigateTo
({
url
:
"/pages/live/index"
});
}
else
if
(
that
.
JumpType
==
3
)
{
//司导详情
that
.
goguidecar
()
}
else
if
(
that
.
JumpType
==
4
)
{
//代付页面
uni
.
navigateTo
({
url
:
"/pages/order/payment-order?GoodsId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
5
)
{
//课程详情
uni
.
navigateTo
({
url
:
"/pages/school/courseInfo?GoodsId="
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
6
)
{
//课程代付页面
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
that
.
GoodsId
+
'&storeId='
+
that
.
fxstoreId
,
})
}
},
500
);
}
else
{
//静默登录操作
uni
.
login
({
...
...
@@ -561,49 +517,9 @@
that
.
init
()
}
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
)
{
//商品详情
uni
.
navigateTo
({
url
:
"/pages/goods/goods?GoodsId="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
2
)
{
//直播列表
uni
.
navigateTo
({
url
:
"/pages/live/index"
});
}
else
if
(
that
.
JumpType
==
3
)
{
//司导详情
that
.
goguidecar
()
}
else
if
(
that
.
JumpType
==
4
)
{
//代付页面
uni
.
navigateTo
({
url
:
"/pages/order/payment-order?GoodsId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
5
)
{
//课程详情
uni
.
navigateTo
({
url
:
"/pages/school/courseInfo?GoodsId="
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
6
)
{
//课程代付页面
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
that
.
GoodsId
+
'&storeId='
+
that
.
fxstoreId
,
})
}
},
500
);
that
.
sharejump
()
}
else
{
if
(
!
that
.
u
)
{
that
.
u
=
{
...
...
@@ -616,6 +532,60 @@
}
);
},
sharejump
(){
//分享的总跳转
let
that
=
this
setTimeout
(()
=>
{
if
(
that
.
JumpType
==
1
)
{
//商品详情
uni
.
navigateTo
({
url
:
"/pages/goods/goods?GoodsId="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
2
)
{
//直播列表
uni
.
navigateTo
({
url
:
"/pages/live/index"
});
}
else
if
(
that
.
JumpType
==
3
)
{
//司导详情
that
.
goguidecar
()
}
else
if
(
that
.
JumpType
==
4
)
{
//代付页面
uni
.
navigateTo
({
url
:
"/pages/order/payment-order?GoodsId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
5
)
{
//课程详情
uni
.
navigateTo
({
url
:
"/pages/school/courseInfo?GoodsId="
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
6
)
{
//课程代付页面
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
that
.
GoodsId
+
'&storeId='
+
that
.
fxstoreId
,
})
}
else
if
(
that
.
JumpType
==
9
)
{
//线下服务商品
try
{
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
that
.
fxstoreId
});
}
catch
(
e
)
{
console
.
log
(
e
)
}
uni
.
navigateTo
({
url
:
"/pages/reserve/goodsDetails?GoodsId="
+
that
.
GoodsId
});
}
},
500
);
},
updateuserinfo
(
msg
)
{
this
.
request2
({
url
:
"/api/MemberUser/SetMemberPhoto"
,
...
...
@@ -979,48 +949,7 @@
this
.
init
()
}
// 如果登录的情况下直接跳转商品详情或者直播列表
setTimeout
(()
=>
{
if
(
this
.
JumpType
==
1
)
{
//商品详情
uni
.
navigateTo
({
url
:
"/pages/goods/goods?GoodsId="
+
this
.
GoodsId
});
}
else
if
(
this
.
JumpType
==
2
)
{
//直播列表
uni
.
navigateTo
({
url
:
"/pages/live/index"
});
}
else
if
(
this
.
JumpType
==
3
)
{
//司导详情
this
.
goguidecar
()
}
else
if
(
this
.
JumpType
==
4
)
{
//代付页面
uni
.
navigateTo
({
url
:
"/pages/order/payment-order?GoodsId="
+
this
.
OrderId
});
}
else
if
(
this
.
JumpType
==
5
)
{
//课程详情
uni
.
navigateTo
({
url
:
"/pages/school/courseInfo?GoodsId="
+
this
.
GoodsId
});
}
else
if
(
this
.
JumpType
==
6
)
{
//课程代付页面
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
this
.
OrderId
});
}
else
if
(
this
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
this
.
GoodsId
,
});
}
else
if
(
this
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
this
.
GoodsId
+
'&storeId='
+
this
.
fxstoreId
,
})
}
},
500
);
this
.
sharejump
();
},
getPageType
()
{
this
.
request2
({
...
...
pages/reserve/components/share/share.vue
View file @
86f7d1e0
...
...
@@ -113,7 +113,7 @@ export default {
genernalHandler
()
{
//this.goodId
uni
.
navigateTo
({
url
:
"/pages/
goods
/draw?id="
+
this
.
goodId
,
url
:
"/pages/
reserve
/draw?id="
+
this
.
goodId
,
});
},
sendQuanHandler
()
{
...
...
pages/reserve/draw.vue
0 → 100644
View file @
86f7d1e0
This diff is collapsed.
Click to expand it.
pages/reserve/goodsDetails.vue
View file @
86f7d1e0
...
...
@@ -374,8 +374,7 @@ export default {
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
name
,
// path: "/pages/goods/goods?id=" + this.id + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=1'
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=9'
,
imageUrl
:
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
...
...
@@ -571,11 +570,14 @@ export default {
getReceive() {
//分享进入调取领券接口
// 1-分享,2-购买并付款
let storeId = uni.getStorageSync("storeId") && uni.getStorageSync("storeId").storeId ? uni.getStorageSync("storeId")
.storeId : 0;
this.request2(
{
url: "/api/Applet
User/Share
Coupon",
url: "/api/Applet
Stores/ShareEducation
Coupon",
data: {
TriggerType: 1,
StoreId:storeId
},
},
(res) => {
...
...
@@ -590,7 +592,7 @@ export default {
goLook() {
this.showCoupons = true;
uni.navigateTo({
url: "/pages/
coupon/index/index
",
url: "/pages/
reserve/personal/cardList
",
});
},
closeBtn() {
...
...
pages/reserve/storeDetails.vue
View file @
86f7d1e0
...
...
@@ -892,10 +892,9 @@
},
goLook
()
{
this
.
showCoupons
=
true
;
// TODO套餐卡页面还没建
// uni.navigateTo({
// url: "/pages/coupon/index/index",
// });
uni
.
navigateTo
({
url
:
"/pages/reserve/personal/cardList"
,
});
},
closeBtn
()
{
this
.
showCoupons
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment