Browse Source

上传

master
前端-胡立永 3 months ago
parent
commit
c45c404110
19 changed files with 43 additions and 19 deletions
  1. +1
    -1
      App.vue
  2. +2
    -1
      config.js
  3. BIN
      doc/empty/noData.png
  4. +0
    -0
      doc/empty/无历史记录.png
  5. +0
    -0
      doc/empty/无收藏.png
  6. +0
    -0
      doc/empty/无新闻列表.png
  7. +0
    -0
      doc/empty/无权限.png
  8. +0
    -0
      doc/empty/暂无搜索结果.png
  9. +0
    -0
      doc/empty/暂无评论.png
  10. +0
    -0
      doc/empty/没有wifi.png
  11. +0
    -0
      doc/empty/没有优惠券.png
  12. +0
    -0
      doc/empty/没有收货地址.png
  13. +0
    -0
      doc/empty/消息为空.png
  14. +0
    -0
      doc/empty/消息列表为空.png
  15. +0
    -0
      doc/empty/订单为空.png
  16. +0
    -0
      doc/empty/购物车为空.png
  17. +0
    -0
      doc/empty/页面不存在.png
  18. +37
    -17
      pages/payment/payment.vue
  19. +3
    -0
      store/store.js

+ 1
- 1
App.vue View File

@ -4,7 +4,7 @@
this.$store.commit('initConfig')
},
onShow: function() {
this.$store.commit('getGasStationList')
// this.$store.commit('getGasStationList')
},
onHide: function() {
}


+ 2
- 1
config.js View File

@ -14,7 +14,8 @@ const type = 'prod2'
const config = {
dev : {
// baseUrl : 'http://8.138.162.67:8000/a-notice-api',
baseUrl : 'http://h5.xzaiyp.top/cheer-admin',
// baseUrl : 'http://h5.xzaiyp.top/cheer-admin',
baseUrl : 'http://h5.xzaiyp.top/cheer-prod',
},
prod : {//第一版本生产环境
baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',


BIN
doc/empty/noData.png View File

Before After
Width: 300  |  Height: 300  |  Size: 17 KiB

static/empty/无历史记录.png → doc/empty/无历史记录.png View File


static/empty/无收藏.png → doc/empty/无收藏.png View File


static/empty/无新闻列表.png → doc/empty/无新闻列表.png View File


static/empty/无权限.png → doc/empty/无权限.png View File


static/empty/暂无搜索结果.png → doc/empty/暂无搜索结果.png View File


static/empty/暂无评论.png → doc/empty/暂无评论.png View File


static/empty/没有wifi.png → doc/empty/没有wifi.png View File


static/empty/没有优惠券.png → doc/empty/没有优惠券.png View File


static/empty/没有收货地址.png → doc/empty/没有收货地址.png View File


static/empty/消息为空.png → doc/empty/消息为空.png View File


static/empty/消息列表为空.png → doc/empty/消息列表为空.png View File


static/empty/订单为空.png → doc/empty/订单为空.png View File


static/empty/购物车为空.png → doc/empty/购物车为空.png View File


static/empty/页面不存在.png → doc/empty/页面不存在.png View File


+ 37
- 17
pages/payment/payment.vue View File

@ -4,8 +4,6 @@
<view class="container">
{{ scene }}
<uni-section title="当前加油站"
type="line"
titleFontSize="34rpx"></uni-section>
@ -16,7 +14,7 @@
{{ gasStation.name }}
</view>
</view>
<view class="oil-item"
<!-- <view class="oil-item"
style="margin-left: 20rpx;">
<view class="oil"
style="display: flex;
@ -26,7 +24,7 @@
@click="$refs.popup.open()">
选择站点
</view>
</view>
</view> -->
</view>
<!-- <view class="tip">
@ -147,25 +145,47 @@
}
},
onShow() {
if(!this.scene && !this.gasStation.id){
this.$refs.popup.open()
}else{
this.gasStationList.forEach(n => {
if(n.id == this.scene){
this.$store.commit('setGasStation', n)
}
})
this.$nextTick(n => {
this.getRechargePage()
})
}
this.getGasStationList()
},
onLoad (query) {
// scene 使 decodeURIComponent scene
const scene = decodeURIComponent(query.scene || '')
const scene = query.shareId
// const scene = decodeURIComponent(query.scene || '')
this.scene = scene
},
methods: {
//
getGasStationList(){
this.$api('getGasStationList', {
pageNo : 1,
pageSize : 9999999
}, res => {
if(res.code == 200){
// state.gasStationList = res.result.records
this.$store.commit('setGasStationList', res.result.records)
console.log(res.result.records, this.scene);
if(!this.scene && !this.gasStation.id){
// this.$refs.popup.open()
//
this.$store.commit('setGasStation', res.result.records[0])
}else{
res.result.records.forEach(n => {
if(n.id == this.scene){
console.log(n);
this.$store.commit('setGasStation', n)
}
})
}
this.$nextTick(n => {
this.getRechargePage()
})
}
})
},
setGasStation(data){
this.$store.commit('setGasStation', data)


+ 3
- 0
store/store.js View File

@ -75,6 +75,9 @@ const store = new Vuex.Store({
state.gasStation = data
this.commit('twogetConfig')
},
setGasStationList(state, data){
state.gasStationList = data
},
login(state) {
uni.showLoading({
title:"登录中..."


Loading…
Cancel
Save