1. 对接进件接口

2.对接商户列表接口
3.处理驳回商户
huipay-master
杨杰 3 years ago
parent 170d05bc5b
commit 8b6e0d2f90
  1. 26
      App.vue
  2. 18
      Utils/Api.js
  3. 4
      components/QS-tabs/QS-tabs.vue
  4. 24
      components/uni-search-bar/changelog.md
  5. 4
      components/uni-search-bar/components/uni-search-bar/i18n/en.json
  6. 8
      components/uni-search-bar/components/uni-search-bar/i18n/index.js
  7. 4
      components/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
  8. 4
      components/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
  9. 290
      components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
  10. 88
      components/uni-search-bar/package.json
  11. 86
      components/uni-search-bar/readme.md
  12. 21
      main.js
  13. 2
      manifest.json
  14. 26
      pages.json
  15. 94
      pages/index/mcc-list/mcc-list.vue
  16. 122
      pages/index/merchant-details/merchant-details.vue
  17. 101
      pages/index/merchant-incoming-parts/merchant-incoming-parts.vue
  18. 96
      pages/index/merchant-management/merchant-management.vue
  19. 5
      pages/index/message-center/message-center.vue
  20. 81
      pages/index/store-details/store-details.vue
  21. 34
      pages/login/login.vue
  22. 56
      pages/tabBar/home/home.vue
  23. 7
      pages/tabBar/user/user.vue
  24. BIN
      static/img/noorder.png
  25. 2
      unpackage/dist/build/h5/index.html
  26. BIN
      unpackage/dist/build/h5/static/img/businesslic7.3832e4be.png
  27. BIN
      unpackage/dist/build/h5/static/img/businesslic8.bcff81d9.png
  28. 7
      unpackage/dist/build/h5/static/js/chunk-vendors.0004de39.js
  29. 7
      unpackage/dist/build/h5/static/js/chunk-vendors.5a385107.js
  30. 1
      unpackage/dist/build/h5/static/js/index.47494f15.js
  31. 1
      unpackage/dist/build/h5/static/js/index.96f180c6.js
  32. 1
      unpackage/dist/build/h5/static/js/pages-index-business-category-business-category.8b510c89.js
  33. 1
      unpackage/dist/build/h5/static/js/pages-index-business-category-business-category.ebcfd0bc.js
  34. 1
      unpackage/dist/build/h5/static/js/pages-index-mcc-list-mcc-list.9f281e51.js
  35. 1
      unpackage/dist/build/h5/static/js/pages-index-mcc-list-mcc-list~pages-index-merchant-incoming-parts-merchant-incoming-parts.942db3fb.js
  36. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-details-merchant-details.2444af1d.js
  37. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-details-merchant-details.60480608.js
  38. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-details-merchant-details~pages-index-merchant-list-merchant-list.48183921.js
  39. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-details-merchant-details~pages-index-merchant-list-merchant-list.ad408911.js
  40. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-incoming-parts-merchant-incoming-parts.62e9792c.js
  41. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-incoming-parts-merchant-incoming-parts.9eb40e6c.js
  42. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-management-merchant-management.cbf4ba03.js
  43. 1
      unpackage/dist/build/h5/static/js/pages-index-merchant-management-merchant-management.d48c6632.js
  44. 1
      unpackage/dist/build/h5/static/js/pages-login-login.7e402097.js
  45. 1
      unpackage/dist/build/h5/static/js/pages-login-login.b7a50812.js
  46. 1
      unpackage/dist/build/h5/static/js/pages-login-login~pages-tabBar-user-user.0fa1c412.js
  47. 1
      unpackage/dist/build/h5/static/js/pages-login-login~pages-tabBar-user-user.4b7aebf3.js
  48. 1
      unpackage/dist/build/h5/static/js/pages-tabBar-home-home.4148f239.js
  49. 1
      unpackage/dist/build/h5/static/js/pages-tabBar-home-home.4cf225a9.js
  50. 1
      unpackage/dist/build/h5/static/js/pages-tabBar-user-user.255be470.js
  51. 1
      unpackage/dist/build/h5/static/js/pages-tabBar-user-user.27ee9e3d.js
  52. BIN
      unpackage/dist/build/h5/归档.zip

@ -16,8 +16,32 @@
//id //id
businessid:'', businessid:'',
// //
businessname:'' businessname:'',
//mccid
mccid:'',
//mcc
mccname:''
}, },
onLaunch: function() {
let that = this;
uni.getStorage({
key: 'payuser',
success: (res) => {
that.globalData.userInfo = res.data;
uni.getStorage({
key: "paytoken",
success: (res) => {
that.globalData.token = res.data;
}
})
}
});
},
onShow: function() {
},
onHide: function() {
}
} }
</script> </script>

@ -53,5 +53,19 @@ export const configMerSettlement = params => {
export const configMerStore = params => { export const configMerStore = params => {
return POST('POST', `${base}/mer/configMerStore`, params).then(res => res.data); return POST('POST', `${base}/mer/configMerStore`, params).then(res => res.data);
} }
//业务员查询商户
export const getMerListBySalesman = params => {
return POST('GET', `${base}/mer/getMerListBySalesman`, params).then(res => res.data);
}
//业务员查询mcc
export const getLklMcc = params => {
return POST('GET', `${base}/common/getLklMcc`, params).then(res => res.data);
}
//查询商户门店
export const getStoreListByMer = params => {
return POST('GET', `${base}/store/getStoreListByMer`, params).then(res => res.data);
}
//查询商户门店详情
export const getStoreDetailById = params => {
return POST('GET', `${base}/store/getStoreDetailById`, params).then(res => res.data);
}

@ -320,7 +320,7 @@
countPx() { countPx() {
const w = uni.upx2px(this.getWidth); const w = uni.upx2px(this.getWidth);
this.pxWidth = w; this.pxWidth = w;
this.lW = w * (Number(this.animationLineWidth) / 100); this.lW = (w * (Number(this.animationLineWidth) / 100))+20;
this.sW = uni.upx2px(Number(this.swiperWidth)); this.sW = uni.upx2px(Number(this.swiperWidth));
}, },
emit(index) { emit(index) {
@ -333,7 +333,7 @@
if (this.setTimeoutFc) clearTimeout(this.setTimeoutFc); if (this.setTimeoutFc) clearTimeout(this.setTimeoutFc);
this.setTimeoutFc = setTimeout(() => { this.setTimeoutFc = setTimeout(() => {
this.line2Width = this.animationLineWidth; this.line2Width = this.animationLineWidth;
}, this.getDuration * 1000 * 3 / 5); }, this.getDuration * 1000 * 3 / 4);
this.countLine2Dx(); this.countLine2Dx();
} }
}, },

@ -0,0 +1,24 @@
## 1.1.2(2021-08-30)
- 修复 value 属性与 modelValue 属性不兼容的Bug
## 1.1.1(2021-08-24)
- 新增 支持国际化
## 1.1.0(2021-07-30)
- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
## 1.0.9(2021-05-12)
- 新增 项目示例地址
## 1.0.8(2021-04-21)
- 优化 添加依赖 uni-icons, 导入后自动下载依赖
## 1.0.7(2021-04-15)
- uni-ui 新增 uni-search-bar 的 focus 事件
## 1.0.6(2021-02-05)
- 优化 组件引用关系,通过uni_modules引用组件
## 1.0.5(2021-02-05)
- 调整为uni_modules目录规范
- 新增 支持双向绑定
- 更改 input 事件的返回值,e={value:Number} --> e=value
- 新增 支持图标插槽
- 新增 支持 clear、blur 事件
- 新增 支持 focus 属性
- 去掉组件背景色

@ -0,0 +1,4 @@
{
"uni-search-bar.cancel": "cancel",
"uni-search-bar.placeholder": "Search enter content"
}

@ -0,0 +1,8 @@
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'
export default {
en,
'zh-Hans': zhHans,
'zh-Hant': zhHant
}

@ -0,0 +1,4 @@
{
"uni-search-bar.cancel": "cancel",
"uni-search-bar.placeholder": "请输入搜索内容"
}

@ -0,0 +1,4 @@
{
"uni-search-bar.cancel": "cancel",
"uni-search-bar.placeholder": "請輸入搜索內容"
}

@ -0,0 +1,290 @@
<template>
<view class="uni-searchbar">
<view :style="{borderRadius:radius+'px',backgroundColor: bgColor}" class="uni-searchbar__box" @click="searchClick">
<view class="uni-searchbar__box-icon-search">
<slot name="searchIcon">
<uni-icons color="#999999" size="18" type="search" />
</slot>
</view>
<input v-if="show || searchVal" :focus="showSync" :placeholder="placeholderText" :maxlength="maxlength" class="uni-searchbar__box-search-input"
confirm-type="search" type="text" v-model="searchVal" @confirm="confirm" @blur="blur" @focus="emitFocus" />
<text v-else class="uni-searchbar__text-placeholder">{{ placeholder }}</text>
<view v-if="show && (clearButton==='always'||clearButton==='auto'&&searchVal!=='')" class="uni-searchbar__box-icon-clear"
@click="clear">
<slot name="clearIcon">
<uni-icons color="#c0c4cc" size="15" type="clear" />
</slot>
</view>
</view>
<text @click="cancel" class="uni-searchbar__cancel" v-if="cancelButton ==='always' || show && cancelButton ==='auto'">{{cancelTextI18n}}</text>
</view>
</template>
<script>
import {
initVueI18n
} from '@dcloudio/uni-i18n'
import messages from './i18n/index.js'
const { t } = initVueI18n(messages)
/**
* SearchBar 搜索栏
* @description 评分组件
* @tutorial https://ext.dcloud.net.cn/plugin?id=866
* @property {Number} radius 搜索栏圆角
* @property {Number} maxlength 输入最大长度
* @property {String} placeholder 搜索栏Placeholder
* @property {String} clearButton = [always|auto|none] 是否显示清除按钮
* @value always 一直显示
* @value auto 输入框不为空时显示
* @value none 一直不显示
* @property {String} cancelButton = [always|auto|none] 是否显示取消按钮
* @value always 一直显示
* @value auto 输入框不为空时显示
* @value none 一直不显示
* @property {String} cancelText 取消按钮的文字
* @property {String} bgColor 输入框背景颜色
* @property {Boolean} focus 是否自动聚焦
* @event {Function} confirm uniSearchBar 的输入框 confirm 事件返回参数为uniSearchBar的valuee={value:Number}
* @event {Function} input uniSearchBar value 改变时触发事件返回参数为uniSearchBar的valuee=value
* @event {Function} cancel 点击取消按钮时触发事件返回参数为uniSearchBar的valuee={value:Number}
* @event {Function} clear 点击清除按钮时触发事件返回参数为uniSearchBar的valuee={value:Number}
* @event {Function} blur input失去焦点时触发事件返回参数为uniSearchBar的valuee={value:Number}
*/
export default {
name: "UniSearchBar",
emits:['input','update:modelValue','clear','cancel','confirm','blur','focus'],
props: {
placeholder: {
type: String,
default: ""
},
radius: {
type: [Number, String],
default: 5
},
clearButton: {
type: String,
default: "auto"
},
cancelButton: {
type: String,
default: "auto"
},
cancelText: {
type: String,
default: '取消'
},
bgColor: {
type: String,
default: "#F8F8F8"
},
maxlength: {
type: [Number, String],
default: 100
},
value: {
type: [Number, String],
default: ""
},
modelValue: {
type: [Number, String],
default: ""
},
focus: {
type: Boolean,
default: false
}
},
data() {
return {
show: false,
showSync: false,
searchVal: ''
}
},
computed:{
cancelTextI18n() {
return this.cancelText || t("uni-search-bar.cancel")
},
placeholderText() {
return this.placeholder || t("uni-search-bar.placeholder")
}
},
watch: {
// #ifndef VUE3
value: {
immediate: true,
handler(newVal) {
this.searchVal = newVal
if (newVal) {
this.show = true
}
}
},
// #endif
// #ifdef VUE3
modelValue: {
immediate: true,
handler(newVal) {
this.searchVal = newVal
if (newVal) {
this.show = true
}
}
},
// #endif
focus: {
immediate: true,
handler(newVal) {
if (newVal) {
this.show = true;
this.$nextTick(() => {
this.showSync = true
})
}
}
},
searchVal(newVal, oldVal) {
// #ifndef VUE3
this.$emit("input", newVal)
// #endif
// #ifdef VUE3
this.$emit("update:modelValue", newVal)
// #endif
}
},
methods: {
searchClick() {
if (this.show) {
return
}
this.show = true;
this.$nextTick(() => {
this.showSync = true
})
},
clear() {
this.$emit("clear", {
value: this.searchVal
})
this.searchVal = ""
},
cancel() {
this.$emit("cancel", {
value: this.searchVal
});
this.searchVal = ""
this.show = false
this.showSync = false
// #ifndef APP-PLUS
uni.hideKeyboard()
// #endif
// #ifdef APP-PLUS
plus.key.hideSoftKeybord()
// #endif
},
confirm() {
// #ifndef APP-PLUS
uni.hideKeyboard();
// #endif
// #ifdef APP-PLUS
plus.key.hideSoftKeybord()
// #endif
this.$emit("confirm", {
value: this.searchVal
})
},
blur() {
// #ifndef APP-PLUS
uni.hideKeyboard();
// #endif
// #ifdef APP-PLUS
plus.key.hideSoftKeybord()
// #endif
this.$emit("blur", {
value: this.searchVal
})
},
emitFocus(e) {
this.$emit("focus", e.detail)
}
}
};
</script>
<style lang="scss" scoped>
$uni-searchbar-height: 36px;
.uni-searchbar {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
position: relative;
padding: $uni-spacing-col-base;
// background-color: $uni-bg-color;
}
.uni-searchbar__box {
/* #ifndef APP-NVUE */
display: flex;
box-sizing: border-box;
/* #endif */
overflow: hidden;
position: relative;
flex: 1;
justify-content: center;
flex-direction: row;
align-items: center;
height: $uni-searchbar-height;
padding: 5px 8px 5px 0px;
border-width: 0.5px;
border-style: solid;
border-color: $uni-border-color;
}
.uni-searchbar__box-icon-search {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
// width: 32px;
padding: 0 8px;
justify-content: center;
align-items: center;
color: $uni-text-color-placeholder;
}
.uni-searchbar__box-search-input {
flex: 1;
font-size: $uni-font-size-base;
color: $uni-text-color;
}
.uni-searchbar__box-icon-clear {
align-items: center;
line-height: 24px;
padding-left: 8px;
/* #ifdef H5 */
cursor: pointer;
/* #endif */
}
.uni-searchbar__text-placeholder {
font-size: $uni-font-size-base;
color: $uni-text-color-placeholder;
margin-left: 5px;
}
.uni-searchbar__cancel {
padding-left: 10px;
line-height: $uni-searchbar-height;
font-size: 14px;
color: $uni-text-color;
/* #ifdef H5 */
cursor: pointer;
/* #endif */
}
</style>

