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
31a5a3de
Commit
31a5a3de
authored
Jan 30, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
1111
parents
a608cd0e
111c5e82
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
349 additions
and
315 deletions
+349
-315
index.vue
components/auth/index.vue
+327
-290
goods.vue
pages/goods/goods.vue
+20
-23
goods2.vue
pages/goods/goods2.vue
+1
-1
api.js
plugin/api.js
+1
-1
No files found.
components/auth/index.vue
View file @
31a5a3de
This diff is collapsed.
Click to expand it.
pages/goods/goods.vue
View file @
31a5a3de
...
...
@@ -170,17 +170,17 @@
<!-- 价格 -->
<view
:style=
"{ color: mc }"
class=
"the-price"
>
<text
class=
"small22"
>
¥
</text>
<text
class=
"numfont22"
v-if=
"g.form_id!=1&&!g.edu_data.BookPrice"
>
<text
class=
"numfont22"
v-if=
"g.form_id!=1&&
g.edu_data&&
!g.edu_data.BookPrice"
>
{{ g.price_min == g.price_max ? g.price_min : g.price_min + '-' + g.price_max }}
</text>
<text
class=
"numfont22"
v-if=
"g.form_id!=1&&g.edu_data.BookPrice"
>
<text
class=
"numfont22"
v-if=
"g.form_id!=1&&g.edu_data
&&g.edu_data
.BookPrice"
>
{{ g.price_min == g.price_max ? parseFloat(g.price_min)+parseFloat(g.edu_data.BookPrice) : g.price_min + '-' + g.price_max }}
</text>
<text
class=
"origin"
v-if=
"g.form_id!=1&&!g.edu_data.BookPrice&& g.jjxkt_original_price && g.jjxkt_original_price > 0 && g.jjxkt_original_price>g.price"
>
¥{{ g.jjxkt_original_price.toFixed(2)}}
<text
class=
"origin"
v-if=
"g.form_id!=1&&
g.edu_data&&
!g.edu_data.BookPrice&& g.jjxkt_original_price && g.jjxkt_original_price > 0 && g.jjxkt_original_price>g.price"
>
¥{{ g.jjxkt_original_price.toFixed(2)}}
</text>
<text
class=
"origin"
v-if=
"g.form_id!=1&&
g.edu_data.BookPrice&& g.jjxkt_original_price && g.jjxkt_original_price > 0 && g.jjxkt_original_price>g.price"
>
¥{{parseFloat(g.jjxkt_original_price)+parseFloat(g.edu_data.BookPrice)}}
<text
class=
"origin"
v-if=
"g.form_id!=1&&
g.edu_data&&
g.edu_data.BookPrice&& g.jjxkt_original_price && g.jjxkt_original_price > 0 && g.jjxkt_original_price>g.price"
>
¥{{parseFloat(g.jjxkt_original_price)+parseFloat(g.edu_data.BookPrice)}}
</text>
<!-- <text class="numfont" v-if="g.form_id==1">
{{ g.price_min }}
...
...
@@ -349,7 +349,7 @@
<view
class=
"content"
>
{{ g.goods_marketing.limit }}
</view>
</view>
<!-- 优惠 -->
<view
class=
"goods-Discount"
v-if=
"g.goodsPreferentialList&&
g.goodsPreferentialList.length>0"
>
<view
class=
"goods-Discount"
v-if=
"g.goodsPreferentialList&&g.goodsPreferentialList.length>0"
>
<view
class=
"discount-left"
>
优惠
</view>
...
...
@@ -795,22 +795,19 @@
if
(
res
.
resultCode
==
1
)
{
this
.
g
=
res
.
data
.
goods
;
// 报名限制数组
if
(
res
.
data
.
goods
&&
res
.
data
.
goods
.
edu_data
&&
res
.
data
.
goods
.
edu_data
.
ClassCondition
)
{
res
.
data
.
goods
.
edu_data
.
ClassCondition
.
forEach
(
item2
=>
{
if
(
item2
.
ItemType
==
1
)
{
this
.
ItemType1
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
2
)
{
this
.
ItemType2
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
3
)
{
this
.
ItemType3
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
4
)
{
this
.
ItemType4
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
5
)
{
this
.
ItemType5
.
push
(
item2
)
}
})
}
res
.
data
.
goods
.
edu_data
&&
res
.
data
.
goods
.
edu_data
.
ClassCondition
&&
res
.
data
.
goods
.
edu_data
.
ClassCondition
.
forEach
(
item2
=>
{
if
(
item2
.
ItemType
==
1
)
{
this
.
ItemType1
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
2
)
{
this
.
ItemType2
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
3
)
{
this
.
ItemType3
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
4
)
{
this
.
ItemType4
.
push
(
item2
)
}
else
if
(
item2
.
ItemType
==
5
)
{
this
.
ItemType5
.
push
(
item2
)
}
})
// 报名限制数组结束
this
.
g
.
totalStock
=
0
;
this
.
g
.
attr
.
forEach
((
x
)
=>
{
...
...
pages/goods/goods2.vue
View file @
31a5a3de
...
...
@@ -253,7 +253,7 @@
<view
class=
"content"
>
{{ g.goods_marketing.limit }}
</view>
</view>
<!-- 优惠 -->
<view
class=
"goods-Discount"
v-if=
"g.goodsPreferentialList.length>0"
>
<view
class=
"goods-Discount"
v-if=
"g.goodsPreferentialList
&&g.goodsPreferentialList
.length>0"
>
<view
class=
"discount-left"
>
优惠
</view>
...
...
plugin/api.js
View file @
31a5a3de
...
...
@@ -212,7 +212,7 @@ export default {
// 获取小程序APPID
Vue
.
prototype
.
GetMiniAppId
=
function
()
{
let
appObj
=
{};
let
appType
=
13
;
let
appType
=
4
;
switch
(
appType
)
{
case
1
:
//赞羊
appObj
=
{
...
...
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