Browse Source

客户模块

devlop
邓雄飞 4 years ago
parent
commit
4f7f763c3e
126 changed files with 8644 additions and 1262 deletions
  1. 2
      .gitignore
  2. 23
      apis/clientApi.js
  3. 12
      apis/searchApi.js
  4. 198
      components/qn-map/qn-map.nvue
  5. 4
      env/index.js
  6. 17
      manifest.json
  7. 24
      pages.json
  8. 40
      pages/add-user/index.vue
  9. 152
      pages/client-list/index.vue
  10. 0
      pages/client/enquiryItem.vue
  11. 339
      pages/client/index.nvue
  12. 65
      pages/client/index.vue
  13. 240
      pages/search/index.vue
  14. BIN
      static/imgs/client/close-icon.png
  15. BIN
      static/imgs/client/horn-icon.png
  16. BIN
      static/imgs/client/list-button.png
  17. BIN
      static/imgs/client/locate-button.png
  18. BIN
      static/imgs/client/location-black.png
  19. BIN
      static/imgs/client/location-blue.png
  20. BIN
      static/imgs/client/location-red.png
  21. BIN
      static/imgs/client/next-icon.png
  22. BIN
      static/imgs/client/search-icon.png
  23. BIN
      static/imgs/client/user-icon.png
  24. 44
      store/index.js
  25. BIN
      unpackage/cache/apk/__UNI__8C1E198_cm.apk
  26. 1
      unpackage/cache/apk/apkurl
  27. 1
      unpackage/cache/apk/cmManifestCache.json
  28. 3
      unpackage/cache/certdata
  29. 4
      unpackage/cache/cloudcertificate/certini
  30. BIN
      unpackage/cache/cloudcertificate/package.keystore
  31. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniappchooselocation.js
  32. BIN
      unpackage/cache/wgt/__UNI__8C1E198/__uniapperror.png
  33. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniappes6.js
  34. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniappopenlocation.js
  35. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniapppicker.js
  36. 8
      unpackage/cache/wgt/__UNI__8C1E198/__uniappquill.js
  37. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniappquillimageresize.js
  38. 1
      unpackage/cache/wgt/__UNI__8C1E198/__uniappscan.js
  39. BIN
      unpackage/cache/wgt/__UNI__8C1E198/__uniappsuccess.png
  40. 25
      unpackage/cache/wgt/__UNI__8C1E198/__uniappview.html
  41. 8
      unpackage/cache/wgt/__UNI__8C1E198/app-config-service.js
  42. 1
      unpackage/cache/wgt/__UNI__8C1E198/app-config.js
  43. 7
      unpackage/cache/wgt/__UNI__8C1E198/app-service.js
  44. 1
      unpackage/cache/wgt/__UNI__8C1E198/app-view.js
  45. 1
      unpackage/cache/wgt/__UNI__8C1E198/manifest.json
  46. 1
      unpackage/cache/wgt/__UNI__8C1E198/pages/client/index.js
  47. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/close-icon.png
  48. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/horn-icon.png
  49. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/list-button.png
  50. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/locate-button.png
  51. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-black.png
  52. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-blue.png
  53. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-red.png
  54. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/next-icon.png
  55. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/search-icon.png
  56. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/user-icon.png
  57. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/client-blue.png
  58. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/client-gray.png
  59. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mall-blue.png
  60. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mall-gray.png
  61. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mine-blue.png
  62. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mine-gray.png
  63. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/trade-blue.png
  64. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/trade-gray.png
  65. BIN
      unpackage/cache/wgt/__UNI__8C1E198/static/logo.png
  66. BIN
      unpackage/cache/wgt/__UNI__8C1E198/uni_modules/uni-icons/components/uni-icons/uniicons.ttf
  67. 1
      unpackage/cache/wgt/__UNI__8C1E198/view.css
  68. 6
      unpackage/cache/wgt/__UNI__8C1E198/view.umd.min.js
  69. 0
      unpackage/dist/build/.automator/app-plus/.automator.json
  70. 1
      unpackage/dist/build/app-plus/__uniappchooselocation.js
  71. BIN
      unpackage/dist/build/app-plus/__uniapperror.png
  72. 1
      unpackage/dist/build/app-plus/__uniappes6.js
  73. 1
      unpackage/dist/build/app-plus/__uniappopenlocation.js
  74. 1
      unpackage/dist/build/app-plus/__uniapppicker.js
  75. 8
      unpackage/dist/build/app-plus/__uniappquill.js
  76. 1
      unpackage/dist/build/app-plus/__uniappquillimageresize.js
  77. 1
      unpackage/dist/build/app-plus/__uniappscan.js
  78. BIN
      unpackage/dist/build/app-plus/__uniappsuccess.png
  79. 25
      unpackage/dist/build/app-plus/__uniappview.html
  80. 8
      unpackage/dist/build/app-plus/app-config-service.js
  81. 1
      unpackage/dist/build/app-plus/app-config.js
  82. 7
      unpackage/dist/build/app-plus/app-service.js
  83. 1
      unpackage/dist/build/app-plus/app-view.js
  84. 1
      unpackage/dist/build/app-plus/manifest.json
  85. 1
      unpackage/dist/build/app-plus/pages/client/index.js
  86. BIN
      unpackage/dist/build/app-plus/static/imgs/client/close-icon.png
  87. BIN
      unpackage/dist/build/app-plus/static/imgs/client/horn-icon.png
  88. BIN
      unpackage/dist/build/app-plus/static/imgs/client/list-button.png
  89. BIN
      unpackage/dist/build/app-plus/static/imgs/client/locate-button.png
  90. BIN
      unpackage/dist/build/app-plus/static/imgs/client/location-black.png
  91. BIN
      unpackage/dist/build/app-plus/static/imgs/client/location-blue.png
  92. BIN
      unpackage/dist/build/app-plus/static/imgs/client/location-red.png
  93. BIN
      unpackage/dist/build/app-plus/static/imgs/client/next-icon.png
  94. BIN
      unpackage/dist/build/app-plus/static/imgs/client/search-icon.png
  95. BIN
      unpackage/dist/build/app-plus/static/imgs/client/user-icon.png
  96. BIN
      unpackage/dist/build/app-plus/static/imgs/tabbar/client-blue.png
  97. BIN
      unpackage/dist/build/app-plus/static/imgs/tabbar/client-gray.png
  98. BIN
      unpackage/dist/build/app-plus/static/imgs/tabbar/mall-blue.png
  99. BIN
      unpackage/dist/build/app-plus/static/imgs/tabbar/mall-gray.png
  100. BIN
      unpackage/dist/build/app-plus/static/imgs/tabbar/mine-blue.png

