Compare commits
4 Commits
cmx
...
d97b749a0a
| Author | SHA1 | Date | |
|---|---|---|---|
|
d97b749a0a
|
|||
|
cf76518bc9
|
|||
|
8d7e4b2ce4
|
|||
| 7bfce17816 |
File diff suppressed because one or more lines are too long
@@ -2,16 +2,14 @@
|
|||||||
<view class="item" @click="toDetailsPage">
|
<view class="item" @click="toDetailsPage">
|
||||||
<image :src="info.goods_pic"></image>
|
<image :src="info.goods_pic"></image>
|
||||||
<view class="goods">
|
<view class="goods">
|
||||||
<view class="box">
|
<view class="">
|
||||||
<view class="boxid">
|
|
||||||
{{info.goods_try_id}}
|
|
||||||
</view>
|
|
||||||
<!-- 0:待处理订单 20:同意 40:拒绝此订单 -->
|
<!-- 0:待处理订单 20:同意 40:拒绝此订单 -->
|
||||||
<view class="status" v-if="info.goods_try_order_status==0">待处理订单</view>
|
<view class="status" v-if="info.goods_try_order_status==0">待处理订单</view>
|
||||||
<view class="status" v-if="info.goods_try_order_status==20">已接单订单</view>
|
<view class="status" v-if="info.goods_try_order_status==20">已接单订单</view>
|
||||||
<view class="status" v-if="info.goods_try_order_status==40">已拒绝订单</view>
|
<view class="status" v-if="info.goods_try_order_status==40">已拒绝订单</view>
|
||||||
<view class="status" v-if="info.goods_try_order_status==50">已完成订单</view>
|
<view class="status" v-if="info.goods_try_order_status==50">已完成订单</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="name u-line-1">{{info.goods_name}}</view>
|
<view class="name u-line-1">{{info.goods_name}}</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共{{info.goods_try_num}}件商品</view>
|
<view class="num">共{{info.goods_try_num}}件商品</view>
|
||||||
@@ -69,15 +67,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
.box{
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
font-size: 24rpx;
|
|
||||||
}
|
|
||||||
.boxid{
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
.status {
|
.status {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<!-- 已发货 -->
|
<!-- 已发货 -->
|
||||||
<view class="pushtimeline" v-if="type == 2">
|
<view class="pushtimeline" v-if="type == 2">
|
||||||
<view class="timelinetitle">物流信息</view>
|
<view class="timelinetitle">物流信息</view>
|
||||||
<view class="timelineid">订单单号: {{ info.order_sn }}</view>
|
<view class="timelineid">订单单号:{{ info.order_sn }}</view>
|
||||||
<view class="timelinebox" v-for="list in info.express_list">
|
<view class="timelinebox" v-for="list in info.express_list">
|
||||||
<view class="timelinecontent">{{list.content}}</view>
|
<view class="timelinecontent">{{list.content}}</view>
|
||||||
<view class="timelinetime">{{list.kd_time}}</view>
|
<view class="timelinetime">{{list.kd_time}}</view>
|
||||||
@@ -105,8 +105,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="showDelivery = false">确认</view>
|
<view class="btn" @click="showDelivery = false">确认</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<!-- <u-picker mode="selector" v-model="show" :default-selector="[0]" :range="list" range-key="content" @confirm="getselect" confirm-color="#ff780f;"></u-picker> -->
|
<u-picker mode="selector" v-model="show" :default-selector="[0]" :range="list" range-key="content" @confirm="getselect"></u-picker>
|
||||||
<u-select v-model="show" :list="list" @confirm="getselect" confirm-color="#FF780F"></u-select>
|
|
||||||
<!-- companylist -->
|
<!-- companylist -->
|
||||||
<u-picker
|
<u-picker
|
||||||
mode="selector"
|
mode="selector"
|
||||||
@@ -379,7 +378,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 选择骑手
|
// 选择骑手
|
||||||
getselect(e) {
|
getselect(e) {
|
||||||
this.selctcar = this.list[e[0].value];
|
this.selctcar = this.list[e[0]];
|
||||||
},
|
},
|
||||||
// 获取订单信息
|
// 获取订单信息
|
||||||
resetinfo() {
|
resetinfo() {
|
||||||
@@ -406,8 +405,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let arr = res.data;
|
let arr = res.data;
|
||||||
for (let index in arr) {
|
for (let index in arr) {
|
||||||
arr[index].value = index;
|
arr[index].content = arr[index].company_name + '——' + arr[index].contacts + '——' + arr[index].contact_number;
|
||||||
arr[index].label = arr[index].company_name + ' ' + arr[index].contacts + ' ' + arr[index].contact_number;
|
|
||||||
}
|
}
|
||||||
this.list = arr;
|
this.list = arr;
|
||||||
}
|
}
|
||||||
@@ -463,6 +461,7 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
border-bottom: 2rpx solid #ececec;
|
||||||
}
|
}
|
||||||
.refunds-user {
|
.refunds-user {
|
||||||
padding: 25rpx 30rpx;
|
padding: 25rpx 30rpx;
|
||||||
|
|||||||
@@ -2,7 +2,20 @@
|
|||||||
<view class="home">
|
<view class="home">
|
||||||
<view class="image-swiper"><u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper></view>
|
<view class="image-swiper"><u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper></view>
|
||||||
<view class="tab-swiper">
|
<view class="tab-swiper">
|
||||||
<u-tabs :list="list" font-size="26" gutter="10" item-width="130" bar-width="120" active-color="#FF780F" :current="current" @change="tabsChange"></u-tabs>
|
<!-- <u-tabs-swiper
|
||||||
|
ref="uTabs"
|
||||||
|
:list="list"
|
||||||
|
:current="current"
|
||||||
|
@change="tabsChange"
|
||||||
|
active-color="#FF780F"
|
||||||
|
inactive-color="#333333"
|
||||||
|
font-size="26"
|
||||||
|
height="98"
|
||||||
|
:show-bar="false"
|
||||||
|
swiperWidth="750"
|
||||||
|
gutter="52"
|
||||||
|
></u-tabs-swiper> -->
|
||||||
|
<u-tabs :list="list" font-size="26" gutter="10" item-width="140" bar-width="130" active-color="#FF780F" :current="current" @change="tabsChange"></u-tabs>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-list" v-if="current == 0">
|
<view class="order-list" v-if="current == 0">
|
||||||
<view v-for="(item, index) in allorder" :key="index"><OrderItem :info="item"></OrderItem></view>
|
<view v-for="(item, index) in allorder" :key="index"><OrderItem :info="item"></OrderItem></view>
|
||||||
@@ -397,15 +410,15 @@ export default {
|
|||||||
}
|
}
|
||||||
.complaint {
|
.complaint {
|
||||||
margin: 0 30rpx;
|
margin: 0 30rpx;
|
||||||
padding: 100rpx 20rpx;
|
padding: 75rpx 30rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
.select-container {
|
.select-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 100rpx;
|
margin-bottom: 60rpx;
|
||||||
.title {
|
.title {
|
||||||
width: 150rpx;
|
width: 180rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@@ -443,8 +456,8 @@ export default {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
.title {
|
.title {
|
||||||
width: 150rpx;
|
width: 180rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
|
|||||||
@@ -113,10 +113,7 @@
|
|||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
height: 30rpx;
|
line-height: 30rpx;
|
||||||
overflow:hidden; //超出的文本隐藏
|
|
||||||
text-overflow:ellipsis; //用省略号显示
|
|
||||||
white-space:nowrap; //不换行
|
|
||||||
}
|
}
|
||||||
.times{
|
.times{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="titles">标签</view>
|
<view class="titles">标签</view>
|
||||||
<view class="form-view active" @click="show_add()">+ 新建标签</view>
|
<view class="form-view active" @click="show_add()">+ 新建标签</view>
|
||||||
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
|
<view :class="['form-view',item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -40,7 +40,14 @@
|
|||||||
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
|
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
|
||||||
<view>
|
<view>
|
||||||
<u-checkbox-group>
|
<u-checkbox-group>
|
||||||
<u-checkbox shape="circle" size="40" active-color="#FF780F" v-model="item.checked" :name="index" @change="checkboxChange"></u-checkbox>
|
<u-checkbox
|
||||||
|
shape="circle"
|
||||||
|
size="40"
|
||||||
|
active-color="#FF780F"
|
||||||
|
v-model="item.checked"
|
||||||
|
:name="index"
|
||||||
|
@change="checkboxChange"
|
||||||
|
></u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
</view>
|
</view>
|
||||||
<view><image :src="item.goods_image" mode="widthFix"></image></view>
|
<view><image :src="item.goods_image" mode="widthFix"></image></view>
|
||||||
@@ -77,75 +84,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let COS = require('../../common/cos-wx-sdk-v5.js');
|
|
||||||
// 上传文件
|
|
||||||
const upload_file_server = (_this, filepath) => {
|
|
||||||
// 腾讯云配置
|
|
||||||
let cosConfig = {
|
|
||||||
Bucket: 'dmmall-1300406074', //replace with yours
|
|
||||||
Region: 'ap-shanghai', //replace with yours
|
|
||||||
SecretId: 'AKIDjDPJhni9gTzEB9iGNWQ3PTVGjv74q7EL', //replace with yours
|
|
||||||
SecretKey: 'ye3SZOvAQO5X5LK3Vy933h6G86h4mqpG' //replace with yours
|
|
||||||
};
|
|
||||||
// 获取本地文件
|
|
||||||
let filePath = filepath;
|
|
||||||
// 自定义文件名以及路径
|
|
||||||
let time = new Date();
|
|
||||||
var y = time.getFullYear();
|
|
||||||
var m = time.getMonth() + 1;
|
|
||||||
m = m < 10 ? '0' + m : m;
|
|
||||||
var d = time.getDate();
|
|
||||||
d = d < 10 ? '0' + d : d;
|
|
||||||
let str = y + m + d;
|
|
||||||
let Key = 'video/' + str + '/' + filePath.substr(filePath.lastIndexOf('/') + 1);
|
|
||||||
// 初始化凭证
|
|
||||||
var cos = new COS({
|
|
||||||
SecretId: cosConfig.SecretId,
|
|
||||||
SecretKey: cosConfig.SecretKey
|
|
||||||
});
|
|
||||||
//上传文件
|
|
||||||
cos.postObject(
|
|
||||||
{
|
|
||||||
Bucket: cosConfig.Bucket,
|
|
||||||
Region: cosConfig.Region,
|
|
||||||
Key: Key,
|
|
||||||
StorgeClass: 'STANDARD', //存储方式
|
|
||||||
FilePath: filePath
|
|
||||||
},
|
|
||||||
(err, data) => {
|
|
||||||
console.log(err, data, 12345);
|
|
||||||
if (err == null) {
|
|
||||||
if (data.statusCode == 200) {
|
|
||||||
_this.videopath = 'https://dmmall-1300406074.cos.ap-shanghai.myqcloud.com/' + Key;
|
|
||||||
uni.hideLoading();
|
|
||||||
_this.videostate = true;
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: '上传失败!',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
|
||||||
// 选择图片(通用)
|
|
||||||
const cImage = _this => {
|
|
||||||
uni.chooseVideo({
|
|
||||||
count: 1,
|
|
||||||
sourceType: ['camera', 'album'],
|
|
||||||
success: function(res) {
|
|
||||||
uni.showLoading({
|
|
||||||
title: '上传中'
|
|
||||||
});
|
|
||||||
const tempFilePaths = res.tempFilePath;
|
|
||||||
console.log(tempFilePaths);
|
|
||||||
upload_file_server(_this, tempFilePaths);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -175,8 +113,7 @@ export default {
|
|||||||
selectarr: [], //选中标签
|
selectarr: [], //选中标签
|
||||||
tagcontent: '', //新建标签名字
|
tagcontent: '', //新建标签名字
|
||||||
selectvideo: '', //视频名字
|
selectvideo: '', //视频名字
|
||||||
videostate: false, //视频状态
|
videostate: false //视频状态
|
||||||
progress: 0
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -220,11 +157,11 @@ export default {
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
setTimeout(function() {
|
setTimeout(function(){
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta:1
|
||||||
});
|
})
|
||||||
}, 1000);
|
},1000)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -298,7 +235,41 @@ export default {
|
|||||||
},
|
},
|
||||||
// 上传视频
|
// 上传视频
|
||||||
uploadvideo() {
|
uploadvideo() {
|
||||||
cImage(this);
|
let url = this.action;
|
||||||
|
let that = this;
|
||||||
|
uni.showLoading({
|
||||||
|
title:"上传中!"
|
||||||
|
})
|
||||||
|
uni.chooseVideo({
|
||||||
|
count: 1,
|
||||||
|
sourceType: ['camera', 'album'],
|
||||||
|
success: function(res) {
|
||||||
|
that.src = res.tempFilePath;
|
||||||
|
const tempFilePaths = res.tempFilePath;
|
||||||
|
uni.uploadFile({
|
||||||
|
url: url, //仅为示例,非真实的接口地址
|
||||||
|
filePath: tempFilePaths,
|
||||||
|
name: 'article_video',
|
||||||
|
formData: {
|
||||||
|
name: 'article_video'
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
|
},
|
||||||
|
success: uploadFileRes => {
|
||||||
|
console.log(uploadFileRes);
|
||||||
|
let obj = JSON.parse(uploadFileRes.data);
|
||||||
|
that.videopath = obj.data.url;
|
||||||
|
that.selectvideo = obj.data.key;
|
||||||
|
uni.hideLoading()
|
||||||
|
that.videostate = true;
|
||||||
|
},
|
||||||
|
fail: function(error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 新建标签
|
// 新建标签
|
||||||
show_add() {
|
show_add() {
|
||||||
@@ -312,13 +283,13 @@ export default {
|
|||||||
// 选中某个复选框时,由checkbox时触发
|
// 选中某个复选框时,由checkbox时触发
|
||||||
checkboxChange(e) {
|
checkboxChange(e) {
|
||||||
let that = this;
|
let that = this;
|
||||||
let num = Number(e.name);
|
let num =Number(e.name)
|
||||||
if (e.value == true) {
|
if (e.value == true) {
|
||||||
that.pushes(that.list[num].goods_id);
|
that.pushes(that.list[num].goods_id);
|
||||||
that.list[num].checked = true;
|
that.list[num].checked=true
|
||||||
} else {
|
} else {
|
||||||
that.delarr(that.list[num].goods_id);
|
that.delarr(that.list[num].goods_id);
|
||||||
that.list[num].checked = false;
|
that.list[num].checked=false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 删除直播商品
|
// 删除直播商品
|
||||||
@@ -477,7 +448,7 @@ export default {
|
|||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
.form-view {
|
.form-view {
|
||||||
background: #cdc7c8;
|
background: #CDC7C8;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
@@ -487,7 +458,7 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
background: #ff780f;
|
background: #FF780F;
|
||||||
}
|
}
|
||||||
.titles {
|
.titles {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 723 B |
@@ -299,7 +299,8 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
||||||
let time = new Date(message.timestamp)
|
let time = new Date(message.timestamp)
|
||||||
friend.date = message.timestamp
|
friend.date = message.timestamp
|
||||||
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
||||||
|
|
||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in that.friends){
|
for(let i in that.friends){
|
||||||
@@ -325,7 +326,8 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
||||||
let time = new Date(message.timestamp)
|
let time = new Date(message.timestamp)
|
||||||
friend.date = message.timestamp
|
friend.date = message.timestamp
|
||||||
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
||||||
|
|
||||||
console.log(this.friends)
|
console.log(this.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in this.friends){
|
for(let i in this.friends){
|
||||||
@@ -424,7 +426,8 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
friend.text = message
|
friend.text = message
|
||||||
let time = new Date()
|
let time = new Date()
|
||||||
friend.date = time.getTime()
|
friend.date = time.getTime()
|
||||||
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
||||||
|
|
||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in that.friends){
|
for(let i in that.friends){
|
||||||
@@ -448,7 +451,8 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
friend.text = message
|
friend.text = message
|
||||||
let time = new Date()
|
let time = new Date()
|
||||||
friend.date = time.getTime()
|
friend.date = time.getTime()
|
||||||
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
||||||
|
|
||||||
console.log(this.friends)
|
console.log(this.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in this.friends){
|
for(let i in this.friends){
|
||||||
|
|||||||
Reference in New Issue
Block a user