替换域名
This commit is contained in:
parent
4f7fc23c23
commit
7090635886
@ -1,7 +1,7 @@
|
||||
const install = (Vue, vm) => {
|
||||
// 此为自定义配置参数,具体参数见上方说明
|
||||
Vue.prototype.$u.http.setConfig({
|
||||
baseUrl: 'https://dmmall.sdbairui.com/storeapi',
|
||||
baseUrl: 'http://mall.dmygkeji.com/storeapi',
|
||||
loadingText: '努力加载中~',
|
||||
loadingTime: 800,
|
||||
originalData: true,
|
||||
|
@ -216,7 +216,7 @@ export default {
|
||||
const token = uni.getStorageSync('token');
|
||||
let that = this
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId: ID
|
||||
},
|
||||
|
@ -106,7 +106,7 @@ export default {
|
||||
sex: ''
|
||||
},
|
||||
// 演示地址,请勿直接使用
|
||||
action: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
||||
action: 'http://mall.dmygkeji.com/storeapi/Upload/uploadFile',
|
||||
coverformdata: {
|
||||
name: 'article_cover'
|
||||
},
|
||||
|
@ -28,7 +28,7 @@
|
||||
<!-- 标签的引入 -->
|
||||
<tap_tosign :fileListes="fileListes" @chuangjian="chuangjian" @qiehuan="qiehuan"></tap_tosign>
|
||||
<view class="titles">直播封面图</view>
|
||||
<u-upload :form-data="{'name':'article_cover'}" action='https://dmmall.sdbairui.com/storeapi/Upload/uploadFile' name="article_cover" :header="{'Authorization' : 'Bearer' + ' ' + token}" :max-count="1" :show-progress="true" @on-change="tupian" @on-success="sccg" del-color="#ececec" upload-text="上传" del-bg-color="#fff" :before-upload="shangchuan"></u-upload>
|
||||
<u-upload :form-data="{'name':'article_cover'}" action='http://mall.dmygkeji.com/storeapi/Upload/uploadFile' name="article_cover" :header="{'Authorization' : 'Bearer' + ' ' + token}" :max-count="1" :show-progress="true" @on-change="tupian" @on-success="sccg" del-color="#ececec" upload-text="上传" del-bg-color="#fff" :before-upload="shangchuan"></u-upload>
|
||||
</view>
|
||||
<view class="button-uview">
|
||||
<u-button :hair-line="false" @click="kaibo">{{relerest}}</u-button>
|
||||
|
@ -170,7 +170,7 @@ export default {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
// 演示地址,请勿直接使用
|
||||
action: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
||||
action: 'http://mall.dmygkeji.com/storeapi/Upload/uploadFile',
|
||||
fileListA: [],
|
||||
imgarrA: [],
|
||||
videopath: '', //视频链接
|
||||
|
@ -438,7 +438,7 @@
|
||||
this.chatroom_id = a.id
|
||||
this.live_id = a.live_id
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/storeapi/Streaming/liveStreamList",
|
||||
url:"http://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
|
||||
method:"POST",
|
||||
header:{
|
||||
'Authorization' : 'Bearer' + " " + token
|
||||
@ -449,7 +449,7 @@
|
||||
}
|
||||
})
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/storeapi/member/memberInfo",
|
||||
url:"http://mall.dmygkeji.com/storeapi/member/memberInfo",
|
||||
method:"POST",
|
||||
header:{
|
||||
'Authorization' : 'Bearer' + " " + token
|
||||
@ -601,7 +601,7 @@
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/storeapi/Streaming/destroyChatRoom",
|
||||
url:"http://mall.dmygkeji.com/storeapi/Streaming/destroyChatRoom",
|
||||
data:{
|
||||
chatroom_id:that.chatroom_id,
|
||||
live_id:that.live_id,
|
||||
@ -732,7 +732,7 @@
|
||||
console.log(arr.join(','))
|
||||
let that = this
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/storeapi/Streaming/updateGoods",
|
||||
url:"http://mall.dmygkeji.com/storeapi/Streaming/updateGoods",
|
||||
method:"POST",
|
||||
data:{
|
||||
goods_id:arr.join(',')
|
||||
@ -743,7 +743,7 @@
|
||||
success(res){
|
||||
console.log(res)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com//storeapi/Streaming/liveStreamList",
|
||||
url:"http://mall.dmygkeji.com//storeapi/Streaming/liveStreamList",
|
||||
method:"POST",
|
||||
header:{
|
||||
'Authorization' : 'Bearer' + " " + token
|
||||
|
@ -91,7 +91,7 @@ export default {
|
||||
console.log(JSON.stringify(res.tempFilePaths));
|
||||
const tempFilePaths = res.tempFilePaths;
|
||||
uni.uploadFile({
|
||||
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
||||
url: 'http://mall.dmygkeji.com/storeapi/Upload/uploadFile',
|
||||
filePath: tempFilePaths[0],
|
||||
name: 'avatar',
|
||||
formData:{
|
||||
|
@ -105,7 +105,7 @@ IMService.prototype.initialContacts = function (friendList) {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:i[0]
|
||||
},
|
||||
@ -282,7 +282,7 @@ IMService.prototype.initialIMListeners = function () {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:message.senderId
|
||||
},
|
||||
@ -410,7 +410,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:friendId
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user