切换环境

This commit is contained in:
2022-08-18 10:21:33 +08:00
parent 61f3dd8755
commit aa5c4a2c61
4 changed files with 19 additions and 13 deletions

View File

@@ -9,8 +9,8 @@ import router from '../router'
// 基础配置 // 基础配置
const config = { const config = {
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境 apiUrl : 'https://api.gongli.vip/api/', // 正式环境
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试 // apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
timeout: 60000 timeout: 60000
} }
@@ -46,7 +46,6 @@ const request = (parameter, hideLoding = true) => {
data: parameter.data || {}, data: parameter.data || {},
method: parameter.method || 'GET', method: parameter.method || 'GET',
success: res => { success: res => {
console.log(res)
if (res.header.Authorization) { if (res.header.Authorization) {
updateToken('token', res.header.Authorization) updateToken('token', res.header.Authorization)
} }

View File

@@ -47,7 +47,6 @@
}; };
}, },
onLoad() { onLoad() {
console.log(this.$Route.query.id)
repages(this.$Route.query.id).then(res => { repages(this.$Route.query.id).then(res => {
this.order = res.order this.order = res.order
this.goodName = res.order.goods.name this.goodName = res.order.goods.name

View File

@@ -9,20 +9,28 @@
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="swiper-pages"> {{current}}/{{goods.pictures.length}}</view> <view class="swiper-pages"> {{current}}/{{goods.pictures.length}}</view>
<view class="vipGoodsInfo" v-if="shop_vip.status" >{{shop_vip.message}} </view> <!-- vip 商品提示 -->
<view class="vipGoodsInfo" v-if="shop_vip.status" >{{shop_vip.message}} </view>
<!-- 拼团 商品标题上面提示 -->
<view class="vipGoodsInfo" v-if="goods.is_active " >拼团商品</view> <view class="vipGoodsInfo" v-if="goods.is_active " >拼团商品</view>
</view> </view>
<!-- 详情 --> <!-- 详情 -->
<view class="main"> <view class="main">
<view class="title"> {{goods.name}} </view> <view class="title"> {{goods.name}} </view>
<view class="sub-title"><span class='vipType' v-if="shop_vip.messageTitle != ''">{{shop_vip.messageTitle}}</span>{{goods.description}}</view> <view class="sub-title">
<view class="box-flex"> <!-- vip 商品前边 tags -->
<span class='vipType' v-if="shop_vip.messageTitle != ''">{{shop_vip.messageTitle}}</span>{{goods.description}}
</view>
<view class="box-flex">
<!-- vip 商品展示原价 -->
<view class="price"> <view class="price">
{{goods.price.show}}<text>DT积分</text> {{goods.price.show}}<text>DT积分</text>
<span class ='del' v-if="shop_vip.status">{{goods.original_price}} DT积分</span> <span class ='del' v-if="shop_vip.status">{{goods.original_price}} DT积分</span>
</view> </view>
<view class="sales" v-if="goods.skus && !goods.is_active">库存量{{goods.skus[0].stock}}</view> <!-- vip 商品及普通商品展示库存量 -->
<view class="sales" v-if="goods.skus && !goods.is_active">库存量{{goods.skus[0].stock}}</view>
<!-- 拼团商品展示已拼数量及参团数 -->
<view class="_pin" v-if="goods.is_active"> <view class="_pin" v-if="goods.is_active">
<view class="_has" v-if="goods.active.count>0"> <view class="_has" v-if="goods.active.count>0">
<image src="/static/book/fire.png" mode="widthFix" class="fire" /> 已拼{{goods.active.count}} <image src="/static/book/fire.png" mode="widthFix" class="fire" /> 已拼{{goods.active.count}}

File diff suppressed because one or more lines are too long