Commit e0cfeda4 authored by 小耗子's avatar 小耗子

京东比价

parent 1e3b155e
......@@ -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
......@@ -54,12 +54,12 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx94a3f5be1ea552ec",
"appid" : "wxebbbc2cc63e9d74e",
"setting" : {
"urlCheck" : true,
"minified" : false,
"es6" : false,
"postcss" : false
"postcss" : true
},
"usingComponents" : true,
"permission" : {
......
......@@ -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
......@@ -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": {
......
<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>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment