@ -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) {
@ -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();
@ -86,7 +86,7 @@
font-weight: 500;
color: #3A3A3C;
// line-height: 32rpx;
padding: 0rpx 30rpx;
// padding: 0rpx 30rpx;
</style>
@ -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)
@ -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 => {