Browse Source

更新

master
453530270@qq.com 2 years ago
parent
commit
3ce82154aa
  1. 6
      pages/goods/list.vue
  2. 6
      pages/index/index.vue
  3. 32
      pages/order/index.vue
  4. 16
      pages/user/mycertinfo/mycertinfo.vue
  5. 5
      utils/request/index.js

6
pages/goods/list.vue

@ -17,7 +17,7 @@
<view v-if="showView" class="dis-flex">
<!-- 图片 -->
<view class="goods-item_left">
<image class="image" :src="item.goods_image"></image>
<image class="image" :src="item.goods_image|gdimg"></image>
</view>
<view class="goods-item_right">
<!-- 名称 -->
@ -201,8 +201,8 @@
},
//
onTargetDetail(goodsId) {
this.$navTo('pages/goods/detail', { goodsId })
onTargetDetail(gislicode) {
this.$navTo('pages/goods/detail', { gislicode })
},
/**

6
pages/index/index.vue

@ -7,6 +7,10 @@
<!-- 轮播图 -->
<view class="lbzone">
<Banner :dataList="imglist"/>
</view>
<!-- 资讯中心 -->
<view class="infolist">
</view>
<!-- 标签和导航区 -->
<view class="linkzone">
@ -230,7 +234,7 @@
* 跳转商品详情页
*/
onTargetGoods(gislicode) {
this.$navTo(`pages/goods/detail`, { gislicode })
this.$navTo('pages/goods/detail', { gislicode })
}
},

32
pages/order/index.vue

@ -95,38 +95,6 @@
</view>
</mescroll-body>
<!-- 支付方式弹窗 -->
<u-popup v-model="showPayPopup" mode="bottom" border-radius="26" :closeable="true">
<view class="pay-popup">
<view class="title">请选择支付方式</view>
<view class="pop-content">
<!-- 微信支付 -->
<!-- #ifdef MP-WEIXIN -->
<view class="pay-item dis-flex flex-x-between" @click="onSelectPayType(PayTypeEnum.WECHAT.value)">
<view class="item-left dis-flex flex-y-center">
<view class="item-left_icon wechat">
<text class="iconfont icon-wechat-pay"></text>
</view>
<view class="item-left_text">
<text>{{ PayTypeEnum.WECHAT.name }}</text>
</view>
</view>
</view>
<!-- #endif -->
<!-- 余额支付 -->
<view class="pay-item dis-flex flex-x-between" @click="onSelectPayType(PayTypeEnum.BALANCE.value)">
<view class="item-left dis-flex flex-y-center">
<view class="item-left_icon balance">
<text class="iconfont icon-balance-pay"></text>
</view>
<view class="item-left_text">
<text>{{ PayTypeEnum.BALANCE.name }}</text>
</view>
</view>
</view>
</view>
</view>
</u-popup>
</view>

16
pages/user/mycertinfo/mycertinfo.vue

@ -63,9 +63,25 @@
<style lang="scss" scoped>
.certinfo{
min-height: 100%;
background: #fff;
//
.ce-frist{
background: #fff;
padding-left: 22rpx;
.cert-title{
font-size: 26rpx;
}
.ce-fbox{
text-align: center;
border: 2rpx solid #ccc;
width: 80%;
display: flex;
min-height: 60rpx;
margin: 24rpx auto ;
}
}
}
</style>

5
utils/request/index.js

@ -63,8 +63,6 @@ $http.requestStart = options => {
}
}
}
// 请求前加入当前终端
//options.header['platform'] = store.getters.platform
//
options.header['Accept'] = "application/json;charset=UTF-8"
@ -118,7 +116,7 @@ $http.dataFactory = async res => {
}
// console.log("rsp",res)
console.log("rsp",res)
let httpData = res.response.data
if (typeof httpData == "string") {
try {
@ -161,6 +159,7 @@ $http.dataFactory = async res => {
// 判断是否需要登录
if (httpData.status == 401 || httpData.statusCode == 401) {
// 401也有可能是后端登录态到期, 所以要清空本地的登录状态
store.dispatch('Logout')

Loading…
Cancel
Save