2
.gitignore

@ -1,2 +1,4 @@
jsconfig.json jsconfig.json
.vscode/settings.json .vscode/settings.json
components/qn-map/qn-map.vue
pages/client/index2.vue

23
apis/clientApi.js

@ -1,4 +1,27 @@
import http from '../utils/http/index.js' import http from '../utils/http/index.js'
// 获取地图上的企业列表
export function getMapCompanyList(data) {
return http.get(
{
url: '/base-paper-trading/get/customers/enterprise/address/distribution/list',
data
},
{ hideLoading: true }
)
}
// 获取询价列表
export function getInquiryList(data) {
return http.get(
{
url: '/base-paper-trading/get/customers/enquiry/to/quote/page',
data
},
{ hideLoading: true }
)
}
/** /**
* @param {Object} data :{filePath:'',fileType:'',fileName:''} * @param {Object} data :{filePath:'',fileType:'',fileName:''}
*/ */

12
apis/searchApi.js

@ -0,0 +1,12 @@
import http from '../utils/http/index.js'
// 根据名称模糊查询企业列表
export function getCompanyList(data) {
return http.get(
{
url: '/base-paper-trading/get/customers/enterprise/basic/list',
data
},
{ hideLoading: true }
)
}

198
components/qn-map/qn-map.nvue

@ -0,0 +1,198 @@
<template>
<!-- 使用前请使用flex包裹 -->
<map
id="qnMap"
ref="qnMap"
class="qn-map"
:longitude="centerPoint.longitude"
:latitude="centerPoint.latitude"
:markers="markers"
:scale="scale"
@labeltap="labeltap"
@regionchange="regionchange"
></map>
</template>
<script>
export default {
props: {
location: {
type: Object,
required: false,
default: () => ({})
},
items: {
type: Array,
default: () => []
}
},
data() {
return {
timer: null,
mapContext: null,
centerPoint: {
longitude: 113.395996,
latitude: 23.119967
},
markers: [],
selectedId: -1,
scale: 14
}
},
created() {
this.init()
},
mounted() {
this.mapContext = uni.createMapContext('qnMap', this)
},
watch: {
// 只监听items一层变化
items(val) {
this.markers = val.map((item) => {
return this.causeMarker(item)
})
this.mapContext.addMarkers({
markers: this.markers,
clear: true,
success:(res) => {
},
fail:(err) => {
console.log('fail',err)
},
})
},
location: {
handler(val) {
let data = {
longitude: val.longitude,
latitude: val.latitude,
scale: this.scale
}
if (this.mapContext) {
this.mapContext.moveToLocation({
longitude: val.longitude,
latitude: val.latitude
})
}
this.$emit('reset', data)
},
deep: true
}
},
methods: {
// 生成markers
causeMarker(item) {
let result = {}
if (this.scale >= 15) {
result = {
latitude: item.latitude - 0,
longitude: item.longitude - 0,
id: item.enterpriseId,
iconPath: `/static/imgs/client/location-${
item.whetherCooperation ? 'red' : 'blue'
}.png`,
width: 22,
height: 26,
label: {
x: -20,
y: -42,
anchorX: -20,
anchorY: -42,
content: item.enterpriseName,
fontSize: 13,
color: '#ffffff',
borderRadius: 20,
bgColor: item.whetherCooperation ? '#F5222D' : '#2B74FF',
padding: 10,
textAlign: 'center'
}
}
} else {
result = {
latitude: item.latitude - 0,
longitude: item.longitude - 0,
id: item.enterpriseId,
iconPath: `/static/imgs/client/location-${
item.whetherCooperation ? 'red' : 'blue'
}.png`,
width: 22,
height: 26
}
}
return result
},
// 初始化
init() {
if (this.location.longitude && this.location.latitude) {
this.centerPoint.longitude = this.location.longitude
this.centerPoint.latitude = this.location.latitude
}
if (this.items.length > 0) {
this.markers = this.items.map((item) => {
return this.causeMarker(item)
})
}
},
labeltap(e) {
if (this.selectedId == e.detail.markerId) {
return
}
this.$emit('labeltap', e.detail.markerId)
this.selectedId = e.detail.markerId
},
dragMap() {
this.mapContext.getCenterLocation({
success: (res) => {
// 抛出移动事件
this.$emit('dragMap', {
longitude: res.longitude,
latitude: res.latitude,
scale: this.scale
})
this.centerPoint.longitude = res.longitude
this.centerPoint.latitude = res.latitude
}
})
},
scaleMap() {
this.mapContext.getScale({
success: (res) => {
this.scale = Math.ceil(res.scale)
console.log('scale:', this.scale)
// 抛出缩放事件
this.$emit('scaleMap', {
longitude: this.centerPoint.longitude,
latitude: this.centerPoint.latitude,
scale: this.scale
})
}
})
},
regionchange(e) {
if (this.timer) {
clearTimeout(this.timer)
this.timer = null
}
this.timer = setTimeout(() => {
switch (e.causedBy) {
case 'drag':
this.dragMap()
break
case 'scale':
this.scaleMap()
break
default:
break
}
}, 500)
}
}
}
</script>
<style lang="scss">
.qn-map {
width: auto;
flex: 1;
}
</style>

4
env/index.js

@ -0,0 +1,4 @@
const env = 'test'
// const env = 'production'
export default env

17
manifest.json

