Commit 19073825 by 谢中龙

修改导航

parent 251fcc8c
...@@ -122,10 +122,6 @@ ...@@ -122,10 +122,6 @@
"contactPlugin": { "contactPlugin": {
"version": "1.0.12", "version": "1.0.12",
"provider": "wx104a1a20c3f81ec2" "provider": "wx104a1a20c3f81ec2"
},
"live-player-plugin": {
"version": "1.0.0",
"provider": "wx2b03c6e691cd7370"
} }
}, },
"permission": { "permission": {
......
...@@ -128,7 +128,8 @@ Component({ ...@@ -128,7 +128,8 @@ Component({
} }
}, },
//点击menu //点击menu
bindNav(event ) { bindNav(event) {
console.log(event)
utilLink.currentLinkRouter(event, this) utilLink.currentLinkRouter(event, this)
}, },
//弹出nav动画 //弹出nav动画
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id // 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应 // app.js 中brandId 修改为对应
const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 : //仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4 //3001 3001 , wx313ec36b710125d4
//2006 泰华 , wx40fec8944623c8b3 //2006 泰华 , wx40fec8944623c8b3
...@@ -21,7 +21,7 @@ const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门 ...@@ -21,7 +21,7 @@ const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门
//2015 花在花园 //2015 花在花园
//2016 阿吉豆 //2016 阿吉豆
//2017 ACTREE wx2aae34874e88cdf5 //2017 ACTREE wx2aae34874e88cdf5
const BRANCH_ID = 1002 const BRANCH_ID = 2006
const isMall = true const isMall = true
// const needMock = '' // // const needMock = '' //
......
...@@ -42,6 +42,6 @@ ...@@ -42,6 +42,6 @@
<!--<no-more wx:if="{{noMore}}"/>--> <!--<no-more wx:if="{{noMore}}"/>-->
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
...@@ -75,6 +75,6 @@ ...@@ -75,6 +75,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -66,5 +66,5 @@ ...@@ -66,5 +66,5 @@
<go-home/> <go-home/>
<!-- 导航 --> <!-- 导航 -->
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid /> <go-guid />
\ No newline at end of file
...@@ -249,6 +249,6 @@ ...@@ -249,6 +249,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<select-coupon show="{{showSelectCoupon}}" bind:updateCoupon="updateCoupon" coupon-list="{{currentOrderList.couponDiscountPreviews}}"/> <select-coupon show="{{showSelectCoupon}}" bind:updateCoupon="updateCoupon" coupon-list="{{currentOrderList.couponDiscountPreviews}}"/>
...@@ -53,5 +53,5 @@ ...@@ -53,5 +53,5 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid /> <go-guid />
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid /> <go-guid />
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<view class="position-bottom"> <view class="position-bottom">
<button type='primary' class="redeem-now" bindtap='handelPresentCouponCode'>出示券码</button> <button type='primary' class="redeem-now" bindtap='handelPresentCouponCode'>出示券码</button>
</view> </view>
......
...@@ -90,6 +90,6 @@ ...@@ -90,6 +90,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid /> <go-guid />
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
<pic-nav-serve pic-nav="{{pItem.navigation.images}}" /> <pic-nav-serve pic-nav="{{pItem.navigation.images}}" />
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</block> </block>
...@@ -201,5 +201,5 @@ pagePath="{{pagePath}}" ...@@ -201,5 +201,5 @@ pagePath="{{pagePath}}"
code-img="{{codeImg}}"></share-poster> code-img="{{codeImg}}"></share-poster>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -31,5 +31,5 @@ ...@@ -31,5 +31,5 @@
<exchange-coupon-modal exchangeId="{{integralMallDetail.id}}" exchangePoint="{{integralMallDetail.point}}" isExchange='{{isExchange}}' /> <exchange-coupon-modal exchangeId="{{integralMallDetail.id}}" exchangePoint="{{integralMallDetail.point}}" isExchange='{{isExchange}}' />
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid /> <go-guid />
...@@ -66,5 +66,5 @@ ...@@ -66,5 +66,5 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
<image class='rule-img' src='{{ruleImg}}' mode="widthFix" /> <image class='rule-img' src='{{ruleImg}}' mode="widthFix" />
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid /> <go-guid />
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<share-poster <share-poster
id="getPoster" id="getPoster"
bindmyevent="myEventListener" bindmyevent="myEventListener"
......
...@@ -57,4 +57,4 @@ ...@@ -57,4 +57,4 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<go-guid /> <go-guid />
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
...@@ -185,5 +185,5 @@ ...@@ -185,5 +185,5 @@
<apply-refund show="{{showApplyRefundModal}}" refundId="{{refundId}}" bind:ok="onDeliveryOk" /> <apply-refund show="{{showApplyRefundModal}}" refundId="{{refundId}}" bind:ok="onDeliveryOk" />
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -166,5 +166,5 @@ ...@@ -166,5 +166,5 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -88,6 +88,6 @@ ...@@ -88,6 +88,6 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
...@@ -126,5 +126,5 @@ ...@@ -126,5 +126,5 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
...@@ -147,12 +147,6 @@ wxService.page({ ...@@ -147,12 +147,6 @@ wxService.page({
* */ * */
updatePage(ev) { updatePage(ev) {
const { pageId } = ev.detail const { pageId } = ev.detail
// this.setData({
// pages: [],
// pageId
// },()=>{
// this.initPage(pageId)
// })
wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId }) wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId })
}, },
/** /**
......
...@@ -90,5 +90,5 @@ ...@@ -90,5 +90,5 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
"appid": "wxac09792264c49b5c", "appid": "wx40fec8944623c8b3",
"projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E", "projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<!--<no-more wx:if="{{noMore}}"/>--> <!--<no-more wx:if="{{noMore}}"/>-->
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<!-- 库存没了 --> <!-- 库存没了 -->
<dialog-stock-empty show="{{dialogStockEmpty}}"/> <dialog-stock-empty show="{{dialogStockEmpty}}"/>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<dialog-user-limit show="{{dialogUserLimit}}"/> <dialog-user-limit show="{{dialogUserLimit}}"/>
<dialog-stock-empty show="{{dialogStockEmpty}}" bind:btnClick="onDialogBtnCallBack"/> <dialog-stock-empty show="{{dialogStockEmpty}}" bind:btnClick="onDialogBtnCallBack"/>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<go-guid /> <go-guid />
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
......
...@@ -50,5 +50,5 @@ ...@@ -50,5 +50,5 @@
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</form> </form>
<!--goHome--> <!--goHome-->
<go-home /> <go-home />
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<select-tab showSelectTabModal="{{showSelectTabModal}}" bind:_selectTab="_selectTab" /> <select-tab showSelectTabModal="{{showSelectTabModal}}" bind:_selectTab="_selectTab" />
<select-related-goods show="{{showSelectRelatedGoods}}" bind:_selectGoods="_selectGoods" pro-goods="{{proGoods}}"/> <select-related-goods show="{{showSelectRelatedGoods}}" bind:_selectGoods="_selectGoods" pro-goods="{{proGoods}}"/>
......
...@@ -38,7 +38,6 @@ wxService.page({ ...@@ -38,7 +38,6 @@ wxService.page({
}) })
// 直播开通需要 配置plugin : // 直播开通需要 配置plugin :
// ,
// "live-player-plugin": { // "live-player-plugin": {
// "version": "1.0.0", // "version": "1.0.0",
// "provider": "wx2b03c6e691cd7370" // "provider": "wx2b03c6e691cd7370"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<image src="{{isGoToInvite ? inviteBanner : speadProductsBanner}}" mode="widthFix"></image> <image src="{{isGoToInvite ? inviteBanner : speadProductsBanner}}" mode="widthFix"></image>
</view> </view>
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid/> <go-guid/>
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<water-flow-layout <water-flow-layout
type="2" type="2"
image-data="{{contentList}}" image-data="{{contentList}}"
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</view> --> </view> -->
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<x-dialog show="{{showDialig}}" bind:_closeDialog="closeDialog" /> <x-dialog show="{{showDialig}}" bind:_closeDialog="closeDialog" />
<card-modal <card-modal
show-card-modal="{{showCardModal}}" show-card-modal="{{showCardModal}}"
......
...@@ -24,6 +24,6 @@ ...@@ -24,6 +24,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home /> <go-home />
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
<go-guid/> <go-guid/>
...@@ -42,6 +42,6 @@ ...@@ -42,6 +42,6 @@
</view> </view>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
</view> </view>
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<plus sku-list="{{skuVOList}}"/> <plus sku-list="{{skuVOList}}"/>
<!--goHome--> <!--goHome-->
<go-home /> <go-home />
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -68,5 +68,5 @@ ...@@ -68,5 +68,5 @@
<!--goHome--> <!--goHome-->
<go-home /> <go-home />
<floatNav bind:getAuth="_getUserInfo"/> <floatNav bind:getAuth="_getUserInfo" bind:updatePage="updatePage"/>
<go-guid/> <go-guid/>
\ No newline at end of file
...@@ -10,6 +10,7 @@ function currentLinkRouter(event, _this) { ...@@ -10,6 +10,7 @@ function currentLinkRouter(event, _this) {
//处理返回值是空对象时 导致跳转失败 //处理返回值是空对象时 导致跳转失败
if (Object.keys(curItemType.link).length > 0){ if (Object.keys(curItemType.link).length > 0){
let currentClickType = app.globalData.commonFunc.getLink(curItemType.link.type, curItemType) let currentClickType = app.globalData.commonFunc.getLink(curItemType.link.type, curItemType)
console.log(currentClickType)
if (curItemType.link.type == 1) { if (curItemType.link.type == 1) {
// 触发父组件更新页面 外部小程序 // 触发父组件更新页面 外部小程序
} else if (curItemType.link.type == 2) { } else if (curItemType.link.type == 2) {
......
...@@ -723,6 +723,13 @@ class WXService extends Http { ...@@ -723,6 +723,13 @@ class WXService extends Http {
} }
config.onLoad && config.onLoad.apply(page, args); config.onLoad && config.onLoad.apply(page, args);
}, },
/**
* 监听子组件事件
* */
updatePage(ev) {
const { pageId } = ev.detail
wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId })
},
onShow: function (...args) { onShow: function (...args) {
const isExperiencer = wx.getStorageSync('isExperiencer') const isExperiencer = wx.getStorageSync('isExperiencer')
const page = this const page = this
......
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