Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
3f723f79
Commit
3f723f79
authored
Aug 03, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决电脑端不能购买问题,待发生产
parent
43e21fbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
30 deletions
+34
-30
common/common.ts
+17
-5
pages.json
+15
-14
pages/orderConfirm/orderConfirm.vue
+2
-11
No files found.
common/common.ts
View file @
3f723f79
...
@@ -199,16 +199,28 @@ export default {
...
@@ -199,16 +199,28 @@ export default {
* 检测设备信息
* 检测设备信息
* deviceType:PC为1,移动端为2,微信为3
* deviceType:PC为1,移动端为2,微信为3
*/
*/
// checkDeviceType() {
// let deviceType = null;
// if (/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
// if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) {
// deviceType = '3';
// } else {
// deviceType = '2';
// }
// } else {
// deviceType = '1';
// }
// return deviceType;
// },
checkDeviceType
()
{
checkDeviceType
()
{
let
deviceType
=
null
;
let
deviceType
=
null
;
if
(
/Android|webOS|iPhone|iPod|iPad|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
// 优先判断是否在微信环境(包含手机微信、电脑微信的 WebView)
if
(
navigator
.
userAgent
.
toLowerCase
().
indexOf
(
'micromessenger'
)
!==
-
1
)
{
if
(
navigator
.
userAgent
.
toLowerCase
().
indexOf
(
'micromessenger'
)
!==
-
1
)
{
deviceType
=
'3'
;
deviceType
=
'3'
;
}
else
{
}
else
if
(
/Android|webOS|iPhone|iPod|iPad|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
deviceType
=
'2'
;
deviceType
=
'2'
;
}
}
else
{
}
else
{
deviceType
=
'1'
;
deviceType
=
'1'
;
}
}
return
deviceType
;
return
deviceType
;
},
},
...
...
pages.json
View file @
3f723f79
...
@@ -129,14 +129,14 @@
...
@@ -129,14 +129,14 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
//
{
"path"
:
"pages/myLearning/myLearning"
,
//
"path"
:
"pages/myLearning/myLearning"
,
"style"
:
{
//
"style"
:
{
"navigationBarTitleText"
:
"我的学习"
,
//
"navigationBarTitleText"
:
"我的学习"
,
"enablePullDownRefresh"
:
false
//
"enablePullDownRefresh"
:
false
}
//
}
},
//
},
{
{
"path"
:
"pages/personalCenter/myTeam"
,
"path"
:
"pages/personalCenter/myTeam"
,
"style"
:
{
"style"
:
{
...
@@ -336,13 +336,14 @@
...
@@ -336,13 +336,14 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
},
"path"
:
"pages/learningStatistics/learningStatistics"
,
//
{
"style"
:
{
//
"path"
:
"pages/learningStatistics/learningStatistics"
,
"navigationBarTitleText"
:
"学习统计"
,
//
"style"
:
{
"enablePullDownRefresh"
:
false
//
"navigationBarTitleText"
:
"学习统计"
,
}
//
"enablePullDownRefresh"
:
false
},
//
}
//
},
{
{
"path"
:
"pages/personalCenter/system/accontsetting"
,
"path"
:
"pages/personalCenter/system/accontsetting"
,
"style"
:
{
"style"
:
{
...
...
pages/orderConfirm/orderConfirm.vue
View file @
3f723f79
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
</view>
</view>
</view>
</view>
<!-- 支付方式 -->
<!-- 支付方式 -->
<view
class=
"paymentMethodContent"
>
<view
class=
"paymentMethodContent"
>
<h4>
选择支付方式
</h4>
<h4>
选择支付方式
</h4>
<view
@
click=
"selectPaymentMethod(2)"
>
<view
@
click=
"selectPaymentMethod(2)"
>
...
@@ -61,17 +62,7 @@
...
@@ -61,17 +62,7 @@
<i
class=
"iconfont icon-duihao txtFont"
></i>
<i
class=
"iconfont icon-duihao txtFont"
></i>
</view>
</view>
</view>
</view>
<!-- #ifdef APP-PLUS -->
<!-- <view class="paymentItem" @click="selectPaymentMethod(1)">
<view>
<i class="iconfont icon-py_weixinzhifu"></i>
<text>微信支付</text>
</view>
<view class="selectRadio" :class="{'actived':paymentMethod===1}">
<i class="iconfont icon-duihao"></i>
</view>
</view> -->
<!-- #endif -->
</view>
</view>
</view>
</view>
...
...
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