Compare commits
26 Commits
1f6d2b4ab3
...
gyh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2e5cf8b42 | ||
| 2f1b89c6a6 | |||
|
|
841dc290b2 | ||
| 0610a0b157 | |||
|
|
49fe886234 | ||
| 0f26f6737b | |||
|
fb5c8aa476
|
|||
| a732778481 | |||
|
|
2d7922ff96 | ||
| 5b3dbd1dc2 | |||
|
880ce7487b
|
|||
| a6a65153ea | |||
|
c77a7a4d5b
|
|||
|
32bcfb92e1
|
|||
|
100d4d67b9
|
|||
| a1d9339948 | |||
|
a4fee4682f
|
|||
|
f74c8a8776
|
|||
| 2f62fde4f6 | |||
|
|
905ae3b9da | ||
| 341d733a16 | |||
|
|
c02acd7259 | ||
| aa0d7a4a06 | |||
|
45b6086398
|
|||
| f81ce05547 | |||
|
fb81800253
|
@@ -157,7 +157,12 @@ const install = (Vue, vm) => {
|
|||||||
// 达人登录
|
// 达人登录
|
||||||
starLogin({member_mobile,sms_code}) {
|
starLogin({member_mobile,sms_code}) {
|
||||||
return vm.$u.post("/Login/platformExpertPhoneLogin",{member_mobile,sms_code})
|
return vm.$u.post("/Login/platformExpertPhoneLogin",{member_mobile,sms_code})
|
||||||
}
|
},
|
||||||
|
//上传直播间人数
|
||||||
|
//https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber?live_id=1&realtime_number=10
|
||||||
|
changeLiveRealtimeNumber({id,number}){
|
||||||
|
return vm.$u.post("Streaming/changeLiveRealtimeNumber",{live_id:id,realtime_number:number})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||||
|
|||||||
@@ -14,12 +14,13 @@
|
|||||||
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
|
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
|
||||||
<view class="status" v-else-if="info.view_type==6">商家同意</view>
|
<view class="status" v-else-if="info.view_type==6">商家同意</view>
|
||||||
<view class="status" v-else-if="info.view_type==7">商家拒绝</view>
|
<view class="status" v-else-if="info.view_type==7">商家拒绝</view>
|
||||||
|
<view class="status" v-else-if="info.view_type==10">待支付订单</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
|
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共{{info.count_number}}件商品</view>
|
<view class="num">共{{info.count_number}}件商品</view>
|
||||||
<view class="price">实付<span>¥{{info.order_amount}}</span></view>
|
<view class="price">{{ info.view_type==10 ? "待支付" : "实付" }}<span>¥{{info.order_amount}}</span></view>
|
||||||
<view class="time">{{ info.payment_time.slice(5,16) }}</view>
|
<view class="time">{{ info.view_type==10 ? info.add_time.slice(5,16) : info.payment_time.slice(5,16) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -313,6 +313,5 @@
|
|||||||
"text": "我的",
|
"text": "我的",
|
||||||
"selectedColor": "#FBFBFB"
|
"selectedColor": "#FBFBFB"
|
||||||
}]
|
}]
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,19 +16,19 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-radio-group class="box" v-model="value" v-if="type>3">
|
<u-radio-group class="box" v-model="value" v-if="type>3">
|
||||||
<view class="goods-info" v-for="list in info.refund_list">
|
<view class="goods-info" v-for="list in info.goods_list">
|
||||||
<image :src="list.goods_image"></image>
|
<image :src="list.image_480_url"></image>
|
||||||
<view class="info-right">
|
<view class="info-right">
|
||||||
<view class="name u-line-1">{{ list.goods_name }}</view>
|
<view class="name u-line-1">{{ list.goods_name }}</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共{{ list.goods_num }}件商品</view>
|
<view class="num">共{{ list.goods_num }}件商品</view>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
实付
|
{{ type == 10 ? "待支付" : "实付" }}
|
||||||
<span>¥{{ list.refund_amount }}</span>
|
<span>¥{{ list.goods_pay_price }}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-radio :name="list.refund_id" v-if="type==4" shape="circle" @change="radioGroupChange">
|
<!-- <u-radio :name="list.refund_id" v-if="type==4" shape="circle" @change="radioGroupChange"> -->
|
||||||
</u-radio >
|
</u-radio >
|
||||||
</view>
|
</view>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
@@ -146,6 +146,38 @@
|
|||||||
<view class="refund" v-if="type == 5 ">退款状态:同意退款,请注意查收!</view>
|
<view class="refund" v-if="type == 5 ">退款状态:同意退款,请注意查收!</view>
|
||||||
<view class="refund" v-if="type == 6 ">退款状态:商家同意退款,等待后台处理!</view>
|
<view class="refund" v-if="type == 6 ">退款状态:商家同意退款,等待后台处理!</view>
|
||||||
<view class="refund" v-if="type == 7 ">退款状态:商家拒绝退款,请等待客服联系!</view>
|
<view class="refund" v-if="type == 7 ">退款状态:商家拒绝退款,请等待客服联系!</view>
|
||||||
|
<view class="pain-box" v-if="type == 10 ">
|
||||||
|
<view class="info-container">
|
||||||
|
<view>
|
||||||
|
<view class="title">姓名</view>
|
||||||
|
<view class="value">{{ info.extend_order_common.reciver_name }}</view>
|
||||||
|
<image src="/static/image/home/chat.png" @click="tochat(info.buyer_id)"></image>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<view class="title">手机号</view>
|
||||||
|
<view class="value" @longtap="longtap(info.extend_order_common.reciver_info.mob_phone)">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<view class="title">收货地址</view>
|
||||||
|
<view class="value u-line-2" @longtap="longtap(info.extend_order_common.reciver_info.address)">{{ info.extend_order_common.reciver_info.address }}</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<view class="title">派送方式</view>
|
||||||
|
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="remark">
|
||||||
|
<view class="title">订单备注</view>
|
||||||
|
<view class="value" @longtap="longtap(info.extend_order_common.order_message)">{{ info.extend_order_common.order_message }}</view>
|
||||||
|
</view>
|
||||||
|
<view @click="showInvoice">
|
||||||
|
<view class="title">开具发票</view>
|
||||||
|
<view class="invoice">
|
||||||
|
<text>{{ is_invoice ? "是" : "否" }}</text>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="20" style="margin-left: 10rpx;"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
|
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
|
||||||
<view class="title">骑手信息</view>
|
<view class="title">骑手信息</view>
|
||||||
<view class="input-info">
|
<view class="input-info">
|
||||||
@@ -408,14 +440,15 @@ export default {
|
|||||||
//
|
//
|
||||||
confirm() {
|
confirm() {
|
||||||
this.showRefunds = false;
|
this.showRefunds = false;
|
||||||
if (!this.refundid) {
|
// if (!this.refundid) {
|
||||||
this.$refs.uToast.show({
|
// this.$refs.uToast.show({
|
||||||
title: "请选择商品",
|
// title: "请选择商品",
|
||||||
type: "warning"
|
// type: "warning"
|
||||||
});
|
// });
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (this.cur == 0) {
|
if (this.cur == 0) {
|
||||||
|
console.log(this.refundid);
|
||||||
// 确定退款
|
// 确定退款
|
||||||
this.$u.api.refund({
|
this.$u.api.refund({
|
||||||
refund_id: this.refundid,
|
refund_id: this.refundid,
|
||||||
@@ -593,6 +626,8 @@ export default {
|
|||||||
// 自提
|
// 自提
|
||||||
this.mineBy_img = res.data.extend_order_common.sendimg; // 自提图片
|
this.mineBy_img = res.data.extend_order_common.sendimg; // 自提图片
|
||||||
this.mineBy_text = res.data.extend_order_common.deliver_explain; // 自提备注
|
this.mineBy_text = res.data.extend_order_common.deliver_explain; // 自提备注
|
||||||
|
// 退款id
|
||||||
|
this.refundid = res.data.refund_list[0].refund_id;
|
||||||
// console.log(this.invoiceList,this.is_invoice,this.invoice_type);
|
// console.log(this.invoiceList,this.is_invoice,this.invoice_type);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -810,6 +845,46 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.pain-box {
|
||||||
|
.info-container {
|
||||||
|
padding: 0 30rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
.remark {
|
||||||
|
padding: 10rpx 0;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 88rpx;
|
||||||
|
}
|
||||||
|
> view {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 88rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
color: rgba(51, 51, 51, 1);
|
||||||
|
&:not(:last-child) {
|
||||||
|
border-bottom: 2rpx solid #ececec;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
width: 150rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
.value {
|
||||||
|
font-size: 26rpx;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.invoice {
|
||||||
|
margin-left: auto;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
image{
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.delivery {
|
.delivery {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|||||||
@@ -56,6 +56,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-empty margin-top="20" v-if="!badlist.length" mode="order"></u-empty>
|
<u-empty margin-top="20" v-if="!badlist.length" mode="order"></u-empty>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-else-if="current == 7">
|
||||||
|
<view v-for="(item, index) in paidList" :key="index">
|
||||||
|
<OrderItem :info="item"></OrderItem>
|
||||||
|
</view>
|
||||||
|
<u-empty margin-top="20" v-if="!paidList.length" mode="order"></u-empty>
|
||||||
|
</view>
|
||||||
<view class="release-btn" @click="publish">
|
<view class="release-btn" @click="publish">
|
||||||
<image src="../../static/image/index/publish.png"></image>
|
<image src="../../static/image/index/publish.png"></image>
|
||||||
<view class="text">发布</view>
|
<view class="text">发布</view>
|
||||||
@@ -124,7 +130,10 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '退货订单'
|
name: '退货订单'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
name: '待支付订单'
|
||||||
|
}
|
||||||
],
|
],
|
||||||
imageList: [],
|
imageList: [],
|
||||||
showSelect: false,
|
showSelect: false,
|
||||||
@@ -142,6 +151,7 @@ export default {
|
|||||||
finshlist: [], //已完成列表
|
finshlist: [], //已完成列表
|
||||||
badlist: [], //退货列表
|
badlist: [], //退货列表
|
||||||
carlist: [], //可投诉订单列表
|
carlist: [], //可投诉订单列表
|
||||||
|
paidList: [], // 待支付订单
|
||||||
reportinfo: null, //投诉信息
|
reportinfo: null, //投诉信息
|
||||||
reportcontent: '', //投诉内容
|
reportcontent: '', //投诉内容
|
||||||
del_id: 0, // 删除id
|
del_id: 0, // 删除id
|
||||||
@@ -178,6 +188,7 @@ export default {
|
|||||||
this.badlist = [];
|
this.badlist = [];
|
||||||
this.badlist = [];
|
this.badlist = [];
|
||||||
this.testlist = [];
|
this.testlist = [];
|
||||||
|
this.paidList = [];
|
||||||
},
|
},
|
||||||
// 根据current请求不同的接口
|
// 根据current请求不同的接口
|
||||||
reset() {
|
reset() {
|
||||||
@@ -202,7 +213,10 @@ export default {
|
|||||||
} else if (current == 6) {
|
} else if (current == 6) {
|
||||||
// 退货订单
|
// 退货订单
|
||||||
this.getallorder(4);
|
this.getallorder(4);
|
||||||
}
|
} else if (current == 7) {
|
||||||
|
// 待支付订单
|
||||||
|
this.getallorder(10);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 关闭发布弹窗
|
// 关闭发布弹窗
|
||||||
close() {
|
close() {
|
||||||
@@ -332,7 +346,9 @@ export default {
|
|||||||
this.badlist.push(arr[index]);
|
this.badlist.push(arr[index]);
|
||||||
} else if (type == 5) {
|
} else if (type == 5) {
|
||||||
this.badlist.push(arr[index]);
|
this.badlist.push(arr[index]);
|
||||||
}
|
} else if (type == 10) {
|
||||||
|
this.paidList.push(arr[index]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<view class="" v-if="state==0">
|
<view class="" v-if="state==0">
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src="../../static/image/login/login(3).png"></image>
|
<image src="../../static/image/login/login(3).png"></image>
|
||||||
<input v-model="zhanghao" type="text" placeholder="请输入账号" />
|
<input v-model="zhanghao" type="text" @blur="getBlurVal" placeholder="请输入账号" />
|
||||||
</view>
|
</view>
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src="../../static/image/login/login(1).png"></image>
|
<image src="../../static/image/login/login(1).png"></image>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<view class="" v-else-if="state==1">
|
<view class="" v-else-if="state==1">
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src="../../static/image/login/login(3).png"></image>
|
<image src="../../static/image/login/login(3).png"></image>
|
||||||
<input v-model="zhanghaoA" type="text" placeholder="请输入账号" />
|
<input v-model="zhanghaoA" type="text" @blur="getBlurVal1" placeholder="请输入账号" />
|
||||||
</view>
|
</view>
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src="../../static/image/login/login(1).png"></image>
|
<image src="../../static/image/login/login(1).png"></image>
|
||||||
@@ -128,6 +128,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 失去焦点获取数据
|
||||||
|
getBlurVal(e) {
|
||||||
|
// console.log(e.detail.value);
|
||||||
|
this.zhanghao = this.$u.trim(e.detail.value,"all");
|
||||||
|
},
|
||||||
|
getBlurVal1(e) {
|
||||||
|
this.zhanghaoA = this.$u.trim(e.detail.value,"all");
|
||||||
|
// console.log(this.$u.trim(this.zhanghaoA));
|
||||||
|
},
|
||||||
logins() {
|
logins() {
|
||||||
// 判断是否可以点击
|
// 判断是否可以点击
|
||||||
// console.log(this.zhanghao);
|
// console.log(this.zhanghao);
|
||||||
@@ -208,10 +217,13 @@ export default {
|
|||||||
uni.setStorageSync('token', res.data.token);
|
uni.setStorageSync('token', res.data.token);
|
||||||
uni.setStorageSync('userinfo', res.data);
|
uni.setStorageSync('userinfo', res.data);
|
||||||
uni.setStorageSync('rongyun', res.data.rongcloud_token);
|
uni.setStorageSync('rongyun', res.data.rongcloud_token);
|
||||||
this.$u.route({
|
// this.$u.route({
|
||||||
url: '/pages/index/index',
|
// url: '/pages/index/index',
|
||||||
type: 'switchTab'
|
// type: 'switchTab'
|
||||||
});
|
// });
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<view id="content_tosign">
|
<view id="content_tosign">
|
||||||
<u-form :model="form" ref="uForm">
|
<u-form :model="form" ref="uForm">
|
||||||
<u-form-item label-position="right">
|
<u-form-item label-position="right">
|
||||||
<u-input v-model="max" :placeholder="userinfo.rple != 4 ? '优秀的标题可以卖的更好哦~' : '优秀的标题可以吸引更多人观看哦~'" />
|
<u-input v-model="max" :placeholder="userinfo.role != 4 ? '优秀的标题可以卖的更好哦~' : '优秀的标题可以吸引更多人观看哦~'" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view>
|
<view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view>
|
||||||
<u-form-item label-position="right">
|
<u-form-item label-position="right">
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<!-- 标签的引入 -->
|
<!-- 标签的引入 -->
|
||||||
<tap_tosign :fileListes="fileListes" @chuangjian="chuangjian" @qiehuan="qiehuan"></tap_tosign>
|
<tap_tosign :fileListes="fileListes" @chuangjian="chuangjian" @qiehuan="qiehuan"></tap_tosign>
|
||||||
<view class="titles">直播封面图</view>
|
<view class="titles">直播封面图</view>
|
||||||
<u-upload :form-data="{'name':'article_cover'}" action='https://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>
|
<u-upload ref="upload" :form-data="{'name':'article_cover'}" action='https://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>
|
||||||
<view class="button-uview">
|
<view class="button-uview">
|
||||||
<u-button :hair-line="false" @click="kaibo">{{relerest}}</u-button>
|
<u-button :hair-line="false" @click="kaibo">{{relerest}}</u-button>
|
||||||
@@ -112,9 +112,19 @@
|
|||||||
tupian(a){
|
tupian(a){
|
||||||
// console.log(JSON.parse(a.data));
|
// console.log(JSON.parse(a.data));
|
||||||
let info = JSON.parse(a.data);
|
let info = JSON.parse(a.data);
|
||||||
console.log(info.data);
|
console.log(info);
|
||||||
// console.log(JSON.stringify(a.data))
|
// console.log(JSON.stringify(a.data))
|
||||||
|
if(info.errCode == 1){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: info.message,
|
||||||
|
type: 'error'
|
||||||
|
});
|
||||||
|
this.$refs.upload.clear()
|
||||||
|
return ;
|
||||||
|
|
||||||
|
}
|
||||||
this.image = info.data.file_name;
|
this.image = info.data.file_name;
|
||||||
|
|
||||||
},
|
},
|
||||||
navto(url){
|
navto(url){
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
@@ -179,6 +189,7 @@
|
|||||||
|
|
||||||
this.token = uni.getStorageSync('token');
|
this.token = uni.getStorageSync('token');
|
||||||
this.userinfo = uni.getStorageSync("userinfo")
|
this.userinfo = uni.getStorageSync("userinfo")
|
||||||
|
console.log(this.userinfo)
|
||||||
var config = {
|
var config = {
|
||||||
appkey: 'mgb7ka1',
|
appkey: 'mgb7ka1',
|
||||||
debug:true
|
debug:true
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<view class="titles">正文</view>
|
<view class="titles">正文</view>
|
||||||
<view class="titles_border"><textarea placeholder="请输入内容..." v-model="form.intro"></textarea></view>
|
<view class="titles_border"><textarea placeholder="请输入内容..." v-model="form.intro"></textarea></view>
|
||||||
<view class="show_two">
|
<view class="show_two">
|
||||||
<u-popup v-model="show_two" mode="bottom" :closeable="true">
|
<u-popup v-model="show_two" mode="bottom" @close="closeGood" :closeable="true">
|
||||||
<view class="title"><text>选择商品</text></view>
|
<view class="title"><text>选择商品</text></view>
|
||||||
<!-- 商品列表 -->
|
<!-- 商品列表 -->
|
||||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll">
|
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll">
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<view class="u-button" @click="changes()">确定</view>
|
<view class="u-button" @click="changes()">确定</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<!-- 底部选择商品列表 -->
|
<!-- 底部选择商品列表 -->
|
||||||
<view @click="show_two = true" v-if="userinfo.role != 4">
|
<view @click="selectGoods" v-if="userinfo.role != 4">
|
||||||
选择商品
|
选择商品
|
||||||
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
|
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -146,6 +146,7 @@ const cImage = _this => {
|
|||||||
count: 1,
|
count: 1,
|
||||||
sourceType: ['camera', 'album'],
|
sourceType: ['camera', 'album'],
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
// _this.is_video = true;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '上传中'
|
title: '上传中'
|
||||||
});
|
});
|
||||||
@@ -286,6 +287,15 @@ export default {
|
|||||||
this.selectarr.push(this.fileListes[num].id);
|
this.selectarr.push(this.fileListes[num].id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 选择商品
|
||||||
|
selectGoods() {
|
||||||
|
this.show_two = true;
|
||||||
|
this.is_video = true;
|
||||||
|
},
|
||||||
|
// 选择商品弹窗关闭
|
||||||
|
closeGood() {
|
||||||
|
this.is_video = false;
|
||||||
|
},
|
||||||
// 创建标签
|
// 创建标签
|
||||||
addLiveSpec() {
|
addLiveSpec() {
|
||||||
this.$u.api.createLivesp({
|
this.$u.api.createLivesp({
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<image v-if="zhibo" class="closeimg" src="../../static/image/close.png" @click="closes"></image>
|
<image v-if="zhibo" class="closeimg" src="../../static/image/close.png" @click="closes"></image>
|
||||||
<image v-if="zhibo" class="menuimg" src="../../static/image/menu.png" @click="tool = true"></image>
|
<image v-if="zhibo" class="menuimg" src="../../static/image/menu.png" @click="tool = true"></image>
|
||||||
<image v-if="zhibo && list.length != 0" class="shoptapimg" @click="xianshi" src="../../static/image/shop.png" ></image>
|
<image v-if="zhibo && list.length != 0" class="shoptapimg" @click="xianshi" src="../../static/image/shop.png" ></image>
|
||||||
<text v-if="zhibo" style="font-size:26rpx;color:#fff;width:512rpx;position:fixed;left:30rpx;top:793rpx">本平台提倡绿色健康直播,严禁在平台内外出现诱导未成年人诈骗、赌博、低俗色情、吸烟酗酒等不当行为,若有违反,将向相关部门依法追究您的法律责任。如因此给平台造成损失,有权向您全额追偿。
|
<text v-if="zhibo && fen" style="font-size:26rpx;color:#fff;width:512rpx;position:fixed;left:30rpx;top:793rpx;">本平台提倡绿色健康直播,严禁在平台内外出现诱导未成年人诈骗、赌博、低俗色情、吸烟酗酒等不当行为,若有违反,将向相关部门依法追究您的法律责任。如因此给平台造成损失,有权向您全额追偿。
|
||||||
</text>
|
</text>
|
||||||
<div v-if="zhibo" class="danmulist">
|
<div v-if="zhibo" class="danmulist">
|
||||||
<text class="danmuitem" v-for="(i,j) in danmulist" :key="j">{{i.senderNickname}}:{{i.content}}</text>
|
<text class="danmuitem" v-for="(i,j) in danmulist" :key="j">{{i.senderNickname}}:{{i.content}}</text>
|
||||||
@@ -344,10 +344,11 @@
|
|||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
}
|
}
|
||||||
.danmuitem{
|
.danmuitem{
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
word-wrap:anywhere;
|
word-wrap:anywhere;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.livePusher{
|
.livePusher{
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
@@ -374,7 +375,9 @@
|
|||||||
danmulist:[],
|
danmulist:[],
|
||||||
zhibo:true,
|
zhibo:true,
|
||||||
jieshu:{},
|
jieshu:{},
|
||||||
renshumax:0
|
renshumax:0,
|
||||||
|
changeLiveRealtimeNumber:{},
|
||||||
|
fen:true
|
||||||
},
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
console.log('App Launch');
|
console.log('App Launch');
|
||||||
@@ -386,9 +389,16 @@
|
|||||||
this.stop()
|
this.stop()
|
||||||
this.startPreview()
|
this.startPreview()
|
||||||
this.start()
|
this.start()
|
||||||
|
// var message = {
|
||||||
|
// senderNickname : this.room.currentUser.nickname ,
|
||||||
|
// type : 1,
|
||||||
|
// content : '重连'
|
||||||
|
// }
|
||||||
|
// this.chatRoomService.sendMessages(this.room.id, message);
|
||||||
},
|
},
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('App Hide');
|
console.log('App Hide');
|
||||||
|
this.chatRoomService.warrings = ()=>{};
|
||||||
},
|
},
|
||||||
//模拟onshow生命周期
|
//模拟onshow生命周期
|
||||||
created() {
|
created() {
|
||||||
@@ -438,6 +448,7 @@
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
onLoad(a){
|
onLoad(a){
|
||||||
|
|
||||||
console.log(getApp().globalData.im)
|
console.log(getApp().globalData.im)
|
||||||
uni.setKeepScreenOn({
|
uni.setKeepScreenOn({
|
||||||
keepScreenOn: true
|
keepScreenOn: true
|
||||||
@@ -448,6 +459,7 @@
|
|||||||
console.log('Bearer' + " " + token)
|
console.log('Bearer' + " " + token)
|
||||||
this.chatroom_id = a.id
|
this.chatroom_id = a.id
|
||||||
this.live_id = a.live_id
|
this.live_id = a.live_id
|
||||||
|
|
||||||
uni.request({
|
uni.request({
|
||||||
url:"https://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
|
url:"https://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
|
||||||
method:"POST",
|
method:"POST",
|
||||||
@@ -489,6 +501,7 @@
|
|||||||
that.chatRoomService.warrings = that.jinggao
|
that.chatRoomService.warrings = that.jinggao
|
||||||
//获取当前聊天室数据
|
//获取当前聊天室数据
|
||||||
that.room = that.chatRoomService.room;
|
that.room = that.chatRoomService.room;
|
||||||
|
console.log(that.room)
|
||||||
that.chatRoomService.initialWhenOnlineUserChange(that.renqu)
|
that.chatRoomService.initialWhenOnlineUserChange(that.renqu)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -501,6 +514,9 @@
|
|||||||
miao = parseInt(miao)
|
miao = parseInt(miao)
|
||||||
miao = miao + 1
|
miao = miao + 1
|
||||||
// console.log(miao)
|
// console.log(miao)
|
||||||
|
if(fen > 0){
|
||||||
|
that.fen = false;
|
||||||
|
}
|
||||||
if(miao == 60){
|
if(miao == 60){
|
||||||
miao = 0;
|
miao = 0;
|
||||||
fen +=1
|
fen +=1
|
||||||
@@ -520,6 +536,24 @@
|
|||||||
}
|
}
|
||||||
that.time = shi + ":" + fen + ":" + miao
|
that.time = shi + ":" + fen + ":" + miao
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
setInterval(()=>{
|
||||||
|
console.log("定时")
|
||||||
|
uni.request({
|
||||||
|
url:"https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber",
|
||||||
|
method:"POST",
|
||||||
|
header:{
|
||||||
|
'Authorization' : 'Bearer' + " " + token
|
||||||
|
},
|
||||||
|
data:{
|
||||||
|
live_id:that.live_id,
|
||||||
|
realtime_number: that.room.onlineUsers.users.length - 1 < 0 ? 0 : that.room.onlineUsers.users.length - 1
|
||||||
|
},
|
||||||
|
success(res){
|
||||||
|
console.log(JSON.stringify(res))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
10 * 1000)
|
||||||
// var roomToken = JSON.parse(options.roomToken);
|
// var roomToken = JSON.parse(options.roomToken);
|
||||||
|
|
||||||
|
|
||||||
@@ -635,6 +669,8 @@
|
|||||||
});
|
});
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
this.chatRoomService.warrings = ()=>{};
|
||||||
|
|
||||||
const token = uni.getStorageSync('token');
|
const token = uni.getStorageSync('token');
|
||||||
let that = this
|
let that = this
|
||||||
console.log(that.url)
|
console.log(that.url)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="name">
|
<view class="name">
|
||||||
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
||||||
<text>账号:{{info.member_name}}</text>
|
<text>账号:{{info.member_name}}</text>
|
||||||
<text>个性签名:{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
|
<text class="u-line-2">个性签名:{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
@@ -50,18 +50,17 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
isLoginOut() {
|
isLoginOut() {
|
||||||
// console.log(this.isLoginOut);
|
// console.log(this.isLoginOut);
|
||||||
if (this.isLoginOut) {
|
// if (this.isLoginOut) {
|
||||||
uni.hideTabBar();
|
// uni.hideTabBar();
|
||||||
} else {
|
// } else {
|
||||||
setTimeout(function() {
|
// setTimeout(function() {
|
||||||
uni.showTabBar();
|
// uni.showTabBar();
|
||||||
},200)
|
// },200)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getCache();
|
this.getCache();
|
||||||
console.log(222);
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getmyinfo()
|
this.getmyinfo()
|
||||||
@@ -101,8 +100,8 @@ export default {
|
|||||||
plus.cache.clear(function(e) {
|
plus.cache.clear(function(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
})
|
})
|
||||||
|
this.getCache();
|
||||||
}
|
}
|
||||||
this.getCache();
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
@@ -160,6 +159,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
>image{
|
>image{
|
||||||
|
flex-shrink: 0;
|
||||||
width: 110rpx;
|
width: 110rpx;
|
||||||
height: 110rpx;
|
height: 110rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<text>更换头像</text>
|
<text>更换头像</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="title">用户名</text>
|
<text class="title">店铺名称</text>
|
||||||
<input type="text" value="" v-model="info.member_nickname" placeholder="请输入用户名"/>
|
<input type="text" value="" v-model="info.member_nickname" placeholder="请输入用户名"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@@ -37,6 +37,7 @@ export default {
|
|||||||
this.role = userinfo.role;
|
this.role = userinfo.role;
|
||||||
// console.log(this.role);
|
// console.log(this.role);
|
||||||
},
|
},
|
||||||
|
// 保存信息
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
let that = this;
|
let that = this;
|
||||||
let obj ={
|
let obj ={
|
||||||
@@ -86,7 +87,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取图片,上传图片
|
// 获取图片,上传图片
|
||||||
chooseImage(sourceType) {
|
chooseImage(sourceType) {
|
||||||
let that = this
|
let that = this;
|
||||||
|
let photo_type = "";
|
||||||
|
if (this.role == 2) {
|
||||||
|
photo_type = "store_avatar"
|
||||||
|
} else {
|
||||||
|
photo_type = "avatar"
|
||||||
|
}
|
||||||
const token = uni.getStorageSync('token');
|
const token = uni.getStorageSync('token');
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
count: 1,
|
count: 1,
|
||||||
@@ -97,9 +104,10 @@ export default {
|
|||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
|
url: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
|
||||||
filePath: tempFilePaths[0],
|
filePath: tempFilePaths[0],
|
||||||
name: 'avatar',
|
name: photo_type,
|
||||||
formData:{
|
formData:{
|
||||||
name:"avatar"
|
name: photo_type,
|
||||||
|
store_id: that.info.store_id
|
||||||
},
|
},
|
||||||
header:{
|
header:{
|
||||||
Authorization:'Bearer' + " " + token
|
Authorization:'Bearer' + " " + token
|
||||||
@@ -110,7 +118,10 @@ export default {
|
|||||||
that.filename = obj.data.file_name
|
that.filename = obj.data.file_name
|
||||||
that.num++
|
that.num++
|
||||||
console.log(that.fileurl,that.filename)
|
console.log(that.fileurl,that.filename)
|
||||||
}
|
},
|
||||||
|
fail: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="name">
|
<view class="name">
|
||||||
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
||||||
<text>账号:{{info.member_name}}</text>
|
<text>账号:{{info.member_name}}</text>
|
||||||
<text>个性签名:{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
|
<text class="u-line-2">个性签名:{{info.signature==""?"该用户很懒没有签名!":info.signature}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
@@ -111,12 +111,12 @@ export default {
|
|||||||
confirmColor: "#f00",
|
confirmColor: "#f00",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
plus.cache.clear(function(e) {
|
plus.cache.clear(function(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
})
|
})
|
||||||
}
|
this.getCache();
|
||||||
this.getCache();
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
@@ -278,6 +278,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
>image{
|
>image{
|
||||||
|
flex-shrink: 0;
|
||||||
width: 110rpx;
|
width: 110rpx;
|
||||||
height: 110rpx;
|
height: 110rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
static/image/shopback.png
Normal file
BIN
static/image/shopback.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user