Browse Source

修改bug

master
前端-胡立永 9 months ago
parent
commit
c142ab4489
4 changed files with 18 additions and 4 deletions
  1. +3
    -1
      App.vue
  2. +3
    -1
      pages/order/order.vue
  3. +10
    -2
      store/index.js
  4. +2
    -0
      utils/shop.js

+ 3
- 1
App.vue View File

@ -21,7 +21,9 @@
uni.$resMessage = this.$t('message')
},
onShow: function() {},
onShow: function() {
// this.$store.commit('getUnit')
},
onHide: function() {}
}
</script>


+ 3
- 1
pages/order/order.vue View File

@ -73,7 +73,9 @@
</view>
<view class="buttom">
<view class="btn">
<view class="btn"
v-if="item.state == 0"
@click="order = item;show = true">
{{ $t('page.order.Submit_New') }}
</view>
</view>


+ 10
- 2
store/index.js View File

@ -3,13 +3,21 @@ import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import request from '@/utils/request.js'
//实例store对象
const store = new Vuex.Store({
state: {
count: 6
},
mutations: {
/*......*/
getUnit(){
request('getUnit').theen(res => {
if(res.code == 200){
console.log(res);
}
})
},
}
})


+ 2
- 0
utils/shop.js View File

@ -71,4 +71,6 @@ export default {
withdrawal2 : { url : '/info/withdrawal2' , method : 'GET' , auth : true },
//获取登录页面上面的banner
getImage : { url : '/index/getImage' , method : 'GET' },
//获取Unit
getUnit : { url : '/index/getUnit' , method : 'GET' },
}

Loading…
Cancel
Save