diff --git a/Activity/pages/index/index.vue b/Activity/pages/index/index.vue
new file mode 100644
index 0000000..822d790
--- /dev/null
+++ b/Activity/pages/index/index.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+ {{item.activityDetail}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BagStation/orderDetail/orderDetail.vue b/BagStation/orderDetail/orderDetail.vue
index 60994bf..d8740f9 100644
--- a/BagStation/orderDetail/orderDetail.vue
+++ b/BagStation/orderDetail/orderDetail.vue
@@ -1,5 +1,5 @@
-
+
返回
订单支付结果
@@ -13,14 +13,15 @@
-
+
-
+
+
壳牌
@@ -38,7 +39,8 @@
订单编号:
- {{order.orderSerialNumber?order.orderSerialNumber:''}}
+ {{order.orderSerialNumber?order.orderSerialNumber:''}}
@@ -87,7 +89,8 @@
星油优惠:
- {{order.xoilDiscountAmount>0?order.xoilDiscountAmount:'xxx.x'|moneyFormat}}
+ {{order.xoilDiscountAmount>0?order.xoilDiscountAmount:'xxx.x'|moneyFormat}}
优惠券:
@@ -96,12 +99,13 @@
合计:
- {{order.payRealAmount>0?order.payRealAmount:'xxx.x' }}
+ {{order.payRealAmount>0?order.payRealAmount:'xxx.x' }}
支付方式:
随行付支付
-
+
{{order.payAccountType==0?'个人账户支付':'企业账户支付'}}
@@ -128,28 +132,31 @@
-
+ v-if="showMiniBtn">
-
-
+
+
+
+
更多
-
+
-
@@ -158,7 +165,8 @@
立即支付
取消订单
-
+
在线客服
@@ -172,6 +180,7 @@
import oilSiteApi from '@/api/oil-site.js'
import tkiQrcode from "../pages/components/tki-qrcode/tki-qrcode.vue" //二维码生成器
import financelApi from '@/api/oil-finance.js'
+ import Financial from '@/api/Financial.js'
export default {
components: {
ThirdPartyVoucher,
@@ -180,8 +189,8 @@
data() {
return {
showMiniBtn: false,
- showQr:false,
- val:'',
+ showQr: false,
+ val: '',
showThirdResult: false,
id: '',
order: {},
@@ -212,8 +221,8 @@
}
}
},
- watch:{
- showMiniBtn:function(){
+ watch: {
+ showMiniBtn: function() {
// setTimeout(()=>{
// this.showMiniBtn = false
// },1000)
@@ -235,16 +244,46 @@
console.log('onHide')
},
methods: {
+ goDiscount() {
+ uni.navigateTo({
+ url: '/Activity/pages/index/index'
+ })
+ },
+ toRiskControl() {
+ const user = uni.getStorageSync('user');
+ if (user) {
+ Financial.findHomePageReport({
+ customerId: user.id
+ }).then(res => {
+ if (res.data) {
+ uni.navigateTo({
+ url: `/Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}`
+ })
+ } else {
+ uni.navigateTo({
+ url: '/Financial/pages/index?guide=1'
+ })
+ }
+ });
+ }
+ },
newQrString() {
this.getOrderQrCode()
},
+<<<<<<< HEAD
getOrderQrCode(){
oilSiteApi.getOrderQrCode(this.id).then( (res)=>{
+=======
+ getOrderQrCode() {
+ oilSiteApi.getOrderQrCode(this.order.orderSerialNumber).then((res) => {
+ console.log(res)
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
this.val = res.data
- if(res.code == 40000){
- this.showQr = false
- }else if(res.code == 20000){
+ if (res.code == 40000) {
+ this.showQr = false
+ } else if (res.code == 20000) {
this.showQr = true
+<<<<<<< HEAD
this.val =res.data.codeStr;
if(!this.timeinterval){
this.timeinterval = setInterval(() => {
@@ -252,11 +291,14 @@
this.newQrString()
}, 1000 * 60 * 3);
}
+=======
+ this.val = res.data.codeStr
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
}
- } )
+ })
},
gotoInvoicing() { //前往开票
- console.log(this.order,'+++++++++++++')
+ console.log(this.order, '+++++++++++++')
financelApi.checkStatus(this.order.orderSerialNumber).then((res) => {
console.log('这里是check是否开发票')
console.log(res)
@@ -270,7 +312,8 @@
} else {
uni.navigateTo({
url: '/BagStation/orderInvoicing/orderInvoicing?orderId=' + this.order
- .orderSerialNumber + '&&customerId=' + this.order.customerId + '&&payRealAmount=' + this.order.payRealAmount +
+ .orderSerialNumber + '&&customerId=' + this.order.customerId +
+ '&&payRealAmount=' + this.order.payRealAmount +
'&&realAmount=' + this.order.realAmount + '&&code=' + 1
})
}
@@ -305,7 +348,7 @@
// }
// })
// },
-
+
// 三方支付结果弹窗结束
onCopy(id) {
uni.setClipboardData({
@@ -323,7 +366,11 @@
if (res.code == 20000) {
this.order = res.data
uni.setStorageSync('oilItem', res.data)
+<<<<<<< HEAD
// this.getOrderQrCode()
+=======
+ this.getOrderQrCode()
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
if (res.data.payMethod == 2) {
this.tyPayMethod = res.data.payMethod
// this.queryOrderStatusSq()
@@ -331,12 +378,12 @@
}
})
},
- toDetail(item) {
- if(item.zpDisable === 'DISABLE') return
- var itemS = JSON.stringify(item)
- uni.setStorageSync('siteInfo',itemS)
- uni.navigateTo({
- url: `/BagStation/pages/stationDetail/stationDetail`,
+ toDetail(item) {
+ if (item.zpDisable === 'DISABLE') return
+ var itemS = JSON.stringify(item)
+ uni.setStorageSync('siteInfo', itemS)
+ uni.navigateTo({
+ url: `/BagStation/pages/stationDetail/stationDetail`,
fail: (err) => {
// console.log(err)
},
@@ -346,7 +393,7 @@
})
},
cancelOrder() {
-
+
orderApi.cancelOrder(this.id).then(res => {
if (res.code == 20000) {
uni.showToast({
@@ -391,12 +438,25 @@
}
},
+<<<<<<< HEAD
+=======
+ onLoad(option) {
+ this.id = option.id
+ this.getOrderInfo()
+ uni.showShareMenu()
+ let _that = this
+ this.timeinterval = setInterval(() => {
+ console.log('1')
+ _that.newQrString()
+ }, 1000 * 60 * 3);
+ },
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
filters: {
moneyFormat(value) {
if (value != 'xxx.x') {
console.log(value)
- return (parseInt(value * 100) / 100).toFixed(2)
+ return (parseInt(value * 100) / 100).toFixed(2)
} else {
return value
}
@@ -420,9 +480,9 @@
}
},
moneyFormath(value) {
- console.log(value)
- if (value != 'xxx.x') {
- let number = parseFloat(value).toFixed(2)
+ console.log(value)
+ if (value != 'xxx.x') {
+ let number = parseFloat(value).toFixed(2)
return number
} else {
return value
@@ -464,19 +524,41 @@
}
-
diff --git a/BagStation/pages/stationDetail/stationDetail.vue b/BagStation/pages/stationDetail/stationDetail.vue
index 12bc4c9..a16aea7 100644
--- a/BagStation/pages/stationDetail/stationDetail.vue
+++ b/BagStation/pages/stationDetail/stationDetail.vue
@@ -61,7 +61,7 @@
+ :channel-list="siteInfo.oilSiteChannelDetailsVos" :siteInfo="siteInfo">
diff --git a/api/oil-site.js b/api/oil-site.js
index 7761f4a..5bf3f24 100644
--- a/api/oil-site.js
+++ b/api/oil-site.js
@@ -31,6 +31,13 @@ export default {
data: data
})
},
+ getBSitesByActivity(data) {
+ return request({
+ url: `/${service_name}/${group_name}/getBCSitesByActivity`,
+ method: 'post',
+ data: data
+ })
+ },
getSiteLists(data) {
data.params.targetApp='SAAS'
return request({
diff --git a/components/site-item/site-item.vue b/components/site-item/site-item.vue
index 7083a26..da6b54b 100644
--- a/components/site-item/site-item.vue
+++ b/components/site-item/site-item.vue
@@ -1,4 +1,5 @@
+<<<<<<< HEAD
<<<<<<< HEAD
=======
@@ -8,11 +9,26 @@
:style="'background-image:url('+(siteItem.siteImages?siteItem.siteImages:defaultLogo)+');'">
+=======
+
+
+
+
+
+
+
+
+ {{siteItem.juli|distanceFilter}}
+
+
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
- {{siteItem.siteName}}
+ {{siteItem.siteName}}
+<<<<<<< HEAD
{{siteItem.listTag||'未知'}}
距离最近
@@ -24,6 +40,21 @@
@@ -68,6 +100,21 @@
{{ siteItem.juli|distanceFilter}}
+=======
+
+
+
+
+ 活动
+
+ {{siteItem.activityContent}}
+
+
+
+
+
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
@@ -83,24 +130,29 @@
type: Boolean,
default: false
},
- listHeight:{
- type:Number,
- default:0
+ listHeight: {
+ type: Number,
+ default: 0
}
},
data() {
return {
starUrl: this.global.starUrl,
- defaultLogo:'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/logo_default.png',
- audioUrl:''
+ defaultLogo: 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/logo_default.png',
+ audioUrl: ''
}
- },
+ },
created() {
+<<<<<<< HEAD
+=======
+ console.log(this.siteItem, '-----------------')
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
},
methods: {
},
filters: {
+<<<<<<< HEAD
channelCodeFamt(value) {
if (!value) {
return '未知'
@@ -121,6 +173,29 @@
return value
}
},
+=======
+ channelCodeFamt(value) {
+ console.log(value)
+ if (!value) {
+ return '未知'
+ // 渠道编码 ( XOIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌))
+ // switch (value) {
+ // case 'XOIL':
+ // return '星油'
+ // case 'WJY':
+ // return '万金油'
+ // case 'LV':
+ // return '老吕(找油网)'
+ // case 'TY':
+ // return '团油'
+ // case 'YDJY':
+ // return '一点加油(壳牌)'
+ // }
+ } else {
+ return value
+ }
+ },
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
distanceFilter(value) {
if (value) {
return value > 1000 ? ((value / 1000).toFixed(2) + 'km') : (value + 'm')
@@ -139,20 +214,42 @@
}
-
diff --git a/manifest.json b/manifest.json
index 01210d6..2c32c2c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,10 @@
{
"name" : "XiaoXing",
+<<<<<<< HEAD
"appid" : "__UNI__A32B754",
+=======
+ "appid" : "__UNI__113D280",
+>>>>>>> 5adc52996c062f4b7bfecbc5bbd21413b04487f2
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
diff --git a/pages.json b/pages.json
index ad7786d..86ac03a 100644
--- a/pages.json
+++ b/pages.json
@@ -141,6 +141,22 @@
}
]
},
+ {
+ "root": "Activity",
+ "pages": [{
+ "path" : "pages/index/index",
+ "style" :
+ {
+ "navigationBarTitleText": "油站活动",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#0081ff",
+ "navigationBarTextStyle": "white"
+ }
+
+ }
+ ]
+ },
{
"root": "BagMoney",
"pages": [{
diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue
index aa9c886..2b6be05 100644
--- a/pages/tabbar/home/home.vue
+++ b/pages/tabbar/home/home.vue
@@ -15,9 +15,10 @@
-
+
-
@@ -108,16 +109,16 @@
-
-
-
+ -->
+
+
@@ -127,8 +128,8 @@
-->
-
@@ -158,17 +159,22 @@
},
data() {
return {
- swiperArray:[
- // {
- // src:this.global.starUrl+'banner.png',
- // link:''
- // },
+ swiperArray: [
{
- src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
- link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
+ src:this.global.starUrl+'banner.png',
+ link:''
},
+ // {
+ // src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/banner_baichuan.png',
+ // JumpPage: '/Activity/pages/index/index'
+ // },
+
+ // {
+ // src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
+ // link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
+ // },
],
- listHeight:160,
+ listHeight: 160,
siteInfo: {
},
@@ -285,13 +291,13 @@
]
};
},
- onTabItemTap(res){
- this.showThreeSites =false
+ onTabItemTap(res) {
+ this.showThreeSites = false
},
onLoad() {
this.reverseGeocoder(this.location)
this.refreshLocation()
-
+
// if (!uni.getStorageSync('filterData')) {
// this.getFilterData()
// }
@@ -329,38 +335,45 @@
},
methods: {
- toManagement(){
+ toManagement() {
const user = uni.getStorageSync('user');
- if(user){
- Financial.findHomePageReport({customerId:user.id}).then(res=>{
- if(res.data){
+ if (user) {
+ Financial.findHomePageReport({
+ customerId: user.id
+ }).then(res => {
+ if (res.data) {
uni.navigateTo({
- url:`../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}`
+ url: `../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}`
})
- }else{
+ } else {
uni.navigateTo({
- url:'../../../Financial/pages/index?guide=1'
+ url: '../../../Financial/pages/index?guide=1'
})
}
});
- }else{
+ } else {
uni.showToast({
title: '请先登录!',
icon: 'none'
})
}
},
- swiperClick(item,index) {
- if(!item?.link) return
- switch (Number(index)) {
- // case 0:
- // this.goCall()
- // break;
- default:
- console.log('item.link')
- uni.navigateTo({
- url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
- })
+ swiperClick(item, index) {
+ // if (!item?.link) return
+ // switch (Number(index)) {
+ // // case 0:
+ // // this.goCall()
+ // // break;
+ // default:
+ // console.log('item.link')
+ // uni.navigateTo({
+ // url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
+ // })
+ // }
+ if(item?.JumpPage){
+ uni.navigateTo({
+ url: item.JumpPage
+ })
}
},
goToPage(url) {
@@ -447,10 +460,11 @@
// url: 'plugin://routePlan/index?key=' + this.qqMapKey + '&referer=' + referer +
// '&endPoint=' + endPoint
// })
- uni.removeStorageSync("origins")
- uni.removeStorageSync("destination")
+ uni.removeStorageSync("origins")
+ uni.removeStorageSync("destination")
wx.navigateTo({
- url:'../../../BagStation/pages/routePlain/routePlain'})
+ url: '../../../BagStation/pages/routePlain/routePlain'
+ })
} else if (index == 8) {
this.goToPage('/BagAuth/pages/agreeMent/OperationGuide')
}
@@ -504,9 +518,9 @@
// siteBrand: "", // 备注:// 石油品牌 ( 1-中国石油 2-中国石化 3-壳牌 4-民营 5-中海油 6-京博 7-中化石油 8-其他 )
// channelCode: "", // 备注:// 渠道编码 ( OIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌))
// oilProductCode: "0#" // 备注:// 油号选择 ( 0# 92# 92#)
- clientBelong:'ZHONGPIN',
- comprehensiveSort:1,
- zpDisable:'ENABLE',
+ clientBelong: 'ZHONGPIN',
+ comprehensiveSort: 1,
+ zpDisable: 'ENABLE',
sort: "juli", //类型:String 必有字段 备注:// 智能排序 ( price:价格最低 juli:距离最近 ) 默认距离排序
...uni.getStorageSync('location'),
...this.filterData,
@@ -572,13 +586,13 @@
})
} else {
uni.showModal({
- title:'请您登录',
- content:"登录小星加油才可以加油 |˛˙꒳˙)♡",
- confirmText:'去登陆',
+ title: '请您登录',
+ content: "登录小星加油才可以加油 |˛˙꒳˙)♡",
+ confirmText: '去登陆',
success: (res) => {
- if(res.confirm){
+ if (res.confirm) {
uni.reLaunch({
- url:'../../../BagAuth/pages/login/login'
+ url: '../../../BagAuth/pages/login/login'
})
}
}
@@ -795,4 +809,4 @@
.my-icon-sm .text-sm {
line-height: 1rem;
}
-
+
\ No newline at end of file