@ -1,6 +1,6 @@
{ {
"name" : "uniapp-demo",
"appid" : "",
"name" : "paper-shop-app",
"appid" : "__UNI__8C1E198",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
@ -19,6 +19,9 @@
"autoclose" : true, "autoclose" : true,
"delay" : 0 "delay" : 0
}, },
"compatible":{
"ignoreVersion": true
},
/* */ /* */
"modules" : { "modules" : {
"Maps" : {} "Maps" : {}
@ -43,7 +46,8 @@
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
],
"abiFilters" : [ "armeabi-v7a", "x86" ]
}, },
/* ios */ /* ios */
"ios" : {}, "ios" : {},
@ -51,8 +55,8 @@
"sdkConfigs" : { "sdkConfigs" : {
"maps" : { "maps" : {
"amap" : { "amap" : {
"appkey_ios" : "45df26c6f0839dc7f28ed57b58416336",
"appkey_android" : "45df26c6f0839dc7f28ed57b58416336"
"appkey_ios" : "5e4da36f4c1649ca28a1f8f795bcf5d2",
"appkey_android" : "2ced501c80ee5f6a74ba43ef7c2d36bd"
} }
}, },
"payment" : { "payment" : {
@ -61,7 +65,8 @@
"appid" : "", "appid" : "",
"UniversalLinks" : "" "UniversalLinks" : ""
} }
}
},
"ad" : {}
} }
}, },
"uniStatistics" : { "uniStatistics" : {

24
pages.json

@ -8,6 +8,27 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/client-list/index",
"style": {
"navigationBarTitleText": "客户列表",
"navigationStyle": "custom"
}
},
{
"path": "pages/search/index",
"style": {
"navigationBarTitleText": "客户搜索",
"navigationStyle": "custom"
}
},
{
"path": "pages/add-user/index",
"style": {
"navigationBarTitleText": "添加客户",
"navigationStyle": "custom"
}
},
{ {
"path": "pages/trade/index", "path": "pages/trade/index",
"style": { "style": {
@ -45,7 +66,8 @@
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"backgroundColor": "#F8F8F8",
"backgroundColorTop": "#FFFFFF"
}, },
"tabBar": { "tabBar": {
"color": "#888", "color": "#888",

40
pages/add-user/index.vue

@ -0,0 +1,40 @@
<template>
<view class="content">
add-user
</view>
</template>
<script>
export default {
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>

152
pages/client-list/index.vue

@ -0,0 +1,152 @@
<template>
<view class="content">
<uni-nav-bar
:fixed="true"
color="#ffffff"
background-color="#ffffff"
:status-bar="true"
>
<view slot="left"><text class="nav-title">客户</text></view>
<view class="nav-search" @click="goSearch">
<image class="search-icon" src="/static/imgs/client/search-icon.png" />
<text class="search-text">输入客户名称试试</text>
</view>
<view slot="right">
<view v-if="hasLogin">
<image
style="width: 40rpx; height: 40rpx"
src="/static/imgs/client/user-icon.png"
></image>
</view>
<view v-else><text class="nav-login">登录</text></view>
</view>
</uni-nav-bar>
</view>
</template>
<script>
import { go2 } from '@/utils/hook.js'
import qnMap from '@/components/qn-map/qn-map.nvue'
export default {
components: { qnMap },
data() {
return {
userName: 'zhangsan',
isList: false,
location: {
name: '广州',
latitude: 23.1023,
longitude: 113.3345
},
packingList: [
{
enterpriseId: 1,
enterpriseName: '天河金街',
latitude: 23.1023,
longitude: 113.3345,
whetherCooperation: 0
},
{
enterpriseId: 2,
enterpriseName: '色印务有限公司',
latitude: 23.1023,
longitude: 113.336,
whetherCooperation: 1
}
]
}
},
methods: {
getSupplier(e) {
console.log('e:', e.detail.markerId)
},
mapChange(data) {
console.log('data:', data)
this.packingList.push({
enterpriseId: 3,
enterpriseName: 'guangzhou',
latitude: 23.1023,
longitude: 113.338,
whetherCooperation: 1
})
},
showList() {
this.isList = true
},
goSearch() {
go2('login')
}
},
computed: {
hasLogin() {
return this.$store.state.qnToken != ''
}
}
}
</script>
<style lang="scss">
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
height: 100vh;
}
.map_area {
width: 750rpx;
flex: 1;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
}
.list-button {
position: fixed;
bottom: 140rpx;
right: 32rpx;
width: 84rpx;
height: 84rpx;
}
.locate-button {
position: fixed;
bottom: 40rpx;
right: 32rpx;
width: 84rpx;
height: 84rpx;
}
.nav-login {
font-size: 28rpx;
color: #007aff;
text-align: right;
}
.nav-title {
font-size: 40rpx;
color: #000000;
letter-spacing: 0;
font-weight: 500;
}
.nav-search {
width: 440rpx;
height: 64rpx;
background: #f5f6f7;
border-radius: 16px;
padding-left: 24rpx;
display: flex;
align-items: center;
flex-direction: row;
}
.search-icon {
width: 28rpx;
height: 28rpx;
flex: 0 0 auto;
margin-right: 8rpx;
}
.search-text {
font-size: 25rpx;
flex: 1 0 auto;
color: rgba(34, 34, 34, 0.75);
font-weight: 400;
}
</style>

0
pages/client/enquiryItem.vue

339
pages/client/index.nvue

@ -0,0 +1,339 @@
<template>
<view class="content">
<uni-nav-bar :fixed="true" color="#ffffff" background-color="#ffffff" :status-bar="true">
<view slot="left"><text class="nav-title">客户</text></view>
<view class="nav-search" @click="goSearch">
<image class="search-icon" src="/static/imgs/client/search-icon.png" />
<text class="search-text">输入客户名称试试</text>
</view>
<view slot="right">
<view v-if="hasLogin">
<image @click="goAddUser" style="width: 40rpx; height: 40rpx" src="/static/imgs/client/user-icon.png"></image>
</view>
<view v-else><text class="nav-login" @click="goLogin">登录</text></view>
</view>
</uni-nav-bar>
<div class="map_area">
<qn-map :location="location" :items="packingList" @dragMap="mapChange" @scaleMap="mapChange" @reset="mapChange"></qn-map>
<!-- 元素放在map下面才能展示 -->
<cover-view class="enquiry-area" v-show="enquiryList && enquiryList.length > 0 && !isClosed">
<view class="enquiry-header">
<view class="notice">
<image style="width: 32rpx; height: 32rpx" src="/static/imgs/client/horn-icon.png"></image>
<text class="notice_title">【新的询价单】</text>
</view>
<image style="width: 24rpx; height: 24rpx" @click="closeNotice" src="/static/imgs/client/close-icon.png"></image>
</view>
<view class="notice-content">
<view class="animation-area">
<view class="enquiry-content" :style="transitionStyle">
<view v-for="item in enquiryList" :key="item.id" class="enquiry-item">
<view>
<text class="production">{{ item.quotationPaperDetailsDtos[0].productName }}</text>
</view>
<view>
<text class="production">{{ getProductionInfo(item) }}</text>
</view>
</view>
</view>
</view>
<view class="enquiry-submit">
<text class="text">去报价</text>
<image style="width: 32rpx; height: 32rpx" src="/static/imgs/client/next-icon.png"></image>
</view>
</view>
</cover-view>
<cover-view class="list-button" @click="showList">
<image style="width: 84rpx; height: 84rpx" src="/static/imgs/client/list-button.png"></image>
</cover-view>
<cover-view class="locate-button" @click="locatePosition">
<image style="width: 84rpx; height: 84rpx" src="/static/imgs/client/locate-button.png"></image>
</cover-view>
</div>
</view>
</template>
<script>
import { go2 } from '@/utils/hook.js'
import qnMap from '@/components/qn-map/qn-map.nvue'
import enquiryItem from './enquiryItem.vue'
import { getMapCompanyList, getInquiryList } from '@/apis/clientApi'
export default {
components: { qnMap, enquiryItem },
data() {
return {
location: {
latitude: 23.12616,
longitude: 113.38466
},
transitionTimer: null,
curIndex: 0,
packingList: [],
enquiryList: [],
isClosed: false
}
},
methods: {
getSupplier(e) {
console.log('e:', e.detail.markerId)
},
mapChange(data) {
console.log('data:', data)
let params = {
cooperationState: 0,
km: 5,
latitude: data.latitude,
longitude: data.longitude,
size: 100
}
let diff = Math.ceil(Math.abs(data.scale - 14) / 2)
params.km = params.km + diff * 10
params.size = params.size + diff * 100
this.getPackingList(params)
},
showList() {
go2('client-list')
},
goSearch() {
go2('search')
},
goLogin() {
go2('login')
},
goAddUser() {
go2('add-user')
},
locatePosition() {
console.log('locate begin')
uni.getLocation({
type: 'gcj02',
success: (res) => {
console.log('success', res)
this.location.latitude = res.latitude
this.location.longitude = res.longitude
},
fail: (err) => {
uni.showToast({
icon: 'error',
title: '定位失败:' + err.code
})
console.log('err', err)
}
})
console.log('locate end')
},
getProductionInfo(item) {
let res = []
item.quotationPaperDetailsDtos[0].paperName && res.push(item.quotationPaperDetailsDtos[0].paperName)
item.quotationPaperDetailsDtos[0].brandName && res.push(item.quotationPaperDetailsDtos[0].brandName)
item.quotationPaperDetailsDtos[0].gramWeight && res.push(item.quotationPaperDetailsDtos[0].gramWeight + 'g')
item.quotationPaperDetailsDtos[0].width &&
item.quotationPaperDetailsDtos[0].length &&
res.push(item.quotationPaperDetailsDtos[0].width + '*' + item.quotationPaperDetailsDtos[0].length)
item.quotationPaperDetailsDtos[0].quantity && res.push(item.quotationPaperDetailsDtos[0].quantity + '张')
return res.join('/')
},
getPackingList(params) {
console.log('params', params)
getMapCompanyList({
cooperationState: params.cooperationState,
km: params.km,
latitude: params.latitude,
longitude: params.longitude,
size: params.size
}).then((res) => {
console.log('getPackingList', res)
if (res) {
this.packingList = res.records
}
})
},
closeNotice() {
this.isClosed = true
if (this.transitionTimer) {
clearInterval(this.transitionTimer)
this.transitionTimer = null
}
}
},
computed: {
hasLogin() {
return this.$store.state.qnToken != ''
},
transitionStyle() {
return `transform: translateY(-${this.curIndex * 80}rpx)`
}
},
created() {
this.locatePosition()
getMapCompanyList({
cooperationState: 0,
km: 5,
latitude: this.location.latitude,
longitude: this.location.longitude,
size: 100
}).then((res) => {
if (res) {
this.packingList = res
}
})
},
onHide() {
clearInterval(this.transitionTimer)
this.transitionTimer = null
},
onShow() {
if (!isClosed) {
this.transitionTimer = setInterval(() => {
this.curIndex == this.enquiryList.length - 1 ? (this.curIndex = 0) : this.curIndex++
}, 3000)
}
const token = this.$store.state.qnToken
if (token) {
getInquiryList({ pageNum: 1, pageSize: 10 }).then((res) => {
console.log('enquiryList', res)
if (res) {
this.enquiryList = res.records
console.log('this:', this.enquiryList)
}
})
}
}
}
</script>
<style lang="scss">
.content {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
height: 100vh;
}
.map_area {
position: relative;
width: 750rpx;
flex: 1;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
}
.enquiry-area {
position: absolute;
top: 12rpx;
left: 32rpx;
width: 686rpx;
height: 170rpx;
padding: 20rpx 16rpx;
background-color: #fffbe8;
box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.2);
border-radius: 8px;
overflow: hidden;
.enquiry-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
.notice {
display: flex;
align-items: center;
flex-direction: row;
.notice_title {
font-size: 28rpx;
color: #f5222d;
letter-spacing: 2.33rpx;
text-align: left;
font-weight: 500;
}
}
}
.notice-content {
display: flex;
align-items: flex-end;
justify-content: space-between;
flex-direction: row;
.animation-area {
width: 490rpx;
height: 80rpx;
overflow: hidden;
}
.enquiry-content {
width: 490rpx;
transition: all 1s linear;
.enquiry-item {
width: 490rpx;
height: 80rpx;
.production {
overflow: hidden;
white-space: nowrap;
word-break: break-all;
padding-top: 10rpx;
font-size: 26rpx;
color: #f5222d;
}
}
}
.enquiry-submit {
display: flex;
align-items: center;
flex-direction: row;
.text {
font-size: 28rpx;
color: #2b74ff;
letter-spacing: 2.33rpx;
}
}
}
}
.list-button {
position: absolute;
bottom: 140rpx;
right: 32rpx;
width: 84rpx;
height: 84rpx;
}
.locate-button {
position: absolute;
bottom: 40rpx;
right: 32rpx;
width: 84rpx;
height: 84rpx;
}
.nav-login {
font-size: 28rpx;
color: #007aff;
text-align: right;
}
.nav-title {
font-size: 40rpx;
color: #000000;
letter-spacing: 0;
font-weight: 500;
}
.nav-search {
width: 440rpx;
height: 60rpx;
background: #f5f6f7;
border-radius: 16rpx;
padding-left: 24rpx;
display: flex;
align-items: center;
flex-direction: row;
}
.search-icon {
width: 28rpx;
height: 28rpx;
flex: 0 0 auto;
margin-right: 8rpx;
}
.search-text {
font-size: 25rpx;
flex: 1 0 auto;
color: rgba(34, 34, 34, 0.75);
font-weight: 400;
}
</style>

65
pages/client/index.vue

@ -1,65 +0,0 @@
<template>
<view class="content">
<uni-nav-bar
:fixed="true"
color="#ffffff"
background-color="#007AFF"
:status-bar="true"
left-icon="arrowleft"
left-text="返回"
title="uni-nav-bar 标题"
@clickLeft="back"
/>
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text @click="changeTitle" class="title">123</text>
</view>
</view>
</template>
<script>
import { go2 } from '@/utils/hook.js'
export default {
data() {
return {
userName: 'zhangsan'
}
},
methods: {
changeTitle() {
go2('login')
},
back() {
console.log('back')
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>

240
pages/search/index.vue

@ -0,0 +1,240 @@
<template>
<view class="page">
<!-- 自定义头部 -->
<view
class="header"
:style="{
height: `${statusBarHeight + 44}px`,
paddingTop: `${statusBarHeight}px`
}"
>
<uni-icons type="back" size="28" @click="back" />
<view class="nav-search">
<image class="search-icon" src="/static/imgs/client/search-icon.png" />
<view class="search-text">
<uni-easyinput
v-model="enterpriseName"
:inputBorder="false"
:clearSize="18"
:placeholderStyle="'font-size:25rpx;'"
placeholder="输入客户名称试试"
confirmType="search"
type="text"
@input="search"
@confirm="addHistory"
/>
</view>
</view>
</view>
<view class="content">
<view class="history-area" v-show="!packingList || packingList.length == 0">
<view class="operation" v-show="historyList.length > 0">
<text class="title">搜索历史</text>
<uni-icons type="trash" size="16" @click="clearHistory"></uni-icons>
</view>
<view class="history-list">
<view class="history-item" v-for="item in historyList" :key="item">
<text class="name" @click="clickTag(item)">{{ item }}</text>
</view>
</view>
</view>
<view class="packing-area" v-show="packingList.length > 0">
<scroll-view scroll-y="true" class="scroll-area">
<view class="search-item" v-for="item in packingList" :key="item.enterpriseId">
<image class="item_image" :src="item.picUrl || 'https://qncloud.oss-cn-shenzhen.aliyuncs.com/ztb_pic/testPic.jfif'"></image>
<view class="item">
<view class="name" v-html="transformTitle(item.enterpriseName)"></view>
<text class="business">{{ transformBusiness(item.business) }}</text>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</template>
<script>
import { go2, back } from '@/utils/hook.js'
import { getCompanyList } from '@/apis/searchApi.js'
export default {
data() {
return {
statusBarHeight: 20,
enterpriseName: '',
searchTimer: null,
packingList: []
}
},
mounted() {
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight - 0
},
methods: {
back,
search(enterpriseName) {
if (enterpriseName.trim()) {
this.searchTimer && clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
getCompanyList({ enterpriseName }).then((res) => {
if (res) {
this.packingList = res.records
}
})
}, 300)
} else {
this.packingList = []
this.searchTimer && clearTimeout(this.searchTimer)
}
},
clickTag(value) {
this.enterpriseName = value
this.search(value)
},
transformTitle(title) {
return title.replace(this.enterpriseName, `<text style="color: #007aff;">${this.enterpriseName}</text>`)
},
transformBusiness(business) {
let text = business?.trim() || ''
if (text.length > 17) {
text = text.substr(0, 17) + '...'
}
return '主营:' + text
},
addHistory(value) {
if (value.trim()) {
this.$store.dispatch('addSearchHistory', value)
}
},
clearHistory() {
this.$store.commit('clearSearchHistory')
}
},
computed: {
historyList() {
return this.$store.state.searchHistory
}
}
}
</script>
<style lang="scss">
.page {
display: flex;
flex-direction: column;
flex: 1;
height: 100vh;
.header {
padding: 0 32rpx 10rpx 20rpx;
background-color: #fff;
display: flex;
flex-direction: row;
align-items: center;
border-bottom: 2rpx solid #d8d8d8;
.nav-search {
margin-left: 20rpx;
width: 630rpx;
height: 64rpx;
background: #f5f6f7;
border-radius: 16rpx;
padding: 0 14rpx 0 24rpx;
display: flex;
align-items: center;
flex-direction: row;
.search-icon {
width: 28rpx;
height: 28rpx;
flex-grow: 0;
margin-right: 8rpx;
}
.search-text {
flex-grow: 1;
width: 500rpx;
color: rgba(34, 34, 34, 0.75);
font-weight: 400;
}
}
}
.content {
flex: 1;
display: flex;
flex-direction: column;
background-color: #f7f8fa;
.history-area {
width: 750rpx;
.operation {
width: 750rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20rpx;
padding: 0 32rpx;
.title {
font-size: 28rpx;
color: #888888;
font-weight: 500;
}
}
.history-list {
width: 750rpx;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
padding: 0 32rpx;
.history-item {
background-color: #fff;
border-radius: 4rpx;
margin: 10rpx 20rpx 10rpx 0;
padding: 10rpx 40rpx;
.name {
font-size: 32rpx;
color: #333333;
font-weight: 400;
}
}
}
}
.packing-area {
flex: 1;
display: flex;
flex-direction: column;
align-items: stretch;
.scroll-area {
width: 750rpx;
height: 600rpx;
overflow: hidden;
flex-grow: 1;
background-color: #f7f8fa;
// flex-basis: 0;
.search-item {
width: 750rpx;
height: 148rpx;
padding: 24rpx 32rpx;
display: flex;
flex-direction: row;
align-items: flex-start;
border-bottom: 2rpx solid #d8d8d8;
.item_image {
flex-grow: 0;
flex-basis: auto;
width: 100rpx;
height: 100rpx;
margin-right: 20rpx;
}
.item {
.name {
font-size: 30rpx;
margin-bottom: 26rpx;
color: #333333;
}
.business {
font-size: 26rpx;
color: #888888;
}
}
}
}
}
}
}
</style>

BIN
static/imgs/client/close-icon.png

Before After
Width: 24  |  Height: 24  |  Size: 543 B

BIN
static/imgs/client/horn-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 902 B

BIN
static/imgs/client/list-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.5 KiB

BIN
static/imgs/client/locate-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.7 KiB

BIN
static/imgs/client/location-black.png

Before After
Width: 16  |  Height: 8  |  Size: 288 B

BIN
static/imgs/client/location-blue.png

Before After
Width: 22  |  Height: 26  |  Size: 771 B

BIN
static/imgs/client/location-red.png

Before After
Width: 22  |  Height: 26  |  Size: 802 B

BIN
static/imgs/client/next-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 543 B

BIN
static/imgs/client/search-icon.png

Before After
Width: 28  |  Height: 28  |  Size: 898 B

BIN
static/imgs/client/user-icon.png

Before After
Width: 40  |  Height: 40  |  Size: 1.1 KiB

44
store/index.js

@ -1,15 +1,20 @@
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import { isObject } from '@/utils/is'
import { isObject, isArray } from '@/utils/is'
let qnToken = null, let qnToken = null,
userInfo = null, userInfo = null,
supplierInfo = null, supplierInfo = null,
uecToken = null
uecToken = null,
searchHistory = null
try { try {
uecToken = uni.getStorageSync('uecToken') uecToken = uni.getStorageSync('uecToken')
qnToken = uni.getStorageSync('qnToken') qnToken = uni.getStorageSync('qnToken')
userInfo = uni.getStorageSync('userInfo') userInfo = uni.getStorageSync('userInfo')
searchHistory = uni.getStorageSync('searchHistory')
if (searchHistory) {
searchHistory = JSON.parse(searchHistory)
}
if (userInfo) { if (userInfo) {
userInfo = JSON.parse(userInfo) userInfo = JSON.parse(userInfo)
} }
@ -31,7 +36,8 @@ const store = new Vuex.Store({
nextPage: { nextPage: {
name: '', name: '',
data: {} data: {}
}
},
searchHistory: searchHistory || []
}, },
mutations: { mutations: {
setUecToken(state, token) { setUecToken(state, token) {
@ -117,6 +123,26 @@ const store = new Vuex.Store({
removeNextPage(state) { removeNextPage(state) {
state.nextPage.name = '' state.nextPage.name = ''
state.nextPage.data = {} state.nextPage.data = {}
},
setSearchHistory(state, searchHistory) {
if (!isArray(searchHistory)) {
console.error('searchHistory必须是数组')
return
}
try {
uni.setStorageSync('searchHistory', JSON.stringify(searchHistory))
state.searchHistory = searchHistory
} catch (e) {
console.error('更改searchHistory失败:', e)
}
},
clearSearchHistory(state) {
try {
uni.removeStorageSync('searchHistory')
state.searchHistory = []
} catch (e) {
console.error('删除searchHistory失败:', e)
}
} }
}, },
actions: { actions: {
@ -125,6 +151,18 @@ const store = new Vuex.Store({
commit('removeToken') commit('removeToken')
commit('removeUserInfo') commit('removeUserInfo')
commit('removeSupplierInfo') commit('removeSupplierInfo')
},
addSearchHistory({ commit, state }, searchHistory) {
const arr = [...state.searchHistory] // 单层数组直接解构
let index = arr.findIndex((item) => item === searchHistory)
if (index > -1) {
arr.splice(index, 1)
}
arr.unshift(searchHistory)
if (arr.length > 10) {
arr = arr.slice(0, 10)
}
commit('setSearchHistory', arr)
} }
} }
}) })

BIN
unpackage/cache/apk/__UNI__8C1E198_cm.apk

1
unpackage/cache/apk/apkurl

@ -0,0 +1 @@
https://ide.dcloud.net.cn/build/download/854c5170-6950-11ec-9b73-5d2b7d8e979d

1
unpackage/cache/apk/cmManifestCache.json
File diff suppressed because it is too large
View File

3
unpackage/cache/certdata

@ -0,0 +1,3 @@
andrCertfile=D:/programFiles/HBuilderX/plugins/app-safe-pack/Test.keystore
andrCertAlias=android
andrCertPass=ep/Tdjka4Y7WYqDB6/S7dw==

4
unpackage/cache/cloudcertificate/certini

@ -0,0 +1,4 @@
[General]
andrCertfile=package.keystore
andrCertAlias=__UNI__8C1E198
andrCertPass="4p8B1V4XTPOdUWzzf0ueIw=="

BIN
unpackage/cache/cloudcertificate/package.keystore

1
unpackage/cache/wgt/__UNI__8C1E198/__uniappchooselocation.js
File diff suppressed because it is too large
View File

BIN
unpackage/cache/wgt/__UNI__8C1E198/__uniapperror.png

Before After
Width: 200  |  Height: 200  |  Size: 5.7 KiB

1
unpackage/cache/wgt/__UNI__8C1E198/__uniappes6.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/__uniappopenlocation.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/__uniapppicker.js
File diff suppressed because it is too large
View File

8
unpackage/cache/wgt/__UNI__8C1E198/__uniappquill.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/__uniappquillimageresize.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/__uniappscan.js
File diff suppressed because it is too large
View File

BIN
unpackage/cache/wgt/__UNI__8C1E198/__uniappsuccess.png

Before After
Width: 165  |  Height: 165  |  Size: 2.0 KiB

25
unpackage/cache/wgt/__UNI__8C1E198/__uniappview.html

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
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>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

8
unpackage/cache/wgt/__UNI__8C1E198/app-config-service.js

@ -0,0 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/client/index","pages/client-list/index","pages/search/index","pages/add-user/index","pages/trade/index","pages/mall/index","pages/mine/index","pages/login/index","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#888","selectedColor":"#007AFF","borderStyle":"white","backgroundColor":"#f9f9f9","list":[{"pagePath":"pages/client/index","iconPath":"static/imgs/tabbar/client-gray.png","selectedIconPath":"static/imgs/tabbar/client-blue.png","text":"客户"},{"pagePath":"pages/trade/index","iconPath":"static/imgs/tabbar/trade-gray.png","selectedIconPath":"static/imgs/tabbar/trade-blue.png","text":"交易"},{"pagePath":"pages/mall/index","iconPath":"static/imgs/tabbar/mall-gray.png","selectedIconPath":"static/imgs/tabbar/mall-blue.png","text":"纸商城"},{"pagePath":"pages/mine/index","iconPath":"static/imgs/tabbar/mine-gray.png","selectedIconPath":"static/imgs/tabbar/mine-blue.png","text":"我的"}]},"networkTimeout":{"request":6000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"paper-shop-app","compilerVersion":"3.3.3","entryPagePath":"pages/client/index"};
var __uniRoutes = [{"path":"/pages/client/index","meta":{"isQuit":true,"isNVue":true,"isTabBar":true},"window":{"navigationBarTitleText":"客户","navigationStyle":"custom"}},{"path":"/pages/client-list/index","meta":{},"window":{"navigationBarTitleText":"客户列表","navigationStyle":"custom"}},{"path":"/pages/search/index","meta":{},"window":{"navigationBarTitleText":"客户搜索","navigationStyle":"custom"}},{"path":"/pages/add-user/index","meta":{},"window":{"navigationBarTitleText":"添加客户","navigationStyle":"custom"}},{"path":"/pages/trade/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"交易"}},{"path":"/pages/mall/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"商城"}},{"path":"/pages/mine/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的"}},{"path":"/pages/login/index","meta":{},"window":{"navigationBarTitleText":"登录","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationBarTitleText":"用户与隐私协议"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

1
unpackage/cache/wgt/__UNI__8C1E198/app-config.js

@ -0,0 +1 @@
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);

7
unpackage/cache/wgt/__UNI__8C1E198/app-service.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/app-view.js
File diff suppressed because it is too large
View File

1
unpackage/cache/wgt/__UNI__8C1E198/manifest.json

@ -0,0 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__8C1E198","name":"paper-shop-app","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"","developer":{"name":"","email":"","url":""},"permissions":{"Maps":{"coordType":"gcj02"},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","render":"always","uniNView":{"path":"pages/client/index.js"}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"abiFilters":["armeabi-v7a","x86"],"packagename":"paper.shop.app","password":"","aliasname":"","keystore":"","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"maps":{"amap":{"appkey_ios":"5e4da36f4c1649ca28a1f8f795bcf5d2","appkey_android":"2ced501c80ee5f6a74ba43ef7c2d36bd"},"description":"地图插件"},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"],"icons":{"ios":{"prerendered":"false","iphone":{"app@2x":"","app@3x":"","spotlight@2x":"","spotlight@3x":"","settings@2x":"","settings@3x":"","notification@2x":"","notification@3x":""},"appstore":"","ipad":{"app":"","app@2x":"","proapp@2x":"","spotlight":"","spotlight@2x":"","settings":"","settings@2x":"","notification":"","notification@2x":""}},"android":{"hdpi":"","xhdpi":"","xxhdpi":"","xxxhdpi":""}},"splashscreen":{}},"uniStatistics":{"enable":true},"allowsInlineMediaPlayback":true,"safearea":{"background":"#f9f9f9","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.3.3","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#888","selectedColor":"#007AFF","borderStyle":"rgba(255,255,255,0.4)","backgroundColor":"#f9f9f9","list":[{"pagePath":"pages/client/index","iconPath":"static/imgs/tabbar/client-gray.png","selectedIconPath":"static/imgs/tabbar/client-blue.png","text":"客户"},{"pagePath":"pages/trade/index","iconPath":"static/imgs/tabbar/trade-gray.png","selectedIconPath":"static/imgs/tabbar/trade-blue.png","text":"交易"},{"pagePath":"pages/mall/index","iconPath":"static/imgs/tabbar/mall-gray.png","selectedIconPath":"static/imgs/tabbar/mall-blue.png","text":"纸商城"},{"pagePath":"pages/mine/index","iconPath":"static/imgs/tabbar/mine-gray.png","selectedIconPath":"static/imgs/tabbar/mine-blue.png","text":"我的"}],"height":"50px","child":["lauchwebview"]},"adid":"123417300612"}}

1
unpackage/cache/wgt/__UNI__8C1E198/pages/client/index.js
File diff suppressed because it is too large
View File

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/close-icon.png

Before After
Width: 24  |  Height: 24  |  Size: 543 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/horn-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 902 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/list-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.5 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/locate-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.7 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-black.png

Before After
Width: 16  |  Height: 8  |  Size: 288 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-blue.png

Before After
Width: 22  |  Height: 26  |  Size: 771 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/location-red.png

Before After
Width: 22  |  Height: 26  |  Size: 802 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/next-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 543 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/search-icon.png

Before After
Width: 28  |  Height: 28  |  Size: 898 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/client/user-icon.png

Before After
Width: 40  |  Height: 40  |  Size: 1.1 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/client-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 1.4 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/client-gray.png

Before After
Width: 45  |  Height: 45  |  Size: 2.0 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mall-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 996 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mall-gray.png

Before After
Width: 45  |  Height: 45  |  Size: 1.2 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mine-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 957 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/mine-gray.png

Before After
Width: 44  |  Height: 44  |  Size: 1.5 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/trade-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 898 B

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/imgs/tabbar/trade-gray.png

Before After
Width: 45  |  Height: 45  |  Size: 1.2 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/static/logo.png

Before After
Width: 72  |  Height: 72  |  Size: 3.9 KiB

BIN
unpackage/cache/wgt/__UNI__8C1E198/uni_modules/uni-icons/components/uni-icons/uniicons.ttf

1
unpackage/cache/wgt/__UNI__8C1E198/view.css
File diff suppressed because it is too large
View File

6
unpackage/cache/wgt/__UNI__8C1E198/view.umd.min.js
File diff suppressed because it is too large
View File

0
unpackage/dist/build/.automator/app-plus/.automator.json

1
unpackage/dist/build/app-plus/__uniappchooselocation.js
File diff suppressed because it is too large
View File

BIN
unpackage/dist/build/app-plus/__uniapperror.png

Before After
Width: 200  |  Height: 200  |  Size: 5.7 KiB

1
unpackage/dist/build/app-plus/__uniappes6.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/__uniappopenlocation.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/__uniapppicker.js
File diff suppressed because it is too large
View File

8
unpackage/dist/build/app-plus/__uniappquill.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/__uniappquillimageresize.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/__uniappscan.js
File diff suppressed because it is too large
View File

BIN
unpackage/dist/build/app-plus/__uniappsuccess.png

Before After
Width: 165  |  Height: 165  |  Size: 2.0 KiB

25
unpackage/dist/build/app-plus/__uniappview.html

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
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>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

8
unpackage/dist/build/app-plus/app-config-service.js

@ -0,0 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/client/index","pages/client-list/index","pages/search/index","pages/add-user/index","pages/trade/index","pages/mall/index","pages/mine/index","pages/login/index","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#888","selectedColor":"#007AFF","borderStyle":"white","backgroundColor":"#f9f9f9","list":[{"pagePath":"pages/client/index","iconPath":"static/imgs/tabbar/client-gray.png","selectedIconPath":"static/imgs/tabbar/client-blue.png","text":"客户"},{"pagePath":"pages/trade/index","iconPath":"static/imgs/tabbar/trade-gray.png","selectedIconPath":"static/imgs/tabbar/trade-blue.png","text":"交易"},{"pagePath":"pages/mall/index","iconPath":"static/imgs/tabbar/mall-gray.png","selectedIconPath":"static/imgs/tabbar/mall-blue.png","text":"纸商城"},{"pagePath":"pages/mine/index","iconPath":"static/imgs/tabbar/mine-gray.png","selectedIconPath":"static/imgs/tabbar/mine-blue.png","text":"我的"}]},"networkTimeout":{"request":6000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"paper-shop-app","compilerVersion":"3.3.3","entryPagePath":"pages/client/index"};
var __uniRoutes = [{"path":"/pages/client/index","meta":{"isQuit":true,"isNVue":true,"isTabBar":true},"window":{"navigationBarTitleText":"客户","navigationStyle":"custom"}},{"path":"/pages/client-list/index","meta":{},"window":{"navigationBarTitleText":"客户列表","navigationStyle":"custom"}},{"path":"/pages/search/index","meta":{},"window":{"navigationBarTitleText":"客户搜索","navigationStyle":"custom"}},{"path":"/pages/add-user/index","meta":{},"window":{"navigationBarTitleText":"添加客户","navigationStyle":"custom"}},{"path":"/pages/trade/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"交易"}},{"path":"/pages/mall/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"商城"}},{"path":"/pages/mine/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的"}},{"path":"/pages/login/index","meta":{},"window":{"navigationBarTitleText":"登录","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationBarTitleText":"用户与隐私协议"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

1
unpackage/dist/build/app-plus/app-config.js

@ -0,0 +1 @@
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);

7
unpackage/dist/build/app-plus/app-service.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/app-view.js
File diff suppressed because it is too large
View File

1
unpackage/dist/build/app-plus/manifest.json

@ -0,0 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__8C1E198","name":"paper-shop-app","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"","developer":{"name":"","email":"","url":""},"permissions":{"Maps":{"coordType":"gcj02"},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","render":"always","uniNView":{"path":"pages/client/index.js"}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"abiFilters":["armeabi-v7a","x86"]},"apple":{},"plugins":{"maps":{"amap":{"appkey_ios":"5e4da36f4c1649ca28a1f8f795bcf5d2","appkey_android":"2ced501c80ee5f6a74ba43ef7c2d36bd"}},"payment":{"weixin":{"__platform__":["ios","android"],"appid":"","UniversalLinks":""}},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"uniStatistics":{"enable":true},"allowsInlineMediaPlayback":true,"safearea":{"background":"#f9f9f9","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.3.3","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#888","selectedColor":"#007AFF","borderStyle":"rgba(255,255,255,0.4)","backgroundColor":"#f9f9f9","list":[{"pagePath":"pages/client/index","iconPath":"static/imgs/tabbar/client-gray.png","selectedIconPath":"static/imgs/tabbar/client-blue.png","text":"客户"},{"pagePath":"pages/trade/index","iconPath":"static/imgs/tabbar/trade-gray.png","selectedIconPath":"static/imgs/tabbar/trade-blue.png","text":"交易"},{"pagePath":"pages/mall/index","iconPath":"static/imgs/tabbar/mall-gray.png","selectedIconPath":"static/imgs/tabbar/mall-blue.png","text":"纸商城"},{"pagePath":"pages/mine/index","iconPath":"static/imgs/tabbar/mine-gray.png","selectedIconPath":"static/imgs/tabbar/mine-blue.png","text":"我的"}],"height":"50px","child":["lauchwebview"]}}}

1
unpackage/dist/build/app-plus/pages/client/index.js
File diff suppressed because it is too large
View File

BIN
unpackage/dist/build/app-plus/static/imgs/client/close-icon.png

Before After
Width: 24  |  Height: 24  |  Size: 543 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/horn-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 902 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/list-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.5 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/client/locate-button.png

Before After
Width: 84  |  Height: 84  |  Size: 2.7 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/client/location-black.png

Before After
Width: 16  |  Height: 8  |  Size: 288 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/location-blue.png

Before After
Width: 22  |  Height: 26  |  Size: 771 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/location-red.png

Before After
Width: 22  |  Height: 26  |  Size: 802 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/next-icon.png

Before After
Width: 32  |  Height: 32  |  Size: 543 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/search-icon.png

Before After
Width: 28  |  Height: 28  |  Size: 898 B

BIN
unpackage/dist/build/app-plus/static/imgs/client/user-icon.png

Before After
Width: 40  |  Height: 40  |  Size: 1.1 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/tabbar/client-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 1.4 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/tabbar/client-gray.png

Before After
Width: 45  |  Height: 45  |  Size: 2.0 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/tabbar/mall-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 996 B

BIN
unpackage/dist/build/app-plus/static/imgs/tabbar/mall-gray.png

Before After
Width: 45  |  Height: 45  |  Size: 1.2 KiB

BIN
unpackage/dist/build/app-plus/static/imgs/tabbar/mine-blue.png

Before After
Width: 45  |  Height: 45  |  Size: 957 B

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save