Commit 94523cfd by 张立顺

切换分支

1 parent 248646f1
......@@ -67,7 +67,7 @@ const domain_items = {
prod: 'https://dj.glsx.com.cn'
}
const target = ['ip', 'dev', 'uat', 'prod']
console.log(domain_items[target[index]]);
// console.log(domain_items[target[index]]);
module.exports = {
domain: domain_items[target[index]],
secretKey: secretKey_items[target[index]]
......
......@@ -143,8 +143,12 @@ App({
let merchantAccountType = userInfo.merchantAccountList.every(item => {
return item == 6 || item == 8
})
// this.globalData.isStaff = userInfo.userType != 2 && !userInfo.isSuper && merchantAccountType
// this.globalData.isYqdSuper = userInfo.userType == 2 && !userInfo.isSuper && merchantAccountType
this.globalData.isYqdSuper = userInfo.userType != 2 && !userInfo.isSuper && merchantAccountType
this.globalData.isStaff = userInfo.userType == 2 && !userInfo.isSuper && merchantAccountType
// console.log(this.globalData.isYqdSuper)
// checkSeverType
// console.log(userInfo)
......
......@@ -18,7 +18,8 @@
"tabOperating/pages/operatingShow/operatingShow",
"tabWorkOrder/pages/ocr/ocr",
"test/pages/test",
"tabWorkOrder/pages/createArchives/createArchives"
"tabWorkOrder/pages/createArchives/createArchives",
"tabOperating/pages/4sOverview/4sOverview"
],
"window": {
"backgroundTextStyle": "light",
......@@ -70,7 +71,8 @@
"qr-box": "components/Qrbox/Qrbox",
"switch-popup": "components/switchPopup/switchPopup",
"order-switchPopup": "components/orderSwitchPopup/orderSwitchPopup",
"modal": "components/modal/modal"
"modal": "components/modal/modal",
"shareModal": "components/shareModal/shareModal"
},
"sitemapLocation": "sitemap.json",
"permission": {
......
// components/show-modal/index.js
let app = getApp()
/****
* 功能名称:自定义弹框 (支持三个按钮)
* show:false @description 默认false,true弹框展示
* custom:false @description 默认false,true弹框内容自定义
* title:'' @description 弹框内容文案
* btns:[] @description 弹框按钮文案,最多支持三个
* cntMarginTop:550 @description 弹框距离顶部的距离rpx
* btnBorder:true
* btnTextColor:[] @description 弹框按钮字体颜色,最多支持三个
* tapTitle:"" 顶部标题
* tabTitleShow:false 顶部标题是否展示
* binddidClickBtn="onClickModalBtn" 外面通过e.detail获取,值为按钮所在位置的索引 0/1/2
* onClickModalBtn(e) {
console.log(e.detail)
}
*
*
* 案例
* <show-modal show="{{canShow}}" title="这是一个弹框" btns="{{['取消','确定']}}" binddidClickBtn="onClickModalBtn"></show-modal>
*
* 案例 custom:true
<show-modal show="{{canShow}}" custom="{{true}}" btns="{{['取消','确定']}}" binddidClickBtn="onClickModalBtn">
<view>这是一个弹框</view>
</show-modal>
*/
Component({
// 属性
properties: {
// 弹层开关
show: {
type: Boolean, //目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: false, // 默认值
observer(newVal, oldVal) {
if (newVal) {
this.createMaskAnimate(true)
} else {
this.createMaskAnimate(false)
}
}
},
// 是否内容自定义
custom: {
type: Boolean,
value: false
},
// 弹框内容
title: {
type: String,
value: '这是一个弹框'
},
// 按钮文字内容
btns: {
type: Array,
value: ['取消', '确定'] // 默认值
},
// 弹框距离顶部距离
cntMarginTop: {
type: Number,
value: 550 // 默认值
},
// 按钮文字颜色
btnTextColor: {
type: Array,
value: ['#A2A2A8', '#333333', '#303030'], // 默认值
observer(newVal, oldVal) {
if (!newVal && !newVal.length && newVal.length != 3) {
this._btnTextColor = ['#A2A2A8', '#333333', '#303030']
} else {
this._btnTextColor = newVal
}
}
},
// 按钮边框线
btnBorder: {
type: Boolean,
value: true
},
//标题是否显示
tabTitleShow: {
type: Boolean,
value: true
},
// 标题
tapTitle: {
type: String,
value: '提示信息'
}
},
// 初始化数据
data: {
_show: false,
_btnTextColor: ['#A2A2A8', '#333333', '#303030'],
maskAnimate: [],
frameAnimate: [],
title: '', // 提示弹框
success: () => {}, // 成功
error: () => {} // 失败
},
lifetimes: {
attached: function () {
function success() {} // 成功
function error() {}
},
detached: function () {
// 在组件实例被从页面节点树移除时执行
}
},
methods: {
selectMask: function (e) {
this.setData({
show: !this.data.show
})
},
// 选中底部的按钮
selectBtn: function (e) {
let index = e.currentTarget.dataset.index
const that = this
this.triggerEvent('didClickBtn', index) // 外面通过e.detail获取index的值
if (index == 0) {
this.setData(
{
show: false
},
() => {
that.data.error()
}
)
} else {
this.setData(
{
show: false
},
() => {
that.data.success()
}
)
}
},
move: function () {
return
},
showModal: function (params) {
let { success, error } = this
this.setData({
show: !this.data.show,
title: params.title,
tabTitleShow: params.tabTitleShow,
success: params.success || function () {},
error: params.error || function () {}
})
},
//动画-遮罩层淡入淡出
createMaskAnimate(currentStatu) {
if (currentStatu) {
this.setData({
_show: currentStatu
})
this.createframeAnimate(true)
} else {
setTimeout(() => {
this.setData({
_show: false
})
}, 300)
this.createframeAnimate(false)
}
let maskAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease-in-out',
delay: 0
})
this.maskAnimate = maskAnimate
maskAnimate.opacity(currentStatu ? 0.7 : 0).step()
setTimeout(() => {
this.setData({
maskAnimate: maskAnimate.export()
})
}, 50)
},
//动画-弹层内容Q弹
createframeAnimate(currentStatu) {
// return
let frameAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease',
delay: 0
})
this.frameAnimate = frameAnimate
frameAnimate
.translate('-50%', '-50%')
.opacity(currentStatu ? 0.5 : 1)
.step()
// .scale(currentStatu ? 1.05 : 1)
this.setData({
frameAnimate: frameAnimate.export()
})
setTimeout(() => {
// 执行第二组动画
frameAnimate
.opacity(currentStatu ? 1 : 0)
.scale(currentStatu ? 1 : 0.9)
.step()
// 给数据对象储存的第一组动画,更替为执行完第二组动画的动画对象
this.setData({
frameAnimate: frameAnimate.export()
})
}, 150)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!-- components/show-modal/index.wxml -->
<view wx:if="{{_show}}" class='popV' catchtouchmove="move">
<view class='popV-mask' bindtap="selectMask" animation='{{maskAnimate}}' />
<!-- 动态修改top -->
<view class='popV-content' animation='{{frameAnimate}}'>
<view class="tap_title" wx:if="{{tabTitleShow}}">{{tapTitle}}</view>
<view class="popV-title" wx:if="{{title}}">{{title}}</view>
<slot wx:if="{{custom}}" />
<view class="popV-content-btm {{btnBorder?'border':''}}">
<!-- style="color:{{btnTextColor[index]?btnTextColor[index]:''}};" -->
<view
wx:for="{{btns}}"
wx:key="index"
data-index="{{index}}"
class='popV-item'
hover-class='popV-hover'
bindtap='selectBtn'>
{{item}}
</view>
</view>
</view>
</view>
/* components/show-modal/index.wxss */
.popV {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
width: 100vw;
height: 100vh;
}
.popV-mask {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0);
opacity: 0;
display: block;
}
.popV-content {
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%);
transform: translate(-50%);
width: 640rpx;
background: white;
border-radius: 24rpx;
z-index: 1000;
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 1;
}
.popV-title {
box-sizing: border-box;
height: 100rpx;
/* height: 205rpx; */
/* line-height: 48rpx; */
border-bottom: 2rpx solid #EBEDF0;
display: flex;
justify-content: center;
align-items: center;
font-family: PingFangSC-Regular;
font-size: 32rpx;
color: #333333;
letter-spacing: -0rpx;
padding: 0 48rpx;
text-align: center;
}
/* 底部 */
.popV-content-btm {
height: 97rpx;
width: 100%;
left: 0;
bottom: 0;
display: flex;
flex-direction: row;
align-items: center;
padding: 48rpx;
box-sizing: border-box;
/* margin-bottom: 48rpx; */
}
.popV-content-btm.border {
border-top: 1px solid #EBEDF0;
}
.popV-item {
flex: 1;
font-size: 32rpx;
color: #333333;
opacity: 1;
height: 97rpx;
line-height: 97rpx;
font-family: PingFangSC-Medium;
/* letter-spacing: 1.88rpx; */
text-align: center;
/* border: 2rpx solid #A2A2A8; */
/* border-radius: 44rpx; */
/* height: 88rpx;
line-height: 88rpx; */
letter-spacing: 0;
box-sizing: border-box;
overflow: hidden;
align-items: center;
}
.border .popV-item:nth-last-child(1) {
border-left: 1px solid #EBEDF0;
}
.popV-item:nth-last-child(1) {
color: #3582EE;
}
/* .popV-item~.popV-item {
margin-left: 48rpx;
} */
/* .popV-hover {
background: #DDD;
} */
.tap_title {
text-align: center;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: #303030;
letter-spacing: 0;
margin-top: 64rpx;
font-weight: 700;
}
\ No newline at end of file
module.exports = (function() {
var __MODS__ = {};
var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
__DEFINE__(1656487820218, function(require, module, exports) {
module.exports = (function() {
var __MODS__ = {};
var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
__DEFINE__(1656487820218, function(require, module, exports) {
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
......@@ -289,9 +289,9 @@ var __createBinding;
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
});
}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
return __REQUIRE__(1656487820218);
})()
//miniprogram-npm-outsideDeps=[]
}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
return __REQUIRE__(1656487820218);
})()
//miniprogram-npm-outsideDeps=[]
//# sourceMappingURL=index.js.map
\ No newline at end of file
{
"name": "dj-car-boutique-work-wechat",
"version": "1.0.0",
"lockfileVersion": 2,
"lockfileVersion": 1,
"requires": true,
"packages": {
"": {
"name": "dj-car-boutique-work-wechat",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"sentry-miniapp": "^0.12.0"
}
},
"node_modules/@sentry/core": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz",
"integrity": "sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==",
"dependencies": {
"@sentry/hub": "6.19.7",
"@sentry/minimal": "6.19.7",
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.9.3"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@sentry/hub": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.7.tgz",
"integrity": "sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==",
"dependencies": {
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.9.3"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@sentry/minimal": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.7.tgz",
"integrity": "sha512-wcYmSJOdvk6VAPx8IcmZgN08XTXRwRtB1aOLZm+MVHjIZIhHoBGZJYTVQS/BWjldsamj2cX3YGbGXNunaCfYJQ==",
"dependencies": {
"@sentry/hub": "6.19.7",
"@sentry/types": "6.19.7",
"tslib": "^1.9.3"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@sentry/types": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
"integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==",
"engines": {
"node": ">=6"
}
},
"node_modules/@sentry/utils": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz",
"integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==",
"dependencies": {
"@sentry/types": "6.19.7",
"tslib": "^1.9.3"
},
"engines": {
"node": ">=6"
}
},
"node_modules/sentry-miniapp": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/sentry-miniapp/-/sentry-miniapp-0.12.0.tgz",
"integrity": "sha512-uGy+xeCQrwGMGRvMtgSFMkGEXw+nHNV4cDeTtApgTv63rwLKuI5BdYuLghI4slK699Q9hSMH0upo9NK8Lu+Aag==",
"dependencies": {
"@sentry/core": "6.19.7",
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.10.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/tslib": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
}
},
"dependencies": {
"@sentry/core": {
"version": "6.19.7",
......@@ -155,6 +65,11 @@
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
},
"wxml2canvas": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/wxml2canvas/-/wxml2canvas-1.0.1.tgz",
"integrity": "sha512-AdWvxgTjJtW/m6Cki1cwGO0HOERKU8O9V3RcCz8UyqJbrPF7e8Nv27/epYiIs64HlbPTKWTLl7ECjQi6UVducA=="
}
}
}
......@@ -16,6 +16,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"sentry-miniapp": "^0.12.0"
"sentry-miniapp": "^0.12.0",
"wxml2canvas": "^1.0.1"
}
}
......@@ -103,8 +103,16 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "门店概况",
"pathName": "tabOperating/pages/4sOverview/4sOverview",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
}
},
"libVersion": "2.14.1"
}
\ No newline at end of file
{
"navigationStyle": "custom"
}
.layout {
opacity: 0;
// height: 100%;
height: 100vh;
display: flex;
flex-direction: column;
}
.opacity {
opacity: 1;
}
.header {
box-sizing: border-box;
width: 100%;
// height: 352rpx;
height: 120rpx;
// background: #3582EE;
padding: 40rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
color: #fff;
font-size: 24rpx;
.item {
.solidArrow {
width: 14rpx;
height: 10rpx;
margin-left: 10rpx;
margin-top: 5rpx;
}
}
.dateNum {
width: 300rpx;
color: #3582EE;
padding: 12rpx 24rpx;
border-radius: 8rpx;
border: 1px solid #3582EE;
// font-size: 24rpx;
}
}
.table {
height: calc(100vh - 352rpx);
box-sizing: border-box;
// overflow: scroll;
// height: 400rpx;
overflow: hidden;
// z-index: 2;
// margin-bottom: 34rpx;
// padding-bottom: 34rpx;
}
.tableContainer {
height: 100%;
overflow: hidden;
box-sizing: border-box;
// padding: 20rpx;
padding: 20rpx 20rpx 0;
.table-header {
box-sizing: border-box;
display: flex;
padding: 20rpx 20rpx 24rpx;
color: #333;
border-bottom: 1rpx solid #C3C3C3;
width: 100%;
.tableHeader-td:nth-child(1) {
// width: 200rpx;
flex: 1;
// text-align: right;
// text-align: center;
text-align: left;
}
.tableHeader-td:nth-child(n+2) {
flex: 1;
// text-align: center;
text-align: right;
}
}
.list {
box-sizing: border-box;
// max-height: calc(100vh - 352rpx - 44rpx);
// height: 100%;
// overflow: scroll;
}
.table-body {
// height: 100%;
height: calc(100% - 88rpx);
overflow: hidden;
display: flex;
flex-direction: column;
.table-th {
display: flex;
padding: 16rpx 20rpx;
box-sizing: border-box;
color: #666;
.table-td:nth-child(1) {
// width: 200rpx;
flex: 1;
// text-align: right;
// text-align: center;
text-align: left;
}
.table-td:nth-child(n+2) {
flex: 1;
// text-align: center;
color: #333;
text-align: right;
}
}
.tips {
margin-top: 40rpx;
text-align: center;
font-size: 24rpx;
}
}
}
// .tips-nothing {
// width: 100%;
// padding: 50rpx 0;
// text-align: center;
// }
// 去除滚动条样式
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
width: 20rpx;
height: 16rpx;
margin-left: 4rpx;
transform: translateY(25%);
transition: all 0.5s;
}
.arrow {
width: 10rpx;
height: 6rpx;
margin-left: 12rpx;
transform: translateY(25%);
transition: all 0.5s;
}
.move {
transform: rotate(-180deg) translateY(0);
}
.noListText {
// padding: 40rpx;
height: calc(100% - 88rpx);
text-align: center;
// line-height: 100%;
display: flex;
justify-content: center;
background-color: #fff;
align-items: center;
border-radius: 12rpx;
flex-direction: column;
color: #969799;
.image {
width: 320rpx;
height: 392rpx;
}
.text {
margin-top: -65rpx;
}
}
\ No newline at end of file
<!-- tabOperating/pages/4sOverview/4sOverview.wxml -->
<!-- src引入filter.wxs, module给模块起名 -->
<wxs src="../index.wxs" module="filter" />
<view class="layout {{flag?'opacity':''}}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{true}}">
<picker
range="{{merchantRange}}"
value="{{subIndex}}"
range-key="merchantName"
bindchange="changePicker"
bindtap="tapPicker"
bindcancel="tapPicker"
disabled="{{merchantRange.length < 2}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
{{merchantRange[subIndex].merchantName}}
</view>
<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
<image src="/images/arrow-bottom.png" />
</view>
</view>
</picker>
</navigation-bar>
<view class="header" style="margin-top:{{statusBarHeight}}px">
<view class="date">
<!-- {{dateObj.maxDate}} -->
<calendar
id="calender"
class="calendar"
allowSameDay
shortcut
bindselect='rangeSelect'
rangeAll
dateType='single'
calenderColor='#3582EE'
vertical
minDate="2020-10-01"
maxDate="{{dateObj.maxDate}}"
isComponents>
<view class="item text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="../../images/solidArrow.png" />
</view>
</calendar>
</view>
</view>
<view class="container" id="wrapper">
<text class="title draw" data-text="Hello there">Hello there</text>
<text class="info draw" data-text="小程序是一种新的开放能力,开发者可以快速地开发一个小程序。">
小程序是一种新的开放能力,开发者可以快速地开发一个小程序。
</text>
<view class="image-wrapper draw">
<!-- <image class="draw" src="../../assets/demo.jpg" /> -->
</view>
<button class="generate-btn" bindtap="drawCanvas">generate</button>
</view>
<canvas canvas-id="canvas-map" class="share-canvas" />
<!-- <view class="table {{isFullSucreen?'isFullSucreen':''}}">
<view class="tableContainer">
<view class="table-header">
<block wx:for="{{tableHeaderList}}" wx:key="index">
<view class="tableHeader-td">{{item.name}}</view>
</block>
</view>
<block wx:if="{{tableList.length}}">
<view class="table-body">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
style="height:100%;"
class="list"
refresher-triggered="{{triggered}}">
<block wx:for="{{tableList}}" wx:for-item="tableItem" wx:key="index">
<view class="table-th">
<block
wx:for="{{tableHeaderList}}"
wx:for-item="item"
wx:for-index="tdIndex"
wx:key="tdIndex">
<view class="table-td" wx:if="{{tableHeaderList[tdIndex]['propName']=='dataDateStr'&&dateObj.type =='day'}}">
{{filter.dateFormatSlash(tableItem[tableHeaderList[tdIndex]['propName']])}}
</view>
<view class="table-td" wx:elif="{{tableHeaderList[tdIndex]['propName']=='dataDateStr'&&dateObj.type=='year'}}">
{{filter.dateFormatYear(tableItem[tableHeaderList[tdIndex]['propName']])}}
</view>
<view class="table-td" wx:elif="{{tableHeaderList[tdIndex]['propName']=='dataDateStr'&&dateObj.type=='month'}}">
{{filter.dateFormatMonth(tableItem[tableHeaderList[tdIndex]['propName']])}}
</view>
<view class="table-td" wx:elif="{{tableHeaderList[tdIndex]['propName']=='upgradeRate'}}">
{{filter.rateFormat(tableItem[tableHeaderList[tdIndex]['propName']])}}
</view>
<view class="table-td" wx:else>
{{tableItem[tableHeaderList[tdIndex]['propName']]}}
</view>
</block>
</view>
</block>
<view class="tips" wx:if="{{currentPage == pages&&tableList.length>13}}">到底了~</view>
</scroll-view>
</view>
</block>
<block wx:if="{{!tableList.length}}">
<view class=" noListText">
<image
class="image"
src="../../images/nothingBg.png"
mode=""
binderror=""
bindload="" />
<view class="text">暂无数据</view>
</view>
</block>
</view>
</view> -->
</view>
<!-- show="false" -->
<shareModal
id="modal"
class="modal"
custom='true'
btns="{{['返回','确定']}}">
<view class="modatcontent">
<view class="orderCode">
<text class="code">订单编号:</text>
<text>{{orderInfo.orderCode}}</text>
</view>
<view class="tips">
若工单信息有误,确认操作可标记为
<text class="color">已失效</text>
,并补录新工单以提供线下核对。
</view>
</view>
</shareModal>
.container {
height: 100%;
box-sizing: border-box;
padding: 10px 20px;
display: flex;
flex-direction: column;
}
.container .title {
font-size: 36px;
text-align: left;
margin-bottom: 10px;
}
.container .info {
font-size: 14px;
line-height: 18px;
color: grey;
text-align: left;
margin-bottom: 40px;
}
.container .image-wrapper image {
width: 100%;
}
.share-canvas {
width: 100%;
height: 100%;
background: transparent;
}
.layout {
opacity: 0;
height: 100vh;
display: flex;
flex-direction: column;
}
.opacity {
opacity: 1;
}
.header {
box-sizing: border-box;
width: 100%;
height: 120rpx;
padding: 40rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
color: #fff;
font-size: 24rpx;
}
.header .item .solidArrow {
width: 14rpx;
height: 10rpx;
margin-left: 10rpx;
margin-top: 5rpx;
}
.header .dateNum {
width: 300rpx;
color: #3582EE;
padding: 12rpx 24rpx;
border-radius: 8rpx;
border: 1px solid #3582EE;
}
.table {
height: calc(100vh - 352rpx);
box-sizing: border-box;
overflow: hidden;
}
.tableContainer {
height: 100%;
overflow: hidden;
box-sizing: border-box;
padding: 20rpx 20rpx 0;
}
.tableContainer .table-header {
box-sizing: border-box;
display: flex;
padding: 20rpx 20rpx 24rpx;
color: #333;
border-bottom: 1rpx solid #C3C3C3;
width: 100%;
}
.tableContainer .table-header .tableHeader-td:nth-child(1) {
flex: 1;
text-align: left;
}
.tableContainer .table-header .tableHeader-td:nth-child(n+2) {
flex: 1;
text-align: right;
}
.tableContainer .list {
box-sizing: border-box;
}
.tableContainer .table-body {
height: calc(100% - 88rpx);
overflow: hidden;
display: flex;
flex-direction: column;
}
.tableContainer .table-body .table-th {
display: flex;
padding: 16rpx 20rpx;
box-sizing: border-box;
color: #666;
}
.tableContainer .table-body .table-th .table-td:nth-child(1) {
flex: 1;
text-align: left;
}
.tableContainer .table-body .table-th .table-td:nth-child(n+2) {
flex: 1;
color: #333;
text-align: right;
}
.tableContainer .table-body .tips {
margin-top: 40rpx;
text-align: center;
font-size: 24rpx;
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
width: 20rpx;
height: 16rpx;
margin-left: 4rpx;
transform: translateY(25%);
transition: all 0.5s;
}
.arrow {
width: 10rpx;
height: 6rpx;
margin-left: 12rpx;
transform: translateY(25%);
transition: all 0.5s;
}
.move {
transform: rotate(-180deg) translateY(0);
}
.noListText {
height: calc(100% - 88rpx);
text-align: center;
display: flex;
justify-content: center;
background-color: #fff;
align-items: center;
border-radius: 12rpx;
flex-direction: column;
color: #969799;
}
.noListText .image {
width: 320rpx;
height: 392rpx;
}
.noListText .text {
margin-top: -65rpx;
}
\ No newline at end of file
......@@ -7,7 +7,7 @@ export default {
},
{
name: '门店概况',
url: ''
url: 'tabOperating.4sOverview'
},
{
name: '商品排行',
......@@ -47,7 +47,7 @@ export default {
let { index, item } = e.currentTarget.dataset
console.log(item)
// 不是累计累计营收页面
if (index) {
if (!item.url) {
wx.$util.showToast({
title: '暂未上线,敬请期待',
icon: 'none'
......
......@@ -179,6 +179,8 @@ Page({
})
},
changePrice(e) {
// debugger
console.log(e);
let { value } = e.detail
let { index, item } = e.currentTarget.dataset
let target = `goodsList[${index}].price`
......@@ -191,6 +193,7 @@ Page({
[target]: number,
orderDisabled: item.shopMinPrice > value
})
console.log('value',item.shopMinPrice,value);
if (item.shopMinPrice > value) {
this.showToast('单价不可低于商品最低价')
}
......@@ -204,6 +207,7 @@ Page({
[target]: !item.price ? item.shopMinPrice : item.price
})
let { goodsList } = this.data
this.setGoodsTotal(goodsList)
},
setGoodsTotal(goodsList) {
......@@ -664,6 +668,7 @@ Page({
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
......@@ -672,6 +677,7 @@ Page({
// if (options.scene) {
// this.setData(options)
// }
},
/**
* 生命周期函数--监听页面初次渲染完成
......@@ -679,11 +685,13 @@ Page({
onReady: function (res) {
// console.log(res)
// this.getConfig()
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function (res) {
// this.saveImageClick()
// console.log(res)
// setTimeout(() => {
// wx.$util.showLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!