@ -0,0 +1,88 @@
{
"id": "uni-search-bar",
"displayName": "uni-search-bar 搜索栏",
"version": "1.1.2",
"description": "搜索栏组件,通常用于搜索商品、文章等",
"keywords": [
"uni-ui",
"uniui",
"搜索框",
"搜索栏"
],
"repository": "https://github.com/dcloudio/uni-ui",
"engines": {
"HBuilderX": ""
},
"directories": {
"example": "../../temps/example_temps"
},
"dcloudext": {
"category": [
"前端组件",
"通用组件"
],
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
},
"uni_modules": {
"dependencies": [
"uni-icons"
],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y"
},
"快应用": {
"华为": "u",
"联盟": "u"
},
"Vue": {
"vue2": "y",
"vue3": "u"
}
}
}
}
}

@ -0,0 +1,86 @@
## SearchBar 搜索栏
> **组件名:uni-search-bar**
> 代码块: `uSearchBar`
评分组件
### 安装方式
本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。
如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
### 基本用法
在 ``template`` 中使用组件
```html
<!-- 基本用法 -->
<uni-search-bar @confirm="search" @input="input" ></uni-search-bar>
<!-- v-model 用法 -->
<uni-search-bar @confirm="search" :focus="true" v-model="searchValue" @blur="blur" @focus="focus" @input="input" @cancel="cancel" @change="change" @clear="clear">
<!-- 自定义Placeholder -->
<uni-search-bar placeholder="自定placeholder" @confirm="search"></uni-search-bar>
<!-- 设置圆角 -->
<uni-search-bar :radius="100" @confirm="search"></uni-search-bar>
```
## API
### SearchBar Props
|属性名 |类型 |默认值 |说明 |
|:-: |:-: |:-: |:-: |
|value/v-model |StringNumber | |搜索栏绑定值 |
|placeholder |String |搜索 |搜索栏Placeholder |
|radius |Number |10 |搜索栏圆角,单位px |
|clearButton |String |auto |是否显示清除按钮,可选值`always`-一直显示、`auto`-输入框不为空时显示、`none`-一直不显示 |
|cancelButton |String |auto |是否显示取消按钮,可选值`always`-一直显示、`auto`-输入框不为空时显示、`none`-一直不显示 |
|cancelText |String |取消 |取消按钮的文字 |
|bgColor |String |#F8F8F8|输入框背景颜色 |
|maxlength |Number |100 |输入最大长度 |
|focus |Boolean |false | |
### SearchBar Events
|事件称名 |说明 |返回参数 |
|:-: |:-: |:-: |
|@confirm |uniSearchBar 的输入框 confirm 事件,返回参数为uniSearchBar的value |e={value:Number} |
|@input |uniSearchBar 的 value 改变时触发事件,返回参数为uniSearchBar的value|e=value |
|@cancel |点击取消按钮时触发事件,返回参数为uniSearchBar的value |e={value:Number} |
|@clear |点击清除按钮时触发事件,返回参数为uniSearchBar的value |e={value:Number} |
|@focus |input 获取焦点时触发事件,返回参数为uniSearchBar的value |e={value:Number} |
|@blur |input 失去焦点时触发事件,返回参数为uniSearchBar的value |e={value:Number} |
### 替换 icon 的 slot 插槽
|插槽称名 |说明 |
|:-: |:-: |
|searchIcon |替换组件的搜索图标|
|clearIcon |替换组件的清除图标|
```html
<!-- 替换组件的搜索图标 -->
<uni-search-bar placeholder="自定义searchIcon" @confirm="search" @cancel="cancel" cancel-text="cancel">
<uni-icons slot="searchIcon" color="#999999" size="18" type="home" />
</uni-search-bar>
<!-- 替换组件的清除图标 -->
<uni-search-bar placeholder="自定义clearIcon" @confirm="search" @cancel="cancel" cancel-text="cancel">
<view slot="clearIcon" style="color: #999999" >X</view>
</uni-search-bar>
```
## 组件示例
点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/search-bar/search-bar](https://hellouniapp.dcloud.net.cn/pages/extUI/search-bar/search-bar)

@ -1,21 +1,16 @@
import Vue from 'vue'
import App from './App' import App from './App'
import * as filters from './Utils/js/date.js'
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
...App ...App
}) })
app.$mount() app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif

