调整签约,调整统一接口模式增加App版本号

This commit is contained in:
唐明明
2023-03-09 11:35:26 +08:00
parent 478b70e9f7
commit a24fe7a84c
3 changed files with 8 additions and 9 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置 // 基础配置
const config = { const config = {
// apiUrl : 'https://douhuo.douhuofalv.com/api/', apiUrl : 'https://douhuo.douhuofalv.com/api/',
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
timeout : 60000 timeout : 60000
} }
@@ -29,8 +29,9 @@ const request = (parameter, hideLoding = true) => {
} }
// 注入header // 注入header
config.header = { config.header = {
'Accept': 'application/json', 'Accept' : 'application/json',
'Authorization': store.getters.getToken || uni.getStorageSync('token') 'Authorization' : store.getters.getToken || uni.getStorageSync('token'),
'Version' : plus.runtime.version
} }
// 加载提示 // 加载提示
if(!hideLoding) uni.showLoading({ if(!hideLoding) uni.showLoading({

View File

@@ -2,7 +2,7 @@
"name" : "抖火", "name" : "抖火",
"appid" : "__UNI__C305C03", "appid" : "__UNI__C305C03",
"description" : "纵有疾风起,人生不言弃", "description" : "纵有疾风起,人生不言弃",
"versionName" : "1.3.3", "versionName" : "1.3.4",
"versionCode" : 103, "versionCode" : 103,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */

View File

@@ -26,7 +26,7 @@
</view> </view>
</view> </view>
<view class="block open-interest"> <view class="block open-interest">
<view class="title">仅需步即可成为业务员</view> <view class="title">仅需3步即可成为业务员</view>
<view class="open-interest-block"> <view class="open-interest-block">
<image class="open-interest-icon" :src="isCertification ? require('@/static/icons/work_icon_25.png'): require('@/static/icons/work_icon_24.png')"></image> <image class="open-interest-icon" :src="isCertification ? require('@/static/icons/work_icon_25.png'): require('@/static/icons/work_icon_24.png')"></image>
<view class="open-interest-text"> <view class="open-interest-text">
@@ -251,7 +251,7 @@
} }
if(this.sign.address == ''){ if(this.sign.address == ''){
uni.showToast({ uni.showToast({
title: '暂时无法签约,请前往个人中心我的信息完善通讯地址信息后重试', title: '暂时无法签约,请前往“我的”,点击用户头像,完善通讯地址信息后重试',
icon : 'none' icon : 'none'
}) })
return return
@@ -319,8 +319,6 @@
}, },
// 创建订单 // 创建订单
onCreateOrder(){ onCreateOrder(){
console.log('需要检查一下是否已经做了业务员签约')
uni.showActionSheet({ uni.showActionSheet({
itemList: ['个人订单', '客户订单'], itemList: ['个人订单', '客户订单'],
success : res => { success : res => {