Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
84ccac69
提交
84ccac69
authored
12月 30, 2022
作者:
劳广强
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 处理积分显示问题
上级
6361a178
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
12 行增加
和
7 行删除
+12
-7
main.js
main.js
+3
-0
index.vue
pages/index/index.vue
+1
-1
index.vue
pages/mine-integral-bonus/index.vue
+2
-2
index.vue
pages/mine-integral-withdrawal/index.vue
+1
-1
index.vue
pages/mine-integral/index.vue
+2
-2
index.vue
pages/mine/index.vue
+1
-1
util.js
utils/util.js
+2
-0
没有找到文件。
main.js
浏览文件 @
84ccac69
...
@@ -3,6 +3,7 @@ import App from './App';
...
@@ -3,6 +3,7 @@ import App from './App';
// #ifndef VUE3
// #ifndef VUE3
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
uView
from
'@/uni_modules/uview-ui'
;
import
uView
from
'@/uni_modules/uview-ui'
;
import
{
getPrice
}
from
'@/utils/util'
;
Vue
.
use
(
uView
);
Vue
.
use
(
uView
);
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
...
@@ -10,6 +11,8 @@ Array.prototype.at = function (index) {
...
@@ -10,6 +11,8 @@ Array.prototype.at = function (index) {
return
[...
this
].
splice
(
index
,
1
).
pop
();
return
[...
this
].
splice
(
index
,
1
).
pop
();
};
};
Vue
.
prototype
.
getPrice
=
getPrice
;
App
.
mpType
=
'app'
;
App
.
mpType
=
'app'
;
const
app
=
new
Vue
({
const
app
=
new
Vue
({
...
App
,
...
App
,
...
...
pages/index/index.vue
浏览文件 @
84ccac69
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<view
class=
"notice-content"
>
{{
item
.
content
}}
</view>
<view
class=
"notice-content"
>
{{
item
.
content
}}
</view>
<view
class=
"notice-right"
>
<view
class=
"notice-right"
>
<image
mode=
"aspectFill"
class=
"notice-right-icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<image
mode=
"aspectFill"
class=
"notice-right-icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<view
class=
"notice-right-number"
>
{{
item
.
get_points
}}
</view>
<view
class=
"notice-right-number"
>
{{
getPrice
(
item
.
get_points
)
}}
</view>
</view>
</view>
</view>
</view>
</swiper-item>
</swiper-item>
...
...
pages/mine-integral-bonus/index.vue
浏览文件 @
84ccac69
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<image
mode=
"aspectFill"
class=
"icon"
src=
"/static/icon/ic_jifen1@2x.png"
/>
<image
mode=
"aspectFill"
class=
"icon"
src=
"/static/icon/ic_jifen1@2x.png"
/>
<view
class=
"number"
v-if=
"item.status === 1"
>
+
{{
item
.
original_trans_amount
}}
</view>
<view
class=
"number"
v-if=
"item.status === 1"
>
+
{{
getPrice
(
item
.
original_trans_amount
)
}}
</view>
<view
class=
"number"
v-if=
"item.status === 2"
>
-
{{
item
.
original_trans_amount
}}
</view>
<view
class=
"number"
v-if=
"item.status === 2"
>
-
{{
getPrice
(
item
.
original_trans_amount
)
}}
</view>
</view>
</view>
</view>
</view>
<LoadMore
:status=
"list.status"
/>
<LoadMore
:status=
"list.status"
/>
...
...
pages/mine-integral-withdrawal/index.vue
浏览文件 @
84ccac69
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<view
class=
"date"
>
{{
item
.
created
}}
</view>
<view
class=
"date"
>
{{
item
.
created
}}
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<view
class=
"number"
>
¥
{{
item
.
amount
}}
.00
</view>
<view
class=
"number"
>
¥
{{
getPrice
(
item
.
amount
)
}}
.00
</view>
</view>
</view>
</view>
</view>
<LoadMore
:status=
"list.status"
/>
<LoadMore
:status=
"list.status"
/>
...
...
pages/mine-integral/index.vue
浏览文件 @
84ccac69
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
style=
"height: 56rpx"
/>
<view
style=
"height: 56rpx"
/>
<image
class=
"integral-icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<image
class=
"integral-icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<view
style=
"height: 36rpx"
/>
<view
style=
"height: 36rpx"
/>
<view
class=
"integral-text"
>
{{
userInfo
.
integral
}}
</view>
<view
class=
"integral-text"
>
{{
getPrice
(
userInfo
.
integral
)
}}
</view>
<view
style=
"height: 54rpx"
/>
<view
style=
"height: 54rpx"
/>
<u-button
class=
"integral-submit"
@
click=
"onSubmitClick"
>
提现
</u-button>
<u-button
class=
"integral-submit"
@
click=
"onSubmitClick"
>
提现
</u-button>
<view
style=
"height: 82rpx"
/>
<view
style=
"height: 82rpx"
/>
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
},
},
async
fetchSubmit
()
{
async
fetchSubmit
()
{
await
uni
.
$u
.
http
.
post
(
'/api/withdrawal'
,
{
amount
:
this
.
submitValue
});
await
uni
.
$u
.
http
.
post
(
'/api/withdrawal'
,
{
amount
:
Number
(
this
.
submitValue
??
0
)
*
100
});
},
},
async
fetchUserInfo
()
{
async
fetchUserInfo
()
{
...
...
pages/mine/index.vue
浏览文件 @
84ccac69
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view
class=
"integral_msg"
@
click=
"myIntegral"
>
<view
class=
"integral_msg"
@
click=
"myIntegral"
>
<view
class=
"msg_left"
>
<view
class=
"msg_left"
>
<image
mode=
"aspectFill"
class=
"integral_icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<image
mode=
"aspectFill"
class=
"integral_icon"
src=
"/static/icon/ic_jifen@2x.png"
/>
<view
class=
"number"
>
{{
userDetail
.
integral
}}
</view>
<view
class=
"number"
>
{{
getPrice
(
userDetail
.
integral
)
}}
</view>
</view>
</view>
<view
class=
"msg_right"
>
<view
class=
"msg_right"
>
<view
class=
"withdrawal"
>
提现
</view>
<view
class=
"withdrawal"
>
提现
</view>
...
...
utils/util.js
浏览文件 @
84ccac69
...
@@ -47,4 +47,6 @@ export const myRequest = (options) => {
...
@@ -47,4 +47,6 @@ export const myRequest = (options) => {
});
});
};
};
export
const
getPrice
=
(
value
=
0
)
=>
Number
(
value
??
0
)
/
100
;
export
default
myRequest
;
export
default
myRequest
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论