Browse Source

活动页面增加评价入口

home_hotList^2
ld0104 2 years ago
parent
commit
20dee5a3cf
  1. 8
      pages/activity/SeckillDetails/index.vue
  2. 1
      pages/activity/activity/index.vue
  3. 2
      pages/user/AboutUs/index.vue
  4. 4
      store/index.js
  5. 2
      utils/index.js

8
pages/activity/SeckillDetails/index.vue

@ -286,6 +286,14 @@ export default {
this.mountedStart()
},
methods: {
goEvaluateList(val){
this.$yrouter.push({
path: '/pages/shop/EvaluateList/index',
query: {
id: val,
},
})
},
formatPrice(price, index) {
console.log(price)
if (price) {

1
pages/activity/activity/index.vue

@ -322,7 +322,6 @@
this.seckillList.push.apply(this.seckillList, res.data);
if(this.activityType === 0) {
this.goodsList = this.seckillList;
console.log(this.goodsList,11111111);
}
this.seckillForm.page++;
uni.hideLoading();

2
pages/user/AboutUs/index.vue

@ -86,7 +86,7 @@
font-weight: 500;
color: #3A3A3C;
// line-height: 32rpx;
padding: 0rpx 30rpx;
// padding: 0rpx 30rpx;
}
</style>

4
store/index.js

@ -28,8 +28,8 @@ const vuexStore = new Vuex.Store({
goName: cookie.get('goName') || '',
},
mutations: {
login(state, token, expires_time) {
console.log('设置token')
login(state, [token, expires_time]) {
console.log(expires_time,'设置token')
state.token = token
cookie.set(loginKey, token, expires_time)
},

2
utils/index.js

@ -303,7 +303,7 @@ export const login = loginInfo => {
console.log('auth登录接口调用成功')
console.log('开始处理登录信息保存,并获取用户详情')
uni.hideLoading()
store.commit('login', data.token, dayjs(data.expires_time))
store.commit('login', [data.token, dayjs(data.expires_time)])
// store.dispatch('userInfo', true)
console.log('获取用户token成功');
getUserInfo().then(user => {

Loading…
Cancel
Save