Commit e32e69f4 by 前端

Merge branch 'develop' into 'master'

Develop

See merge request !174
2 parents db26226b 61c219c2
Showing 271 changed files with 1494 additions and 278 deletions
......@@ -9,8 +9,8 @@
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :15626599738 (开发环境)
超管:18129809927
商户管理员:15814019200
区域督导:187750352053
商户管理员:15814019200
区域督导:187750352053
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
......
......@@ -151,7 +151,10 @@ module.exports = {
// 获取园区店下的4s店
getSceneMerchantRefStoreList(data) {
return api.post('dj.api.scenemerchantref.query4SRefByYqShop', data)
// 校验session
return api.post('dj.api.scenemerchantref.query4SRefByYqShopByLogin', data)
// 不校验session
// return api.post('dj.api.scenemerchantref.query4SRefByYqShop', data)
},
// 获取门店下的员工(推荐人)众筹场景
......@@ -172,5 +175,10 @@ module.exports = {
// 获取精品升级场景 太阳膜类商品部位数据
getPositionList(data) {
return api.post('dj.api.smartcarlife.goodsPosition.list', data)
},
// 选择4s店和场景
selectMerchantScene(data) {
return api.post('dj.api.smartcarlife.selectMerchantScene', data)
}
}
......@@ -13,11 +13,12 @@ import wxApi from './utils/utils_wx'
// 实例化对象存储
import { Storage } from '~/utils/cache/storage'
const $Storage = new Storage()
import { setSystem_info, getNoSignInUuid,removeSystemStorage } from '~/utils/cache/storageApi'
import { setSystem_info, getNoSignInUuid, removeSystemStorage } from '~/utils/cache/storageApi'
setSystem_info() // 存储设备信息
import { checkYqdSuper, checkScene } from '~/store/index'
import eventbus from './utils/eventbus'
import api from './api/api'
import { Version } from 'glsx-common-sdk'
App({
onLaunch() {
/**挂载到wx对象 */
......@@ -31,6 +32,26 @@ App({
let userInfo = util.getStorageSync('dj_boutique_user_info')
// ,this.globalData, userInfo
userInfo && this.gobalCheckYqdSuper(userInfo)
wx.$versionConfig = new Version({
request: {
baseUrl: 'https://config-center-backend.glsx.com.cn/glsxAdmin/config',
isSign: false
}
})
},
async getVersionInfo(request) {
if (request) this.globalData.versionData = null
const { versionData } = this.globalData
if (versionData) return versionData
else {
const res = await wx.$versionConfig.get({
moduleUrl: 'dj-car-boutique-work-wechat',
// moduleUrl: 'business-assistant',
env: 'update'
})
this.globalData.versionData = res
return res
}
},
showModal(that, options) {
that.selectComponent('#modal').showModal(options)
......@@ -42,9 +63,9 @@ App({
wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive')
})
console.log('lifeshow');
console.log('lifeshow')
getUpdateManager()
if (options) {
console.log('options', options)
let res = checkScene(options)
......@@ -54,39 +75,35 @@ App({
}
},
login(relogin, context) {
// debugger
// util.debounce( this.test,1000)
// return
// console.log(relogin, 'relogin')
let that = this
// 清空多账号信息
if (relogin) {
// 判断有没有 30 天免登陆 有直接跳选园区
let noSignInUuid = getNoSignInUuid()
console.log('noSignInUuid',noSignInUuid);
console.log('noSignInUuid', noSignInUuid)
if (noSignInUuid) {
api.reNoSignIn({ noSignInUuid: noSignInUuid }).then(res => {
let {
code,
data
} = res
if (code == '0' && data) {
// util.setUserinfo( console.log('noSignInUuid_sessionId',data?.sessionId);
wx.reLaunch({url: '/pages/accountItems/accountItems'})
util.setSessionId(data?.sessionId)
return
// return router.reLaunch('pages.accountItems')
} else {
util.removeStorage()
removeSystemStorage()
that.login(false)
}
})
api
.reNoSignIn({
noSignInUuid: noSignInUuid
})
.then(res => {
let { code, data } = res
if (code == '0' && data) {
// util.setUserinfo( console.log('noSignInUuid_sessionId',data?.sessionId);
// wx.reLaunch({url: '/pages/accountItems/accountItems'})
util.setSessionId(data?.sessionId)
wx.reLaunch({ url: '/pages/loading/loading' })
return
} else {
util.removeStorage()
removeSystemStorage()
that.login(false)
}
})
} else {
// 标志位 解决安卓查复弹框问题
if (wx.__HAS_NOTLOGIN_MODAL) return false
wx.__HAS_NOTLOGIN_MODAL = true
// 标志位 解决安卓查复弹框问题
if (wx.__HAS_NOTLOGIN_MODAL) return false
wx.__HAS_NOTLOGIN_MODAL = true
wx.showModal({
title: '温馨提示',
content: context || '登录过期,请重新登录。',
......@@ -106,9 +123,9 @@ App({
// 这个延迟的目的是为了避免短时间内重复弹出
// 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
setTimeout(() => {
wx.__HAS_NOTLOGIN_MODAL = false;
}, 2000);
}
wx.__HAS_NOTLOGIN_MODAL = false
}, 2000)
}
})
}
} else {
......@@ -120,77 +137,14 @@ App({
router.reLaunch('pages.wxLogin')
}
},
test (){
// console.log('loginOut');
// this.debounceWithParams()
const count = this.globalData.count
console.log(this.globalData.count);
let that = this
console.log(this.globalData.count,'globalData.count');
if (count) {
clearTimeout(this.globalData.count)
this.globalData.count = setTimeout(()=>{
// console.log('object');
console.log(that.globalData.count);
that.globalData.count = null
console.log('that.globalData.count',that.globalData.count);
},2000)
}else{
this.globalData.count = setTimeout(()=>{
// console.log('object');
console.log(that.globalData.count);
that.globalData.count = null
console.log('that.globalData.count',that.globalData.count);
},2000)
}
// globalData.count = setTimeout(()=>{
// console.log('object');
// console.log(globalData.count);
// },2000)
// globalData.count++
// setTimeout
// let timeCount
// console.log(timeCount);
// if (timeCount) {
// clearTimeout(timeCount)
// timeCount = setTimeout(()=>{
// console.log('这是一个寂寞的天');
// },1000)
// }else{
// timeCount = setTimeout(()=>{
// console.log('这是一个寂寞的天');
// },1000)
// }
// function doSomething() {
// console.log("Doing something!");
// }
// const debouncedDoSomething = util.debounce(doSomething, 500, false);
// debouncedDoSomething()
},
debounceWithParams(callback, delay) {
let timeoutId; // 用于保存定时器ID
return function (...args) {
const executeLater = function () {
// 定义一个延迟执行的函数
timeoutId = null; // 清空定时器ID,用于标记函数可以再次执行
callback(...args); // 执行回调函数,并将参数传递给回调函数
};
clearTimeout(timeoutId); // 清除之前的定时器
timeoutId = setTimeout(executeLater, delay); // 创建一个新的定时器
};
},
globalData: {
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'], // 头部导航栏的高度
yqdInfo: {},
isYqdSuper: true,
isStaff: false,
YQorderSetting: '',
count:'',
count: '',
versionData: null
}
})
{
"pages": ["pages/sceneIndex/sceneIndex", "pages/wxLogin/wxLogin", "tabIndex/pages/index/index", "pages/accountItems/accountItems", "pages/nothing/nothing", "pages/webView/webView", "pages/tabWorkOrder/pages/index/index", "tabMine/pages/index/index", "tabDate/pages/index/index", "tabDate/pages/detail/detail", "tabDate/pages/apprManage/apprManage", "tabDate/pages/userPortrait/userPortrait"],
"pages": [
"pages/loading/loading",
"pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin",
"tabIndex/pages/index/index",
"pages/accountItems/accountItems",
"pages/merchantList/merchantList",
"pages/nothing/nothing",
"pages/webView/webView",
"pages/tabWorkOrder/pages/index/index",
"tabMine/pages/index/index",
"pages/tabDateIndex/pages/tabDateIndex",
"pages/log/log",
"pages/changeScene/changeScene"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
......@@ -7,42 +21,66 @@
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#565656",
"color": "#757980",
"selectedColor": "#3582EE",
"backgroundColor": "#FFFFFF",
"position": "bottom",
"list": [
{
"pagePath": "tabIndex/pages/index/index",
"text": "工作台",
"iconPath": "images/tab-staging.png",
"selectedIconPath": "images/tab-staging-active.png"
"text": "首页",
"iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png",
"iconSize": "24"
},
{
"pagePath": "pages/tabWorkOrder/pages/index/index",
"text": "工单",
"text": "工单管理",
"iconPath": "images/tab-order.png",
"selectedIconPath": "images/tab-order-active.png"
"selectedIconPath": "images/tab-order-active.png",
"iconSize": "24"
},
{
"pagePath": "tabDate/pages/index/index",
"text": "预约",
"pagePath": "pages/tabDateIndex/pages/tabDateIndex",
"text": "预约管理",
"iconPath": "images/tab-date.png",
"selectedIconPath": "images/tab-date-active.png"
"selectedIconPath": "images/tab-date-active.png",
"iconSize": "24"
},
{
"pagePath": "tabMine/pages/index/index",
"text": "设置",
"iconPath": "images/tab-setting.png",
"selectedIconPath": "images/tab-setting-active.png"
"text": "个人中心",
"iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png",
"iconSize": "24"
}
]
},
"subpackages": [
{
"root": "tabDate",
"name": "tabDate",
"pages": [
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
},
{
"root": "tabWorkOrder",
"name": "tabWorkOrder",
"pages": ["pages/createOrder/createOrder", "pages/additionRecordOrder/additionRecordOrder", "pages/orderDetail/orderDetail", "pages/constructionOrderDetail/constructionOrderDetail", "pages/confirmOrder/confirmOrder", "pages/updateOrderInfo/updateOrderInfo", "pages/createArchives/createArchives", "pages/orderSignature/orderSignature", "pages/fullSignture/fullSignture", "pages/ocr/ocr"]
"pages": [
"pages/createOrder/createOrder",
"pages/additionRecordOrder/additionRecordOrder",
"pages/orderDetail/orderDetail",
"pages/constructionOrderDetail/constructionOrderDetail",
"pages/confirmOrder/confirmOrder",
"pages/updateOrderInfo/updateOrderInfo",
"pages/createArchives/createArchives",
"pages/orderSignature/orderSignature",
"pages/fullSignture/fullSignture",
"pages/ocr/ocr"
]
},
{
"root": "packageEquity",
......@@ -68,17 +106,39 @@
{
"root": "tabOperating",
"name": "tabOperating",
"pages": ["pages/4sOverview/4sOverview", "pages/index/index", "pages/operatingShow/operatingShow"]
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"pages": ["pages/paidOrder/paidOrder", "pages/activityList/activityList", "pages/activityPay/activityPay", "pages/paymentSuccess/paymentSuccess", "pages/balanceNote/balanceNote", "pages/newOrder/newOrder", "pages/additionRecordOrder/additionRecordOrder"]
"pages": [
"pages/TabBar/crowdFundingPage",
"pages/activityPage/paidOrder/orderList",
"pages/activityPage/activityList/activityList",
"pages/activityPage/activityPay/activityPay",
"pages/activityPage/paymentSuccess/paymentSuccess",
"pages/activityPage/balanceNote/balanceNote",
"pages/activityPage/newOrder/newOrder",
"pages/activityPage/additionRecordOrder/additionRecordOrder"
]
},
{
"root": "subvehicleConversion",
"name": "subvehicleConversion",
"pages": ["pages/index/index", "pages/activityManagement/activityManagement", "pages/visitor/visitor", "pages/order/order", "pages/supplementaryOrderList/supplementaryOrderList", "pages/supplementaryOrderPay/supplementaryOrderPay", "pages/relatedFinalPayment/relatedFinalPayment", "pages/paySuccess/paySuccess"]
"pages": [
"pages/TabBar/conversionPage",
"pages/activityPage/activityManagement/activityManagement",
"pages/activityPage/visitor/visitor",
"pages/activityPage/order/order",
"pages/orderPage/supplementaryOrderList/supplementaryOrderList",
"pages/orderPage/supplementaryOrderPay/supplementaryOrderPay",
"pages/orderPage/relatedFinalPayment/relatedFinalPayment",
"pages/orderPage/paySuccess/paySuccess"
]
}
],
"usingComponents": {
......@@ -106,11 +166,15 @@
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
"packages": [
"tabWorkOrder"
]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
"packages": [
"tabWorkOrder"
]
}
},
"resolveAlias": {
......@@ -124,4 +188,4 @@
},
"lazyCodeLoading": "requiredComponents",
"__usePrivacyCheck__": true
}
}
\ No newline at end of file
page{
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}
@font-face {
font-family: "numberNor";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf");
......
......@@ -207,6 +207,8 @@ Component({
this.getServiceMerchantList(merchantId)
},
init() {
let { userInfo } = this.data
// 判断是不是超管,不是只显示当时一个园区店
this.setData({
['form.orderType.data']: JSON.parse(JSON.stringify(this.data.orderType))
})
......@@ -216,8 +218,9 @@ Component({
let { code, data, message } = res
if (code == 0) {
if (data.length > 0) {
console.log(userInfo,'userInfo');
this.setData({
['form.merchantRange.data']: [
['form.merchantRange.data']:[
{
merchantId: '',
merchantName: '全部'
......@@ -265,6 +268,11 @@ Component({
}
api.getSceneMerchantRefStoreList(params).then(res => {
let { code, data, message } = res
let {userInfo} = this.data
// 不是超管,过滤4s店只能看自己
if (!userInfo.isSuper) {
data = data.filter(item=> item.merchantId == userInfo.shopMerchantId) || []
}
let arr = []
if (code == 0) {
arr = [
......@@ -594,7 +602,8 @@ Component({
this.setData({
x: windowWidth,
windowWidth,
isFullSucreen: wx.$util.isFullSucreen(true)
isFullSucreen: wx.$util.isFullSucreen(true),
userInfo: wx.$util.getUserInfo()
})
})
this.init()
......
......@@ -24,19 +24,21 @@ Component({
},
merchantId: {
type: Number,
observer: function (n, o) {
observer: function (n) {
console.log(n, 'n, o');
if (n) {
this.getCouponList(n)
}
}
},
yqMerchantId: {
type: Number
// observer: function (n, o) {
// if (n) {
// this.getCouponList(n)
// }
// }
type: Number,
observer: function (n) {
console.log(n, 'n, o');
if (n) {
this.getCouponList(this.data.merchantId)
}
}
},
customerPhone: {
type: Number,
......@@ -44,6 +46,7 @@ Component({
const phoneRex = /^[1]([3-9])[0-9]{9}$/
if (phoneRex.test(n)) {
this.getCustomerCouponList(n)
console.log(this.data.merchantId, 'this.data.merchantId');
this.getCouponList(this.data.merchantId)
}
}
......@@ -53,7 +56,9 @@ Component({
type: String
}
},
lifetimes: {
attached() {}
},
/**
* 组件的初始数据
*/
......@@ -74,15 +79,21 @@ Component({
usedFlag: 'N'
}
api.getCustomerCouponList(params).then(res => {
let { code, data, message } = res
let {
code,
data,
message
} = res
console.log(res)
if (code == 0) {
let thisPage = wx.$router.getPageInstance()
console.log('thisPage.data', thisPage.data)
let { orderObj } = thisPage.data
let {
orderObj
} = thisPage.data
// console.log(orderObj)
console.log(data,'getCustomerCouponList')
console.log(data, 'getCustomerCouponList')
let filterList = data.filter(item => {
return item.status != 1 || (item.status == 1 && item.id == orderObj.customerCouponId)
})
......@@ -96,15 +107,23 @@ Component({
})
},
getCouponList(merchantId, refresh) {
let { yqMerchantId } = this.data
api
let {
yqMerchantId
} = this.data
// console.log(merchantId, yqMerchantId, 'yqMerchantId');
// 解决 yqMerchantId 为0 请求空数据的问题
merchantId && yqMerchantId && api
.getCouponList({
merchantId,
yqMerchantId,
orderByType:9, // 按时间排序
orderByType: 9, // 按时间排序
})
.then(res => {
let { code, data, message } = res
let {
code,
data,
message
} = res
if (code == 0) {
let couponTypeList = Array.from(new Set([...data.map(e => e.couponInfo.couponType)]))
// console.log(couponTypeList)
......@@ -133,10 +152,19 @@ Component({
})
},
checkCoupon() {
let { customerCouponList, couponList, chooseItem, merchantId, returnFun, pageName } = this.data
let {
customerCouponList,
couponList,
chooseItem,
merchantId,
returnFun,
pageName
} = this.data
// console.log(customerCouponList)
let thisPage = wx.$router.getPageInstance()
let { orderObj } = thisPage.data
let {
orderObj
} = thisPage.data
// console.log(orderObj)
// debugger
if (customerCouponList.length > 0) {
......@@ -193,7 +221,7 @@ Component({
})
// 追加一个逻辑 订单补录并且不是回显的话 或则订单是战败
// pageName == 'additionRecordOrder' &&
if ( (pageName == 'additionRecordOrder' || this.data.selectPayType == 0 )&&!orderObj.couponName && !orderObj.customerCouponCode) {
if ((pageName == 'additionRecordOrder' || this.data.selectPayType == 0) && !orderObj.couponName && !orderObj.customerCouponCode) {
if (couponList.length) {
// couponList.find((item)=>{
// return item.list.length &&
......@@ -208,7 +236,7 @@ Component({
}
})
})
console.log(defaultItem,'defaultItem');
console.log(defaultItem, 'defaultItem');
if (defaultItem) {
this.setData({
couponList,
......@@ -226,8 +254,13 @@ Component({
},
checkActiveCoupon() {
let thisPage = wx.$router.getPageInstance()
let { orderObj } = thisPage.data
let { couponList, customerCouponList } = this.data
let {
orderObj
} = thisPage.data
let {
couponList,
customerCouponList
} = this.data
if (orderObj.customerCouponId || orderObj.merchantCouponId) {
let couponName = ''
let key = 'merchantCouponId'
......@@ -270,14 +303,20 @@ Component({
choose(e) {
let {
item,
item: { active, disabled },
item: {
active,
disabled
},
index,
ind,
key
} = e.currentTarget.dataset
console.log(item)
if (disabled) return
let { couponList, customerCouponList } = this.data
let {
couponList,
customerCouponList
} = this.data
customerCouponList.map(i => (i.active = false))
couponList.map(i => {
i.list.map(k => (k.active = false))
......@@ -298,8 +337,13 @@ Component({
})
},
searchCoupon(e) {
let { couponList, merchantId } = this.data
let { value } = e.detail
let {
couponList,
merchantId
} = this.data
let {
value
} = e.detail
if (!value) {
this.getCouponList(merchantId)
return
......@@ -322,7 +366,9 @@ Component({
})
},
confirm() {
let { chooseItem } = this.data
let {
chooseItem
} = this.data
// customerCouponList
if (!chooseItem?.merchantCouponId && !chooseItem?.customerCouponId) {
return wx.$util.showToast({
......@@ -336,7 +382,9 @@ Component({
})
let thisPage = wx.$router.getPageInstance()
let { orderObj } = thisPage.data
let {
orderObj
} = thisPage.data
delete orderObj.customerCouponId
delete orderObj.merchantCouponId
console.log(chooseItem)
......@@ -344,10 +392,10 @@ Component({
...orderObj,
...chooseItem
}
console.log(chooseItem,orderObj,'chooseItem');
console.log(chooseItem, orderObj, 'chooseItem');
thisPage.setData({
orderObj
})
}
}
})
})
\ No newline at end of file
......@@ -9,7 +9,7 @@
display: flex;
align-items: center;
justify-content: space-between;
font-size: 24rpx;
font-size: 20rpx;
animation: show-tab-bar .5s forwards;
border-top: 1rpx solid #F4F4F5;
padding-bottom: constant(safe-area-inset-bottom) !important;
......@@ -25,8 +25,8 @@
transition: all .5s;
}
.tab-bar .item .icon-box{
width: 44rpx;
height: 44rpx;
width: 48rpx;
height: 48rpx;
margin-bottom: 8rpx;
}
.tab-bar .item .icon-box .active-icon{
......
......@@ -41,7 +41,9 @@ Component({
init(keyword) {
// console.log('getBrandList')
// console.log(storageData)
let userInfo = wx.$util.getUserInfo()
let params = {
merchantId: userInfo?.shopMerchantId,
pageSize: 999999,
pageNum: 1,
// upgradeFinishFlag: 'R',
......
......@@ -2,6 +2,7 @@
Component({
options: {
styleIsolation: 'apply-shared'
// styleIsolation: 'shared'
},
/**
* 组件的属性列表
......
......@@ -23,7 +23,8 @@ Component({
},
type: Number, //1.销售顾问,2.转化人员
// order:Object,
isDefault: Boolean,
isDefault: Boolean, //
singleSeller:Boolean,
oderType: String
},
// 处理先要调用销售顾问接口再调用转化人员接口的问题
......@@ -64,10 +65,11 @@ Component({
moreMerchant: !this.data.moreMerchant
})
},
getMerchantList() {
async getMerchantList() {
let {
userInfo,
type
type,
singleSeller
} = this.data
// console.log('type', type)
let thisPage = wx.$router.getPageInstance()
......@@ -91,17 +93,22 @@ Component({
type == 1
? {
merchantId: userInfo.merchantId,
sceneType: 1,
scene: 1,
staffUUID: orderObj.sellerUserId
}
: {}
).then(async res => {
// let userInfo = wx.$util.getUserInfo()
let {
code,
data,
message
} = res
if (code == 0) {
// 是下单就只筛选当前4s店的
if (type == 1 && singleSeller) {
data = data.filter(item=>item.merchantId == userInfo.shopMerchantId) || []
}
// console.log('data', data)
// 解决为空报错问题
if (data[0]) data[0].active = true
......@@ -122,11 +129,11 @@ Component({
} else {
isSellerInfo = orderObj.merchantName && orderObj.employeeName
// let orderSellerInfo = util.getSellerInfo()
// 获取上一个订单的销售顾问信息
// 获取上一个订单的销售顾问信息 并且不是再次下单
let result = await api.getLastUserOrderInfo({ sellerUserId: userInfo.subLoginUser.uuid })
// let {data} = result
result.data && (orderSellerInfo = result.data)
if (result.data && result.data.merchantId == userInfo?.shopMerchantId) (orderSellerInfo = result.data)
// console.log(orderSellerInfo, 'result')
if (orderSellerInfo && !isSellerInfo) {
compareId = orderSellerInfo.merchantId
......@@ -152,6 +159,7 @@ Component({
let targetName = type == 1 ? 'orderObj.merchantName' : 'orderObj.sellerMerchantName'
let targetId = type == 1 ? 'orderObj.merchantId' : 'orderObj.sellerMerchantId'
// let isShowSelesBox = type == 3 ? true : false
console.log(merchantId,merchantName,targetName,targetId,'merchant-seles');
this.setData(
{
[targetId]: merchantId,
......@@ -210,6 +218,7 @@ Component({
// 增加销售顾问默认勾选逻辑是第一次
if (type == 1 && isFirst) {
// debugger
// console.log(merchantId)
// debugger
// isSellerInfo = orderObj.merchantName && orderObj.employeeName
......@@ -352,15 +361,17 @@ Component({
// // thisPage.getOrderBaseGoodsList && thisPage.getOrderBaseGoodsList(orderObj.merchantId)
// } else
// && orderSellerInfo?.merchantId != data.merchantId
if (oderType != 'recorder') {
result = await api.merchantSettleAccountRule({
merchantId: data.merchantId,
sceneType: 1
})
if (JSON.stringify(result.data) === '{}' || result.data == null) {
return wx.$util.showToast('未设置分润规则 请联系管理员')
}
}
// 取消规则校验
// if (oderType != 'recorder') {
// result = await api.merchantSettleAccountRule({
// merchantId: data.merchantId,
// sceneType: 1
// })
// if (JSON.stringify(result.data) === '{}' || result.data == null) {
// return wx.$util.showToast('未设置分润规则 请联系管理员')
// }
// }
// console.log(result)
// let userInfo = util.getUserInfo()
......
// components/SideSelectPopup/SideSelectPopup.js
import constantData from '../../pages/constant/data'
import api from '~/api/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
Component({
/**
* 组件的属性列表
......@@ -10,16 +11,26 @@ Component({
value: false,
observer: function (n) {
if (n) {
wx.$util.pointRecord(31)
let userInfo = wx.$util.getUserInfo() || {}
let storageSelectedSceneType = userInfo.selectedSceneType
this.setData({storageSelectedSceneType})
let { sceneList } = this.data
let openSceneArr = userInfo?.openSceneArr || []
// 获取开通业务场景
let arr = sceneList.filter(v => openSceneArr.includes(v.sceneType))
let { storeList, subIndex } = this.data
storeList?.map((val, index) => {
val.actived = false
val.index = index
if (userInfo?.sceneType == 1) {
// 切换园区店
if (userInfo?.isSuper && index == subIndex) val.actived = true
else if (!userInfo?.isSuper && val.merchantId == userInfo?.shopMerchantId) val.actived = true
} else {
// 切换4s店
if (userInfo?.isSuper && ((userInfo?.sceneType == 0 && userInfo?.default4SStoreInfo?.merchantId == val.merchantId) || (userInfo?.sceneType == 3 && userInfo?.default4SStoreInfo_crowdFunding?.merchantId == val.merchantId) || (userInfo?.sceneType == 2 && userInfo?.default4SStoreInfo_newCarConversion?.merchantId == val.merchantId))) val.actived = true
else if (!userInfo?.isSuper && val.merchantId == userInfo?.shopMerchantId) val.actived = true
}
})
this.setData({
sceneList: arr
userInfo,
copyStoreList: storeList,
searchValue: '',
edit: false
})
}
}
......@@ -27,6 +38,14 @@ Component({
hasTabBar: {
type: Boolean,
value: false
},
storeList: {
type: Array,
value: []
},
subIndex: {
type: Number,
value: 0
}
},
......@@ -34,8 +53,13 @@ Component({
* 组件的初始数据
*/
data: {
sceneList: constantData.sceneList,
storageSelectedSceneType: ''
storagesceneType: '',
IMG_URL,
userInfo: {},
inputFocus: false,
searchValue: '',
copyStoreList: [],
selectedMerchantId: ''
},
/**
......@@ -47,24 +71,213 @@ Component({
show:false
})
},
open() {
if (this.data.disabled) return
this.setData({
edit: true,
inputFocus: true
})
},
setValue(value) {
if (this.properties.filterEmoji) {
if (wx.$util.haveEmoji(value)) value = wx.$util.replaceEmoji(value)
}
this.setData({
searchValue: value
})
},
input(e) {
let { value } = e.detail
this.setValue(value)
this.triggerEvent('input', {
value
})
},
inputConfifm(e) {
this.emit(e)
},
emit(e) {
let {
detail: { value },
type
} = e
this.setData({
edit: false
})
this.setValue(value)
this.searchEvent()
},
clearInputText() {
this.setData({
searchValue: '',
edit: false
})
this.searchEvent()
},
searchEvent() {
let { searchValue, selectedMerchantId } = this.data
let { storeList } = wx.$util.deepClone(this.data)
if (!searchValue) {
storeList.map(i => {
i.active = false
if (i.merchantId == selectedMerchantId) i.active = true
return i
})
this.setData({
copyStoreList: storeList
})
} else {
let arr = []
storeList.map(i => {
i.active = false
if (i.merchantId == selectedMerchantId) i.active = true
if (i.merchantName.indexOf(searchValue) != -1 || i.merchantId == searchValue) {
arr.push(i)
}
})
this.setData({
copyStoreList: arr
})
}
},
showTabBar() {
if (this.data.hasTabBar) wx.showTabBar({animation: true})
},
hideTabBar() {
if (this.data.hasTabBar) wx.hideTabBar({animation: true})
},
selectScene(e) {
let { scene,item } = e.currentTarget.dataset
let { sceneList, storageSelectedSceneType } = this.data
if (scene == storageSelectedSceneType) return this.closeMenu()
wx.$router.reLaunch(constantData?.pageUrl[scene])
sceneList.map(i => (i.actived = false))
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), selectedSceneType: scene })
wx.$util.pointRecord(item.recordId)
selectStore(e) {
const thisPage = wx.$router.getPageInstance()
let { item, selectindex } = e.currentTarget.dataset
if (item.actived) return this.closeMenu()
let { userInfo, storeList, copyStoreList } = this.data
copyStoreList?.map((val, index) => {
val.actived = false
if (index == selectindex) val.actived = true
return val
})
this.setData({
copyStoreList
})
// 精品升级场景 超管切换
if (userInfo?.isSuper && userInfo?.sceneType == 1) {
this.closeMenu()
thisPage.changePicker && thisPage.changePicker(storeList[item.index], item.index)
return
}
// 切换4s店
wx.$util.showLoading()
this.closeMenu()
// 超管 精品升级以外场景切换4s店
if (userInfo?.isSuper && userInfo?.sceneType != 1) {
wx.$util.hideLoading()
this.eventCallback(item, userInfo?.sceneType, userInfo?.isSuper)
} else {
api.selectMerchantScene({
merchantId: item?.merchantId,
merchantName: item?.merchantName,
sceneType: userInfo?.sceneType
})
.then(res => {
let { data, message } = res
if (data) {
wx.$util.setUserInfo({...wx.$util.getUserInfo(), subLoginUser: data.subLoginUser})
wx.$util.hideLoading()
this.eventCallback(item, userInfo?.sceneType)
} else {
wx.$util.showToast(message)
}
})
}
},
goMineCenter() {
wx.$util.pointRecord(5)
wx.$router.redirectTo('pages.sceneIndex')
eventCallback(item, sceneType, isSuper) {
const thisPage = wx.$router.getPageInstance()
let userInfo = wx.$util.getUserInfo()
if (userInfo.merchantAccountList && userInfo.merchantAccountList.length) {
try {
userInfo.merchantAccountList.map(e => {
if (e == 6 || e == 8) throw true
})
} catch (error) {
userInfo.merchantType = error
}
}
let obj = {}
if (isSuper) {
switch(sceneType) {
case 0:
obj = {
...userInfo,
shopMerchantName: item.merchantName,
shopMerchantId: item.merchantId,
default4SStoreInfo: {
merchantId: item.merchantId,
merchantName: item.merchantName
}
}
wx.$util.setUserInfo(obj)
thisPage.setData({
userInfo: obj
})
break
case 2:
obj = {
...userInfo,
shopMerchantName: item.merchantName,
shopMerchantId: item.merchantId,
default4SStoreInfo_newCarConversion: {
merchantId: item.merchantId,
merchantName: item.merchantName
}
}
wx.$util.setUserInfo(obj)
thisPage.setData({
userInfo: obj
})
break
case 3:
obj = {
...userInfo,
shopMerchantName: item.merchantName,
shopMerchantId: item.merchantId,
default4SStoreInfo_crowdFunding: {
merchantId: item.merchantId,
merchantName: item.merchantName
}
}
wx.$util.setUserInfo(obj)
thisPage.setData({
userInfo: obj
})
break
}
} else {
obj = {
...userInfo,
shopMerchantName: item.merchantName,
shopMerchantId: item.merchantId,
default4SStoreInfo: {
merchantId: item.merchantId,
merchantName: item.merchantName
},
default4SStoreInfo_newCarConversion: {
merchantId: item.merchantId,
merchantName: item.merchantName
},
default4SStoreInfo_crowdFunding: {
merchantId: item.merchantId,
merchantName: item.merchantName
}
}
wx.$util.setUserInfo(obj)
thisPage.setData({
userInfo: obj
})
}
// 除精品升级外 切换门店刷新数据
thisPage.initList && thisPage.initList()
// 精品升级首页数据刷新
thisPage.initData && thisPage.initData()
}
}
})
<!--components/SideSelectPopup/SideSelectPopup.wxml-->
<van-popup custom-style="height: 100%;width:70%;" z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" position="left" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<van-popup custom-style="height: 100%;width:560rpx;" z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" position="left" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="wrapper">
<view class="title">业务</view>
<block wx:for="{{sceneList}}" wx:key="index">
<view catch:tap="selectScene" data-item="{{item}}" data-scene="{{item.sceneType}}" class="element {{item.sceneType == storageSelectedSceneType ? 'active' : ''}}">
<view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{item.sceneType}}.png"></image></view>
<view class="label">{{item.sceneName}}</view>
<view class="title_box">
<view class="title">店面列表</view>
</view>
<view class="search_box">
<view>
<view class="search-input">
<block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else>
<image src="/images/search.png" class="icon"></image>
{{'搜索门店名称/商户号'}}
</block>
</view>
</block>
<block wx:else>
<view class="input_box">
<input
type="text"
class="input"
value="{{ searchValue }}"
focus="{{ inputFocus }}"
adjust-position="{{false}}"
confirm-type="search"
bindinput="input"
bindblur="inputBlur"
bindconfirm="inputConfifm"
/>
<image src="/images/clear.png" bindtap="clearInputText" wx:if="{{searchValue}}" class="clear_icon" mode=""/>
</view>
</block>
</view>
</block>
<view class="title">通用</view>
</view>
</view>
<scroll-view scroll-y style="height: calc(100vh - 264rpx - 88rpx);" enhanced="{{true}}" show-scrollbar="{{false}}">
<block wx:for="{{copyStoreList}}" wx:key="index" wx:for-index="index">
<view catch:tap="selectStore" data-item="{{item}}" data-selectindex="{{index}}" class="element {{item.actived ? 'active' : ''}}">
<view><image src="{{IMG_URL}}/store_icon_nobg.png"></image></view>
<view class="text_box">
<view class="label">{{item.merchantName}}</view>
<view class="label_no" wx:if="{{item.merchantId}}">商户号:{{item.merchantId}}</view>
</view>
</view>
</block>
</scroll-view>
<!-- <view class="title">通用</view>
<view catch:tap="goMineCenter" data-index="" class="element mine">
<view class="flex_box">
<view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/side_mine_icon.png"></image></view>
<view class="label">个人中心</view>
</view>
<view class="right_icon"></view>
</view>
</view> -->
</view>
</van-popup>
......@@ -6,38 +6,120 @@
box-sizing: border-box;
padding: 88rpx 16rpx;
}
.wrapper .title{
height: 88rpx;
line-height: 88rpx;
.wrapper .title_box{
height: 60rpx;
line-height: 60rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
}
.wrapper .title_box .title{
padding-left: 16rpx;
margin-right: 32rpx;
font-weight: 600;
font-size: 28rpx;
color: #FFFFFF80;
}
.wrapper .search_box{
padding-bottom: 16rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
}
.wrapper .search_box image{
width: 32rpx;
height: 32rpx;
}
.wrapper .search_box .clear_icon{
flex-shrink: 0;
padding: 10rpx;
}
.wrapper .search_box .search-input {
width: 496rpx;
height: 72rpx;
background: rgba(255, 255, 255, .15);
border-radius: 38px;
padding: 0 16rpx;
box-sizing: border-box;
}
.wrapper .search_box .search-input .input{
display: flex;
align-items: center;
height: 100%;
color: #FFFFFF;
}
.wrapper .search_box .search-input .input .icon{
margin-right: 8rpx;
}
.wrapper .search_box .search-input .input_box{
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.wrapper .search_box .search-input .placeholder{
color: #BEC1C7;
}
.wrapper .element{
position: relative;
padding: 24rpx 0;
padding-left: 16rpx;
padding: 32rpx 0;
padding-left: 32rpx;
display: flex;
align-items: center;
}
.wrapper .element .label{
.wrapper .element .text_box{
display: flex;
flex-flow: column;
justify-content: center;
}
.wrapper .element .text_box .label{
font-weight: 500;
font-size: 30rpx;
color: #FFFFFF;
max-width: 334rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wrapper .element .img{
width: 64rpx;
height: 64rpx;
margin-right: 16rpx;
.label_no{
font-size: 24rpx;
color: #999EA8;
margin-top: 16rpx;
}
.wrapper .element image{
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
flex-shrink: 0;
}
.wrapper .active{
background: #FFFFFF15;
border-radius: 16rpx;
}
.wrapper .element .img{
display: none;
}
.wrapper .active .img{
display: block;
}
.wrapper .active .gap_icon{
display: none;
}
.wrapper .mine{
display: flex;
align-items: center;
......
......@@ -28,9 +28,13 @@ Component({
},
lifetimes: {
ready() {
console.log('lifetimes',this.data.tabIndex);
console.log('lifetimes',this.data.activeIndex);
// console.log('lifetimes',this.data.tabIndex);
// console.log('lifetimes',this.data.activeIndex);
this.setTab(this.data.tabIndex)
let that = this
wx.$eventbus.on('page_show', n => {
!that.data.width && that.setTab(that.data.tabIndex)
})
}
},
/**
......@@ -66,7 +70,8 @@ Component({
setTimeout(() => {
this.setData({
activeStyle: `width:${width}px;left:${left}px;background-color:#3582EE;`,
tabIndex: index
tabIndex: index,
width
})
this.triggerEvent('click', index)
}, 100)
......
// components/tabMine/TabMine.js
import api from '../../tabMine/api'
const app = getApp()
import constantData from '../../pages/constant/data'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/mine/'
Component({
/**
* 组件的属性列表
*/
properties: {
navBarHeight: {
type: Number,
value: 0
},
},
/**
* 组件的初始数据
*/
data: {
IMG_URL,
isYqdSuper: '',
selectedSceneName: '',
userInfo: {}
},
lifetimes: {
ready() {
let userInfo = wx.$util.getUserInfo()
this.setData({
isYqdSuper: app.globalData.isYqdSuper,
selectedSceneName: constantData?.sceneList?.filter(val => val.sceneType == userInfo?.sceneType)[0]?.sceneName,
selectedSceneDesc: constantData?.sceneList?.filter(val => val.sceneType == userInfo?.sceneType)[0]?.sceneDesc,
userInfo
})
if (userInfo.createdDate) {
let date = userInfo.createdDate + ''
date = date.replace(/-/g, '/').split(' ')[0] // 日期格式处理
this.setData({
['userInfo.createdTime']: date
})
}
this.getVersionInfo()
}
},
/**
* 组件的方法列表
*/
methods: {
// 获取版本信息
async getVersionInfo() {
const versionData = await getApp().getVersionInfo()
this.setData({
versionData
})
},
// 更新日志
goVersionPage() {
wx.$router.go('pages.log')
},
// 切换场景
changeScene() {
wx.$util.pointRecord(31)
wx.$router.go('pages.changeScene')
},
// 切换账号
changeAccount() {
wx.$router.reLaunch('pages.accountItems')
},
// 退出登录
logout() {
let _this = this
wx.showModal({
title: '温馨提示',
content: '是否退出当前账号?',
confirmColor: '#3582EE',
success(res) {
if (res.confirm) {
_this.setData({
flag: true
})
wx.showLoading()
api.logout().then(_res_ => {
let { code, message } = _res_
if (code == 0) {
app.login(false)
} else {
_this.setData({
flag: false
})
wx.showToast(message)
}
})
}
}
})
}
}
})
{
"component": true,
"usingComponents": {},
"navigationStyle": "custom"
}
\ No newline at end of file
<!--components/tabMine/TabMine.wxml-->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view class="bg"></view>
<block>
<block>
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{userInfo.userAvatarUrl}}">
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block >
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="select_item">
<view class="scene_message">
<view class="scene_icon" wx:if="{{userInfo.sceneType >= 0}}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{userInfo.sceneType}}.png" mode=""/>
</view>
<view class="scene_text">
<view class="name">
<view>{{selectedSceneName}}</view>
<view class="name_tips">当前</view>
</view>
<view class="tips">{{selectedSceneDesc}}</view>
</view>
</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view> -->
<view class="set_box">
<!-- <view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
</view>
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="title">录单设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode=""/>
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""/>
</view>
</view>
<!-- <view class="version_box" bindtap="goVersionPage">
<view class="item">
<view class="icon_box">
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
</view>
<view>更新日志</view>
</view>
</view> -->
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</block>
<!-- <block wx:if="{{showWorkBox}}">
<view class="work-box" catchtouchmove="noScroll">
<view class="work-bg" bindtap="showWork" />
<view class="work-content">
<view class="work-title text-center hasborder">工位设置</view>
<view class="work-body">
<block wx:for="{{workItem}}" wx:key="index">
<view class="item hasborder">
<view class="label">{{item.label}}</view>
<view class="value">
<view
class="minus {{userInfo.userType == 2 ?'disabled':''}}"
bindtap="addWorkCount"
data-count="{{-1}}"
data-index="{{index}}"
bindlongtap="addWorkCount"
bindtouchend="touchend"
bindtouchstart="touchstart">
-
</view>
<view class="input text-center {{userInfo.userType == 2 ?'disabled':''}}">
{{item.maxCount}}
</view>
<view
class="add {{userInfo.userType == 2 ?'disabled':''}}"
bindtap="addWorkCount"
data-count="{{1}}"
data-index="{{index}}"
bindlongtap="addWorkCount"
bindtouchend="touchend"
bindtouchstart="touchstart">
+
</view>
个
</view>
</view>
</block>
<view class="item hasborder">
<view class="label">周六施工</view>
<switch
class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}"
color="#3582EE"
isYqdSuper="{{isYqdSuper}}"
checked="{{saturdayFlag}}"
bindchange="changeSwitch"
data-target="saturdayFlag" />
</view>
<view class="item hasborder">
<view class="label">周日施工</view>
<switch
class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}"
color="#3582EE"
checked="{{sundayFlag}}"
bindchange="changeSwitch"
data-target="sundayFlag" />
</view>
<view class="tips">设置门店每日每个时段可接待的客户人数, 施工时段以1个半小时为准,请合理安排施工进度</view>
</view>
<view class="work-footer">
<view class="cancel text-center" bindtap="showWork">取消</view>
<view class="confirm text-center" bindtap="confirm">确定</view>
</view>
</view>
</view>
</block>
<switch-popup
show="{{showMerchantPop}}"
height="{{merchantPopConfig.height}}"
title="{{merchantPopConfig.title}}"
isYqdSuper="{{isYqdSuper}}"
tips="{{merchantPopConfig.tips}}" /> -->
</block>
/* tabComponents/pages/index/index.wxss */
.pagedetail {
position: relative;
}
.bg {
width: 100%;
height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png') no-repeat;
background-size: 100% 526rpx;
background-color: #fff;
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.user-box {
position: relative;
border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF;
font-size: 28rpx;
color: #333333;
}
.user-avatar {
width: 108rpx;
height: 108rpx;
overflow: hidden;
border-radius: 100%;
position: absolute;
left: 50rpx;
top: -32rpx;
}
.name_box{
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx;
}
.name_box .name {
font-size: 40rpx;
color: #323436;
font-weight: 600;
max-width: 400rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.change_btn{
width: 134rpx;
height: 48rpx;
background: rgba(53, 180, 238, .1);
color: #3582EE;
font-size: 24rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 24rpx;
}
.user-info {
padding: 0 50rpx;
}
.user-text {
width: 100%;
}
.user-text .item {
color: #5A6066;
font-size: 24rpx;
margin: 4rpx;
}
.scene_box{
margin: 20rpx;
margin-top: 48rpx;
box-sizing: border-box;
height: 236rpx;
background: #b8d6ff1a;
border-radius: 16rpx;
padding: 20rpx 32rpx;
}
.scene_box .title {
color: #323436;
font-size: 28rpx;
font-weight: 600;
margin-bottom: 20rpx;
}
.select_item{
display: flex;
align-items: center;
justify-content: space-between;
}
.select_item .scene_message{
display: flex;
align-items: center;
}
.select_item .scene_icon{
width: 128rpx;
height: 128rpx;
margin-right: 24rpx;
}
.select_item .scene_text .name{
color: #333333;
font-size: 32rpx;
font-weight: 500;
display: flex;
align-items: center;
}
.select_item .scene_text .name .name_tips{
width: 64rpx;
height: 30rpx;
line-height: 30rpx;
text-align: center;
font-size: 24rpx;
background: #ff9d0a0d;
border: 1rpx solid #ff9d0a4d;
color: #FF9D0A;
border-radius: 4rpx;
margin-left: 4rpx;
}
.select_item .scene_text .tips{
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.select_item .change_btn{
margin: 0;
}
.set_box{
margin: 20rpx;
margin-top: 48rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
align-items: center;
}
.set_box .set_item{
box-sizing: border-box;
width: 344rpx;
height: 168rpx;
border-radius: 16rpx;
display: flex;
flex-flow: column;
justify-content: center;
padding: 0 32rpx;
margin-bottom: 20rpx;
position: relative;
}
.set_box .set_item .icon_image{
width: 120rpx;
height: 120rpx;
position: absolute;
right: 0;
bottom: 0;
}
.set_box .set_item .title .arrow_icon{
width: 40rpx;
height: 40rpx;
}
.set_box .item_1{
background: #F8FFFD;
}
.set_box .item_2{
background: #F8F9FF;
}
.set_box .item_3{
background: #F6FCFE;
}
.set_box .item_4{
background: #FFF8F8;
}
.set_box .set_item .title{
font-weight: 500;
font-size: 28rpx;
color: #333333;
letter-spacing: 0;
}
.set_box .set_item .set_tips{
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
text-overflow:ellipsis;
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
.version_box{
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
align-items: center;
font-size: 24rpx;
color: #323436;
}
.version_box .icon_box{
width: 90rpx;
height: 90rpx;
background: #FAFAFA;
border-radius: 16rpx;
position: relative;
}
.version_box .item{
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.version_box .is_new {
font-size: 20rpx;
text-align: center;
color: #fff;
position: absolute;
top: -14rpx;
right: -28rpx;
background-image: linear-gradient(0deg, #347BFF 0%, #3B8FFE 100%);
width: 56rpx;
height: 28rpx;
line-height: 28rpx;
border-radius: 4rpx;
}
.version_box .is_new::before {
content: "";
position: absolute;
top: 8rpx;
left: -6rpx;
transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */
border-width: 6rpx;
border-style: solid;
border-color: transparent transparent #007bff transparent;
}
.logout {
position: absolute;
bottom: 106rpx;
left: 50%;
transform: translateX(-50%);
width: 326rpx;
height: 80rpx;
background: #FFFFFF;
border: 2rpx solid #DCDEE0;
border-radius: 12rpx;
color: #6C6C70;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file
......@@ -10,8 +10,7 @@ Component({
properties: {
navStyle: String,
showBack: Boolean,
showMenu: Boolean,
navStyle: String
showMenu: Boolean
},
/**
......@@ -45,7 +44,8 @@ Component({
_this.setData({
statusBarHeight,
navigationBarHeight,
navigationBarStyle: `font-size:${fontSizeSetting}px;`,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`,
navigationBarStyle: 'font-size: 34rpx',
navigationBarTextWidth: `width:${navigationBarWidth}px;padding:0 ${navigationBarPadding}px; 0 ${navigationBarPadding}px;`
})
}
......
......@@ -18,11 +18,13 @@
}
.navigation-bar-titleText{
color: #333333;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 17px;
color: #2D2D2E;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
box-sizing: border-box;
text-align: center;
}
......
......@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 4
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false
const manual = true
const release = false
// 判断小程序环境
......

1.89 KB | W: | H:

1.51 KB | W: | H:

images/tab-date-active.png
images/tab-date-active.png
images/tab-date-active.png
images/tab-date-active.png
  • 2-up
  • Swipe
  • Onion skin

2.19 KB | W: | H:

1.55 KB | W: | H:

images/tab-date.png
images/tab-date.png
images/tab-date.png
images/tab-date.png
  • 2-up
  • Swipe
  • Onion skin

1.74 KB | W: | H:

1.82 KB | W: | H:

images/tab-equity-active.png
images/tab-equity-active.png
images/tab-equity-active.png
images/tab-equity-active.png
  • 2-up
  • Swipe
  • Onion skin

2.18 KB | W: | H:

1.9 KB | W: | H:

images/tab-equity.png
images/tab-equity.png
images/tab-equity.png
images/tab-equity.png
  • 2-up
  • Swipe
  • Onion skin

1.13 KB | W: | H:

1.55 KB | W: | H:

images/tab-mine-active.png
images/tab-mine-active.png
images/tab-mine-active.png
images/tab-mine-active.png
  • 2-up
  • Swipe
  • Onion skin

1.43 KB | W: | H:

1.64 KB | W: | H:

images/tab-mine.png
images/tab-mine.png
images/tab-mine.png
images/tab-mine.png
  • 2-up
  • Swipe
  • Onion skin

964 Bytes | W: | H:

1.03 KB | W: | H:

images/tab-order-active.png
images/tab-order-active.png
images/tab-order-active.png
images/tab-order-active.png
  • 2-up
  • Swipe
  • Onion skin

956 Bytes | W: | H:

1.06 KB | W: | H:

images/tab-order.png
images/tab-order.png
images/tab-order.png
images/tab-order.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -12,6 +12,11 @@
"resolved": "https://registry.npmmirror.com/glsx-applet-component/-/glsx-applet-component-1.1.25.tgz",
"integrity": "sha512-tE84hW6y+1YG6hFroDEUvP/0rC0Bsgk/Z+xkKfp2++V3qs/7xFtYvz15ShThMSemLd7lcZCi0aMh9Xp4QNytLA=="
},
"glsx-common-sdk": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/glsx-common-sdk/-/glsx-common-sdk-0.2.8.tgz",
"integrity": "sha512-qCDUBRvJwE2Gs1PLwB+fHOSFPgB5W5fwYC3GSBSjMQOxs4keeOvd7o5wIb7bNakp0xF6ARPqpC/xm3hZ9TRW6A=="
},
"number-precision": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/number-precision/-/number-precision-1.6.0.tgz",
......
......@@ -3,6 +3,7 @@
"@vant/weapp": "^1.10.24",
"glsx-applet-component": "^1.1.25",
"number-precision": "^1.6.0",
"rfdc": "^1.3.0"
"rfdc": "^1.3.0",
"glsx-common-sdk": "^0.2.8"
}
}
......@@ -54,5 +54,9 @@ module.exports = {
/** 修改订单备注 */
updateOrderRemark(data) {
return api.post('dj.api.smartcarlife.order.updateRemark', data)
},
/** 获取首页统计数据 */
getStaticData(data) {
return api.post('dj.api.smartcarlife.shopmallActivity.getMerchantCrowdfundingStatistics', data)
}
}
// pages/equity/index.js
import { get4SStoreList } from '~/store/index'
import { waitinputorder } from '../../api'
const app = getApp()
let time = null
Page({
/**
* 页面的初始数据
*/
data: {
tabBarList: [
{
name: '首页',
iconPath: '/images/tab-home.png',
selectedIconPath: '/images/tab-home-active.png'
},
{
name: '活动管理',
iconPath: '/images/tab-date.png',
selectedIconPath: '/images/tab-date-active.png'
},
{
name: '个人中心',
iconPath: '/images/tab-mine.png',
selectedIconPath: '/images/tab-mine-active.png'
}
],
tabIndex: 0,
pageShow: [true, false, false],
navBarHeight: 0,
showPicker: false,
userInfo: {},
selectStroeIndex: 0,
shopSideSelectPopup: false,
mode: 1,
tipsProps: false,
waitInputCount: 0,
isStaff: false,
storeRange: []
// hasMode:true
},
init(userInfo) {
this.setData({ userInfo })
this.get4SStoreList()
// this.test()
},
get4SStoreList() {
let userInfo = wx.$util.getUserInfo()
let params = {
merchantId: userInfo?.isSuper ? '' : userInfo?.merchantId,
staffUUID: userInfo?.isSuper ? '' : userInfo?.uuid,
scene: 3
}
get4SStoreList(params).then(result => {
if (!result?.length) {
userInfo.shopMerchantId = null
userInfo.default4SStoreInfo_crowdFunding = {}
userInfo.shopMerchantName = null
userInfo.sceneType = null
wx.$util.setUserInfo(userInfo)
return wx.$router.reLaunch('pages.accountItems')
}
if (result?.length && userInfo?.isSuper) {
let obj = {
...userInfo,
default4SStoreInfo_crowdFunding: {
merchantId: result[0]?.merchantId,
merchantName: result[0]?.merchantName
}
}
if (!userInfo?.default4SStoreInfo_crowdFunding || !Object.keys(userInfo?.default4SStoreInfo_crowdFunding).length) {
wx.$util.setUserInfo(obj)
this.setData({
userInfo: obj
})
}
}
this.setData({
storeRange: result || [],
showPage: true
})
})
},
changeTabBar(e) {
let tabIndex = e.detail
wx.$eventbus.emit('page_show')
this.setData({
[`pageShow[${tabIndex}]`]: true,
tabIndex
})
this.initList()
},
initList() {
let { tabIndex } = this.data
this.selectComponent(`#page-${tabIndex}`)?.onLoad && this.selectComponent(`#page-${tabIndex}`).onLoad()
},
showMenuPopup() {
this.setData({
shopSideSelectPopup: true
})
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
onRoute(options) {
// console.log(options,'options');
if (options&&options.tabIndex) {
this.changeTabBar({detail:options.tabIndex})
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.initList()
// let { tabIndex } = this.data
// this.selectComponent(`#page-${tabIndex}`)?.onLoad && this.selectComponent(`#page-${tabIndex}`).onLoad()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
time && clearTimeout(time)
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
time && clearTimeout(time)
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
})
{
"usingComponents": {
"acitivity-detail": "../../components/activityDetail/activityDetail",
"popup-manner": "../../components/popupManner/popupManner",
"top-select-picker": "../../components/topSelectPicker/topSelectPicker"
"custom-tabBar": "/components/CustomTabBar/CustomTabBar",
"side-select-popup": "/components/SideSelectPopup/SideSelectPopup",
"home-page": "../homePage/index/index",
"activity-page": "../activityPage/paidOrder/orderList",
"tab-mine": "/components/TabMine/TabMine"
},
"navigationStyle": "custom"
}
<!-- pages/equity/index.wxml -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{ true }}" navStyle="{{tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;'}}" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{tabIndex != 3}}">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo_crowdFunding && userInfo.default4SStoreInfo_crowdFunding.merchantName}}</view>
</view>
<view wx:else>我的</view>
</navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{waitInputCount && mode == 1?'tipsHeigh':''}}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ navBarHeight && showPage }}">
<home-page id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}"> </home-page>
<activity-page id="page-1" class="pagedetail {{ tabIndex == 1?'':'hide' }}"> </activity-page>
<tab-mine id="page-2" class="pagedetail {{ tabIndex == 2?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block>
</view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#3582EE" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}"/>
\ No newline at end of file
/* pages/equity/index.wxss */
.navigation-header .navigation-bar {
background-color: transparent;
box-shadow: none;
background-color: transparent;
box-shadow: none;
}
.hide {
display: none;
display: none;
}
.show {
display: block;
display: block;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
margin-left: 4rpx;
transform: rotate(180deg);
transition: all 0.5s;
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
margin-left: 4rpx;
transform: rotate(180deg);
transition: all 0.5s;
}
.navigation-title .move {
transform: rotate(270deg);
transform: rotate(270deg);
}
.layout {
box-sizing: border-box;
position: relative;
font-size: 24rpx;
color: #8A8C90;
display: flex;
flex-direction: column;
height: calc(100vh - 100rpx - env(safe-area-inset-bottom));
height: calc(100vh - 100rpx - constant(safe-area-inset-bottom));
overflow: hidden;
}
.tipsHeigh{
height: calc(100vh - 100rpx - 72rpx - env(safe-area-inset-bottom));
height: calc(100vh - 100rpx - 72rpx - constant(safe-area-inset-bottom));
}
.layout .pagedetail {
height: 100%;
}
.waitOrderCon {
position: absolute;
/* bottom: env(safe-area-inset-bottom); */
bottom: constant(safe-area-inset-bottom);
/* height: calc(100vh - 100rpx - 72rpx - env(safe-area-inset-bottom));
height: calc(100vh - 100rpx - 72rpx - constant(safe-area-inset-bottom)); */
width: 100%;
}
\ No newline at end of file
/* packageCrowdFunding/pages/activityList/activityList.wxss */
\ No newline at end of file
// packageCrowdFunding/pages/activityList/activityList.js
import api from '../../api'
import api from '~/packageCrowdFunding/api'
const app = getApp()
Page({
/**
......
{
"usingComponents": {
"top-select-picker": "../../components/topSelectPicker/topSelectPicker",
"activity-list": "../../components/activityList/activityList"
"acitivity-detail": "../components/activityDetail/activityDetail",
"popup-manner": "/packageCrowdFunding/components/popupManner/popupManner",
"top-select-picker": "/packageCrowdFunding/components/topSelectPicker/topSelectPicker"
},
"navigationStyle": "custom"
}
......@@ -10,11 +10,11 @@
<view class="layout" style="padding-top:{{navBarHeight}}px;position: relative;">
<block wx:if="{{showActivityDetail}}">
<acitivity-detail id="acitivity-detail" activityId="{{activityId}}" activityName="{{activityName}}"></acitivity-detail>
<acitivity-detail id="acitivity-detail" activityId="{{activityId}}" activityName="{{activityName}}" navBarHeight="{{navBarHeight}}"></acitivity-detail>
</block>
</view>
<!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 -->
<image data-target="addOrder" wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}" bind:tap="showMannerPicker" class="addOrder" src="./../../images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<image data-target="addOrder" wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}" bind:tap="showMannerPicker" class="addOrder" src="/packageCrowdFunding/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<popup-manner show="{{showPicker}}" activityName="{{activityName}}" activityId="{{activityId}}" bindconfirm="changePicker"></popup-manner>
<top-select-picker show="{{showActivityPicker}}" selectObj="{{selectObj}}" defaultSelectInfo="{{defaultSelectInfo}}" items="{{activityListRange}}" bindsearch="getActivityList" bindconfirm="changePicker"></top-select-picker>
......
......@@ -2,7 +2,7 @@
// import { centsToyuan } from "~/utils/format";
import constantData from './constant/data'
import { getOrderDetail, createPayOrder, createPayOrderAPI, getSamePriceGoodsAPI, updateOrderRemark } from '../../api'
import { getOrderDetail, createPayOrder, createPayOrderAPI, getSamePriceGoodsAPI, updateOrderRemark } from '~/packageCrowdFunding/api'
import { createQrcodeImage, uploadImg } from '~/api/api'
import qrcode from '~/utils/lib/wxqrcode'
let time = null
......
{
"usingComponents": {
"activity-info": "../../components/activityInfoCom/activityInfoCom",
"activity-info": "../components/activityInfoCom/activityInfoCom",
"picker-select": "/packageCrowdFunding/components/PickerSelect/PickerSelect"
},
"navigationStyle": "custom"
......
<!-- packageCrowdFunding/pages/balanceNote/balanceNote.wxml -->
<wxs src="../balanceNote/index.wxs" module="filter" />
<wxs src="../../index.wxs" module="filter2" />
<wxs src="/packageCrowdFunding/index.wxs" module="filter2" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="big-img page-box isFullSucreen">
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/arrow-left.png" />
<image src="/packageCrowdFunding/images/arrow-left.png" />
</view>
<view class="navigation-title-text">去支付</view>
</view>
......
// packageCrowdFunding/pages/additionRecordOrder/additionRecordOrder.js
import constantData from './constant/data'
import api from '../../api'
import api from '~/packageCrowdFunding/api'
const app = getApp()
Page({
/**
......
......@@ -3,7 +3,7 @@
import constantData from './constant/data'
const app = getApp()
import api from '../../api'
import api from '~/packageCrowdFunding/api'
Page({
/**
......
{
"usingComponents": {
"activity-info": "../../components/activityInfoCom/activityInfoCom",
"activity-info": "../components/activityInfoCom/activityInfoCom",
"order-no-popup": "/components/OrderNoPopup/OrderNoPopup",
"picker-select": "/packageCrowdFunding/components/PickerSelect/PickerSelect",
"gl-form": "/packageCrowdFunding/components/GLForm/GLForm"
......
......@@ -3,7 +3,7 @@
<view class="big-img page-box isFullSucreen">
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/arrow-left.png"></image>
<image src="/packageCrowdFunding/images/arrow-left.png"></image>
</view>
<view class="navigation-title-text">
去支付
......@@ -20,7 +20,7 @@
{{orderInfo.outTradeNo}}
</view>
<view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view>
<image class="right" src="../../../images/arrow-right.png"/>
<image class="right" src="/images/arrow-right.png"/>
</view>
</view>
</view>
......
import Api from '../../api'
import Api from '~/packageCrowdFunding/api'
Component({
options: {
......@@ -14,7 +14,8 @@ Component({
}
}
},
activityName: String
activityName: String,
navBarHeight: Number
},
lifetimes: {
attached() {
......@@ -171,7 +172,7 @@ Component({
getTotal() {
let {storeInfo} = this.data
getQuotationStatistics({merchantId: storeInfo?.merchantId}).then(res => {
getQuotationStatistics({shopMerchantId: storeInfo?.merchantId}).then(res => {
// console.log(res, '统计---')
let {code, message} = res
let data = res.data ? {
......
<wxs src="index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="headerBar">
<!-- <view class="headerBar">
<view class="totalCount">
<view class="left box">
<view class="label">今日产值</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{filter.priceFilter(statisticsObj.todayOutput || 0)}}</view>
<!-- <view class="decimal">.{{statisticsObj.todayTurDecimal}}</view>-->
</view>
<view class="count num">
今日成交量/单
......@@ -20,7 +19,6 @@
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{filter.priceFilter(statisticsObj.output || 0)}}</view>
<!-- <view class="decimal">.{{statisticsObj.totalTurDecimal}}</view>-->
</view>
<view class="count num">
累计订单量/单
......@@ -28,16 +26,16 @@
</view>
</view>
</view>
</view>
</view> -->
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="main">
<view class="main" style="height: calc(100vh - {{navBarHeight}}px);">
<view class="to-box">
<view class="search-box">
<view class='select_box'>
<view class='select' catchtap='selectTap'>
<view class='select_text'>{{selectData[selectIndex]}}</view>
<image class='select_img {{showSelect&&"select_img_rotate"}}' src='../../../images/arrow-right.png'></image>
<image class='select_img {{showSelect&&"select_img_rotate"}}' src='/images/arrow-right.png'></image>
</view>
<view class='option_box' wx:if="{{showSelect}}" style="padding: {{ showSelect ? '20rpx 34rpx' : ''}}">
<view class='option' wx:for='{{selectData}}' wx:key='this' data-index='{{index}}' catchtap='optionTap'>{{item}}</view>
......@@ -71,7 +69,7 @@
<view class="header-cust">
<view class="cust-name">{{item.customerName}}</view>
<view class="cust-phone">{{item.customerPhone}}</view>
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="../../images/copy-text.png" mode=""/>
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="/packageCrowdFunding/images/copy-text.png" mode=""/>
</view>
<view class="header-status">
<view wx:if="{{ item.tailOrderStatus =='1'}}">
......@@ -96,7 +94,7 @@
<block wx:else>
<view wx:if="{{i.key == 'subOrderCode'}}" class="ordercode-class">
{{item[i.key] || ''}}
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="../../images/copy-text.png" mode=""/>
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="/packageCrowdFunding/images/copy-text.png" mode=""/>
</view>
<view wx:else>
{{item[i.key] || ''}}
......
.main {
margin-top: -20rpx;
/* margin-top: -20rpx; */
background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0;
overflow: hidden;
height: calc(100% - 260rpx);
}
.to-box {
......@@ -17,7 +16,7 @@
.search-box {
width: calc(100% - 64rpx);
margin: 53rpx 32rpx 0;
margin: 34rpx 32rpx 0;
display: flex;
background-color: #fff;
position: sticky;
......
<wxs src="../../index.wxs" module="filter" />
<wxs src="/packageCrowdFunding/index.wxs" module="filter" />
<view class="orderInfoCom">
<view class="title">订单信息</view>
<view class="info">
......
......@@ -19,7 +19,7 @@
<block wx:if="{{payVoucher.length > 0}}">
<view class="payVoucher_image" wx:for="{{payVoucher}}" wx:key="index">
<image bindtap="previewImage" data-index="{{index}}" data-url="{{payVoucher}}" src="{{item}}"/>
<image class="del_icon" src="../../../images/del_icon.png" mode="" bindtap="delCustomPayVoucher" data-index="{{index}}"/>
<image class="del_icon" src="/packageCrowdFunding/images/del_icon.png" mode="" bindtap="delCustomPayVoucher" data-index="{{index}}"/>
</view>
</block>
<block wx:if="{{payVoucher.length < 5}}">
......
......@@ -2,7 +2,7 @@
import constantData from './constant/data'
import fn from './constant/ruleFn'
const app = getApp()
import api from '../../api'
import api from '~/packageCrowdFunding/api'
Page({
/**
* 页面的初始数据
......
// import activityList from './constant/data'
import activityApi from '../../api'
import activityApi from '~/packageCrowdFunding/api'
import {getStaffListByMerchant} from "~/store/index"
const app = getApp()
Component({
/**
* 页面的初始数据
......@@ -56,12 +57,19 @@ Component({
storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo_crowdFunding || {}
})
if (!noGetList) this.getActivityList(true)
this.getReferenceData()
},
onBottomRefresh() {
this.getActivityList()
},
async getReferenceData() {
let { storeInfo } = this.data
let result = await getStaffListByMerchant({merchantId: storeInfo?.merchantId})
app.globalData.staffListRange = result || []
},
getActivityList(isReset = false) {
let { pageSize, pageNum, activityName, storeInfo, nothing, tabIndex, activityStatusList, tabList } = this.data
if (nothing) {
......
......@@ -28,7 +28,7 @@
bindrefresherrefresh="search"
bindscrolltolower="onBottomRefresh"
class="list"
style="height:calc(100vh - {{navBarHeight}}px - 208rpx);"
style="height:calc(100% - 208rpx);"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!