Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
813a6ef6
Commit
813a6ef6
authored
Aug 21, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
f143e96b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
834 additions
and
649 deletions
+834
-649
request.js
api/request.js
+2
-2
shengrili.vue
components/quanyi/shengrili.vue
+34
-10
Integral.vue
views/Integral.vue
+798
-637
No files found.
api/request.js
View file @
813a6ef6
...
@@ -16,10 +16,10 @@ const {
...
@@ -16,10 +16,10 @@ const {
// request.js
// request.js
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.230.108:7777/pmall";
// const baseUrl = "http://172.16.230.108:7777/pmall";
const
baseUrl
=
"https://momclub-uat.feihe.com/pmall"
;
//测试环境
//
const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
//
const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
const
baseUrl
=
"https://feihe.m.duibatest.com.cn/pmall"
const
request
=
(
options
=
{})
=>
{
const
request
=
(
options
=
{})
=>
{
// 在这里可以对请求头进行一些设置
// 在这里可以对请求头进行一些设置
...
...
components/quanyi/shengrili.vue
View file @
813a6ef6
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<!-- 底部按钮 -->
<!-- 底部按钮 -->
<view
<view
class=
"bottom-button"
class=
"bottom-button"
v-if=
"!(status1 === 4000 && !props.isshowLock)"
v-if=
"
(!hasBaby && islogin) ? true :
!(status1 === 4000 && !props.isshowLock)"
:style=
"
{
:style=
"
{
background: `url(${$baseUrl}integral/1021/shengriliBtnBg${props.index}.png) no-repeat center/contain`
background: `url(${$baseUrl}integral/1021/shengriliBtnBg${props.index}.png) no-repeat center/contain`
}"
}"
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<image
<image
class=
"bottom-button"
class=
"bottom-button"
v-if=
"status1 === 4000 && !props.isshowLock"
v-if=
"
(!hasBaby && islogin) ? false :
status1 === 4000 && !props.isshowLock"
:src=
"`$
{$baseUrl}integral/1021/daikaiqiDisBtn${props.index}.png`"
:src=
"`$
{$baseUrl}integral/1021/daikaiqiDisBtn${props.index}.png`"
mode="aspectFit"
mode="aspectFit"
@click="handleUpgrade_daikaiqi"
@click="handleUpgrade_daikaiqi"
...
@@ -63,6 +63,8 @@ import { defineProps, defineEmits, onMounted, ref } from 'vue'
...
@@ -63,6 +63,8 @@ import { defineProps, defineEmits, onMounted, ref } from 'vue'
import
{
showLoading
,
hideLoading
}
from
'../../utils'
import
{
showLoading
,
hideLoading
}
from
'../../utils'
import
{
fetchBirthdayGiftJSON
}
from
'../../api/integral'
import
{
fetchBirthdayGiftJSON
}
from
'../../api/integral'
import
{
useUserStore
}
from
"../../stores/user"
;
const
isShowShengjiBtn
=
()
=>
{
const
isShowShengjiBtn
=
()
=>
{
let
show
=
false
;
let
show
=
false
;
if
(
props
.
isshowLock
){
if
(
props
.
isshowLock
){
...
@@ -100,6 +102,9 @@ const props = defineProps({
...
@@ -100,6 +102,9 @@ const props = defineProps({
const
emit
=
defineEmits
([
'points-click'
,
'coupon-click'
,
'upgrade'
])
const
emit
=
defineEmits
([
'points-click'
,
'coupon-click'
,
'upgrade'
])
const
getBtnName
=
()
=>
{
const
getBtnName
=
()
=>
{
if
(
!
hasBaby
.
value
){
return
'去添加'
;
}
const
btnName
=
''
;
const
btnName
=
''
;
switch
(
status1
.
value
){
switch
(
status1
.
value
){
case
4000
:
case
4000
:
...
@@ -170,15 +175,34 @@ const getColor = () => {
...
@@ -170,15 +175,34 @@ const getColor = () => {
}
}
const
status1
=
ref
(
0
);
const
status1
=
ref
(
0
);
const
hasBaby
=
ref
(
false
);
const
islogin
=
ref
(
true
);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
showLoading
();
const
data
=
await
fetchBirthdayGiftJSON
();
const
userStore
=
useUserStore
();
if
(
data
.
success
){
status1
.
value
=
data
.
data
.
status
;
const
memberInfo
=
userStore
.
memberInfo
;
// status1.value = 3000;
if
(
memberInfo
.
memberId
==
"not_login"
){
}
islogin
.
value
=
false
;
console
.
log
(
'data'
,
data
);
}
else
{
hideLoading
();
islogin
.
value
=
true
}
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
&&
userStore
.
babyInfo
?.
allBabyBaseInfo
.
length
>
0
){
hasBaby
.
value
=
true
;
}
else
{
hasBaby
.
value
=
false
;
return
;
}
showLoading
();
const
data
=
await
fetchBirthdayGiftJSON
();
if
(
data
.
success
){
status1
.
value
=
data
.
data
.
status
;
// status1.value = 3000;
}
console
.
log
(
'data'
,
data
);
hideLoading
();
})
})
...
...
views/Integral.vue
View file @
813a6ef6
This diff is collapsed.
Click to expand it.
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