Compare commits
6 Commits
lxb
...
74fbd629d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
74fbd629d6
|
|||
| e71a43eb85 | |||
|
|
fef56d1b52 | ||
|
|
cc7a293e18 | ||
|
|
8660e95d02 | ||
|
96adf9e6a9
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
.vscode
|
.vscode
|
||||||
node_modules
|
node_modules
|
||||||
|
unpackage
|
||||||
10
App.vue
10
App.vue
@@ -1,18 +1,18 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
console.log('App Launch')
|
console.log('App Launch');
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
console.log('App Show')
|
console.log('App Show');
|
||||||
},
|
},
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('App Hide')
|
console.log('App Hide');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
@import "uview-ui/index.scss";
|
@import 'uview-ui/index.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const install = (Vue, vm) => {
|
|||||||
return vm.$u.get("Streaming/getLiveSpec")
|
return vm.$u.get("Streaming/getLiveSpec")
|
||||||
},
|
},
|
||||||
login({member_name,member_password}){
|
login({member_name,member_password}){
|
||||||
return vm.$u.post("Login/login",{member_name,member_password})
|
return vm.$u.get("/Login/expertLogin",{member_name,member_password})
|
||||||
},
|
},
|
||||||
createLivesp({spec_name}){
|
createLivesp({spec_name}){
|
||||||
return vm.$u.post("Streaming/createLivesp",{spec_name})
|
return vm.$u.post("Streaming/createLivesp",{spec_name})
|
||||||
@@ -21,7 +21,19 @@ const install = (Vue, vm) => {
|
|||||||
},
|
},
|
||||||
liveStreamList(){
|
liveStreamList(){
|
||||||
return vm.$u.post("Streaming/liveStreamList")
|
return vm.$u.post("Streaming/liveStreamList")
|
||||||
}
|
},
|
||||||
|
// 获取订单列表
|
||||||
|
getorderlist(){
|
||||||
|
return vm.$u.get("/Order/orderList")
|
||||||
|
},
|
||||||
|
// 获取轮播图列表
|
||||||
|
getswiper(){
|
||||||
|
return vm.$u.get("/Order/orderList")
|
||||||
|
},
|
||||||
|
// 商家登陆
|
||||||
|
shoplogin(obj){
|
||||||
|
return vm.$u.get("/Login/storeLogin",obj)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||||
vm.$u.api = api;
|
vm.$u.api = api;
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
const install = (Vue, vm) => {
|
const install = (Vue, vm) => {
|
||||||
// 此为自定义配置参数,具体参数见上方说明
|
// 此为自定义配置参数,具体参数见上方说明
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
baseUrl: 'https://dmmall.sdbairui.com//storeapi',
|
baseUrl: 'https://dmmall.sdbairui.com/storeapi',
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
loadingTime: 800,
|
loadingTime: 800,
|
||||||
// 设置自定义头部content-type
|
originalData: true,
|
||||||
// header: {
|
|
||||||
// "Authorization" : "122"
|
|
||||||
// }
|
|
||||||
// ......
|
|
||||||
});
|
});
|
||||||
Vue.prototype.$u.http.interceptor.request = (config) => {
|
Vue.prototype.$u.http.interceptor.request = (config) => {
|
||||||
const token = uni.getStorageSync('token');
|
const token = uni.getStorageSync('token');
|
||||||
config.header.Authorization = 'Bearer' + " " + token;
|
config.header.Authorization = 'Bearer' + " " + token;
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
Vue.prototype.$u.http.interceptor.response = (res) => {
|
||||||
|
// todo 判断状态码
|
||||||
|
return res.data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -2,14 +2,7 @@
|
|||||||
<view class="item" @click="toDetailsPage">
|
<view class="item" @click="toDetailsPage">
|
||||||
<image></image>
|
<image></image>
|
||||||
<view class="goods">
|
<view class="goods">
|
||||||
|
<view class="status" v-if="cur==4">待处理订单</view>
|
||||||
<view class="goods_num">
|
|
||||||
<view class="number">
|
|
||||||
编号:1234567890123456
|
|
||||||
</view>
|
|
||||||
<view class="order" v-if="cur==4">已完成订单</view>
|
|
||||||
<view class="order" v-else>待处理订单</view>
|
|
||||||
</view>
|
|
||||||
<view class="name u-line-1">心机小黑裙连衣裙赫本风夏季爆款...</view>
|
<view class="name u-line-1">心机小黑裙连衣裙赫本风夏季爆款...</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="num">共一件商品</view>
|
<view class="num">共一件商品</view>
|
||||||
@@ -57,26 +50,6 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
.goods_num{
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 18rpx;
|
|
||||||
.number{
|
|
||||||
font-size:22rpx;
|
|
||||||
font-family:PingFang SC;
|
|
||||||
font-weight:400;
|
|
||||||
color:rgba(153,153,153,1);
|
|
||||||
line-height:36rpx;
|
|
||||||
}
|
|
||||||
.order{
|
|
||||||
font-size:26rpx;
|
|
||||||
font-family:PingFang SC;
|
|
||||||
font-weight:400;
|
|
||||||
color:rgba(255,49,49,1);
|
|
||||||
line-height:36rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.status {
|
.status {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -6,8 +6,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"uview-ui": {
|
"uview-ui": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
"resolved": "https://registry.npm.taobao.org/uview-ui/download/uview-ui-1.5.2.tgz?cache=0&sync_timestamp=1594781920423&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuview-ui%2Fdownload%2Fuview-ui-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.5.2.tgz",
|
||||||
"integrity": "sha1-4jDud0TIBjMJe74GU+IyvJSyAwk="
|
"integrity": "sha512-FV9G+gZTAZKEE2m85ahIbIRiC/fdzTl+eNXDIMBoyc9b+fQWQhEtmAfu6huu7AtKuTI6gfqaYn6WGcmqYvr76w=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,45 +1,47 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="home">
|
<view class="home">
|
||||||
<view class="image-swiper">
|
<view class="image-swiper"><u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper></view>
|
||||||
<u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper>
|
|
||||||
</view>
|
|
||||||
<view class="tab-swiper">
|
<view class="tab-swiper">
|
||||||
<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-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>
|
||||||
</view>
|
</view>
|
||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish">
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;" class="order-list">
|
<scroll-view scroll-y style="height: 100%;width: 100%;" class="order-list">
|
||||||
<view v-for="(item, index) in 5" :key="index">
|
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||||
<OrderItem :cur="current"></OrderItem>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||||
<view v-for="(item, index) in 5" :key="index">
|
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||||
<OrderItem :cur="current"></OrderItem>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||||
<view v-for="(item, index) in 5" :key="index">
|
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||||
<OrderItem :cur="current"></OrderItem>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||||
<view class="complaint">
|
<view class="complaint">
|
||||||
<view class="select-container">
|
<view class="select-container">
|
||||||
<view class="title">选择订单号</view>
|
<view class="title">选择骑手</view>
|
||||||
<view class="select" v-if="JSON.stringify(worker) != '{}'">
|
<view class="worker" v-if="JSON.stringify(worker) != '{}'">
|
||||||
<!-- <view>{{ worker.label + " " + worker.name }}</view>
|
<view>{{ worker.company + ' ' + worker.name }}</view>
|
||||||
<u-icon name="edit-pen"></u-icon> -->
|
<u-icon name="edit-pen" @click="worker = {}"></u-icon>
|
||||||
<view class="order_num"><text>{{ worker.label}}</text><text> {{ worker.name }}</text></view>
|
|
||||||
<image src="/static/image/home/5.png" @click="open()"></image>
|
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="select" @click="show = true">
|
<view v-else class="select" @click="showSelect = true">
|
||||||
<view>请选择</view>
|
<view>请选择</view>
|
||||||
<image src="/static/image/home/5.png"></image>
|
<image src="/static/image/home/5.png"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -55,51 +57,20 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||||
<view v-for="(item, index) in 5" :key="index">
|
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||||
<OrderItem :cur="current"></OrderItem>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item class="swiper-item">
|
<swiper-item class="swiper-item">
|
||||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||||
<view v-for="(item, index) in 15" :key="index">
|
<view v-for="(item, index) in 15" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||||
<OrderItem :cur="current"></OrderItem>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
<view class="release-btn" @click="publish">
|
<view class="release-btn" @click="publish">
|
||||||
<image src="/static/home/1.png"></image>
|
<image src="../../static/image/index/publish.png"></image>
|
||||||
<view class="text" @click="release()">发布</view>
|
<view class="text">发布</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <u-select v-model="showSelect" mode="mutil-column-auto" :list="workerList" @confirm="setWorker"></u-select> -->
|
<u-select v-model="showSelect" mode="mutil-column-auto" :list="workerList" @confirm="setWorker"></u-select>
|
||||||
<u-popup v-model="show" mode="bottom" >
|
|
||||||
<view class="popup_cont" >
|
|
||||||
<view class="rider">
|
|
||||||
<text>选择骑手</text>
|
|
||||||
<image src="../../static/image/tosign/noes.png" @click="show = false"></image>
|
|
||||||
</view>
|
|
||||||
<swiper style="height: 30vh" vertical="true">
|
|
||||||
<swiper-item class="swiper-item" >
|
|
||||||
<scroll-view scroll-y class="order-list">
|
|
||||||
<view class="checkd">
|
|
||||||
<u-radio-group v-model="value" @change="radioGroupChange" class="posi">
|
|
||||||
<label v-for="(item, index) in workerList" :key="index" class="check" @confirm="setWorker">
|
|
||||||
<view class="">{{item.name}}</view>
|
|
||||||
<view class="">{{item.label}}</view>
|
|
||||||
<view class="">{{item.company}}</view>
|
|
||||||
<u-radio @change="radioChange(item)" :name="item.id":disabled="item.disabled" shape="circle" active-color="rgba(255, 120, 15, 1)" wrap ="true"></u-radio>
|
|
||||||
</label>
|
|
||||||
</u-radio-group>
|
|
||||||
</view>
|
|
||||||
</scroll-view>
|
|
||||||
</swiper-item>
|
|
||||||
</swiper>
|
|
||||||
<view class="bottom_btn" style="width: 100%;background-color: #fff;">
|
|
||||||
<view class="wash-btn" @click="confirm()">确认</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</u-popup>
|
|
||||||
<u-popup v-model="showComplaint" mode="center" border-radius="10">
|
<u-popup v-model="showComplaint" mode="center" border-radius="10">
|
||||||
<view class="confirm-complaint">
|
<view class="confirm-complaint">
|
||||||
<view class="text">
|
<view class="text">
|
||||||
@@ -113,45 +84,50 @@
|
|||||||
<view class="publish">
|
<view class="publish">
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view @click="navto('release/tosign')">
|
<view @click="navto('release/tosign')">
|
||||||
<image></image>
|
<image src="../../static/image/index/live.png"></image>
|
||||||
<text>直播</text>
|
<text>直播</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="navto('release/index')">
|
<view @click="navto('release/index')">
|
||||||
<image></image>
|
<image src="../../static/image/index/photo.png"></image>
|
||||||
<text>图文</text>
|
<text>图文</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="navto('release/video')">
|
<view @click="navto('release/video')">
|
||||||
<image></image>
|
<image src="../../static/image/index/video.png"></image>
|
||||||
<text>视频</text>
|
<text>视频</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="off"></image>
|
<image src="../../static/image/index/close.png" class="off" @click="close"></image>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import OrderItem from '@/components/order-item/index'
|
import OrderItem from '@/components/order-item/index';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [{
|
list: [
|
||||||
|
{
|
||||||
name: '全部订单'
|
name: '全部订单'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: '试穿订单'
|
name: '试穿订单'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: '待处理订单'
|
name: '待处理订单'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: '投诉骑手'
|
name: '投诉骑手'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: '已完成订单'
|
name: '已完成订单'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: '退货订单'
|
name: '退货订单'
|
||||||
}],
|
}
|
||||||
imageList: [
|
|
||||||
{}, {}, {}
|
|
||||||
],
|
],
|
||||||
|
imageList: [],
|
||||||
showSelect: false,
|
showSelect: false,
|
||||||
current: 0,
|
current: 0,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
@@ -159,87 +135,105 @@ export default {
|
|||||||
worker: {},
|
worker: {},
|
||||||
workerList: [
|
workerList: [
|
||||||
{
|
{
|
||||||
label: '1826789742312345',
|
label: '百世快递公司',
|
||||||
id:'1',
|
children: [
|
||||||
name:'芳芳',
|
{
|
||||||
disabled: false
|
label: '小米'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '1826789742312345',
|
label: '小亮'
|
||||||
id:'2',
|
}
|
||||||
name:'张三',
|
]
|
||||||
disabled: false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '1826789742312345',
|
label: '中通快递公司',
|
||||||
id:'3',
|
children: [
|
||||||
name:'李四',
|
{
|
||||||
disabled: false
|
label: '小红'
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '1826789742312345',
|
label: '申通快递公司',
|
||||||
id:'4',
|
children: [
|
||||||
name:'王五',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '1826789742312345',
|
label: '小蓝'
|
||||||
id:'5',
|
}
|
||||||
name:'阿郎',
|
]
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '1826789742312345',
|
|
||||||
id:'6',
|
|
||||||
name:'阿娘',
|
|
||||||
disabled: false
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
publishstate:true,
|
publishstate: false,
|
||||||
value: 'orange',
|
num: 0
|
||||||
show: false
|
};
|
||||||
}
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
OrderItem
|
OrderItem
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.getswiper();
|
||||||
|
this.getallorder();
|
||||||
|
this.getorderlist();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
release(){
|
// 关闭发布弹窗
|
||||||
this.publishstate = true
|
close() {
|
||||||
|
this.publishstate = false;
|
||||||
},
|
},
|
||||||
confirm(){
|
// 获取订单列表
|
||||||
this.show=false
|
getorderlist(type) {
|
||||||
},
|
let that = this;
|
||||||
open(){
|
this.$u.api
|
||||||
this.show = true
|
.getorderlist({
|
||||||
},
|
page: that.num,
|
||||||
// 选中某个单选框时,由radio时触发
|
state_type: type
|
||||||
radioChange(e) {
|
})
|
||||||
this.worker = {
|
.then(res => {
|
||||||
label: e.label,
|
console.log(res);
|
||||||
name: e.name,
|
if (res.errCode != 0) {
|
||||||
company:e.company
|
} else {
|
||||||
}
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 选中任一radio时,由radio-group触发
|
// 获取全部订单
|
||||||
radioGroupChange(e) {
|
getallorder() {
|
||||||
// console.log(e);
|
let that = this;
|
||||||
|
this.$u.api
|
||||||
|
.getorderlist({
|
||||||
|
page: that.num
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.errCode != 0) {
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
// 获取轮播图
|
||||||
|
getswiper() {
|
||||||
|
this.imageList =[{
|
||||||
|
image: '../../static/image/index/swiper.png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: '../../static/image/index/swiper.png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: '../../static/image/index/swiper.png'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// 打开发布弹窗
|
||||||
publish() {
|
publish() {
|
||||||
|
this.publishstate = true;
|
||||||
},
|
},
|
||||||
setWorker(e) {
|
setWorker(e) {
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
|
this.worker = {
|
||||||
|
company: e[0].label,
|
||||||
|
name: e[1].label
|
||||||
|
};
|
||||||
},
|
},
|
||||||
tabsChange(index) {
|
tabsChange(index) {
|
||||||
this.swiperCurrent = index;
|
this.swiperCurrent = index;
|
||||||
if(this.swiperCurrent == 3){
|
|
||||||
this.worker ={}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
animationfinish(e) {
|
animationfinish(e) {
|
||||||
let current = e.detail.current;
|
let current = e.detail.current;
|
||||||
@@ -250,19 +244,19 @@ export default {
|
|||||||
navto(url) {
|
navto(url) {
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url: `/pages/${url}`
|
url: `/pages/${url}`
|
||||||
})
|
});
|
||||||
// console.log(`/pages/${url}`)
|
// console.log(`/pages/${url}`)
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: `/pages/${url}`
|
// url: `/pages/${url}`
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.home {
|
.home {
|
||||||
min-height: calc(100vh - var(--window-top));
|
min-height: calc(100vh - var(--window-top));
|
||||||
background-color: #ECECEC;
|
background-color: #ececec;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
// padding-bottom: 100rpx;
|
// padding-bottom: 100rpx;
|
||||||
@@ -278,7 +272,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.swiper-item {
|
.swiper-item {
|
||||||
.complaint {
|
.complaint {
|
||||||
margin: 0rpx 30rpx 0;
|
margin: 0 30rpx;
|
||||||
padding: 75rpx 30rpx;
|
padding: 75rpx 30rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
.select-container {
|
.select-container {
|
||||||
@@ -292,7 +286,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.select {
|
.select {
|
||||||
padding: 18rpx 20rpx;
|
padding: 18rpx 20rpx;
|
||||||
width: 470rpx;
|
width: 490rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
background: rgba(236, 236, 236, 1);
|
background: rgba(236, 236, 236, 1);
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
@@ -307,11 +301,6 @@ export default {
|
|||||||
width: 24rpx;
|
width: 24rpx;
|
||||||
height: 13rpx;
|
height: 13rpx;
|
||||||
}
|
}
|
||||||
.order_num{
|
|
||||||
width: 367rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.worker {
|
.worker {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -409,7 +398,6 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 50rpx 84rpx 31rpx 78rpx;
|
padding: 50rpx 84rpx 31rpx 78rpx;
|
||||||
image {
|
image {
|
||||||
background-color: #0f0;
|
|
||||||
}
|
}
|
||||||
.list {
|
.list {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -438,110 +426,5 @@ export default {
|
|||||||
height: 37rpx;
|
height: 37rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.popup_cont{
|
|
||||||
border-top: 1px solid RGBA(239, 236, 240, 1);
|
|
||||||
background-color: #fff;
|
|
||||||
width: 100%;
|
|
||||||
height: 562rpx;
|
|
||||||
line-height: 80rpx;
|
|
||||||
font-size:28rpx;
|
|
||||||
font-family:PingFang SC;
|
|
||||||
font-weight:400;
|
|
||||||
color:rgba(102,102,102,1);
|
|
||||||
transform: scale(1);
|
|
||||||
/* top: 0px; */
|
|
||||||
transition-duration: 0.3s;
|
|
||||||
|
|
||||||
> uni-swiper {
|
|
||||||
flex: 1;
|
|
||||||
height: 100vh;
|
|
||||||
|
|
||||||
.order-list{
|
|
||||||
height: 30vh;
|
|
||||||
padding-bottom: 140rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.rider{
|
|
||||||
border-radius:20px 20px 0px 0px;
|
|
||||||
font-size:30rpx;
|
|
||||||
font-family:PingFang SC;
|
|
||||||
font-weight:500;
|
|
||||||
color:rgba(51,51,51,1);
|
|
||||||
height:88rpx;
|
|
||||||
width: 100%;
|
|
||||||
padding-left: 30rpx;
|
|
||||||
border-bottom: 1px solid rgba(236, 236, 236, 1);
|
|
||||||
|
|
||||||
>image{
|
|
||||||
width: 32rpx;
|
|
||||||
height: 32rpx;
|
|
||||||
vertical-align: middle;
|
|
||||||
float: right;
|
|
||||||
padding-top: 30rpx;
|
|
||||||
padding-right:30rpx
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.store{
|
|
||||||
>view{
|
|
||||||
padding-left: 30rpx;
|
|
||||||
padding-top: 30rpx;
|
|
||||||
>image{
|
|
||||||
width:60rpx;
|
|
||||||
height:60rpx;
|
|
||||||
border-radius:50%;
|
|
||||||
vertical-align: middle;
|
|
||||||
padding-right:13rpx
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
font-size:28rpx;
|
|
||||||
font-family:PingFang SC;
|
|
||||||
font-weight:400;
|
|
||||||
color:rgba(51,51,51,1);
|
|
||||||
line-height: 60rpx;
|
|
||||||
|
|
||||||
}
|
|
||||||
.checkd{
|
|
||||||
>radio-group .uni-list-cell{
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
width: 100%;
|
|
||||||
padding-bottom: 140rpx;
|
|
||||||
}
|
|
||||||
.posi{
|
|
||||||
margin-bottom: 80rpx;
|
|
||||||
|
|
||||||
.check{
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
.bottom_btn{
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 140rpx;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
.wash-btn {
|
|
||||||
width: 690rpx;
|
|
||||||
height: 98rpx;
|
|
||||||
background: rgba(255,120,15,1);
|
|
||||||
border-radius: 49rpx;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 40rpx;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, 0);
|
|
||||||
font-size: 36rpx;
|
|
||||||
color:rgba(255,255,255,1);
|
|
||||||
text-align: center;
|
|
||||||
line-height: 98rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -2,22 +2,43 @@
|
|||||||
<!-- login页面 -->
|
<!-- login页面 -->
|
||||||
<view>
|
<view>
|
||||||
<view class="login">
|
<view class="login">
|
||||||
<image class="images" src=""></image>
|
<image class="images" :src="url"></image>
|
||||||
<view class="backes"></view>
|
<view class="backes"></view>
|
||||||
<view class="content">
|
|
||||||
<view class="title_top">德铭阳光在线-商家端</view>
|
<view class="title_top">德铭阳光在线-商家端</view>
|
||||||
<view class="title">账号登录</view>
|
<view class="content">
|
||||||
|
<view class="title">
|
||||||
|
<view v-bind:class="[state==0 ? 'show' : '']" @click="changetab(0)">
|
||||||
|
商家登录
|
||||||
|
</view>
|
||||||
|
<view v-bind:class="[state==1 ? 'show' : '']" @click="changetab(1)">
|
||||||
|
达人登录
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" v-if="state==0">
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src=""></image>
|
<image src="../../static/image/login/login(3).png"></image>
|
||||||
<input v-model="zhanghao" type="tel" placeholder="请输入账号" />
|
<input v-model="zhanghao" type="text" placeholder="请输入账号" />
|
||||||
</view>
|
</view>
|
||||||
<view class="labales">
|
<view class="labales">
|
||||||
<image src=""></image>
|
<image src="../../static/image/login/login(1).png"></image>
|
||||||
<input v-model="mima" type="password" placeholder="请输入密码" />
|
<input v-model="mima" type="password" placeholder="请输入密码" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="" v-else>
|
||||||
|
<view class="labales">
|
||||||
|
<image src="../../static/image/login/login(3).png"></image>
|
||||||
|
<input v-model="zhanghaoA" type="text" placeholder="请输入账号" />
|
||||||
|
</view>
|
||||||
|
<view class="labales">
|
||||||
|
<image src="../../static/image/login/login(1).png"></image>
|
||||||
|
<input v-model="mimaA" type="password" placeholder="请输入密码" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
<!-- denglu QQ weixin -->
|
<!-- denglu QQ weixin -->
|
||||||
<u-button @click="logins">{{login}}</u-button>
|
<button @click="logins">{{ login }}</button>
|
||||||
|
<!-- <u-button :custom-style="customStyle" ></u-button> -->
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -26,19 +47,28 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [{
|
list: [
|
||||||
|
{
|
||||||
checked: false,
|
checked: false,
|
||||||
disabled: false
|
disabled: false
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
value: '',
|
value: '',
|
||||||
login: '登录',
|
login: '登录',
|
||||||
show: false,
|
show: false,
|
||||||
zhanghao:"",
|
zhanghao: 'seller',
|
||||||
mima:""
|
mima: '123456',
|
||||||
|
zhanghaoA: '18953829598 ',
|
||||||
|
mimaA: '123456',
|
||||||
|
url: '',
|
||||||
|
state:0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 改变登陆类型
|
||||||
|
changetab(num){
|
||||||
|
this.state = num
|
||||||
|
},
|
||||||
// 选中某个复选框时,由checkbox时触发
|
// 选中某个复选框时,由checkbox时触发
|
||||||
checkboxChange(e) {
|
checkboxChange(e) {
|
||||||
//console.log(e);
|
//console.log(e);
|
||||||
@@ -48,35 +78,56 @@
|
|||||||
// console.log(e);
|
// console.log(e);
|
||||||
},
|
},
|
||||||
mask_u() {
|
mask_u() {
|
||||||
this.show = !this.show
|
this.show = !this.show;
|
||||||
},
|
},
|
||||||
// 获取验证码倒计时
|
// 获取验证码倒计时
|
||||||
getCode() {
|
getCode() {
|
||||||
console.log("11")
|
console.log('11');
|
||||||
this.loading()
|
this.loading();
|
||||||
},
|
|
||||||
loading(){
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
loading() {},
|
||||||
logins() {
|
logins() {
|
||||||
this.$u.api.login({member_name:this.zhanghao,member_password:this.mima}).then((res)=>{
|
// 清除本地存储才可以正常登陆(具体原因没有仔细检查)
|
||||||
console.log(res)
|
uni.clearStorage();
|
||||||
|
// 账号登录1达人0商家
|
||||||
|
if(this.state==1){
|
||||||
|
this.$u.api.login({ member_name: this.zhanghaoA, member_password: this.mimaA }).then(res => {
|
||||||
|
console.log(res);
|
||||||
if (res.errCode != 0) {
|
if (res.errCode != 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
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'
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$u.api.shoplogin({ member_name: this.zhanghao, member_password: this.mima }).then(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.errCode != 0) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.message,
|
||||||
|
type: 'error'
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.setStorageSync('token', res.data.token);
|
||||||
|
uni.setStorageSync('userinfo', res.data);
|
||||||
|
uni.setStorageSync('rongyun', res.data.rongcloud_token);
|
||||||
|
this.$u.route({
|
||||||
|
url: '/pages/index/index',
|
||||||
|
type: 'switchTab'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -84,17 +135,15 @@
|
|||||||
|
|
||||||
if (token != undefined && token) {
|
if (token != undefined && token) {
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url:"/pages/index/index"
|
url: '/pages/index/index'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
|
|
||||||
// background: url(../../static/pageA/loginbackground.png) no-repeat!important;
|
// background: url(../../static/pageA/loginbackground.png) no-repeat!important;
|
||||||
.images {
|
.images {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -111,7 +160,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
@@ -146,7 +194,18 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 150rpx;
|
margin-bottom: 150rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
letter-spacing: 3rpx;
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.title view{
|
||||||
|
height: 100rpx;
|
||||||
|
line-height: 100rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
}
|
||||||
|
.title .show{
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
@@ -198,7 +257,8 @@
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.uni-input-input, .uni-input-placeholder{
|
.uni-input-input,
|
||||||
|
.uni-input-placeholder {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
letter-spacing: 2rpx;
|
letter-spacing: 2rpx;
|
||||||
}
|
}
|
||||||
@@ -279,7 +339,6 @@
|
|||||||
width: 45rpx;
|
width: 45rpx;
|
||||||
height: 53rpx;
|
height: 53rpx;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
}
|
}
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-top: 77rpx;
|
margin-top: 77rpx;
|
||||||
@@ -302,10 +361,10 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.rect_view:nth-child(1) image,.rect_view:nth-child(1) view{
|
.rect_view:nth-child(1) image,
|
||||||
|
.rect_view:nth-child(1) view {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
.rect_view:nth-child(1) image {
|
.rect_view:nth-child(1) image {
|
||||||
@@ -320,7 +379,8 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.rect_view:nth-child(2) image,.rect_view:nth-child(2) view{
|
.rect_view:nth-child(2) image,
|
||||||
|
.rect_view:nth-child(2) view {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.rect_view:nth-child(2) image {
|
.rect_view:nth-child(2) image {
|
||||||
@@ -336,7 +396,7 @@
|
|||||||
}
|
}
|
||||||
.title_top {
|
.title_top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 36rpx;
|
top: calc(var(--status-bar-height) + 18px);
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -351,4 +411,16 @@
|
|||||||
background: none;
|
background: none;
|
||||||
letter-spacing: 4rpx;
|
letter-spacing: 4rpx;
|
||||||
}
|
}
|
||||||
|
button{
|
||||||
|
width: 670rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
padding: 0 40rpx;
|
||||||
|
background-color: #ff780f;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -472,5 +472,6 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
BIN
static/image/index/close.png
Normal file
BIN
static/image/index/close.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 753 B |
BIN
static/image/index/live.png
Normal file
BIN
static/image/index/live.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
static/image/index/photo.png
Normal file
BIN
static/image/index/photo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
static/image/index/publish.png
Normal file
BIN
static/image/index/publish.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 234 B |
BIN
static/image/index/swiper.png
Normal file
BIN
static/image/index/swiper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 280 KiB |
BIN
static/image/index/video.png
Normal file
BIN
static/image/index/video.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user