Commit 24e3e559 authored by 潘永坪's avatar 潘永坪

Merge branch 'pd-lx' into develop

parents 72aa26e7 cd96ca24
...@@ -8,6 +8,7 @@ import commonjs from 'common/common.js' ...@@ -8,6 +8,7 @@ import commonjs from 'common/common.js'
Vue.prototype.$commonjs = commonjs Vue.prototype.$commonjs = commonjs
Vue.prototype.$request = request Vue.prototype.$request = request
Vue.prototype.$wxurl = 'https://lx.pangdly.com/#/'
Vue.prototype.imageError ='@/static/img/common/pangdingLogo.png' Vue.prototype.imageError ='@/static/img/common/pangdingLogo.png'
Vue.use(uView) Vue.use(uView)
uni.$u.config.unit = 'rpx' uni.$u.config.unit = 'rpx'
......
...@@ -309,6 +309,14 @@ ...@@ -309,6 +309,14 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path" : "scenicCombiOrder/scenicCombiOrder",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
} }
] ]
}, },
......
...@@ -5,65 +5,65 @@ ...@@ -5,65 +5,65 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
enterUrl:"",//进入页面路由 enterUrl:'',//进入页面路由
outUrl:"",//跳出页面路由 outUrl:'',//跳出页面路由
} }
}, },
onLoad(option) { onLoad(option) {
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
this.enterUrl=option.q this.enterUrl=option.q
//#endif //#endif
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
this.enterUrl=uni.getStorageSync("alipayQrCode") this.enterUrl=uni.getStorageSync('alipayQrCode')
//#endif //#endif
if(this.enterUrl){//普通二维码扫码进入 if(this.enterUrl){//普通二维码扫码进入
let channelId=this.getUrlKey("channelId") let channelId=this.getUrlKey('channelId')
let companyId=this.getUrlKey("companyId") let companyId=this.getUrlKey('companyId')
let merchantId=this.getUrlKey("merchantId") let merchantId=this.getUrlKey('merchantId')
let groupId=this.getUrlKey("groupId") let groupId=this.getUrlKey('groupId')
let groupChannelId=this.getUrlKey("groupChannelId") let groupChannelId=this.getUrlKey('groupChannelId')
let pageType=this.getUrlKey("pageType") let pageType=this.getUrlKey('pageType')
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token") let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync("createUserId") let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync("userId") let pdUserId=uni.getStorageSync('userId')
let pageCode=this.getUrlKey("pageCode")//赠送优惠券接口参数 let pageCode=this.getUrlKey('pageCode')//赠送优惠券接口参数
if(pageType==1){//组合 if(pageType==1){//组合
this.outUrl="https://wx.pangdly.com/#/combiChoose?channelId="+channelId+"&merchantId="+merchantId+"&groupId="+groupId+"&groupChannelId="+groupChannelId+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=this.$wxurl+'combiChoose?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}else{//分销 }else{//分销
uni.navigateTo({ uni.navigateTo({
url:"../distributionCombiChoose/distributionCombiChoose?channelId="+channelId+"&merchantId="+merchantId+"&groupId="+groupId+"&groupChannelId="+groupChannelId+"&companyId="+companyId+"&pageCode"+pageCode url:'../distributionCombiChoose/distributionCombiChoose?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pageCode'+pageCode
}) })
} }
}else{//小程序页面跳转进入 }else{//小程序页面跳转进入
let channelId=option.channelId||'' let channelId=option.channelId||''
let companyId=option.companyId||'' let companyId=option.companyId||''
let merchantId=option.merchantId||'' let merchantId=option.merchantId||''
let groupId=option.groupId||'' let groupId=option.groupId||''
let groupChannelId=option.groupChannelId||'' let groupChannelId=option.groupChannelId||''
let thirdOpenid=option.thirdOpenid||''//第三方openid let thirdOpenid=option.thirdOpenid||''//第三方openid
let touristType=option.touristType||''//游客类型 let touristType=option.touristType||''//游客类型
let pdOpenid=uni.getStorageSync("openid")||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync("createUserId")||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync("userId")||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl="https://wx.pangdly.com/#/combiChoose?thirdOpenid="+thirdOpenid+"&touristType="+touristType let baseUrl=this.$wxurl+'combiChoose?thirdOpenid='+thirdOpenid+'&touristType='+touristType
this.outUrl=baseUrl+"&channelId="+channelId+"&merchantId="+merchantId+"&groupId="+groupId+"&groupChannelId="+groupChannelId+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=baseUrl+'&channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
} }
}, },
methods: { methods: {
getUrlKey(name){//---------------------------------------------------------------获取url getUrlKey(name){//---------------------------------------------------------------获取url
return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || ""; return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ''])[1].replace(/\+/g, '%20') || ''
}, },
} }
} }
</script> </script>
<style> <style>
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/combiOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'combiOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&groupId='+groupId+'&groupChannelId='+groupChannelId+'&productIdList='+productIdList+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode let url='&groupId='+groupId+'&groupChannelId='+groupChannelId+'&productIdList='+productIdList+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
}, },
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
url:'../combiChoose/combiChoose?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId url:'../combiChoose/combiChoose?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId
}) })
}else{//分销 }else{//分销
this.outUrl='https://wx.pangdly.com/#/distributionCombiChooseS?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&pageCode'+pageCode this.outUrl=this.$wxurl+'distributionCombiChooseS?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&pageCode'+pageCode
} }
}else{//小程序页面跳转进入 }else{//小程序页面跳转进入
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/distributionCombiChooseS?thirdOpenid='+thirdOpenid+'&touristType='+touristType let baseUrl=this.$wxurl+'distributionCombiChooseS?thirdOpenid='+thirdOpenid+'&touristType='+touristType
this.outUrl=baseUrl+'&channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&pageCode'+pageCode this.outUrl=baseUrl+'&channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&pageCode'+pageCode
} }
......
...@@ -6,59 +6,59 @@ ...@@ -6,59 +6,59 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
enterUrl:"",//进入页面路由 enterUrl:'',//进入页面路由
outUrl:"",//跳出页面路由 outUrl:'',//跳出页面路由
} }
}, },
onLoad(option) { onLoad(option) {
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
this.enterUrl=option.q this.enterUrl=option.q
//#endif //#endif
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
this.enterUrl=uni.getStorageSync("alipayQrCode") this.enterUrl=uni.getStorageSync('alipayQrCode')
//#endif //#endif
if(this.enterUrl){//普通二维码扫码进入 if(this.enterUrl){//普通二维码扫码进入
let channelId=this.getUrlKey("channelId") let channelId=this.getUrlKey('channelId')
let companyId=this.getUrlKey("companyId") let companyId=this.getUrlKey('companyId')
let merchantId=this.getUrlKey("merchantId") let merchantId=this.getUrlKey('merchantId')
let groupId=this.getUrlKey("groupId") let groupId=this.getUrlKey('groupId')
let groupChannelId=this.getUrlKey("groupChannelId") let groupChannelId=this.getUrlKey('groupChannelId')
let sourceType=this.getUrlKey('sourceType')//资源方类型,景区1,酒店2,餐饮3,特产4,运营车5 let sourceType=this.getUrlKey('sourceType')//资源方类型,景区1,酒店2,餐饮3,特产4,运营车5
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token") let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync("createUserId") let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync("userId") let pdUserId=uni.getStorageSync('userId')
let baseUrl="https://wx.pangdly.com/#/sourceCombiChoose?channelId="+channelId+"&merchantId="+merchantId+"&groupId="+groupId+"&groupChannelId="+groupChannelId+"&companyId="+companyId let baseUrl=this.$wxurl+'sourceCombiChoose?channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&groupChannelId='+groupChannelId+'&companyId='+companyId
this.outUrl=baseUrl+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId+"&sourceType="+sourceType this.outUrl=baseUrl+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&sourceType='+sourceType
}else{//小程序页面跳转进入 }else{//小程序页面跳转进入
let channelId=option.channelId||'' let channelId=option.channelId||''
let companyId=option.companyId||'' let companyId=option.companyId||''
let merchantId=option.merchantId||'' let merchantId=option.merchantId||''
let groupId=option.groupId||'' let groupId=option.groupId||''
let groupChannelId=option.groupChannelId||'' let groupChannelId=option.groupChannelId||''
let thirdOpenid=option.thirdOpenid||''//第三方openid let thirdOpenid=option.thirdOpenid||''//第三方openid
let sourceType=option.sourceType||''//第三方openid//资源方类型,景区1,酒店2,餐饮3,特产4,运营车5 let sourceType=option.sourceType||''//第三方openid//资源方类型,景区1,酒店2,餐饮3,特产4,运营车5
let pdOpenid=uni.getStorageSync("openid")||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync("createUserId")||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync("userId")||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl="https://wx.pangdly.com/#/sourceCombiChoose?thirdOpenid="+thirdOpenid+"&channelId="+channelId+"&merchantId="+merchantId+"&groupId="+groupId+"&sourceType="+sourceType let baseUrl=this.$wxurl+'sourceCombiChoose?thirdOpenid='+thirdOpenid+'&channelId='+channelId+'&merchantId='+merchantId+'&groupId='+groupId+'&sourceType='+sourceType
this.outUrl=baseUrl+"&groupChannelId="+groupChannelId+"&companyId="+companyId+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=baseUrl+'&groupChannelId='+groupChannelId+'&companyId='+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
} }
}, },
methods: { methods: {
getUrlKey(name){//---------------------------------------------------------------获取url getUrlKey(name){//---------------------------------------------------------------获取url
return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || ""; return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ''])[1].replace(/\+/g, '%20') || ''
}, },
} }
} }
</script> </script>
<style> <style>
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/hotelIndex?companyId=' let baseUrl=this.$wxurl+'hotelIndex?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -5,20 +5,20 @@ ...@@ -5,20 +5,20 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
outUrl:"",//跳出地址 outUrl:'',//跳出地址
} }
}, },
onLoad(option){ onLoad(option){
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token") let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync("createUserId") let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync("userId") let pdUserId=uni.getStorageSync('userId')
this.outUrl="https://wx.pangdly.com/#/dongjianIndex?pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=this.$wxurl+'dongjianIndex?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
} }
} }
</script> </script>
<style> <style>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<view class="list"> <view class="list">
<view class="list-wrap" @click="goSuodao()"> <view class="list-wrap" @click="goSuodao()">
<view class="list-head"> <view class="list-head">
<image src="http://wx.pangdly.com/static/img/sodao.1cdf287.jpg" mode="widthFix"> <image src="http://lx.pangdly.com/static/img/sodao.1cdf287.jpg" mode="widthFix">
</image> </image>
<view class="address"> <view class="address">
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<view class="list-wrap" @click="goGuoji()"> <view class="list-wrap" @click="goGuoji()">
<view class="list-head"> <view class="list-head">
<image src="http://wx.pangdly.com/static/img/yunduan.331a774.jpg" mode="widthFix"> <image src="http://lx.pangdly.com/static/img/yunduan.331a774.jpg" mode="widthFix">
</image> </image>
<view class="address"> <view class="address">
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<view class="list-wrap" @click="goLiangjiang()"> <view class="list-wrap" @click="goLiangjiang()">
<view class="list-head"> <view class="list-head">
<image src="http://wx.pangdly.com/static/img/liangjiang.097258e.jpg" mode="widthFix"> <image src="http://lx.pangdly.com/static/img/liangjiang.097258e.jpg" mode="widthFix">
</image> </image>
<view class="address"> <view class="address">
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<view class="list-wrap" @click="goHuiguan()"> <view class="list-wrap" @click="goHuiguan()">
<view class="list-head"> <view class="list-head">
<image src="http://wx.pangdly.com/static/img/huiguan.c00da69.jpg" mode="widthFix"> <image src="http://lx.pangdly.com/static/img/huiguan.c00da69.jpg" mode="widthFix">
</image> </image>
<view class="address"> <view class="address">
...@@ -176,13 +176,13 @@ export default { ...@@ -176,13 +176,13 @@ export default {
currentNum:0,//轮播图下标 currentNum:0,//轮播图下标
list: [//轮播图图片 list: [//轮播图图片
{ {
url: 'http://wx.pangdly.com/static/img/home1.69efcf8.jpg' url: 'http://lx.pangdly.com/static/img/home1.69efcf8.jpg'
}, },
{ {
url: 'http://wx.pangdly.com/static/img/home2.2ec1a04.jpg' url: 'http://lx.pangdly.com/static/img/home2.2ec1a04.jpg'
}, },
{ {
url: 'http://wx.pangdly.com/static/img/home3.df60ec3.jpg' url: 'http://lx.pangdly.com/static/img/home3.df60ec3.jpg'
} }
], ],
iconList:[//图标列表 iconList:[//图标列表
......
...@@ -149,13 +149,13 @@ export default { ...@@ -149,13 +149,13 @@ export default {
currentNum:0,//轮播图下标 currentNum:0,//轮播图下标
list: [//轮播图图片 list: [//轮播图图片
{ {
url: 'http://wx.pangdly.com/static/img/home1.69efcf8.jpg' url: 'http://lx.pangdly.com/static/img/home1.69efcf8.jpg'
}, },
{ {
url: 'http://wx.pangdly.com/static/img/home2.2ec1a04.jpg' url: 'http://lx.pangdly.com/static/img/home2.2ec1a04.jpg'
}, },
{ {
url: 'http://wx.pangdly.com/static/img/home3.df60ec3.jpg' url: 'http://lx.pangdly.com/static/img/home3.df60ec3.jpg'
} }
], ],
tabList: [{ tabList: [{
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/commonInfo?companyId=' let baseUrl=this.$wxurl+'commonInfo?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/myCoupon?companyId=' let baseUrl=this.$wxurl+'myCoupon?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/enterpriseWechat?companyId=' let baseUrl=this.$wxurl+'enterpriseWechat?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -5,25 +5,25 @@ ...@@ -5,25 +5,25 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
outUrl:"",//跳出页面路由 outUrl:'',//跳出页面路由
} }
}, },
onLoad(option) { onLoad(option) {
let merchantId=option.merchantId||'' let merchantId=option.merchantId||''
let pdOpenid=uni.getStorageSync("openid")||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')||''//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token")||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync("createUserId")||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync("userId")||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl="https://wx.pangdly.com/#/exchangeIndex?merchantId="+merchantId let baseUrl=this.$wxurl+'exchangeIndex?merchantId='+merchantId
this.outUrl=baseUrl+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=baseUrl+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
} }
} }
</script> </script>
<style> <style>
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/afterSalesList?companyId=' let baseUrl=this.$wxurl+'afterSalesList?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -12,13 +12,13 @@ export default { ...@@ -12,13 +12,13 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
let orderId= option.orderId||'' let orderId= option.orderId||''
let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let ifyukuaiCode=option.ifyukuaiCode||''//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程 let ifyukuaiCode=option.ifyukuaiCode||''//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this.outUrl='https://wx.pangdly.com/#/applyAfterSales?id='+orderId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&ifyukuaiCode='+ifyukuaiCode this.outUrl=this.$wxurl+'applyAfterSales?id='+orderId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId+'&ifyukuaiCode='+ifyukuaiCode
}, },
methods: { methods: {
} }
......
...@@ -6,58 +6,58 @@ ...@@ -6,58 +6,58 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
outUrl:"",//跳出地址 outUrl:'',//跳出地址
Brightness:"",//屏幕亮度 Brightness:'',//屏幕亮度
} }
}, },
onShow() { onShow() {
let _this=this let _this=this
uni.getScreenBrightness({ uni.getScreenBrightness({
success: function(res){ success: function(res){
// 这里是把获取到的手机屏幕亮度,存储到data里面,方便给到页面生命周期隐藏和卸载方法里面用 // 这里是把获取到的手机屏幕亮度,存储到data里面,方便给到页面生命周期隐藏和卸载方法里面用
_this.Brightness = res.value; _this.Brightness = res.value
if(res.value != 1){ if(res.value != 1){
uni.setScreenBrightness({ uni.setScreenBrightness({
value: 1 value: 1
}); })
} }
} }
}) })
}, },
onHide: function () { onHide: function () {
uni.setScreenBrightness({// 恢复之前屏幕亮度 uni.setScreenBrightness({// 恢复之前屏幕亮度
value: this.Brightness value: this.Brightness
}) })
}, },
onLoad(option) { onLoad(option) {
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
this.enterUrl=option.q this.enterUrl=option.q
//#endif //#endif
//#ifdef MP-ALIPAY //#ifdef MP-ALIPAY
this.enterUrl=uni.getStorageSync("alipayQrCode") this.enterUrl=uni.getStorageSync('alipayQrCode')
//#endif //#endif
if(this.enterUrl){//普通二维码扫码进入 if(this.enterUrl){//普通二维码扫码进入
let pdOpenid=uni.getStorageSync("openid")//胖丁小程序openid,临时用,当公众号授权做好之后可以删除 let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync("token") let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync("createUserId") let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync("userId") let pdUserId=uni.getStorageSync('userId')
let orderId=this.getUrlKey("orderId")//订单Id let orderId=this.getUrlKey('orderId')//订单Id
let ifNotice=this.getUrlKey("ifNotice")//是否已经扫码 let ifNotice=this.getUrlKey('ifNotice')//是否已经扫码
this.outUrl="https://wx.pangdly.com/#/intelDetail?orderId="+orderId+"&ifNotice="+ifNotice+"&pdOpenid="+pdOpenid+"&pdToken="+pdToken+"&pdCreateUserId="+pdCreateUserId+"&pdUserId="+pdUserId this.outUrl=this.$wxurl+'intelDetail?orderId='+orderId+'&ifNotice='+ifNotice+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
} }
}, },
methods: { methods: {
getUrlKey(name){//---获取url getUrlKey(name){//---获取url
return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || ""; return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ''])[1].replace(/\+/g, '%20') || ''
}, },
} }
} }
</script> </script>
<style> <style>
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/codeResult?companyId=' let baseUrl=this.$wxurl+'codeResult?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/shopCart?companyId=' let baseUrl=this.$wxurl+'shopCart?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/travelList?companyId=' let baseUrl=this.$wxurl+'travelList?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/myCenter?companyId=' let baseUrl=this.$wxurl+'myCenter?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -312,6 +312,11 @@ export default { ...@@ -312,6 +312,11 @@ export default {
this.companyId=this.$commonjs.getCompanyId(option) this.companyId=this.$commonjs.getCompanyId(option)
this.channelType = option.channelType || 0 this.channelType = option.channelType || 0
this.merchantId = option.merchantId || '' this.merchantId = option.merchantId || ''
},
onShow() {
//清空之前选中的数据
this.detailData=''
this.chooseProduct=[]
let token = uni.getStorageSync('token') let token = uni.getStorageSync('token')
if (token) { if (token) {
uni.getLocation({ uni.getLocation({
...@@ -580,7 +585,7 @@ export default { ...@@ -580,7 +585,7 @@ export default {
}) })
let query ='?productIdList=' + JSON.stringify(productIdList) + '&groupId=' + this.groupId + '&groupChannelId=' + this.groupChannelId + '&orderSource=3' let query ='?productIdList=' + JSON.stringify(productIdList) + '&groupId=' + this.groupId + '&groupChannelId=' + this.groupChannelId + '&orderSource=3'
uni.navigateTo({ uni.navigateTo({
url: '/pages/scenic/scenicOrder/scenicOrder' + query url: '/pages/scenic/scenicCombiOrder/scenicCombiOrder' + query
}) })
} }
}, },
......
<template> <template>
<u-calendar <u-calendar
:show="show" :show="showPop"
@confirm="onConfirm" @confirm="onConfirm"
@close="show=false" @close="showPop=false"
:maxDate="maxDate" :maxDate="maxDate"
:defaultDate="defaultDate" :defaultDate="defaultDate"
:formatter='formatter' :formatter='formatter'
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
data() { data() {
return { return {
show: false, //控制日历显示隐藏 showPop: false, //控制日历显示隐藏
defaultDate:'', //默认日期 defaultDate:'', //默认日期
maxDate:'',//最大日期 maxDate:'',//最大日期
} }
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
methods: { methods: {
//---日期确认事件 //---日期确认事件
onConfirm(date) { onConfirm(date) {
this.show = false this.showPop = false
this.$emit('dateConfig', date[0]) this.$emit('dateConfig', date[0])
}, },
//---时间格式转换 //---时间格式转换
...@@ -67,7 +67,16 @@ export default { ...@@ -67,7 +67,16 @@ export default {
// } // }
return day return day
} },
//---设置默认日期
setDefaultDate(val) {
this.defaultDate=val
// let dates = val.split('-')
// let year = parseInt(dates[0])
// let month = parseInt(dates[1]) - 1
// let day = parseInt(dates[2])
// this.defaultDate = new Date(year, month, day)
},
} }
} }
</script> </script>
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
let pdToken=uni.getStorageSync('token')||'' let pdToken=uni.getStorageSync('token')||''
let pdCreateUserId=uni.getStorageSync('createUserId')||'' let pdCreateUserId=uni.getStorageSync('createUserId')||''
let pdUserId=uni.getStorageSync('userId')||'' let pdUserId=uni.getStorageSync('userId')||''
let baseUrl='https://wx.pangdly.com/#/scenicIndex?companyId=' let baseUrl=this.$wxurl+'scenicIndex?companyId='
this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId this.outUrl=baseUrl+companyId+'&pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
}, },
methods: { methods: {
......
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/scenicJointOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'scenicJointOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
}, },
......
...@@ -562,7 +562,7 @@ export default { ...@@ -562,7 +562,7 @@ export default {
}, },
//---展示日历 //---展示日历
showCalendar() { showCalendar() {
this.$refs.calendar.show = true this.$refs.calendar.showPop = true
}, },
//---日期选择 //---日期选择
dateChoose(index) { dateChoose(index) {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/scenicProduct?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'scenicProduct?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&companyId='+companyId+'&channelType='+channelType let url='&merchantId='+merchantId+'&companyId='+companyId+'&channelType='+channelType
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/scenicProduct?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'scenicProduct?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode+'&channelType='+channelType let url='&merchantId='+merchantId+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode+'&channelType='+channelType
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
} }
......
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
let pdToken=uni.getStorageSync('token') let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId') let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId') let pdUserId=uni.getStorageSync('userId')
let baseUrl='https://wx.pangdly.com/#/scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId let baseUrl=this.$wxurl+'scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode
this.outUrl=baseUrl+url this.outUrl=baseUrl+url
} }
......
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