11
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
@scrolltolower='scrolltolower'>
|
@scrolltolower='scrolltolower'>
|
||||||
<view v-for="(item,index) in siteList" :key="item.id">
|
<view v-for="(item,index) in siteList" :key="item.id">
|
||||||
<site-item @tap="toDetail(item)" :site-item="item" class="cu-list menu-avatar cu-item" />
|
<site-item @tap="toDetail(item)" :site-item="item" class="cu-list menu-avatar cu-item" />
|
||||||
<view class="activityContent">{{item.activityContent}}</view>
|
<view class="activityContent">{{item.activityDetail}}</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20rpx 30rpx;
|
padding: 20rpx 30rpx;
|
||||||
color: #FF6700;
|
color: #FF6700;
|
||||||
font-size: 22rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
.Activity_body {
|
.Activity_body {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
@getphonenumber="decryptPhoneNumber">
|
@getphonenumber="decryptPhoneNumber">
|
||||||
<text class="cuIcon-weixin padding-right-xs"> </text>
|
<text class="cuIcon-weixin padding-right-xs"> </text>
|
||||||
<text>
|
<text>
|
||||||
微信用户一键登录
|
手机号授权一键登录
|
||||||
</text>
|
</text>
|
||||||
</button>
|
</button>
|
||||||
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
|
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
|
||||||
@@ -90,6 +90,9 @@
|
|||||||
isSwitchEnterprises(n,o){ }
|
isSwitchEnterprises(n,o){ }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onpwd(){
|
||||||
|
uni.$on('')
|
||||||
|
},
|
||||||
init(option){
|
init(option){
|
||||||
if(option){
|
if(option){
|
||||||
if(option.companyId === '1460872936910831616'){
|
if(option.companyId === '1460872936910831616'){
|
||||||
|
|||||||
@@ -352,6 +352,11 @@
|
|||||||
authApi.loginRandom(data, type).then(res => {
|
authApi.loginRandom(data, type).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
this.loginSuccess(res)
|
this.loginSuccess(res)
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title:res.msg,
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.logout()
|
this.logout()
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
"path" : "pages/index/index",
|
"path" : "pages/index/index",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText": "活动列表",
|
"navigationBarTitleText": "油站活动",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "default",
|
"navigationStyle": "default",
|
||||||
"navigationBarBackgroundColor": "#FF6700",
|
"navigationBarBackgroundColor": "#FF6700",
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
companyCard:uni.getStorageSync('companyCard'),
|
||||||
getSiteListTimer:null,
|
getSiteListTimer:null,
|
||||||
areaCodeList:[],
|
areaCodeList:[],
|
||||||
loadText:'more',
|
loadText:'more',
|
||||||
@@ -238,17 +239,17 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.refreshLocation()
|
this.refreshLocation()
|
||||||
let storykey = uni.getStorageInfoSync()
|
let storykey = uni.getStorageInfoSync()
|
||||||
// console.log('%c look here↓','color:green;font-size:50px')
|
let nowCompanyCard = uni.getStorageSync('companyCard')
|
||||||
// console.log(storykey)
|
if(this.companyCard&&this.companyCard!==nowCompanyCard){
|
||||||
|
this.companyCard = uni.getStorageSync('companyCard');
|
||||||
|
this.updateFn()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
console.log("111111111111111",uni.getStorageSync('filterDatas'))
|
|
||||||
if (!uni.getStorageSync('filterDatas')) {
|
if (!uni.getStorageSync('filterDatas')) {
|
||||||
this.getFilterData()
|
this.getFilterData()
|
||||||
// console.log('dhgiuhihqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq')
|
} else{
|
||||||
} else{
|
|
||||||
// console.log('dhgiuhihiiiiiiiiiiiiiiiiiiiiiiiiiiiii')
|
|
||||||
}
|
}
|
||||||
this.findPriceDetails()
|
this.findPriceDetails()
|
||||||
if (uni.getStorageSync('productCodeList')) {
|
if (uni.getStorageSync('productCodeList')) {
|
||||||
@@ -257,10 +258,7 @@
|
|||||||
this.getSiteList()
|
this.getSiteList()
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.filterRes(this.filterDatas)
|
this.updateFn()
|
||||||
setTimeout(function() {
|
|
||||||
uni.stopPullDownRefresh()
|
|
||||||
}, 600);
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.loadStatus == 'load') {
|
if (this.loadStatus == 'load') {
|
||||||
@@ -279,6 +277,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
updateFn(){
|
||||||
|
this.filterRes(this.filterDatas)
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
}, 600);
|
||||||
|
},
|
||||||
reunrnFn(){
|
reunrnFn(){
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import utils from '@/utils/encode'
|
|||||||
const env = 'production'
|
const env = 'production'
|
||||||
// 45
|
// 45
|
||||||
const testUrl = 'http://192.168.0.254:38080'
|
const testUrl = 'http://192.168.0.254:38080'
|
||||||
// const productUrl = 'https://www.xingoil.com/adminapi'
|
const productUrl = 'https://www.xingoil.com/adminapi'
|
||||||
|
|
||||||
const productUrl = 'http://uat.xingoil.com/adminapi'
|
// const productUrl = 'http://uat.xingoil.com/adminapi'
|
||||||
// const productUrl = 'http://192.168.0.191:38080'
|
// const productUrl = 'http://192.168.0.191:38080'
|
||||||
// const productUrl = 'http://121.196.213.68/adminapi'
|
// const productUrl = 'http://121.196.213.68/adminapi'
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user