This commit is contained in:
caoliancun
2023-02-15 21:00:15 +08:00
parent ea8e9f9eb7
commit 8ca3069737
21 changed files with 407 additions and 223 deletions

39
App.vue
View File

@@ -8,6 +8,35 @@
export default { export default {
data() { data() {
return { return {
menuList: [{
title: '渠道',
isMutiple: false,
key: 'channelCode',
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '0#轻柴油',
key: 'oilProductCode',
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '品牌',
key: 'siteBrand',
isSort: true,
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
}
],
loginStatus: 'online', loginStatus: 'online',
msg: '' msg: ''
} }
@@ -69,11 +98,13 @@
this.menuList[1].detailList = this.menuList[1].detailList.concat(productCodes) this.menuList[1].detailList = this.menuList[1].detailList.concat(productCodes)
this.menuList[2].detailList = this.menuList[2].detailList.concat(siteBrands) this.menuList[2].detailList = this.menuList[2].detailList.concat(siteBrands)
uni.setStorageSync('filterData', this.menuList) uni.setStorageSync('filterData', this.menuList)
console.log(uni.getStorageSync('filterData'),'pppppppppppppppppppppppp')
// this.$refs.slFilter.resetMenuList(this.menuList) // this.$refs.slFilter.resetMenuList(this.menuList)
} }
}) })
}, },
onShareAppMessage() { onShareAppMessage() {
let that = this
wx.onAppRoute(() => { wx.onAppRoute(() => {
let white = ['BagStation/pages/stationDetail/stationDetail'] let white = ['BagStation/pages/stationDetail/stationDetail']
// console.log('当前页面路由发生变化 触发该事件onShareAppMessage') // console.log('当前页面路由发生变化 触发该事件onShareAppMessage')
@@ -86,7 +117,7 @@
// data.isOverShare = true // data.isOverShare = true
view.onShareAppMessage = () => { //重写分享配置 view.onShareAppMessage = () => { //重写分享配置
return { return {
title: '百川加油', title: '中品加油',
path: "/pages/index/startPage/startPage", //若无path 默认跳转分享页 path: "/pages/index/startPage/startPage", //若无path 默认跳转分享页
// imageUrl:'/image/onshowMessage.png' //若无imageUrl 截图当前页面 // imageUrl:'/image/onshowMessage.png' //若无imageUrl 截图当前页面
imageUrl: 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/login-bg.png', imageUrl: 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/login-bg.png',
@@ -121,8 +152,12 @@
clearTimeout(onlineTimer) clearTimeout(onlineTimer)
} }
}) })
}else{
// if(!uni.getStorageSync('filterData')){
// that.getFilterData()
// }
} }
}, 1000) }, 500)
} else { } else {
// loginTimer = setTimeout(() => { // loginTimer = setTimeout(() => {

View File

@@ -25,7 +25,7 @@
</view> </view>
<view class="cu-item flex-sub" :class="0==TabCur?'text-red cur':''" @tap="tabSelect(0)"> <view class="cu-item flex-sub" :class="0==TabCur?'text-blues cur':''" @tap="tabSelect(0)">

View File

@@ -7,9 +7,9 @@
:style="'background-image: url('+imgURL+'login-bg-top.png);height: 480upx;'"> :style="'background-image: url('+imgURL+'login-bg-top.png);height: 480upx;'">
<view class="padding-xl "> <view class="padding-xl ">
<view class="image login-bg"> <view class="image login-bg">
<image :src="imgURL+'new-logo.png'" mode="widthFix"></image> <image :src="otherImgURL+'logo@ZP.png'" mode="widthFix"></image>
<view class="text-bold text-lg padding-top"> <view class="text-bold text-lg padding-top">
一路油你 百川加油 一路油你 中品加油
</view> </view>
<view class="text-df text-grey padding-top-xs padding-bottom"> <view class="text-df text-grey padding-top-xs padding-bottom">
登录后加油更便捷 登录后加油更便捷
@@ -29,7 +29,7 @@
</view> --> </view> -->
<view class="cu-item text-bold text-lg flex-sub " <view class="cu-item text-bold text-lg flex-sub "
:class="[0==TabCur?'text-red cur':'',(animation=='animation-fades'&&0==TabCur)?'animation-fade':'']" :class="[0==TabCur?'text-blues cur':'',(animation=='animation-fades'&&0==TabCur)?'animation-fade':'']"
@tap="tabSelect(0)"> @tap="tabSelect(0)">
个人账号 个人账号
</view> </view>
@@ -77,7 +77,7 @@
</view> </view>
</form> </form>
<!-- <form v-if="1==TabCur"> <!-- <form v-if="1==TabCur">
<view class="cu-form-group yu-input padding-top" v-if="!company.sended"> <view class="cu-form-group yu-input padding-top" v-if="!company.sended">
<input name="手机号" label="手机号" type="number" placeholder="请输入企业下绑定手机号" v-model="driver.username" /> <input name="手机号" label="手机号" type="number" placeholder="请输入企业下绑定手机号" v-model="driver.username" />
</view> </view>
@@ -144,6 +144,7 @@
verifyCodeToken: "", verifyCodeToken: "",
accuntSource: false, accuntSource: false,
imgURL: this.global.imgURL, imgURL: this.global.imgURL,
otherImgURL: this.global.otherImgURL,
loadModal: false, loadModal: false,
active: 0, active: 0,
@@ -229,7 +230,7 @@
title: res.data.msg, title: res.data.msg,
content: '企业账号只能由企业分配,请确认是否当前手机号,如有疑问,请联系客服处理', content: '企业账号只能由企业分配,请确认是否当前手机号,如有疑问,请联系客服处理',
showCancel: false, showCancel: false,
confirmColor: '#FE0505', confirmColor: '#1890FF',
success: (res) => { success: (res) => {
if (confirm) { if (confirm) {
@@ -270,7 +271,7 @@
uni.showModal({ uni.showModal({
title: res.data.msg, title: res.data.msg,
confirmText: '立即注册', confirmText: '立即注册',
confirmColor: '#FE0505', confirmColor: '#1890FF',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
uni.setStorageSync('username', that.driver.username) uni.setStorageSync('username', that.driver.username)

View File

@@ -9,7 +9,7 @@
<view class="image login-bg"> <view class="image login-bg">
<image :src="imgURL+'new-logo.png'" mode="widthFix"></image> <image :src="imgURL+'new-logo.png'" mode="widthFix"></image>
<view class="text-bold text-lg padding-top"> <view class="text-bold text-lg padding-top">
一路油你 百川加油 一路油你 中品加油
</view> </view>
<view class="text-df text-grey padding-top-xs padding-bottom"> <view class="text-df text-grey padding-top-xs padding-bottom">
注册为个人会员 注册为个人会员

View File

@@ -75,7 +75,7 @@
</view> </view>
<view class="cu-item arrow"> <view class="cu-item arrow">
<view class="content"> <view class="content">
关于佰川能源 关于中品能源
</view> </view>
<view class="value"> <view class="value">
版本{{'1.0.0'}} 版本{{'1.0.0'}}

View File

@@ -3,12 +3,12 @@
<view class="text-center padding-sm"> <view class="text-center padding-sm">
<view class="text-lg"> <view class="text-lg">
请提醒加油员使用 请提醒加油员使用
<text class="text-red padding-left-xs padding-right-xs">{{showtitles}}</text> <text class="text-blues padding-left-xs padding-right-xs">{{showtitles}}</text>
进行订单核实 进行订单核实
</view> </view>
</view> </view>
<scroll-view scroll-x class=" nav text-center"> <scroll-view scroll-x class=" nav text-center">
<view class="cu-item" v-for="(item,index) in channelList" v-if="index==activeCur" :class="index==activeCur?'text-red cur':''" :key="item.channelId" <view class="cu-item" v-for="(item,index) in channelList" v-if="index==activeCur" :class="index==activeCur?'text-blues cur':''" :key="item.channelId"
@tap="tabSelect" :data-id="index" :data-channel-code="item.channelCode"> @tap="tabSelect" :data-id="index" :data-channel-code="item.channelCode">
<image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix"> <image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix">
</image> </image>
@@ -20,12 +20,12 @@
<view class="cu-list menu text-left"> <view class="cu-list menu text-left">
<view class="cu-item" v-for="(itemx,index) in oilSitePriceDetailsVo" :key="index" v-if="itemx.sitePrice>0"> <view class="cu-item" v-for="(itemx,index) in oilSitePriceDetailsVo" :key="index" v-if="itemx.sitePrice>0">
<label class="flex justify-between align-center flex-sub"> <label class="flex justify-between align-center flex-sub">
<radio class="round red" :class="radio=='radio' + index?'checked':''" :checked= " radio ==index?true : false" :value="index"></radio> <radio class="round blue" :class="radio=='radio' + index?'checked':''" :checked= " radio ==index?true : false" :value="index"></radio>
<text class="cu-tag my-tag line-red text-lg"> <text class="cu-tag my-tag line-red text-lg">
</text> </text>
<text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text> <text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text>
<text class="text-bold text-red text-lg">{{itemx.sitePrice!=0?itemx.sitePrice:'-.--'}}/L</text> <text class="text-bold text-blues text-lg">{{itemx.sitePrice!=0?itemx.sitePrice:'-.--'}}/L</text>
<text class="text-delete">{{itemx.oilSitePrice}}/L</text> <text class="text-delete">{{itemx.oilSitePrice}}/L</text>
<text class="text-sm">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}</text> <text class="text-sm">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}</text>
</label> </label>
@@ -39,9 +39,9 @@
<view class="padding-top-sm"> <view class="padding-top-sm">
<view class="grid col-5 "> <view class="grid col-5 ">
<view v-for="(item,index) in checkBar" class="padding-xs" :key="index"> <view v-for="(item,index) in checkBar" class="padding-xs" :key="index">
<button class="cu-btn red block" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseBar" :data-value="item.value"> <button class="cu-btn red block" :class="item.checked?'bg-blue':'line-blues'" @tap="ChooseBar" :data-value="item.value">
{{item.name}} {{item.name}}
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view> <view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
</button> </button>
</view> </view>
@@ -107,9 +107,9 @@
</view> </view>
<view class="grid col-5 padding-sm"> <view class="grid col-5 padding-sm">
<view v-for="(item,index) in checkMoney" class="padding-xs" :key="index"> <view v-for="(item,index) in checkMoney" class="padding-xs" :key="index">
<button class="cu-btn red block" style=" padding: 0;" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseCheckMoney(item.value)" :data-value="item.value"> <button class="cu-btn blue block" style=" padding: 0;" :class="item.checked?'bg-blue':'line-blues'" @tap="ChooseCheckMoney(item.value)" :data-value="item.value">
{{item.name}}&yen; {{item.name}}&yen;
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view> <view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
</button> </button>
</view> </view>
</view> </view>
@@ -137,7 +137,7 @@
<view v-for="(item,index) in checkVol" class="padding-xs" :key="index"> <view v-for="(item,index) in checkVol" class="padding-xs" :key="index">
<button class="cu-btn red block" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseCheckVol" :data-value="item.value"> <button class="cu-btn red block" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseCheckVol" :data-value="item.value">
{{item.name}} {{item.name}}
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view> <view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
</button> </button>
</view> </view>
@@ -164,7 +164,7 @@
<view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left"> <view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left">
<view class="cu-item "> <view class="cu-item ">
<view class=""> <view class="">
合计<text class="text-red">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text> 合计<text class="text-blues">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
</view> </view>
<view class="" @tap="showOrderMsg"> <view class="" @tap="showOrderMsg">
明细<text class="cuIcon-unfold padding-left-xs"></text> 明细<text class="cuIcon-unfold padding-left-xs"></text>
@@ -181,8 +181,8 @@
<view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left"> <view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left">
<view class="cu-item "> <view class="cu-item ">
<view class=""> <view class="">
合计<text class="text-red fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text> 合计<text class="text-blues fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
<text class="text-red fr" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text> <text class="text-blues fr" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
</view> </view>
<view class="" @tap="showOrderMsg"> <view class="" @tap="showOrderMsg">
明细<text class="cuIcon-unfold padding-left-xs"></text> 明细<text class="cuIcon-unfold padding-left-xs"></text>
@@ -200,7 +200,7 @@
<view class="cu-bar bg-white justify-end"> <view class="cu-bar bg-white justify-end">
<view class="content">订单明细</view> <view class="content">订单明细</view>
<view class="action" @tap="showOrder=''"> <view class="action" @tap="showOrder=''">
<text class="cuIcon-close text-red"></text> <text class="cuIcon-close text-blues"></text>
</view> </view>
</view> </view>
<view class="bg-white dashed-top"> <view class="bg-white dashed-top">
@@ -224,7 +224,7 @@
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
星油优惠 星油优惠
<text class="text-red fr">{{discount>0?discount:'xxx.x'|moneyFormat}}</text> <text class="text-blues fr">{{discount>0?discount:'xxx.x'|moneyFormat}}</text>
</view> </view>
</view> </view>
<view class="" v-else> <view class="" v-else>
@@ -238,25 +238,25 @@
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
直降金额 直降金额
<text class="text-red fr">{{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text> <text class="text-blues fr">{{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
</view> </view>
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
优惠券 优惠券
<text class="text-red fr">{{'----'}}</text> <text class="text-blues fr">{{'----'}}</text>
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
合计 合计
<text class="text-red fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text> <text class="text-blues fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
<text class="text-red fr" v-else>{{ty.realMoney>0?ty.realMoney:'xxx.x'|moneyFormat}}</text> <text class="text-blues fr" v-else>{{ty.realMoney>0?ty.realMoney:'xxx.x'|moneyFormat}}</text>
</view> </view>
</view> </view>
<view class="cu-list margin pay-bar menu radius solid-top solid-bottom solid-left"> <view class="cu-list margin pay-bar menu radius solid-top solid-bottom solid-left">
<view class="cu-item "> <view class="cu-item ">
<view class=""> <view class="">
合计<text class="text-red" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text> 合计<text class="text-blues" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
<text class="text-red" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text> <text class="text-blues" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
</view> </view>
<view class="" @tap="showOrder=''"> <view class="" @tap="showOrder=''">
明细<text class="cuIcon-fold padding-left-xs"></text> 明细<text class="cuIcon-fold padding-left-xs"></text>
@@ -274,7 +274,7 @@
<view class="cu-bar bg-white justify-end"> <view class="cu-bar bg-white justify-end">
<view class="content">车牌号非必填</view> <view class="content">车牌号非必填</view>
<view class="action" @tap="showPlate=''"> <view class="action" @tap="showPlate=''">
<text class="cuIcon-close text-red"></text> <text class="cuIcon-close text-blues"></text>
</view> </view>
</view> </view>

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="padding-top"> <view class="padding-top">
<scroll-view scroll-x class=" nav text-center"> <scroll-view scroll-x class=" nav text-center">
<view class="cu-item" v-for="(item,index) in channelList" :class="index==TabCur?'text-red cur':''" :key="item.channelId" <view class="cu-item" v-for="(item,index) in channelList" :class="index==TabCur?'text-blues cur':''" :key="item.channelId"
@tap="tabSelect" :data-id="index"> @tap="tabSelect" :data-id="index">
<image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix"> <image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix">
</image> </image>
@@ -16,7 +16,7 @@
</text> </text>
<text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text> <text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text>
<text class="text-bold text-red text-lg">{{itemx.sitePrice==0?'-.--':itemx.sitePrice}}/L</text> <text class="text-bold text-blues text-lg">{{itemx.sitePrice==0?'-.--':itemx.sitePrice}}/L</text>
<text class="text-delete">{{itemx.oilSitePrice}}/L</text> <text class="text-delete">{{itemx.oilSitePrice}}/L</text>
<text class="text-xs ">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}</text> <text class="text-xs ">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}</text>
<!-- <text class="text-gray text-delete">$市场价</text> <!-- <text class="text-gray text-delete">$市场价</text>

View File

@@ -2,7 +2,7 @@
<view> <view>
<cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil"> <cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil">
<block slot="backText">返回</block> <block slot="backText">返回</block>
<block slot="content">佰川收银台</block> <block slot="content">中品收银台</block>
</cu-custom> </cu-custom>
<view class=""> <view class="">
<view class="padding-xl text-center"> <view class="padding-xl text-center">
@@ -146,16 +146,16 @@
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
星油优惠 星油优惠
<text <text
class="text-red fr">{{order.oilDiscountAmount>0?order.oilDiscountAmount:'xxx.x'|moneyFormat}}</text> class="text-blues fr">{{order.oilDiscountAmount>0?order.oilDiscountAmount:'xxx.x'|moneyFormat}}</text>
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
优惠券 优惠券
<text <text
class="text-red fr">{{order.couponDiscountAmount>0?order.couponDiscountAmount:'xxx.x'|moneyFormat}}</text> class="text-blues fr">{{order.couponDiscountAmount>0?order.couponDiscountAmount:'xxx.x'|moneyFormat}}</text>
</view> </view>
<view class="padding-tb-xs text-left"> <view class="padding-tb-xs text-left">
合计 合计
<text class="text-red text-bold text-lg fr"> <text class="text-blues text-bold text-lg fr">
{{order.realAmount>0? moneyIntercept(order.realAmount) :'xxx.x' }}</text> {{order.realAmount>0? moneyIntercept(order.realAmount) :'xxx.x' }}</text>
</view> </view>
</view> </view>
@@ -392,7 +392,8 @@
"orderSerialNumber": this.order.orderSerialNumber, //类型String 必有字段 备注:订单编号 "orderSerialNumber": this.order.orderSerialNumber, //类型String 必有字段 备注:订单编号
"payChannel": "BALANCE_PAYMENT", //类型String 必有字段 备注支付渠道BALANCE_PAYMENT余额支付 "payChannel": "BALANCE_PAYMENT", //类型String 必有字段 备注支付渠道BALANCE_PAYMENT余额支付
"orderMethod": "CUSTOMER_ACTIVE", //类型String 必有字段 备注订单产生方式CUSTOMER_ACTIVE客户扫码支付客户扫描油站二维码完成支付 "orderMethod": "CUSTOMER_ACTIVE", //类型String 必有字段 备注订单产生方式CUSTOMER_ACTIVE客户扫码支付客户扫描油站二维码完成支付
"createSource": "XOIL_DRIVER_WECHAT_APPLET" "createSource": "XOIL_DRIVER_WECHAT_APPLET",
merchantNo: '10088997357',
} }
oilOrderApi.payOrder(payData).then(res => { oilOrderApi.payOrder(payData).then(res => {
if (res.code == 20000) { if (res.code == 20000) {

View File

@@ -3842,7 +3842,11 @@ scroll-view.cu-steps .cu-item {
.text-right { .text-right {
text-align: right; text-align: right;
} }
.text-blues,
.line-blues,
.lines-blues {
color: #1890FF;
}
.text-red, .text-red,
.line-red, .line-red,
.lines-red { .lines-red {

View File

@@ -34,8 +34,8 @@
</view> --> </view> -->
<view class="filter-content-detail" v-show="pickerShow"> <view class="filter-content-detail" v-show="pickerShow">
<!-- 省市区选择 --> <!-- 省市区选择 -->
<view class="region-box" v-if="index==0"> <view class="region-box" v-if="index==0">
<picker-view disabled :value="region" @change="bindChange" ref="showHide"> <picker-view disabled :value="region" @change="bindChange" ref="showHide">
<picker-view-column> <picker-view-column>
<view class="center" v-for="(item, index) in areaCodeList" :key="index"> <view class="center" v-for="(item, index) in areaCodeList" :key="index">
{{ item.areaName }} {{ item.areaName }}
@@ -119,16 +119,18 @@
} }
}, },
created() { created() {
setTimeout(()=>{
if(this.areaCodeList1.length == 0){
this.areaCodeList = uni.getStorageSync('areaCodeList')
}else{
this.areaCodeList = this.areaCodeList1
}
this.areaCodeList.unshift({areaName:'全部'})
},1000)
console.log('%c 子组件参数↓','font-size:30px;color:red') console.log('%c 子组件参数↓','font-size:30px;color:red')
}, },
mounted() {
if(this.areaCodeList1.length == 0){
this.areaCodeList = uni.getStorageSync('areaCodeList')
}else{
this.areaCodeList = this.areaCodeList1
}
this.areaCodeList.unshift({areaName:'全部'})
this.$forceUpdate();
},
computed: { computed: {
selectedTitleObj() { selectedTitleObj() {
let obj = {} let obj = {}

73
main.js
View File

@@ -15,7 +15,7 @@ import global from '@/api/global.js'
import Empty from '@/components/Empty.vue' import Empty from '@/components/Empty.vue'
import {share} from './mixins/index.js' import {share} from './mixins/index.js'
import oilSiteApi from '@/api/oil-site.js'
Vue.mixin(share) Vue.mixin(share)
// Vue.component('home', home) // Vue.component('home', home)
// Vue.component('user', user) // Vue.component('user', user)
@@ -33,6 +33,77 @@ Vue.prototype.moneyIntercept = function(value){
return Number(value).toFixed(2) return Number(value).toFixed(2)
} }
} }
Vue.prototype.SetFilterData = function(value){
return new Promise((re,rj)=>{
let menuList = [{
title: '渠道',
isMutiple: false,
key: 'channelCode',
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '0#轻柴油',
key: 'oilProductCode',
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '品牌',
key: 'siteBrand',
isSort: true,
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
}
]
if(uni.getStorageSync('filterData')){
re('ok')
}else{
oilSiteApi.getCheckInfo().then(res => {
if (res.code == 20000) {
let channelCodes = []
res.data.channelCodes.map(item => {
channelCodes.push({
title: item.name,
value: item.id
})
})
let productCodes = []
res.data.productCodes.map(item => {
productCodes.push({
title: item.name,
value: item.id
})
})
let siteBrands = []
res.data.siteBrands.map(item => {
siteBrands.push({
title: item.name,
value: item.id
})
})
console.log(channelCodes, productCodes, siteBrands)
menuList[0].detailList = menuList[0].detailList.concat(channelCodes)
menuList[1].detailList = menuList[1].detailList.concat(productCodes)
menuList[2].detailList = menuList[2].detailList.concat(siteBrands)
uni.setStorageSync('filterData', this.menuList);
re('ok')
}else{
rj('no')
}
})
}
})
}
let qqmapsdk = new QQMapWX({ let qqmapsdk = new QQMapWX({
// key: 'IUKBZ-5MKL3-HXB3P-3OS7U-6MHX3-MYBI3' // key: 'IUKBZ-5MKL3-HXB3P-3OS7U-6MHX3-MYBI3'
key:'NYEBZ-YURY3-XTU3N-YBR54-PKW6E-ROB2F' key:'NYEBZ-YURY3-XTU3N-YBR54-PKW6E-ROB2F'

43
package-lock.json generated
View File

@@ -1,37 +1,62 @@
{ {
"name": "wechat-oil", "name": "wechat-oil",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 3,
"requires": true, "requires": true,
"dependencies": { "packages": {
"axios": { "": {
"name": "wechat-oil",
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
"axios": "^0.21.3",
"crypto-js": "^4.0.0",
"js-cookie": "^2.2.1",
"js-md5": "^0.7.3"
}
},
"node_modules/axios": {
"version": "0.21.3", "version": "0.21.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.3.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.3.tgz",
"integrity": "sha512-JtoZ3Ndke/+Iwt5n+BgSli/3idTvpt5OjKyoCmz4LX5+lPiY5l7C1colYezhlxThjNa/NhngCUWZSZFypIFuaA==", "integrity": "sha512-JtoZ3Ndke/+Iwt5n+BgSli/3idTvpt5OjKyoCmz4LX5+lPiY5l7C1colYezhlxThjNa/NhngCUWZSZFypIFuaA==",
"dev": true, "dev": true,
"requires": { "dependencies": {
"follow-redirects": "^1.14.0" "follow-redirects": "^1.14.0"
} }
}, },
"crypto-js": { "node_modules/crypto-js": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.nlark.com/crypto-js/download/crypto-js-4.0.0.tgz", "resolved": "https://registry.nlark.com/crypto-js/download/crypto-js-4.0.0.tgz",
"integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw=", "integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw=",
"dev": true "dev": true
}, },
"follow-redirects": { "node_modules/follow-redirects": {
"version": "1.14.3", "version": "1.14.3",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.3.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.3.tgz",
"integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==", "integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==",
"dev": true "dev": true,
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
}, },
"js-cookie": { "node_modules/js-cookie": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz", "resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz",
"integrity": "sha1-aeEG3F1YBolFYpAqpbrsN0Tpsrg=", "integrity": "sha1-aeEG3F1YBolFYpAqpbrsN0Tpsrg=",
"dev": true "dev": true
}, },
"js-md5": { "node_modules/js-md5": {
"version": "0.7.3", "version": "0.7.3",
"resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz", "resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz",
"integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I=", "integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I=",

View File

@@ -3,20 +3,20 @@
{ {
"path": "pages/index/startPage/startPage", "path": "pages/index/startPage/startPage",
"style": { "style": {
"navigationBarTitleText": "佰川加油" "navigationBarTitleText": "中品加油"
} }
}, },
{ {
"path": "pages/tabbar/home/home", "path": "pages/tabbar/home/home",
"style": { "style": {
"navigationBarTitleText": "佰川加油" // "enablePullDownRefresh": true "navigationBarTitleText": "中品加油" // "enablePullDownRefresh": true
} }
}, },
{ {
"path": "pages/tabbar/order/orderList/orderList", "path": "pages/tabbar/order/orderList/orderList",
"style": { "style": {
"navigationBarTitleText": "佰川加油", // "enablePullDownRefresh": true "navigationBarTitleText": "中品加油", // "enablePullDownRefresh": true
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
@@ -24,7 +24,7 @@
{ {
"path": "pages/tabbar/station/stationList", "path": "pages/tabbar/station/stationList",
"style": { "style": {
"navigationBarTitleText": "佰川加油", // "enablePullDownRefresh": true "navigationBarTitleText": "中品加油", // "enablePullDownRefresh": true
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
@@ -32,7 +32,7 @@
{ {
"path": "pages/tabbar/user/user", "path": "pages/tabbar/user/user",
"style": { "style": {
"navigationBarTitleText": "佰川加油" // "enablePullDownRefresh": true "navigationBarTitleText": "中品加油" // "enablePullDownRefresh": true
} }
} }
@@ -275,7 +275,7 @@
"allowsBounceVertical": "NO" "allowsBounceVertical": "NO"
}, },
"navigationBarBackgroundColor": "#f33e54", "navigationBarBackgroundColor": "#f33e54",
"navigationBarTitleText": "佰川加油", "navigationBarTitleText": "中品加油",
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
}, },

View File

@@ -6,7 +6,7 @@
<view class="cu-bar bg-white justify-end"> <view class="cu-bar bg-white justify-end">
<!-- <view class="content">您还没有完成认证</view> --> <!-- <view class="content">您还没有完成认证</view> -->
<view class="content text-center overflow-unset"> <view class="content text-center overflow-unset">
<image :src="imgURL+'default-avator.png'" mode="widthFix" class="ro-right "></image> <image :src="otherImgURL+'ic-t@ZP.png'" mode="widthFix" class="ro-right "></image>
</view> </view>
<view class="action" @tap="hideModal('auth')"> <view class="action" @tap="hideModal('auth')">
<text class="cuIcon-close text-red"></text> <text class="cuIcon-close text-red"></text>
@@ -83,6 +83,7 @@
}, },
data() { data() {
return { return {
otherImgURL: this.global.otherImgURL,
imgURL: this.global.imgURL, imgURL: this.global.imgURL,
showPlateList: true, showPlateList: true,
showInputList: false, showInputList: false,

View File

@@ -53,11 +53,11 @@
key = '离线' key = '离线'
} }
if (key == '在线') { if (key == '在线') {
if (!uni.getStorageSync('filterData')) { // if (!uni.getStorageSync('filterData')) {
this.getFilterData() // this.getFilterData()
} else if (uni.getStorageSync('filterData')[0].detailList.length < 2) { // } else if (uni.getStorageSync('filterData')[0].detailList.length < 2) {
this.getFilterData() // this.getFilterData()
} // }
} }
// 在页面中定义插屏广告 // 在页面中定义插屏广告
let interstitialAd = null let interstitialAd = null
@@ -142,8 +142,10 @@
}, },
methods: { methods: {
getFilterData() { getFilterData() {
console.log('在线')
oilSiteApi.getCheckInfo().then(res => { oilSiteApi.getCheckInfo().then(res => {
if (res.code == 20000) { if (res.code == 20000) {
console.log('接口返回正常')
let channelCodes = [] let channelCodes = []
res.data.channelCodes.map(item => { res.data.channelCodes.map(item => {
channelCodes.push({ channelCodes.push({
@@ -169,7 +171,8 @@
this.menuList[0].detailList = this.menuList[0].detailList.concat(channelCodes) this.menuList[0].detailList = this.menuList[0].detailList.concat(channelCodes)
this.menuList[1].detailList = this.menuList[1].detailList.concat(productCodes) this.menuList[1].detailList = this.menuList[1].detailList.concat(productCodes)
this.menuList[2].detailList = this.menuList[2].detailList.concat(siteBrands) this.menuList[2].detailList = this.menuList[2].detailList.concat(siteBrands)
uni.setStorageSync('filterData', this.menuList) uni.setStorageSync('filterData', this.menuList);
console.log('存入',this.menuList)
// this.$refs.slFilter.resetMenuList(this.menuList) // this.$refs.slFilter.resetMenuList(this.menuList)
} }
}) })

View File

@@ -517,6 +517,7 @@
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
params: { //类型Object 必有字段 备注:// 筛选对象 params: { //类型Object 必有字段 备注:// 筛选对象
clientBelong:'ZHONGPIN',
sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序 sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序
// longitude: 117.157817, // 必有字段 备注:// 当前位置经度 // longitude: 117.157817, // 必有字段 备注:// 当前位置经度
// latitude: 31.802472, // 必有字段 备注:// 当前位置维度 // latitude: 31.802472, // 必有字段 备注:// 当前位置维度

View File

@@ -136,7 +136,7 @@
} }
}, },
onShow() { onShow() {
this.initList() // this.initList()
}, },
onLoad() { onLoad() {
this.initList() this.initList()
@@ -242,6 +242,7 @@
pageSize: 10, //类型Number 必有字段 备注:无 pageSize: 10, //类型Number 必有字段 备注:无
index: (page - 1) * 10, index: (page - 1) * 10,
params: { //类型Object 必有字段 备注:无 params: { //类型Object 必有字段 备注:无
clientBelong:'ZHONGPIN',
orderStatus: id == '全部' ? '' : (id +''), //类型String 必有字段 备注:订单状态 0待支付 1已支付 -1支付失败 2已取消3已退款 orderStatus: id == '全部' ? '' : (id +''), //类型String 必有字段 备注:订单状态 0待支付 1已支付 -1支付失败 2已取消3已退款
search: this.search //类型String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品) search: this.search //类型String 必有字段 备注:搜索 ( 油站名称/ 订单编号/ 油品)
}, },

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="page-content"> <view class="page-content">
<cu-custom class="bg-main-oil" bgColor="bg-main-oil"> <cu-custom class="bg-main-oil" bgColor="bg-main-oil">
<block slot="content">佰川加油</block> <block slot="content">中品加油</block>
</cu-custom> </cu-custom>
<view class="margin-top-lg"> <view class="margin-top-lg">
<swiper class="screen-swiper text-center square-dot" :indicator-dots="true" <swiper class="screen-swiper text-center square-dot" :indicator-dots="true"

View File

@@ -33,12 +33,13 @@
<!-- 筛选开始 --> <!-- 筛选开始 -->
<scroll-view class="screentop bg-white" style="flex: 1;"> <scroll-view class="screentop bg-white" style="flex: 1;">
<view class=""> <view class="">
<sl-filter reflexTitle ref="slFilter" :productCodeList="productCodeList" :areaCodeList="areaCodeList" @result="filterRes" :menuList="menuList"></sl-filter> <sl-filter v-if="isFilterData" reflexTitle ref="slFilter" :productCodeList="productCodeList" :areaCodeList="areaCodeList"
@result="filterRes" :menuList="menuList"></sl-filter>
<!-- <sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="menuList"></sl-filter> --> <!-- <sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="menuList"></sl-filter> -->
</view> </view>
<view class="bg-white min-height-50 padding-top" v-if="siteList.length>0"> <view class="bg-white min-height-50 padding-top" v-if="siteList.length>0">
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0" :listHeight="listHeight" <site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0"
class="cu-list menu-avatar cu-item" @tap="toDetail(item)"> :listHeight="listHeight" class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
</site-item> </site-item>
<view class="placeholder-hidden"> <view class="placeholder-hidden">
@@ -71,111 +72,111 @@
filterData: { filterData: {
// oilProductCode: '0#' // oilProductCode: '0#'
}, },
contentTitle:'您当前位置附近没有油站,可以点击左上角-距离-选择其他省市进行查看。', isFilterData:false,
contentTitle: '您当前位置附近没有油站,可以点击左上角-距离-选择其他省市进行查看。',
loadStatus: 'load', loadStatus: 'load',
listHeight:160, listHeight: 160,
areaCodeList:[], areaCodeList: [],
siteName: '', siteName: '',
menuList:[ menuList: [{
{ title: '距离',
title: '距离', isMutiple: false,
isMutiple: false, key: 'distance',
key: 'distance', detailList: [{
detailList: [ title: "全部",
{ value: ''
title: "全部",
value: ''
},
{
title: "20Km",
value: 20
},
{
title: "30Km",
value: 30
},
{
title: "50Km",
value: 50
},
{
title: "省市",
value: 10
}
]
},
{
title: '油品',
key: 'oilProductCode',
isMutiple: false,
detailList: [{
title: "全部",
value: ""
},
{
title: "0#",
value: "0#"
},
{
title: "-10#",
value: "-10#"
},
{
title: "-20#",
value: "-20#"
},
{
title: "-35#",
value: "-35#"
},
{
title: "LNG",
value: "LNG"
}]
}, },
// {
// title: '油品',
// key: 'oilProductCode',
// isMutiple: false,
// detailList: {全部:[{
// title: "全部",
// value: ""
// }],
// 柴油:[{
// title: "0#",
// value: "0#"
// },
// {
// title: "-10#",
// value: "-10#"
// },
// {
// title: "-20#",
// value: "-20#"
// },
// {
// title: "-35#",
// value: "-35#"
// }],
// 天然气:[{
// title: "LNG",
// value: "LNG"
// }]}
// },
{ {
title: '距离优先', title: "20Km",
isMutiple: false, value: 20
key: 'comprehensiveSort', },
detailList: [{ {
title: "距离优先", title: "30Km",
value: 1 value: 30
}, },
{ {
title: "价格优先", title: "50Km",
value: 2 value: 50
} },
] {
}, title: "省市",
value: 10
}
]
},
{
title: '油品',
key: 'oilProductCode',
isMutiple: false,
detailList: [{
title: "全部",
value: ""
},
{
title: "0#",
value: "0#"
},
{
title: "-10#",
value: "-10#"
},
{
title: "-20#",
value: "-20#"
},
{
title: "-35#",
value: "-35#"
},
{
title: "LNG",
value: "LNG"
}
]
},
// {
// title: '油品',
// key: 'oilProductCode',
// isMutiple: false,
// detailList: {全部:[{
// title: "全部",
// value: ""
// }],
// 柴油:[{
// title: "0#",
// value: "0#"
// },
// {
// title: "-10#",
// value: "-10#"
// },
// {
// title: "-20#",
// value: "-20#"
// },
// {
// title: "-35#",
// value: "-35#"
// }],
// 天然气:[{
// title: "LNG",
// value: "LNG"
// }]}
// },
{
title: '距离优先',
isMutiple: false,
key: 'comprehensiveSort',
detailList: [{
title: "距离优先",
value: 1
},
{
title: "价格优先",
value: 2
}
]
},
], ],
// menuList: uni.getStorageSync('filterData') ? uni.getStorageSync('filterData') : [ // menuList: uni.getStorageSync('filterData') ? uni.getStorageSync('filterData') : [
// { // {
@@ -258,10 +259,12 @@
this.refreshLocation() this.refreshLocation()
if (!uni.getStorageSync('filterData')) { if (!uni.getStorageSync('filterData')) {
this.getFilterData() this.getFilterData()
} else {
this.isFilterData=true
} }
this.getSiteList() this.getSiteList()
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.filterRes(this.filterData) this.filterRes(this.filterData)
setTimeout(function() { setTimeout(function() {
@@ -288,39 +291,73 @@
this.getSiteList() this.getSiteList()
}, },
getFilterData() { getFilterData() {
let menuList = [{
title: '渠道',
isMutiple: false,
key: 'channelCode',
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '0#轻柴油',
key: 'oilProductCode',
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
},
{
title: '品牌',
key: 'siteBrand',
isSort: true,
isMutiple: false,
detailList: [{
title: "全部",
value: ""
}]
}
]
oilSiteApi.getCheckInfo().then(res => { oilSiteApi.getCheckInfo().then(res => {
if (res.code == 20000) { if (res.code == 20000) {
uni.setStorageSync('productCodeList', res.data.productCodeList) uni.setStorageSync('productCodeList', res.data.productCodeList)
uni.setStorageSync('areaCodeList', res.data.areaCodeList) uni.setStorageSync('areaCodeList', res.data.areaCodeList)
this.areaCodeList = uni.getStorageSync('areaCodeList') this.areaCodeList = uni.getStorageSync('areaCodeList')
if(uni.getStorageSync('areaCodeList')){ let channelCodes = []
res.data.channelCodes.map(item => {
channelCodes.push({
title: item.name,
value: item.id
})
})
let productCodes = []
res.data.productCodes.map(item => {
productCodes.push({
title: item.name,
value: item.id
})
})
let siteBrands = []
res.data.siteBrands.map(item => {
siteBrands.push({
title: item.name,
value: item.id
})
})
menuList[0].detailList = menuList[0].detailList.concat(channelCodes)
menuList[1].detailList = menuList[1].detailList.concat(productCodes)
menuList[2].detailList = menuList[2].detailList.concat(siteBrands)
uni.setStorageSync('filterData', this.menuList);
if (uni.getStorageSync('areaCodeList')) {
this.areaCodeList = uni.getStorageSync('areaCodeList') this.areaCodeList = uni.getStorageSync('areaCodeList')
}else{ } else {
this.areaCodeList = res.data.areaCodeList this.areaCodeList = res.data.areaCodeList
} }
// this.productCodeList = uni.getStorageSync('productCodeList') // this.$forceUpdate();
// res.data.channelCodes.map(item => {
// this.menuList[0].detailList.push({
// title: item.name,
// value: item.id
// })
// })
// res.data.productCodes.map(item => {
// this.menuList[1].detailList.push({
// title: item.name,
// value: item.id
// })
// })
// res.data.siteBrands.map(item => {
// this.menuList[2].detailList.push({
// title: item.name,
// value: item.id
// })
// })
// // console.log(channelCodes, productCodes, siteBrands)
// this.$refs.slFilter.resetMenuList(this.menuList)
} }
this.isFilterData = true
}) })
}, },
onSelected(e) { onSelected(e) {
@@ -342,21 +379,22 @@
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: 10, pageSize: 10,
params: { //类型Object 必有字段 备注:// 筛选对象 params: { //类型Object 必有字段 备注:// 筛选对象
clientBelong:'ZHONGPIN',
sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序 sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序
siteName: this.siteName, siteName: this.siteName,
...uni.getStorageSync('location'), ...uni.getStorageSync('location'),
// ...this.filterData // ...this.filterData
siteBrand: this.siteName ? '' : this.filterData siteBrand: this.siteName ? '' : this.filterData
.siteBrand, // 备注:// 石油品牌 ( 1-中国石油 2-中国石化 3-壳牌 4-民营 5-中海油 6-京博 7-中化石油 8-其他 ) .siteBrand, // 备注:// 石油品牌 ( 1-中国石油 2-中国石化 3-壳牌 4-民营 5-中海油 6-京博 7-中化石油 8-其他 )
channelCode: this.siteName ? '' : this.filterData channelCode: this.siteName ? '' : this.filterData
.channelCode, // 备注:// 渠道编码 ( OIL星油 WJY万金油 LV老吕找油网 TY团油 YDJY一点加油壳牌) .channelCode, // 备注:// 渠道编码 ( OIL星油 WJY万金油 LV老吕找油网 TY团油 YDJY一点加油壳牌)
oilProductCode: this.siteName ? '' : this.filterData oilProductCode: this.siteName ? '' : this.filterData
.oilProductCode, // 备注:// 油号选择 ( 0# 92# 92#) .oilProductCode, // 备注:// 油号选择 ( 0# 92# 92#)
provinceCode:this.filterData.provinceCode, provinceCode: this.filterData.provinceCode,
cityCode:this.filterData.cityCode, cityCode: this.filterData.cityCode,
areaCode:this.filterData.areaCode, areaCode: this.filterData.areaCode,
distance:this.filterData.distance, distance: this.filterData.distance,
comprehensiveSort:this.filterData.comprehensiveSort?this.filterData.comprehensiveSort:1 comprehensiveSort: this.filterData.comprehensiveSort ? this.filterData.comprehensiveSort : 1
} }
} }
@@ -388,7 +426,7 @@
}, },
toDetail(item) { toDetail(item) {
let itemS = encodeURIComponent(JSON.stringify(item)) let itemS = encodeURIComponent(JSON.stringify(item))
if (uni.getStorageSync('user')) { if (uni.getStorageSync('user')) {
uni.navigateTo({ uni.navigateTo({
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`, url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
@@ -401,13 +439,13 @@
}) })
} else { } else {
uni.showModal({ uni.showModal({
title:'请您登录', title: '请您登录',
content:"登录小星加油才可以加油 |˛˙꒳​˙)♡", content: "登录小星加油才可以加油 |˛˙꒳​˙)♡",
confirmText:'去登陆', confirmText: '去登陆',
success: (res) => { success: (res) => {
if(res.confirm){ if (res.confirm) {
uni.reLaunch({ uni.reLaunch({
url:'../../../BagAuth/pages/login/login' url: '../../../BagAuth/pages/login/login'
}) })
} }
} }

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="bg-white page-content"> <view class="bg-white page-content">
<view class="bg-img padding-bottom-lg flex align-center" <view class="bg-img padding-bottom-lg flex align-center"
style="background-image: url(https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/wd-sz.png);height: 600upx;"> style="background-image: url(https://xoil-public.oss-cn-beijing.aliyuncs.com/baichuan_MP/bg-wg@ZP.png);height: 600upx;">
<view class="padding-xl margin-top bg-tm text-white top-part"> <view class="padding-xl margin-top bg-tm text-white top-part">
<view class="padding-xs padding-top-lg text-sm padding-top"> <view class="padding-xs padding-top-lg text-sm padding-top">
Hi{{(user.name?user.name:wxInfo.nickName)|nameKong}}师傅愿你开心每一天! Hi{{(user.name?user.name:wxInfo.nickName)|nameKong}}师傅愿你开心每一天!
@@ -126,7 +126,7 @@
<view class="cu-item"> <view class="cu-item">
<view class=" padding-tb-0"> <view class=" padding-tb-0">
<view class="image-self-view"> <view class="image-self-view">
<img :src="starUrl+'wd-ic-1.png'" lazy-load class="png" mode="widthFix"></img> <img :src="otherImgURL+'hb@ZP.png'" lazy-load class="png" mode="widthFix"></img>
</view> </view>
</view> </view>
<text>红包卡券</text> <text>红包卡券</text>
@@ -134,7 +134,7 @@
<view class="cu-item"> <view class="cu-item">
<view class=" padding-tb-0"> <view class=" padding-tb-0">
<view class="image-self-view"> <view class="image-self-view">
<img :src="starUrl+'wd-ic-2.png'" lazy-load class="png" mode="widthFix"></img> <img :src="otherImgURL+'hd@ZP.png'" lazy-load class="png" mode="widthFix"></img>
</view> </view>
</view> </view>
<text>活动通知</text> <text>活动通知</text>
@@ -142,7 +142,7 @@
<view class="cu-item"> <view class="cu-item">
<view class=" padding-tb-0"> <view class=" padding-tb-0">
<view class="image-self-view"> <view class="image-self-view">
<img :src="starUrl+'wd-ic-3.png'" lazy-load class="png" mode="widthFix"></img> <img :src="otherImgURL+'tj@ZP.png'" lazy-load class="png" mode="widthFix"></img>
</view> </view>
</view> </view>
<text>推荐有礼</text> <text>推荐有礼</text>
@@ -150,7 +150,7 @@
<view class="cu-item" @tap="goToPage('/BagAuth/pages/agreeMent/OperationGuide')"> <view class="cu-item" @tap="goToPage('/BagAuth/pages/agreeMent/OperationGuide')">
<view class=" padding-tb-0"> <view class=" padding-tb-0">
<view class="image-self-view"> <view class="image-self-view">
<img :src="starUrl+'wd-ic-4.png'" lazy-load class="png" mode="widthFix"></img> <img :src="otherImgURL+'sm@ZP.png'" lazy-load class="png" mode="widthFix"></img>
</view> </view>
</view> </view>
<text>操作说明</text> <text>操作说明</text>
@@ -194,6 +194,7 @@
}, },
data() { data() {
return { return {
otherImgURL: this.global.otherImgURL,
imgURL: this.global.imgURL , imgURL: this.global.imgURL ,
starUrl: this.global.starUrl, starUrl: this.global.starUrl,
isCompany: uni.getStorageSync('accountStatus'), isCompany: uni.getStorageSync('accountStatus'),

View File

@@ -4,7 +4,7 @@ import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
const env = 'production'/* */ const env = 'production'/* */
// const env = 'test' // const env = 'test'
const testUrl = 'http://192.168.0.45:38080' const testUrl = 'http://192.168.110.99:38080'
// const productUrl = 'http://121.196.213.68/adminapi' //预生产 // const productUrl = 'http://121.196.213.68/adminapi' //预生产
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new // const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new