@ -1,5 +1,5 @@
{ {
"name" : "炫支付", "name" : "帮寻宝",
"appid" : "__UNI__190622D", "appid" : "__UNI__190622D",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",

@ -1,29 +1,28 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/tabBar/home/home", "path": "pages/login/login",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "首页", "navigationBarTitleText": "登录",
"onReachBottomDistance": 50, "onReachBottomDistance": 50,
"app-plus": { "app-plus": {
"titleNView": false, // "titleNView": false, //
"softinputNavBar": "none" "softinputNavBar": "none"
} }
} }
},
{ },{
"path": "pages/login/login", "path": "pages/tabBar/home/home",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "登录", "navigationBarTitleText": "首页",
"onReachBottomDistance": 50, "onReachBottomDistance": 50,
"app-plus": { "app-plus": {
"titleNView": false, // "titleNView": false, //
"softinputNavBar": "none" "softinputNavBar": "none"
} }
} }
},{ },{
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -149,6 +148,19 @@
} }
} }
}
,{
"path" : "pages/index/mcc-list/mcc-list",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "商户类别",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
} }
], ],
"subpackages": [{ "subpackages": [{

@ -0,0 +1,94 @@
<template>
<view>
<!-- 搜索框 -->
<unisearchbar v-model="searchValue" @input="focusInput" placeholder="搜索内容" radius="100">
</unisearchbar>
<!-- 商户名字 -->
<view class="mart20 width100">
<view class=" mcclist font15 fcor666" v-for="(item,index) in mccList" @click="changemcc(item)">
{{item.maccCode}}
</view>
</view>
</view>
</template>
<script>
import unisearchbar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue';
import {
getLklMcc
} from '../../../Utils/Api.js';
let app = getApp();
export default {
components: {
unisearchbar
},
data() {
return {
//
searchValue: '',
//
mccList: [],
pageNum: 1,
pagesize: 15,
isLoadMore: false, //
}
},
onLoad() {
this.getLklMcc();
},
onReachBottom() { //
if (!this.isLoadMore) { //
this.isLoadMore = true
this.pageNum += 1
this.getLklMcc()
}
},
methods: {
//mcc
getLklMcc() {
let params = {
pageNum: this.pageNum,
pageSize: this.pagesize,
name: this.searchValue
}
getLklMcc(params).then(res => {
if (res.return_code == '000000' && res.return_data.list) {
this.mccList = this.mccList.concat(res.return_data.list);
if (res.return_data.pages == this.pageNum) {
this.isLoadMore = true;
} else {
this.isLoadMore = false
}
} else {
this.isLoadMore = true
}
});
},
//
focusInput() {
this.pageNum = 1;
this.pagesize = 15;
this.mccList = [];
this.getLklMcc();
},
//mcc
changemcc(item){
app.globalData.mccid = item.name;
app.globalData.mccname = item.maccCode;
uni.navigateBack({})
}
}
}
</script>
<style lang="scss">
.mcclist {
width: calc(100% - 50upx);
height: 100upx;
display: flex;
align-items: center;
background-color: rgba($color: #ffffff, $alpha: 0.1);
border-bottom: 1px solid #f6f6f6;
padding: 12upx 25upx;
}
</style>

@ -11,54 +11,68 @@
<view class="mart15 width100 backcorfff" v-if="current == 0"> <view class="mart15 width100 backcorfff" v-if="current == 0">
<view class="notes"> <view class="notes">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">账号</view>
<view class="font14 fcor333 text2 width75 fotrt">15583658692</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.account.loginName}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">商户ID</view> <view class="fcor666 width25">商户ID</view>
<view class="font14 fcor333 text2 width75 fotrt">3132131</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merNo}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">联系人</view> <view class="fcor666 width25">手机号</view>
<view class="font14 fcor333 text2 width75 fotrt">-</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.regPhone}}</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">手机号</view> <view class="fcor666 width25">商户状态</view>
<view class="font14 fcor333 text2 width75 fotrt">423423424242</view> <view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 1">正常</view>
<view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 4">违规</view>
</view>
<view class="notes">
<view class="fcor666 width25">联系人</view>
<view class="font14 fcor333 text2 width75 fotrt">-</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">身份证号</view> <view class="fcor666 width25">身份证号</view>
<view class="font14 fcor333 text2 width75 fotrt">423423434343424242</view> <view class="font14 fcor333 text2 width75 fotrt">-</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">银行卡号</view> <view class="fcor666 width25">银行卡号</view>
<view class="font14 fcor333 text2 width75 fotrt">4324342423423424242</view> <view class="font14 fcor333 text2 width75 fotrt">-</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="fcor666 width25">所属银行</view> <view class="fcor666 width25">所属银行</view>
<view class="font14 fcor333 text2 width75 fotrt">什么什么支行</view> <view class="font14 fcor333 text2 width75 fotrt">-</view>
</view> </view>
</view> </view>
<!-- 门店信息 --> <!-- 门店信息 -->
<view class="mart15 width100" v-else> <view class="mart15 width100" v-else>
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in storeList" :key="index" @click="jumpstoredes"> <view class="width94 backcorfff border-r mart15" v-for="(item,index) in storeList" :key="index"
@click="jumpstoredes(item.id)">
<view class="notes" style="border-bottom: 0px;"> <view class="notes" style="border-bottom: 0px;">
<image src="../../../static/img/store/store7.png" mode="widthFix" class="iconw40"></image> <image src="../../../static/img/store/store7.png" mode="widthFix" class="iconw40"></image>
<view class="width65 margle"> <view class="width65 margle">
<view class="font14 fcor333">155832658692</view> <view class="font14 fcor333">{{item.name}}</view>
<view class="font12 fcor999">2021-12-15 09:30:21</view> <view class="font12 fcor999">{{item.updateTime | timeFormat('yyyy-mm-dd hh:mm')}}
{{item.updateTime | timeFormat('hh:mm')}}
</view>
</view>
<view class="storestus" v-if="item.status == 1">
正常
</view>
<view class="otstatucs" v-if="item.status == 2">
停用
</view> </view>
</view> </view>
<view class="conts" style="border-bottom: 0px;"> <view class="conts" style="border-bottom: 0px;">
<image src="../../../static/img/store/store8.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/store/store8.png" mode="widthFix" class="iconw"></image>
<view class="margle10 font14 fcor999">155242424242</view> <view class="margle10 font14 fcor999">{{item.account.telephone}}</view>
</view> </view>
<view class="conts" style="border-bottom: 0px;"> <view class="conts" style="border-bottom: 0px;">
<image src="../../../static/img/store/store9.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/store/store9.png" mode="widthFix" class="iconw"></image>
<view class="margle10 font14 fcor999">155242424242</view> <view class="margle10 font14 fcor999">{{item.telephone}}</view>
</view> </view>
<view class="conts" style="border-bottom: 0px;"> <view class="conts" style="border-bottom: 0px;">
<image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image>
<view class="margle10 font14 fcor999 width90p">方式方式的方式的房东说发地方身份史蒂夫是房东说身份是发</view> <view class="margle10 font14 fcor999 width90p">{{item.storeRegion.address}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -67,6 +81,10 @@
<script> <script>
import QSTabs from '../../../components/QS-tabs/QS-tabs.vue'; import QSTabs from '../../../components/QS-tabs/QS-tabs.vue';
import {
getMerDetail,
getStoreListByMer
} from '../../../Utils/Api.js';
export default { export default {
components: { components: {
QSTabs QSTabs
@ -75,19 +93,73 @@
return { return {
tabs: ["商户信息", "门店信息"], tabs: ["商户信息", "门店信息"],
current: 0, // tabs current: 0, // tabs
storeList: [1, 2, 3] storeList: [], //
merid: '', // id
merDesInfo: '' //
} }
}, },
onLoad(options) {
this.merid = options.id;
this.getMerDetail(this.merid);
},
methods: { methods: {
// //
change(index) { change(index) {
this.$refs.tabs.setFinishCurrent(index); this.$refs.tabs.setFinishCurrent(index);
this.current = index; this.current = index;
if (index == 1) {
this.getStoreListByMer();
}
},
//
getMerDetail(item) {
uni.showLoading({
title: '加载中...'
})
let datas = {
merId: item
}
getMerDetail(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data) {
this.merDesInfo = res.return_data;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
},
//
getStoreListByMer() {
uni.showLoading({
title: '加载中...'
})
let datas = {
merId: this.merid,
pageNum: 1,
pageSize: 10
}
getStoreListByMer(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data.list) {
this.storeList = res.return_data.list;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
}, },
// //
jumpstoredes(){ jumpstoredes(item) {
uni.navigateTo({ uni.navigateTo({
url:'../store-details/store-details' url: '../store-details/store-details?id=' + item
}) })
} }
} }
@ -107,6 +179,20 @@
border-bottom: 1px solid #f6f6f6; border-bottom: 1px solid #f6f6f6;
} }
.storestus {
padding: 1px 5px;
color: #91bb88;
font-size: 14px;
background-color: #e8fbe6;
}
.otstatucs {
background-color: #fbeee4;
color: #db8c73;
font-size: 14px;
padding: 1px 5px;
}
.conts { .conts {
width: calc(100% - 60rpx); width: calc(100% - 60rpx);
display: flex; display: flex;

@ -11,11 +11,11 @@
</view> </view>
<!-- 审核状态回馈 --> <!-- 审核状态回馈 -->
<view class="width100 line10 "></view> <view class="width100 line10 "></view>
<view class="width100 height100p" style="background-color: #eb6a53;"> <view class="width100 height100p" style="background-color: #eb6a53;" v-if="merDetailInfo.merStatus == 4">
<view class="font18 fcorfff paading10 aliitem"> <view class="font18 fcorfff paading10 aliitem">
<image src="../../../static/img/error.png" mode="widthFix" class="iconw25 marglerig"></image>资料不全 <image src="../../../static/img/error.png" mode="widthFix" class="iconw25 marglerig"></image>审核失败
</view> </view>
<view class="font14 fcorfff paading10">门店信息与营业执照不符合</view> <view class="font14 fcorfff paading10">{{merDetailInfo.merContractFailMsg.response_msg}}</view>
</view> </view>
<!--第一步 未录入账户信息 --> <!--第一步 未录入账户信息 -->
<view class="width100 mart10 backcorfff font14" v-if="merchart == 1 && currentstatus != 1"> <view class="width100 mart10 backcorfff font14" v-if="merchart == 1 && currentstatus != 1">
@ -159,11 +159,18 @@
</pickRegions> </pickRegions>
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view> </view>
<view class="username"> <!-- <view class="username">
<view class="namecont">mcc编号</view> <view class="namecont">mcc编号</view>
<input placeholder="请输入mcc编号" v-model="mccno" style="width: 70%;" <input placeholder="请输入四位数字的mcc编号" v-model="mccno" maxlength="4" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> -->
<view class="username">
<view class="namecont">mcc编号</view>
<input placeholder="请选择mcc编号" v-model="mccno" style="width: 70%;" disabled="true"
@click="jumpchangemcc()" placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view> </view>
<view class="username" style="border-bottom: 0px;"> <view class="username" style="border-bottom: 0px;">
<view class="namecont">详情地址</view> <view class="namecont">详情地址</view>
<input placeholder="请精确到XX路XX号" v-model="detailsaddress" style="width: 70%;" <input placeholder="请精确到XX路XX号" v-model="detailsaddress" style="width: 70%;"
@ -432,7 +439,7 @@
</view> </view>
<view class="username"> <view class="username">
<view class="namecont">银行卡持有人</view> <view class="namecont">银行卡持有人</view>
<input placeholder="请输入银行卡" v-model="bankName" style="width: 70%;" <input placeholder="请输入银行卡持有人" v-model="bankName" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> </view>
<view class="username"> <view class="username">
@ -730,7 +737,7 @@
bankCardlist: [], // bankCardlist: [], //
idCardzm: [], // idCardzm: [], //
idCardfm: [], // idCardfm: [], //
merId: '9', //id merId: '', //id
merDetailInfo: '' // merDetailInfo: '' //
} }
}, },
@ -750,7 +757,8 @@
return this.region.map(item => item.name).join('-'); return this.region.map(item => item.name).join('-');
} }
}, },
onLoad() { onLoad(options) {
this.merId = options.id
this.getMerDetail(1); this.getMerDetail(1);
}, },
onShow() { onShow() {
@ -758,10 +766,15 @@
this.industrycategory = app.globalData.businessname; this.industrycategory = app.globalData.businessname;
this.inducateid = app.globalData.businessid; this.inducateid = app.globalData.businessid;
} }
if (app.globalData.mccid) {
this.mccno = app.globalData.mccid;
}
}, },
onUnload() { onUnload() {
app.globalData.businessid = ''; app.globalData.businessid = '';
app.globalData.businessname = ''; app.globalData.businessname = '';
app.globalData.mccid = '';
app.globalData.mccname = '';
}, },
methods: { methods: {
// //
@ -794,6 +807,12 @@
url: '../business-category/business-category' url: '../business-category/business-category'
}) })
}, },
//mcc
jumpchangemcc() {
uni.navigateTo({
url: '../mcc-list/mcc-list'
})
},
// //
changeMerchant(item) { changeMerchant(item) {
if (item == 1) { if (item == 1) {
@ -984,6 +1003,7 @@
this.businimg = item; this.businimg = item;
this.businessLicenselist = JSON.parse(res.return_data.data).data; this.businessLicenselist = JSON.parse(res.return_data.data).data;
this.companyname = this.businessLicenselist.companyName; this.companyname = this.businessLicenselist.companyName;
this.detailsaddress = this.businessLicenselist.businessAddress;
this.businnum = this.businessLicenselist.creditCode; this.businnum = this.businessLicenselist.creditCode;
this.regaddress = this.businessLicenselist.businessAddress; this.regaddress = this.businessLicenselist.businessAddress;
this.start_date = this.businessLicenselist.RegistrationDate; this.start_date = this.businessLicenselist.RegistrationDate;
@ -1084,12 +1104,13 @@
}, },
// //
choicemer() { choicemer() {
this.getMerDetail(0);
uni.pageScrollTo({ uni.pageScrollTo({
scrollTop: 0 scrollTop: 0
}) })
if (this.merchart != 1) { if (this.merchart != 1) {
this.merchart = this.merchart - 1; this.merchart = this.merchart - 1;
console.log('============--------')
this.getMerDetail(0);
} }
}, },
// //
@ -1146,8 +1167,60 @@
if (item == 1) { if (item == 1) {
this.merchart = res.return_data.completeStatus; this.merchart = res.return_data.completeStatus;
} }
if (this.merchart == res.return_data.completeStatus) { if ((res.return_data.merStatus == 4 || res.return_data.merStatus == 2) && this.merchart !=
1) {
this.currentstatus = 0; this.currentstatus = 0;
console.log('============')
//
this.merchantId = res.return_data.merType;
this.companyname = res.return_data.merName
this.merabbreviation = res.return_data.merAbbreviate;
this.mccno = res.return_data.merMccCode;
this.businimg = res.return_data.blisUrl;
this.companyname = res.return_data.blisName;
this.businnum = res.return_data.blisNo
this.regaddress = res.return_data.blisRegAddress;
this.start_date = res.return_data.blisPeriodStart
this.timetype = res.return_data.blisPeriodType;
this.end_date = res.return_data.blisPeriodEnd;
this.inducateid = res.return_data.merIndustry.childId;
this.industrycategory = res.return_data.merIndustry.childName;
this.detailsaddress = res.return_data.merRegion.address;
if (this.merchart == 2) {
this.idcardname = res.return_data.larName;
this.idcard = res.return_data.larIdCard;
this.idcardposimg = res.return_data.larIdCardPortraitImg;
this.idcardsideimg = res.return_data.larIdCardNationalEmblemImg;
this.cardstart_date = res.return_data.larIdCardPeriodStart;
this.idcardtime = res.return_data.larIdCardPeriodType;
this.cardend_date = res.return_data.larIdCardPeriodEnd;
}
//
this.lementId = res.return_data.merSettleAcct.settleType;
this.settleimg = res.return_data.merSettleAcct.bankCardImg;
this.belongbranch = res.return_data.merSettleAcct.bankName;
this.bankNo = res.return_data.merSettleAcct.bankCardNo;
this.bankName = res.return_data.merSettleAcct.bankCardHolder;
this.openingbankNo = res.return_data.merSettleAcct.openningBankCode;
this.belongbank = res.return_data.merSettleAcct.openningBankName;
this.accopenperimg = res.return_data.merSettleAcct.openningBankLicenseUrl;
this.clearbankNo = res.return_data.merSettleAcct.clearingBankCode;
if (this.merchart == 3) {
this.idcardname = res.return_data.merSettleAcct.settleIdCardName;
this.idcard = res.return_data.merSettleAcct.settleIdCardNo;
this.idcardtime = res.return_data.merSettleAcct.settleIdPeriodType;
this.idcardposimg = res.return_data.merSettleAcct.settleIdCardPortraitImg;
this.idcardsideimg = res.return_data.merSettleAcct.settleIdCardNationalEmblemImg;
this.cardstart_date = res.return_data.merSettleAcct.settleIdCardPeriodStart;
this.cardend_date = res.return_data.merSettleAcct.settleIdCardPeriodEnd;
}
//
this.storeaccount = res.return_data.storeModel.account.loginName;
this.storename = res.return_data.storeModel.name;
this.storephone = res.return_data.storeModel.telephone;
this.storeimg1 = res.return_data.storeModel.doorHeadImg;
this.storeimg2 = res.return_data.storeModel.cashRegisterImg;
this.storeimg3 = res.return_data.storeModel.internalImg;
} else { } else {
this.currentstatus = 1; this.currentstatus = 1;
} }
@ -1299,6 +1372,14 @@
}); });
return; return;
} }
if (that.mccno.length != 4) {
uni.showToast({
title: '请填写正确的mcc编号',
icon: "none",
duration: 2000
});
return;
}
if (!that.detailsaddress) { if (!that.detailsaddress) {
uni.showToast({ uni.showToast({
title: '请填写详情地址', title: '请填写详情地址',

@ -2,26 +2,35 @@
<view> <view>
<view class="backcorfff width100"> <view class="backcorfff width100">
<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change" <QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
activeColor="#089bf5" lineColor="#089bf5" minWidth="125"> activeColor="#089bf5" lineColor="#089bf5" minWidth="150">
</QSTabs> </QSTabs>
</view> </view>
<!-- 状态 --> <!-- 状态 -->
<view class="mart20 width100"> <view class="mart20 width100">
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in merchantlist" :key="index" @click="jumpmerdes"> <view v-if="merchantlist == '' " class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in merchantlist" :key="index"
@click="jumpmerdes(item.id)">
<view class="notes"> <view class="notes">
<image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image> <image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image>
<view class="width65 margle"> <view class="width65 margle">
<view class="font14 fcor333">155832658692</view> <view class="font14 fcor333">{{item.regPhone}}</view>
<view class="font12 fcor999">2021-12-15 09:30:21</view> <view class="font12 fcor999">
{{item.createTime | timeFormat('yyyy-mm-dd hh:mm')}}
{{item.createTime | timeFormat('hh:mm')}}
</view>
</view> </view>
<!-- <view class="statucs font14">正常</view> --> <view class="statucs font14" v-if="item.merStatus == 1">正常</view>
<!-- <view class="otstatucs font14">违规</view> --> <view class="otstatucs font14" v-if="item.merStatus == 2">编辑中</view>
<view class="otstatucs font14">审核失败</view> <view class="otstatucs font14" v-if="item.merStatus == 3">审核中</view>
<view class="otstatucs font14" v-if="item.merStatus == 4">审核失败</view>
<view class="otstatucs font14" v-if="item.merStatus == 5">违规</view>
</view> </view>
<view class="notes"> <view class="notes">
<view class="width30 fcor333 font15">联系人</view> <view class="width30 fcor333 font15">联系人</view>
<view class="width30 fcor999 font15">谁谁谁谁</view> <view class="width30 fcor999 font15" v-if="item.regName">{{item.regName}}</view>
<!-- <view class="width30 fcor999 font15">-</view> --> <view class="width30 fcor999 font15" v-else>-</view>
</view> </view>
</view> </view>
</view> </view>
@ -30,29 +39,88 @@
<script> <script>
import QSTabs from '../../../components/QS-tabs/QS-tabs.vue'; import QSTabs from '../../../components/QS-tabs/QS-tabs.vue';
import {
getMerListBySalesman
} from '../../../Utils/Api.js';
export default { export default {
components: { components: {
QSTabs QSTabs
}, },
data() { data() {
return { return {
tabs: ["正常", "编辑中", "待审核", "审核中", "审核失败", "违规"], tabs: ["正常", "编辑中", "审核中", "审核失败", "违规"],
current: 0, // tabs current: 0, // tabs
merchantlist:[1,2,3,4,5] merchantlist: [],
pageNum: 1,
pagesize: 10,
isLoadMore: false, //
merstu: 1 // 1 2 4 5 6
}
},
onLoad() {
this.getMerListBySalesman();
},
onReachBottom() { //
if (!this.isLoadMore) { //
this.isLoadMore = true
this.pageNum += 1
this.getCmsContentNEWS()
} }
}, },
methods: { methods: {
//
getMerListBySalesman() {
uni.showLoading({
title: '加载中'
})
let datas = {
merStatus: this.merstu,
pageNum: this.pageNum,
pageSize: this.pagesize,
}
getMerListBySalesman(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data.list) {
this.merchantlist = this.merchantlist.concat(res.return_data.list);
if (res.return_data.pages == this.pageNum) {
this.isLoadMore = true;
} else {
this.isLoadMore = false
}
} else {
this.isLoadMore = true
}
});
},
// //
change(index) { change(index) {
this.$refs.tabs.setFinishCurrent(index); this.$refs.tabs.setFinishCurrent(index);
this.current = index; this.current = index;
this.merstu = this.current + 1;
this.merchantlist = [];
this.pageNum = 1;
this.getMerListBySalesman();
}, },
// //
jumpmerdes(){ jumpmerdes(ids) {
if (this.current == 1 || this.current == 3) {
uni.navigateTo({ uni.navigateTo({
url:'../merchant-details/merchant-details' url: '../merchant-incoming-parts/merchant-incoming-parts?id=' + ids
})
}
if (this.current == 2) {
uni.showToast({
title: '审核中',
duration: 2000,
icon: 'none'
}) })
} }
if (this.current == 0 || this.current == 4) {
uni.navigateTo({
url: '../merchant-details/merchant-details?id=' + ids
})
}
}
} }
} }
</script> </script>
@ -68,6 +136,7 @@
align-items: center; align-items: center;
padding: 20upx 0 20upx 20upx; padding: 20upx 0 20upx 20upx;
} }
// //
.statucs { .statucs {
background-color: #e9f9e5; background-color: #e9f9e5;
@ -75,6 +144,7 @@
text-align: center; text-align: center;
padding: 2px 5px; padding: 2px 5px;
} }
// //
.otstatucs { .otstatucs {
background-color: #fbeee4; background-color: #fbeee4;

@ -1,5 +1,8 @@
<template> <template>
<view> <view>
<view v-if="messList == '' " class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="width100 height80 backcorfff" v-for="(item,index) in messList" :key="index"> <view class="width100 height80 backcorfff" v-for="(item,index) in messList" :key="index">
<view class="width94 bor-botm1"> <view class="width94 bor-botm1">
<view class="width80p flleft font14"> <view class="width80p flleft font14">
@ -23,7 +26,7 @@
export default { export default {
data() { data() {
return { return {
messList: [1, 2, 3, 4, 5, 6] messList: []
} }
}, },
methods: { methods: {

@ -3,80 +3,113 @@
<view class="width100 mart10 backcorfff"> <view class="width100 mart10 backcorfff">
<view class="storelis"> <view class="storelis">
<view class="namecont">门店名称</view> <view class="namecont">门店名称</view>
<view class="font14 fcor333 text2 width75 fotrt">重庆中天广告</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.name}}</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">门店ID</view> <view class="namecont">门店ID</view>
<view class="font14 fcor333 text2 width75 fotrt">98984</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.storeNo}}</view>
</view>
<view class="storelis">
<view class="namecont">子商户号</view>
<view class="font14 fcor333 text2 width75 fotrt">9000934024</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">所在城市</view> <view class="namecont">所在城市</view>
<view class="font14 fcor333 text2 width75 fotrt">重庆-重庆市-九龙坡区</view> <view class="font14 fcor333 text2 width75 fotrt">
{{storeDesInfo.storeRegion.provinceName}}-{{storeDesInfo.storeRegion.cityName}}-{{storeDesInfo.storeRegion.areaName}}
</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">门店地址</view> <view class="namecont">门店地址</view>
<view class="font14 fcor333 text2 width75 fotrt">重庆中天广告客源一路3号</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.storeRegion.address}}</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">门店电话</view> <view class="namecont">门店电话</view>
<view class="font14 fcor333 text2 width75 fotrt">143423424242</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.telephone}}</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">经营品类</view> <view class="namecont">经营品类</view>
<view class="font14 fcor333 text2 width75 fotrt">线下零售-便利店</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.storeIndustry.parentName}}-{{storeDesInfo.storeIndustry.childName}}
</view>
</view> </view>
<view class="width100 line10"></view> <view class="width100 line10"></view>
<view class="storelis"> <view class="storelis">
<view class="namecont">创建时间</view> <view class="namecont">创建时间</view>
<view class="font14 fcor333 text2 width75 fotrt">2020-01-21 09-21-23</view> <view class="font14 fcor333 text2 width75 fotrt">
{{storeDesInfo.updateTime | timeFormat('yyyy-mm-dd hh:mm')}}
{{storeDesInfo.updateTime | timeFormat('hh:mm')}}
</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">公司名称</view> <view class="namecont">公司名称</view>
<view class="font14 fcor333 text2 width75 fotrt">重庆什么什么中天有限公司</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.blisName}}</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">营业执照号</view> <view class="namecont">营业执照号</view>
<view class="font14 fcor333 text2 width75 fotrt">34223424234SDFS24234</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.blisNo}}</view>
</view> </view>
<view class="storelis"> <view class="storelis">
<view class="namecont">营业期限</view> <view class="namecont">营业期限</view>
<view class="font14 fcor333 text2 width75 fotrt">长期有效</view> <view class="font14 fcor333 text2 width75 fotrt">{{storeDesInfo.blisPeriodEnd}}</view>
</view> </view>
<view class="width100 line10"></view> <view class="width100 line10"></view>
<view class="storelis" style="border-bottom: 0px;"> <view class="storelis" style="border-bottom: 0px;">
<view class="namecont">门店照片</view> <view class="namecont">门店照片</view>
</view> </view>
<view class="width94 displ"> <view class="width94 displ">
<image src="../../../static/img/businesslic1.png" mode="widthFix" class="width30" <image :src="imageUrl+storeDesInfo.doorHeadImg" mode="widthFix" class="width30"
@click="perImage('../../../static/img/businesslic1.png')" style="margin-left: 3%;"></image> @click="perImage(imageUrl+storeDesInfo.doorHeadImg)" style="margin-left: 3%;"></image>
<image src="../../../static/img/businesslic1.png" mode="widthFix" class="width30" <image :src="imageUrl+storeDesInfo.cashRegisterImg" mode="widthFix" class="width30"
@click="perImage('../../../static/img/businesslic1.png')" style="margin-left: 3%;"></image> @click="perImage(imageUrl+storeDesInfo.cashRegisterImg)" style="margin-left: 3%;"></image>
<image src="../../../static/img/businesslic1.png" mode="widthFix" class="width30" <image :src="imageUrl+storeDesInfo.internalImg" mode="widthFix" class="width30"
@click="perImage('../../../static/img/businesslic1.png')" style="margin-left: 3%;"></image> @click="perImage(imageUrl+storeDesInfo.internalImg)" style="margin-left: 3%;"></image>
</view> </view>
<view class="storelis" style="border-bottom: 0px;"> <!-- <view class="storelis" style="border-bottom: 0px;">
<view class="namecont">其他凭证</view> <view class="namecont">其他凭证</view>
</view> </view>
<view class="width94 displ marb15"> <view class="width94 displ marb15">
<image src="../../../static/img/businesslic1.png" mode="widthFix" class="width30" <image src="../../../static/img/businesslic1.png" mode="widthFix" class="width30"
@click="perImage('../../../static/img/businesslic1.png')" style="margin-left: 3%;"></image> @click="perImage('../../../static/img/businesslic1.png')" style="margin-left: 3%;"></image>
</view> </view> -->
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {
getStoreDetailById
} from '../../../Utils/Api.js';
let app = getApp();
export default { export default {
data() { data() {
return { return {
desId: '', //id
storeDesInfo: '', //
imageUrl: app.globalData.imgUrl
} }
}, },
onLoad(options) {
this.desId = options.id;
this.getStoreDetailById();
},
methods: { methods: {
//
getStoreDetailById() {
uni.showLoading({
title: '加载中...'
})
let datas = {
storeId: this.desId
}
getStoreDetailById(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
this.storeDesInfo = res.return_data;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
},
/** /**
* @param {Object} item 放大图片 * @param {Object} item 放大图片
*/ */

@ -41,22 +41,22 @@
methods: { methods: {
// //
isLogin() { isLogin() {
uni.getStorage({ // uni.getStorage({
key: 'payuser', // key: 'payuser',
success: (res) => { // success: (res) => {
app.globalData.userInfo = res.data; // app.globalData.userInfo = res.data;
uni.getStorage({ // uni.getStorage({
key: "paytoken", // key: "paytoken",
success: (res) => { // success: (res) => {
app.globalData.token = res.data; // app.globalData.token = res.data;
uni.reLaunch({ // uni.reLaunch({
url: '../tabBar/home/home' // url: '../tabBar/home/home'
}) // })
} // }
}) // })
} // }
}); // });
uni.getStorage({ uni.getStorage({
key: 'loginaccount', key: 'loginaccount',
success: (res) => { success: (res) => {
@ -105,8 +105,7 @@
this.isRotate = false; this.isRotate = false;
if (res.return_code == '000000' && res.return_data) { if (res.return_code == '000000' && res.return_data) {
app.globalData.userInfo = res.return_data app.globalData.userInfo = res.return_data
.object .object;
.secUser;
app.globalData.token = res.return_data.uniqueCode; app.globalData.token = res.return_data.uniqueCode;
uni.setStorage({ uni.setStorage({
key: "loginaccount", key: "loginaccount",
@ -120,7 +119,6 @@
key: "payuser", key: "payuser",
data: res.return_data data: res.return_data
.object .object
.secUser
}) })
uni.setStorage({ uni.setStorage({
key: "paytoken", key: "paytoken",

@ -2,7 +2,7 @@
<view> <view>
<image mode="widthFix" class="width100 headimg" src="../../../static/img/head.png"></image> <image mode="widthFix" class="width100 headimg" src="../../../static/img/head.png"></image>
<view class="headcont fotct" @click="jumpdesfun('../../tabBar/user/user')"> <view class="headcont fotct" @click="jumpdesfun('../../tabBar/user/user')">
<view class="width94 fcorfff font18 alijus">谷润科技<image mode="widthFix" class="margle iconw" <view class="width94 fcorfff font18 alijus">{{userInfo.secUser.userName}}<image mode="widthFix" class="margle iconw"
src="../../../static/img/jt.png"></image> src="../../../static/img/jt.png"></image>
</view> </view>
<!-- 业务员 --> <!-- 业务员 -->
@ -57,7 +57,38 @@
export default { export default {
data() { data() {
return { return {
funcList: [{ funcList: [
// {
// title: '',
// url: '../../index/merchant-incoming-parts/merchant-incoming-parts',
// img: ''
// },
// {
// title: '',
// url: '../../index/merchant-management/merchant-management',
// img: ''
// },
// {
// title: '',
// url: '../../index/addStore/addStore',
// img: ''
// },
// {
// title: '',
// url: '../../index/merchant-list/merchant-list',
// img: ''
// },{
// title: '',
// url: '../../index/collection-record/collection-record',
// img: ''
// },
],
userInfo:app.globalData.userInfo
};
},
onLoad() {
if(this.userInfo.secUser.objectType == 3){
this.funcList = [{
title: '新增商户', title: '新增商户',
url: '../../index/merchant-incoming-parts/merchant-incoming-parts', url: '../../index/merchant-incoming-parts/merchant-incoming-parts',
img: '' img: ''
@ -66,25 +97,8 @@
title: '商户管理', title: '商户管理',
url: '../../index/merchant-management/merchant-management', url: '../../index/merchant-management/merchant-management',
img: '' img: ''
}, }]
{ }
title: '新增门店',
url: '../../index/addStore/addStore',
img: ''
},
{
title: '门店管理',
url: '../../index/merchant-list/merchant-list',
img: ''
},{
title: '收费记录',
url: '../../index/collection-record/collection-record',
img: ''
},
]
};
},
onLoad() {
}, },
methods: { methods: {
getDiscountList() { getDiscountList() {

@ -1,9 +1,9 @@
<template> <template>
<view> <view>
<view class="width100 backcorfff height100p mart10"> <view class="width100 backcorfff height100p mart10">
<view class="width94 fcor333 font16 paddtop10">谷润科技</view> <view class="width94 fcor333 font16 paddtop10">{{userInfo.secUser.userName}}</view>
<view class="width94 fcor999 font14 paddtop10">1551243232</view> <view class="width94 fcor999 font14 paddtop10">xxx</view>
<view class="width94 fcor999 font14 paddtop10">名称超级管理员</view> <view class="width94 fcor999 font14 paddtop10">名称{{userInfo.secRole.roleName}}</view>
</view> </view>
<view class="width100 backcorfff mart15"> <view class="width100 backcorfff mart15">
<view class="notes"> <view class="notes">
@ -27,6 +27,7 @@
data() { data() {
return { return {
isRotate: false, // isRotate: false, //
userInfo:app.globalData.userInfo //
} }
}, },
onLoad() { onLoad() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>炫支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>炫支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.0004de39.js></script><script src=/cweb/static/js/index.96f180c6.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.5a385107.js></script><script src=/cweb/static/js/index.47494f15.js></script></body></html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save