Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geruidan
mini_own
Commits
e0cfeda4
Commit
e0cfeda4
authored
May 30, 2023
by
小耗子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
京东比价
parent
1e3b155e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
131 additions
and
9 deletions
+131
-9
env.js
env.js
+3
-2
manifest.json
manifest.json
+2
-2
md.md
md.md
+13
-1
pages.json
pages.json
+10
-4
pages/h5/detail.vue
pages/h5/detail.vue
+103
-0
No files found.
env.js
View file @
e0cfeda4
...
...
@@ -10,5 +10,6 @@ export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量
export
const
MAP_KEY
=
'
426ebc3f1bbaced***89ee6061a98
'
;
//高德地图开发者Web服务key,逆坐标解析
export
const
HAS_LIVE
=
false
//后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export
const
MALL_ID
=
"
101656910000414
"
;
export
const
COMPANY_ID
=
"
0210010
"
;
export
const
MALL_ID
=
"
179480211100680
"
;
export
const
COMPANY_ID
=
"
00000775
"
;
\ No newline at end of file
manifest.json
View file @
e0cfeda4
...
...
@@ -54,12 +54,12 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
94a3f5be1ea552ec
"
,
"appid"
:
"wx
ebbbc2cc63e9d74e
"
,
"setting"
:
{
"urlCheck"
:
true
,
"minified"
:
false
,
"es6"
:
false
,
"postcss"
:
fals
e
"postcss"
:
tru
e
},
"usingComponents"
:
true
,
"permission"
:
{
...
...
md.md
View file @
e0cfeda4
...
...
@@ -51,4 +51,16 @@ APPID:wx94a3f5be1ea552ec
appid:wxa8257c2ee2213e3e
secret:35b4285e5d6f14af7472862dbab3bfbc
```
### 中福云购:正式
```
mallID:194433411100614
companyId:00000753
APPID:wx93aba63d96157302
```
### 小移甄选小程序
```
APPID:wxebbbc2cc63e9d74e
APPsecret:78e7f63bb15c8238c6baef7c393d0050
企业id:00000775
商城id:179480211100680
```
\ No newline at end of file
pages.json
View file @
e0cfeda4
...
...
@@ -4,6 +4,7 @@
"^mpShop-(.*)"
:
"@/components/mpShop-$1/mpShop-$1.vue"
},
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/defalutScreen"
,
"style"
:
...
...
@@ -89,12 +90,17 @@
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/h5/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"京东比价"
,
"enablePullDownRefresh"
:
false
}
}
],
"subPackages"
:[],
"tabBar"
:
{
...
...
pages/h5/detail.vue
0 → 100644
View file @
e0cfeda4
<
template
>
<view
class=
""
>
<view
class=
"jd-msg"
>
<div
class=
"title"
>
免责声明
</div>
<view
class=
"box"
>
您刚才浏览的是
<text
class=
"red"
>
【京东企业购】
</text>
商品专属页面,您点击下方【立即前往】后将会跳转至
<text
class=
"red"
>
【京东官网零售端】
</text>
平台,该商品详情页面如显示的价格与京东官网价格不同,是因该商品可能在【京东官网零售端】
<text
class=
"red"
>
进行预售、秒杀、闪购、折扣等促销活动,此活动优惠均由【京东官网零售端】平台自行承担,本商城【京东企业购】商品价格不承诺与【京东官网零售端】平台活动价保持同步
</text>
,请知悉!
</view>
</view>
<view
class=
"btn"
>
<navigator
target =
"miniProgram"
app-id=
"wx91d27dbf599dff74"
:path=
"path"
open-type=
'navigate'
>
<u-button
type=
"primary"
text=
"立即前往"
color=
"#00c791"
></u-button>
</navigator>
</view>
</view>
<!--
<navigator
target =
"miniProgram"
app-id=
"wx91d27dbf599dff74"
:path=
"path"
open-type=
'navigate'
>
</navigator>
-->
<!--
<navigator
target =
"miniProgram"
app-id=
"wx91d27dbf599dff74"
:path=
"path"
open-type=
'navigate'
>
asdf
</navigator>
-->
</
template
>
<
script
>
export
default
{
data
()
{
return
{
sku
:
""
,
path
:
""
}
},
methods
:
{
btn
()
{
// wx.navigateToMiniProgram({appId: 'wx91d27dbf599dff74',path: '/pages/item/detail/detail?sku=100014526709',envVersion: 'release',success(res) {
// console.log(res);
// }})
// wx.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74',
// path: '/pages/item/detail/detail?sku=${sku}',
// envVersion: 'release',
// success(res) {}
// })
}
},
onLoad
(
option
)
{
this
.
sku
=
option
.
sku
this
.
path
=
`/pages/item/detail/detail?sku=
${
option
.
sku
}
`
// this.path = "/pages/h5/detail?sku=100017445392"
// wx.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74',
// path: '/pages/item/detail/detail?sku=100017445392',
// envVersion: 'develop',
// success(res) {
// console.log(res)
// }
// })
}
}
</
script
>
<
style
lang=
"scss"
>
page
{
background
:
#f0f0f0
;
}
.jd-msg
{
margin
:
40rpx
;
background-color
:
#fff
;
border-radius
:
20rpx
;
.title
{
font-size
:
38rpx
;
display
:
block
;
text-align
:
center
;
padding-top
:
40rpx
;
font-weight
:
bold
;
}
.box
{
font-size
:
38rpx
;
line-height
:
62rpx
;
text-indent
:
30rpx
;
padding-top
:
24rpx
;
padding
:
40rpx
;
text-indent
:
2em
;
.red
{
color
:
red
;
}
}
}
.btn
{
width
:
90%
;
margin
:
0
auto
;
}
</
style
>
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