对比新文件 |
| | |
| | | <template>
|
| | | <view class="footer flex customer-footer" style="">
|
| | | <view v-for="(item,index) in tabBar" :key="index" class="footer-item">
|
| | | <view class="item flex" :class="flg==index?'cur':''" @click="go(index,item)">
|
| | |
|
| | | <view v-if="index==0">
|
| | | <image src="../../static/images/customer/footer/footer-home-1.png" class="footer-icon" v-if="flg==0"></image>
|
| | | <image src="../../static/images/customer/footer/footer-home-0.png" class="footer-icon" v-if="flg!=0"></image>
|
| | | </view>
|
| | | <view v-if="index==1">
|
| | | <image src="../../static/images/customer/footer/footer-trade-1.png" class="footer-icon" v-if="flg==0"></image>
|
| | | <image src="../../static/images/customer/footer/footer-trade-0.png" class="footer-icon" v-if="flg!=0"></image>
|
| | | </view>
|
| | | <view v-if="index==2">
|
| | | <image src="../../static/images/customer/footer/footer-shopping-1.png" class="footer-icon" v-if="flg==0">
|
| | | </image>
|
| | | <image src="../../static/images/customer/footer/footer-shopping-0.png" class="footer-icon" v-if="flg!=0">
|
| | | </image>
|
| | | </view>
|
| | | <view v-if="index==3">
|
| | | <image src="../../static/images/customer/footer/footer-self-1.png" class="footer-icon" v-if="flg==1"></image>
|
| | | <image src="../../static/images/customer/footer/footer-self-0.png" class="footer-icon" v-if="flg!=1"></image>
|
| | | </view>
|
| | |
|
| | | <view>
|
| | | {{item.text}}
|
| | | </view>
|
| | |
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | | </template>
|
| | | <script>
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | tabBar: [{
|
| | |
|
| | | "text": "首页"
|
| | | },
|
| | | {
|
| | |
|
| | | "text": "交易大厅"
|
| | | },
|
| | | {
|
| | |
|
| | | "text": "购物车"
|
| | | },
|
| | | {
|
| | | "text": "我的"
|
| | | }
|
| | | ]
|
| | | }
|
| | | },
|
| | | props: {
|
| | | flg: {
|
| | | type: String,
|
| | | },
|
| | | bussincess: {
|
| | | type: Boolean,
|
| | | default () {
|
| | | return false
|
| | | }
|
| | | }
|
| | | },
|
| | | created() {},
|
| | | methods: {
|
| | |
|
| | | go(index, item) {
|
| | | if (this.flg == ('' + index)) {
|
| | | return
|
| | | }
|
| | | uni.redirectTo({
|
| | | url: item.pagePath
|
| | |
|
| | | });
|
| | | },
|
| | | }
|
| | | }
|
| | | </script>
|
| | | <style lang="scss">
|
| | | @import "./main.scss";
|
| | | </style> |
| | |
| | | |
| | | |
| | | |
| | | // #ifdef PUB_CUSTOMER |
| | | import customerFooter from '@/components/footer/customer-footer' |
| | | Vue.component('common-footer', customerFooter) |
| | | // #endif |
| | | |
| | | // #ifndef PUB_CUSTOMER |
| | | import supplierfooter from '@/components/footer/supplier-footer' |
| | | Vue.component('supplier-footer', supplierfooter) |
| | | Vue.component('common-footer', supplierfooter) |
| | | // #endif |
| | | |
| | | import nodata from '@/components/no-data' |
| | | Vue.component('no-data', nodata) |
| | | // import bfooter from '@/components/footer/bussincess-footer' |
| | |
| | | "define": {
|
| | | "PUB_PARTNER": true
|
| | | }
|
| | | }, |
| | | "customer":{ |
| | | "title": "花店/用户-小程序", |
| | | "BROWSER": "Chrome", |
| | | "env": { |
| | | "UNI_PLATFORM": "mp-weixin", |
| | | "PUB_TYPE": "customer" |
| | | }, |
| | | "define": { |
| | | "PUB_CUSTOMER": true |
| | | } |
| | | }
|
| | |
|
| | | }
|
| | |
| | | "easycom": { |
| | | "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" |
| | | }, |
| | | "pages": [{ |
| | | "pages": [
|
| | | // #ifdef PUB_CUSTOMER |
| | | {
|
| | | "path": "pages/home/home",
|
| | | "style": {
|
| | | "navigationBarTitleText": "首页",
|
| | | "enablePullDownRefresh": true,
|
| | | "navigationStyle": "custom"
|
| | | }
|
| | |
|
| | | },
|
| | | // #endif |
| | | {
|
| | | "path": "pages/login/supplier-login", |
| | | "style": { |
| | | "navigationBarTitleText": "登录", |
| | |
| | | "navigationStyle": "custom" |
| | | } |
| | | |
| | | }, { |
| | | },
|
| | | {
|
| | | "path": "pages/user/supplier-user", |
| | | "style": { |
| | | "navigationBarTitleText": "我的", |
| | |
| | | }, |
| | | { |
| | | "path" : "pages/user/user-pwd/user-pwd", |
| | | "style" : |
| | | { |
| | | "style": {
|
| | | "navigationBarTitleText" : "修改密码", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | |
| | | "path": "order-records/order-records", |
| | | "style": { |
| | | "navigationBarTitleText": "扣款记录", |
| | | "enablePullDownRefresh": false, |
| | | "enablePullDownRefresh": true,
|
| | | "navigationBarBackgroundColor": "#E6F2EB" |
| | | |
| | | } |
| | |
| | | }, |
| | | { |
| | | "path" : "protocol", |
| | | "style" : |
| | | { |
| | | "style": {
|
| | | "navigationBarTitleText" : "协议", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | |
| | | "root": "sub_pages/partner", |
| | | "pages": [{ |
| | | "path" : "order-manage/order-manage", |
| | | "style" : |
| | | { |
| | | "style": {
|
| | | "navigationBarTitleText" : "订单管理", |
| | | "enablePullDownRefresh" : false |
| | | "enablePullDownRefresh": true
|
| | | } |
| | | }, |
| | | { |
| | | "path" : "markup-config/markup-config", |
| | | "style" : |
| | | { |
| | | "style": {
|
| | | "navigationBarTitleText" : "加价配置", |
| | | "enablePullDownRefresh" : false |
| | | "enablePullDownRefresh": true
|
| | | }
|
| | | }
|
| | |
|
| | | ]
|
| | | }, {
|
| | | "root": "sub_pages/customer",
|
| | | "pages": [{
|
| | | "path": "trade/trade",
|
| | | "style": {
|
| | | "navigationBarTitleText": "交易大厅",
|
| | | "enablePullDownRefresh": true
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "shopping/shopping",
|
| | | "style": {
|
| | | "navigationBarTitleText": "购物车",
|
| | | "enablePullDownRefresh": true
|
| | | } |
| | | } |
| | | |
| | |
| | | </view> |
| | | <view style="padding-bottom:200rpx"> |
| | | </view> |
| | | <supplier-footer flg="0"></supplier-footer> |
| | | <common-footer flg="0"></common-footer> |
| | | |
| | | </view> |
| | | </template> |
| | |
| | | |
| | | <view style="padding-bottom:200rpx"> |
| | | </view> |
| | | <supplier-footer flg="0"></supplier-footer> |
| | | <common-footer flg="0"></common-footer> |
| | | |
| | | |
| | | </view> |
| | |
| | | // #ifdef PUB_PARTNER |
| | | return 'loginPartner' |
| | | // #endif |
| | | // #ifdef PUB_CUSTOMER
|
| | | return 'loginCustomer'
|
| | | // #endif |
| | | return '' |
| | | // return 'loginPartner' |
| | | } |
| | |
| | | </view> |
| | | |
| | | </view> |
| | | <!-- #ifdef PUB_CUSTOMER -->
|
| | | <view class="user-utils m-20" v-if="selftype==='customer'">
|
| | | <view class="user-util m-t-12 user-customer-order-infos">
|
| | | <view class="title flex">
|
| | | <view>我的订单</view>
|
| | | <view class="m-r-a m-r-0 more">全部订单<uni-icons type="right"></uni-icons></view>
|
| | | </view>
|
| | | <view class="flex order-icons-container">
|
| | | <view class="order-icons">
|
| | | <image src="../../static/images/customer/order/order-type-1.png" class="order-icon dfk"></image>
|
| | | <view>待付款</view>
|
| | | </view>
|
| | | <view class="order-icons">
|
| | | <image src="../../static/images/customer/order/order-type-2.png" class="order-icon dfh"></image>
|
| | | <view>待发货</view>
|
| | | </view>
|
| | | <view class="order-icons">
|
| | | <image src="../../static/images/customer/order/order-type-3.png" class="order-icon dsh"></image>
|
| | | <view>待收货</view>
|
| | | </view>
|
| | | <view class="order-icons">
|
| | | <image src="../../static/images/customer/order/order-type-4.png" class="order-icon dpj"></image>
|
| | | <view>待评价</view>
|
| | | </view>
|
| | | <view class="order-icons">
|
| | | <image src="../../static/images/customer/order/order-type-5.png" class="order-icon sh"></image>
|
| | | <view>售后</view>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="user-utils m-20" v-if="selftype==='customer'">
|
| | | <view class="user-util m-t-12 user-customer-service-infos">
|
| | | <view class="title flex">
|
| | | <view>我的服务</view>
|
| | | </view>
|
| | | <view class="flex service-icons-container">
|
| | | <view class="service-icons">
|
| | | <image src="../../static/images/customer/service/service-icon-1.png" class="service-icon ">
|
| | | </image>
|
| | | <view>关注店铺</view>
|
| | | </view>
|
| | | <view class="service-icons">
|
| | | <image src="../../static/images/customer/service/service-icon-2.png" class="service-icon ">
|
| | | </image>
|
| | | <view>我的收藏</view>
|
| | | </view> |
| | | <view class="service-icons"> |
| | | <image src="../../static/images/customer/service/service-icon-3.png" class="service-icon "> |
| | | </image> |
| | | <view>地址管理</view> |
| | | </view> |
| | | <view class="service-icons"> |
| | | <image src="../../static/images/customer/service/service-icon-4.png" class="service-icon "> |
| | | </image> |
| | | <view>售后规则</view> |
| | | </view> |
| | | <view class="service-icons"> |
| | | <image src="../../static/images/customer/service/service-icon-5.png" class="t2 service-icon "> |
| | | </image> |
| | | <view>新手帮助</view> |
| | | </view> |
| | | <view class="service-icons"> |
| | | <image src="../../static/images/customer/service/service-icon-6.png" class="t2 service-icon "> |
| | | </image> |
| | | <view>运费详查</view> |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <!-- #endif -->
|
| | | <view class="user-utils m-20"> |
| | | <view class="user-util m-t-12 flex" @click="goto('/pages/user/user-info/user-info',true)"> |
| | | <view class="title">个人信息</view> |
| | |
| | | <uni-icons type="right"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="user-util m-t-12 " @click="callTel" v-if="selftype==='supplier'"> |
| | | <view class="user-util m-t-12 " @click="callTel" v-if="selftype==='supplier'||selftype==='customer'">
|
| | | <view class="title">我的客服</view> |
| | | <view class="flex"> |
| | | <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> |
| | |
| | | </view> |
| | | |
| | | |
| | | |
| | | <!-- #ifdef PUB_CUSTOMER --> |
| | | <view style="padding-bottom:200rpx"> |
| | | </view> |
| | | <common-footer flg="4"></common-footer> |
| | | <!-- #endif --> |
| | | <!-- #ifndef PUB_CUSTOMER --> |
| | | <view class="button-login-out topic-gray" @click="clearlogout"> |
| | | 退出登录 |
| | | </view> |
| | | |
| | | <view style="padding-bottom:200rpx"> |
| | | </view> |
| | | <supplier-footer flg="1"></supplier-footer> |
| | | <common-footer flg="1"></common-footer> |
| | | <!-- #endif -->
|
| | | |
| | | |
| | | |
| | | </view> |
| | |
| | | <style lang="scss" scoped> |
| | | @import "./user.scss"; |
| | | </style> |
| | | |
| | | <!-- #ifdef PUB_CUSTOMER -->
|
| | | <style lang="scss" scoped>
|
| | | @import "./user-customer.scss";
|
| | | </style>
|
| | | <!-- #endif -->
|
| | | <style lang="scss" scoped> |
| | | </style> |
对比新文件 |
| | |
| | | .user-customer-order-infos{ |
| | | .more{ |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | line-height: 34rpx; |
| | | } |
| | | .order-icons-container{ |
| | | .order-icons{ |
| | | margin: 0 auto; |
| | | margin-top: 26rpx; |
| | | text-align: center; |
| | | width: fit-content; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #000000; |
| | | line-height: 34rpx; |
| | | .order-icon{ |
| | | flex:1; |
| | | margin: 0 auto; |
| | | width: 52rpx; |
| | | height: 52rpx; |
| | | } |
| | | .order-icon.dsh{ |
| | | width: 48rpx; |
| | | height: 46rpx; |
| | | margin-top: 3rpx; |
| | | } |
| | | .order-icon.sh{ |
| | | width: 48rpx; |
| | | height: 46rpx; |
| | | margin-top: 3rpx; |
| | | } |
| | | } |
| | | .order-icons:last-child{ |
| | | margin-right: 0rpx; |
| | | } |
| | | .order-icons:first-child{ |
| | | margin-left: 0rpx; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | .user-customer-service-infos{ |
| | | .service-icons-container{ |
| | | flex-wrap: wrap; |
| | | .service-icons{ |
| | | min-width: 25%; |
| | | max-width: 33%; |
| | | flex: 1; |
| | | margin: 0 auto; |
| | | margin-top: 24rpx; |
| | | text-align: center; |
| | | .service-icons{ |
| | | height: 52rpx; |
| | | width: 52rpx; |
| | | } |
| | | .service-icons.t2{ |
| | | height: 52rpx; |
| | | width: 56rpx; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | return resp |
| | | } |
| | | |
| | | }, |
| | | |
| | | loginCustomer:async function({ |
| | | commit, |
| | | dispatch, |
| | | state |
| | | }, data) { |
| | | { |
| | | const resp = await http.request('post', '/api/login/customer' + (data |
| | | .phoneNumber ? '/phone' : ''), { |
| | | data: { |
| | | username: data.username, |
| | | password: data.password, |
| | | tel: data.phoneNumber || data.tel, |
| | | smsCode: data.smsCode || '' |
| | | }, |
| | | params: { |
| | | clientType: data.clientType || 'app' |
| | | } |
| | | }) |
| | | console.log('resp', resp) |
| | | if (resp && resp.code == 0) { |
| | | storage.setItem('token', resp.data.access_token) |
| | | commit("updateLogin", true) |
| | | await dispatch('getCurrentInfo') |
| | | uni.reLaunch({ |
| | | url: '/pages/home/home' |
| | | }) |
| | | } else { |
| | | |
| | | |
| | | } |
| | | return resp |
| | | } |
| | | |
| | | }, |
| | | |
| | | } |
| | | }) |
| | | |
对比新文件 |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
对比新文件 |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <view class="list-container order-settlement supplier"> |
| | | <view class="component-tab-container m-t-12"> |
| | | <view class="tab-item" :class="[tabIndex==0?'cur':'']" @click="changeIndex(0)">带配送</view> |
| | | <view class="tab-item" :class="[tabIndex==0?'cur':'']" @click="changeIndex(0)">待配送</view> |
| | | <view class="tab-item" :class="[tabIndex==1?'cur':'']" @click="changeIndex(1)">已配送</view> |
| | | </view> |
| | | |