feat: 统一环境配置并移除本地测试登录入口

新增 config/env.js 管理 local/test/prod 网关,清理调试登录与页面联调相关改动。
This commit is contained in:
liluo293254 2026-08-07 08:47:52 +08:00
parent a5a558eff3
commit 11c5647ae5
127 changed files with 18476 additions and 18298 deletions

View File

@ -1,14 +1,12 @@
const host = 'https://api.hshuishang.com/api/v1'; // 与 utils/util.js 共用同一基址,避免生产/测试混用
const util = require('../utils/util.js')
const host = (util.server_url || 'https://test.hshuishang.com/api/v1').replace(/\/$/, '')
// 水机
const httpUserUrl = host + '/waters';
const httpUserUrl = host + '/waters'
const apiAddr = { const apiAddr = {
host: host, host: host,
// 处理主办激活请求
board_activation: httpUserUrl + '/board-activation', board_activation: httpUserUrl + '/board-activation',
} }
module.exports = apiAddr; module.exports = apiAddr

View File

@ -1,7 +1,8 @@
const pay = '/lakala/preorder' //预下单 const pay = '/lakala/preorder' //预下单
const queryPay = '/lakala/trade-query' //查询交易结果 const queryPay = '/lakala/trade-query' //查询交易结果
const queryPayByWechat = '/wechat/water/query_pay' //查询交易结果 const queryPayByWechat = '/lakala/trade-query' // 原 /wechat/water/query_pay 不存在,统一走拉卡拉查单
const HsqueryPay = '/lakala/hs-preorder' //预下单 const HsqueryPay = '/lakala/hs-preorder' //预下单
const HsqueryPayByWechat = '/lakala/hs-trade-query' //查询交易结果 const HsqueryPayByWechat = '/lakala/hs-trade-query' //查询交易结果

View File

@ -10,13 +10,15 @@ const getdeviceListByid = '/wechat/water/device/parts-list' //根据id获取可
const createDeviceOrder = '/wechat/water/device/parts-buy' //创建配件购买订单 const createDeviceOrder = '/wechat/water/device/parts-buy' //创建配件购买订单
const changeOrderState = '/wechat/water/device/pay-parts-buy' //变更滤芯订单状态 const changeOrderState = '/wechat/water/pay-order-fail' // 已废弃 pay-parts-buy失败回写请用 payFail / PayJs.payFail
const getOrderPayList = '/wechat/water/device/parts-buy-list' //滤芯购买记录 const getOrderPayList = '/wechat/water/device/parts-buy-list' //滤芯购买记录
const getFilterChangeList = '/wechat/water/dealer/part-replace-list' //滤芯购买记录 const getFilterChangeList = '/wechat/water/dealer/part-replace-list' //滤芯购买记录
const resetFilter = '/waters/reset-filter' //重置滤芯 const resetFilter = '/waters/reset-filter' // 经销商/师傅重置(管理端 JWT / atoken
const resetFilterUser = '/wechat/water/device/reset-filter' // 用户重置wechat 域 / ctoken
// const getUserBanlance = '/wechat/water/device/balance' //我的余额 // const getUserBanlance = '/wechat/water/device/balance' //我的余额
@ -220,6 +222,7 @@ const apiArr = {
getOrderPayList, getOrderPayList,
getFilterChangeList, getFilterChangeList,
resetFilter, resetFilter,
resetFilterUser,
// getUserBanlance, // getUserBanlance,
getTotalBanlance, getTotalBanlance,
getOrderBuyList, getOrderBuyList,

41
app.js
View File

@ -1,6 +1,8 @@
import apiArr from './api/water_filter';
import util from './utils/util'; import util from './utils/util';
import apiAddr from '/api/base'; import apiAddr from '/api/base';
// Page 注入 staticUrl不包装 Component避免 Vant wx://not-found
require('./utils/inject-static.js')
App({ App({
globalData: { globalData: {
@ -14,42 +16,15 @@ App({
isShare: false, // 用于判断是否来源于分享 isShare: false, // 用于判断是否来源于分享
nav_list:[], nav_list:[],
foot_width:'20%', foot_width:'20%',
appid: 'wx1addb25675dd8e70' appid: 'wx77b22c0a0018e580', // 与 project.config.json 一致
staticUrl: util.static_url,
}, },
// 社区页脚导航已废弃:原 apiArr.footer / successfn 未定义,启动必崩,故短路
getFootNav() { getFootNav() {
console.log(789789); this.globalData.nav_list = []
let that = this; this.globalData.foot_width = '20%'
// util.postUrl(apiArr.footer,{},res=>{
// that.globalData.nav_list = res;
// that.globalData.foot_width = (100 / res.length).toFixed(2) + '%';
// })
wx.request({
url: apiArr.footer,
data: {},
method: 'POST',
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: f => {
console.log('successddd');
if (f.data.code == "-101" || f.data.code == "-102") {
successfn(f.data);
} else if (f.data.code == "-103") {
successfn(f.data);
} else {
successfn(f.data);
}
},
error: f => {
console.log('error');
wx.showToast({
title: '系统繁忙',
icon: 'none'
})
}
})
}, },
onLaunch(options) { onLaunch(options) {
let that = this; let that = this;

View File

@ -129,6 +129,7 @@
} }
], ],
"requiredPrivateInfos": [ "requiredPrivateInfos": [
"getLocation"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
@ -158,16 +159,16 @@
"van-datetime-picker": "/miniprogram_npm/vant-weapp/datetime-picker/index", "van-datetime-picker": "/miniprogram_npm/vant-weapp/datetime-picker/index",
"van-popup": "/miniprogram_npm/vant-weapp/popup/index", "van-popup": "/miniprogram_npm/vant-weapp/popup/index",
"van-circle": "/miniprogram_npm/vant-weapp/circle/index", "van-circle": "/miniprogram_npm/vant-weapp/circle/index",
"van-checkbox": "/miniprogram_npm/vant-weapp/checkbox", "van-checkbox": "/miniprogram_npm/vant-weapp/checkbox/index",
"van-checkbox-group": "/miniprogram_npm/vant-weapp/checkbox-group", "van-checkbox-group": "/miniprogram_npm/vant-weapp/checkbox-group/index",
"van-area": "/miniprogram_npm/vant-weapp/area/index", "van-area": "/miniprogram_npm/vant-weapp/area/index",
"van-dropdown-menu": "/miniprogram_npm/vant-weapp/dropdown-menu", "van-dropdown-menu": "/miniprogram_npm/vant-weapp/dropdown-menu/index",
"van-dropdown-item": "/miniprogram_npm/vant-weapp/dropdown-item", "van-dropdown-item": "/miniprogram_npm/vant-weapp/dropdown-item/index",
"van-notice-bar": "/miniprogram_npm/vant-weapp/notice-bar", "van-notice-bar": "/miniprogram_npm/vant-weapp/notice-bar/index",
"van-empty": "/miniprogram_npm/vant-weapp/empty", "van-empty": "/miniprogram_npm/vant-weapp/empty/index",
"van-picker": "/miniprogram_npm/vant-weapp/picker", "van-picker": "/miniprogram_npm/vant-weapp/picker/index",
"van-radio": "/miniprogram_npm/vant-weapp/radio", "van-radio": "/miniprogram_npm/vant-weapp/radio/index",
"van-radio-group": "/miniprogram_npm/vant-weapp/radio-group", "van-radio-group": "/miniprogram_npm/vant-weapp/radio-group/index",
"van-stepper": "/miniprogram_npm/vant-weapp/stepper/index" "van-stepper": "/miniprogram_npm/vant-weapp/stepper/index"
}, },
"sitemapLocation": "sitemap.json", "sitemapLocation": "sitemap.json",

View File

@ -1,6 +1,7 @@
import apiAddr from '../../api/base'; import apiAddr from '../../api/base';
import { setData } from '../../utils/index'; import { setData } from '../../utils/index';
const __staticUrl = require('../../config/env.js').static_url
Component({ Component({
/** /**
@ -18,12 +19,12 @@ Component({
{ {
url:"/pages/water_filter/water_filter", url:"/pages/water_filter/water_filter",
nav_name:"设备", nav_name:"设备",
photo:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/deviceIcon.png" photo:(__staticUrl + '/water_filter/deviceIcon.png')
}, },
{ {
url:"/pages/info/info", url:"/pages/info/info",
nav_name:"我的", nav_name:"我的",
photo:"https://zhsq.hshuishang.com/attachs/navigation/2024/12/23/6768c0b16ce89.png" photo:(__staticUrl + '/person/Group_309.png')
}, },
], ],
foot_width:'50%', foot_width:'50%',

View File

@ -1,6 +1,7 @@
import apiAddr from '../../api/base'; import apiAddr from '../../api/base';
import { setData } from '../../utils/index'; import { setData } from '../../utils/index';
const __staticUrl = require('../../config/env.js').static_url
Component({ Component({
/** /**
@ -18,12 +19,12 @@ Component({
{ {
url:"/packages/master/masterIndex/index", url:"/packages/master/masterIndex/index",
nav_name:"首页", nav_name:"首页",
photo:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon3.png?1" photo:(__staticUrl + '/water_filter/partner/partner_icon3.png?1')
}, },
{ {
url:"/packages/master/PersonCen/index", url:"/packages/master/PersonCen/index",
nav_name:"我的", nav_name:"我的",
photo:"https://zhsq.hshuishang.com/attachs/navigation/2024/12/23/6768c0b16ce89.png" photo:(__staticUrl + '/person/Group_309.png')
}, },
], ],
foot_width:'50%', foot_width:'50%',

View File

@ -1,6 +1,7 @@
import apiAddr from '../../api/base'; import apiAddr from '../../api/base';
import { setData } from '../../utils/index'; import { setData } from '../../utils/index';
const __staticUrl = require('../../config/env.js').static_url
Component({ Component({
/** /**
@ -18,12 +19,12 @@ Component({
{ {
url:"/packages/partner/pages/partner", url:"/packages/partner/pages/partner",
nav_name:"首页", nav_name:"首页",
photo:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon3.png?1" photo:(__staticUrl + '/water_filter/partner/partner_icon3.png?1')
}, },
{ {
url:"/packages/partner/pages/mine/mine", url:"/packages/partner/pages/mine/mine",
nav_name:"我的", nav_name:"我的",
photo:"https://zhsq.hshuishang.com/attachs/navigation/2024/12/23/6768c0b16ce89.png" photo:(__staticUrl + '/person/Group_309.png')
}, },
], ],
foot_width:'50%', foot_width:'50%',

View File

@ -1,5 +1,6 @@
import { doNavigateWithUser } from '../../utils/helper'; import { doNavigateWithUser } from '../../utils/helper';
import apiAddr from '../../api/base'; import apiAddr from '../../api/base';
const env = require('../../config/env.js')
const app = getApp(); const app = getApp();
Component({ Component({
@ -15,6 +16,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
staticUrl: env.static_url,
qqmap_key: app.initQQMapKey(), qqmap_key: app.initQQMapKey(),
address: '定位中', address: '定位中',
selectKeyWord: '', selectKeyWord: '',

View File

@ -1,11 +1,11 @@
<view class="search"> <view class="search">
<view class="locat" catchtap="goPagesLink"> <view class="locat" catchtap="goPagesLink">
<image class="local_left_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/location.png" mode=""/> <image class="local_left_icon" src="https://static.hshuishang.com/User/_assets/location.png" mode=""/>
<text class="local_city">{{address}}</text> <text class="local_city">{{address}}</text>
<van-icon name="arrow-down" color="#2583FF " /> <van-icon name="arrow-down" color="#2583FF " />
</view> </view>
<view class='search_bar'> <view class='search_bar'>
<image class="search_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_36.png" mode=""/> <image class="search_icon" src="https://static.hshuishang.com/community/_assets/Group_36.png" mode=""/>
<!-- bindinput="searchInput" --> <!-- bindinput="searchInput" -->
<!-- bindblur="searchInput" --> <!-- bindblur="searchInput" -->
<input <input
@ -16,6 +16,6 @@
bindconfirm="searchInput" bindconfirm="searchInput"
value="{{ selectKeyWord }}" value="{{ selectKeyWord }}"
/> />
<!-- <image class="search_qrcode" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_49.png" mode=""/> --> <!-- <image class="search_qrcode" src="https://static.hshuishang.com/community/_assets/Group_49.png" mode=""/> -->
</view> </view>
</view> </view>

View File

@ -1,6 +1,6 @@
import { doNavigateWithUser } from '../../utils/helper'; import { doNavigateWithUser } from '../../utils/helper';
import { isObjEmpty } from '../../utils/index'; import { isObjEmpty } from '../../utils/index';
import { img_url } from '../../utils/util'; import { static_url } from '../../utils/util';
Component({ Component({
@ -32,7 +32,8 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
picUrl: img_url, picUrl: static_url,
staticUrl: static_url,
}, },
/** /**

View File

@ -7,7 +7,7 @@
</view> </view>
<view class="center">物业公司:{{item.shop.shop_name}}</view> <view class="center">物业公司:{{item.shop.shop_name}}</view>
<view class="address"> <view class="address">
<image class="address_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_50.png" mode=""/> <image class="address_icon" src="https://static.hshuishang.com/community/_assets/Group_50.png" mode=""/>
<view class="text-container"> <view class="text-container">
<text>{{item.addr}}</text> <text>{{item.addr}}</text>
</view> </view>
@ -15,11 +15,11 @@
<view class="bottom"> <view class="bottom">
<view class="bottom_left"> <view class="bottom_left">
<view class="btn" catch:tap="handleOptionClick"> <view class="btn" catch:tap="handleOptionClick">
<image class="btn_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Send.png" mode="aspectFill"/> <image class="btn_icon" src="https://static.hshuishang.com/community/_assets/Send.png" mode="aspectFill"/>
导航 导航
</view> </view>
<view class="btn mobile" catch:tap="headlePhoneClick"> <view class="btn mobile" catch:tap="headlePhoneClick">
<image class="btn_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Phone-telephone.png" mode=""/> <image class="btn_icon" src="https://static.hshuishang.com/community/_assets/Phone-telephone.png" mode=""/>
电话 电话
</view> </view>
</view> </view>

55
config/env.js Normal file
View File

@ -0,0 +1,55 @@
/**
* 净水机小程序环境仅本小程序
*
* APP_ENV:
* local 本机 8120需开发者工具勾选不校验合法域名
* test 测试网关
* prod 生产网关正式版 / 体验版发版必须用 prod
*
* 静态资源统一 https://static.hshuishang.com
*/
const APP_ENV = 'local' // local | test | prod正式/体验版必须 prod本机联调改为 local
const STATIC_URL = 'https://static.hshuishang.com'
const ALIYUN_OSS_URL = 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com'
const API = {
local: {
server_url: 'http://127.0.0.1:8120/api/v1',
api_host: 'http://127.0.0.1:8120',
},
test: {
server_url: 'https://test.hshuishang.com/api/v1',
api_host: 'https://test.hshuishang.com',
},
prod: {
server_url: 'https://api.hshuishang.com/api/v1',
api_host: 'https://api.hshuishang.com',
},
}
if (!API[APP_ENV]) {
throw new Error('config/env.js: APP_ENV must be local|test|prod, got ' + APP_ENV)
}
const api = API[APP_ENV]
const USE_LOCAL = APP_ENV === 'local'
module.exports = {
APP_ENV,
USE_LOCAL,
STATIC_URL,
CDN: {
development: { static_url: STATIC_URL, aliyun_oss_url: ALIYUN_OSS_URL },
production: { static_url: STATIC_URL, aliyun_oss_url: ALIYUN_OSS_URL },
},
ENV: {
local: { ...API.local, static_url: STATIC_URL, aliyun_oss_url: ALIYUN_OSS_URL },
test: { ...API.test, static_url: STATIC_URL, aliyun_oss_url: ALIYUN_OSS_URL },
prod: { ...API.prod, static_url: STATIC_URL, aliyun_oss_url: ALIYUN_OSS_URL },
},
server_url: api.server_url,
img_url: api.api_host,
static_url: STATIC_URL,
aliyun_oss_url: ALIYUN_OSS_URL,
}

View File

@ -1,6 +1,7 @@
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/WaterPurifier/pages/Addfriend/Addfriend.js // packages/WaterPurifier/pages/Addfriend/Addfriend.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -12,7 +13,7 @@ Page({
save() { save() {
wx.downloadFile({ wx.downloadFile({
url: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/customer.jpg', url: (__staticUrl + '/water_filter/customer.jpg'),
success(res) { success(res) {
if (res.statusCode === 200) { if (res.statusCode === 200) {
const tempFilePath = res.tempFilePath; // 获取临时文件路径 const tempFilePath = res.tempFilePath; // 获取临时文件路径
@ -125,14 +126,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -5,6 +5,7 @@ let PayJs = require('../../../../api/pay')
const app = getApp() const app = getApp()
import { areaList } from '../../data/index'; import { areaList } from '../../data/index';
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -268,15 +269,15 @@ Page({
util.postUrl2(PayJs.queryPay, { util.postUrl2(PayJs.queryPay, {
merchant_no: that.data.GoodsMsg.merchant_no, merchant_no: that.data.GoodsMsg.merchant_no,
term_no: that.data.GoodsMsg.term_no, term_no: that.data.GoodsMsg.term_no,
out_trade_no: that.data.orderMsg.OrderNo out_trade_no: that.data.orderMsg.order_no || that.data.orderMsg.OrderNo
}, res => { }, res => {
if (res.statusCode == '200') { if (res.statusCode == '200') {
// wx.requestSubscribeMessage({
// tmplIds:["5yPg-WOoP9-9ZU1fHjC4zg1KNaPWb76K87JzzKb58f0"]
// })
wx.showToast({ wx.showToast({
title: '支付成功!', title: '支付成功!',
}) })
setTimeout(() => {
wx.navigateBack({ delta: 1 })
}, 800)
} else { } else {
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg,
@ -335,14 +336,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
/** /**

View File

@ -4,6 +4,7 @@ import util, { postUrl } from '../../../../utils/util';
const app = getApp() const app = getApp()
// pages/water_filter/Maintenance/Maintenance.js // pages/water_filter/Maintenance/Maintenance.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -171,14 +172,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -2,7 +2,7 @@
<!-- <view class="nav-box" style="padding-top: {{ t }}px;;"> <!-- <view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;"> <view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-left" bindtap="handleNavigateBack"> <view class="nav-bar-left" bindtap="handleNavigateBack">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image src="https://static.hshuishang.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;"> <view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
报修记录 报修记录

View File

@ -18,7 +18,7 @@
<view class="label">{{repairInfo.repairman_phone}}</view> <view class="label">{{repairInfo.repairman_phone}}</view>
</view> </view>
<view class="personCall" wx:if="{{item.repairman_phone}}" bindtap="headerTelClick"> <view class="personCall" wx:if="{{item.repairman_phone}}" bindtap="headerTelClick">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintenance_phone.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/maintenance_phone.png" mode="widthFix" />
</view> </view>
</view> </view>

View File

@ -5,6 +5,7 @@ import { areaList } from '../../data/index';
let PayJs = require('../../../../api/pay') let PayJs = require('../../../../api/pay')
// pages/water_filter/Recharge/Recharge.js // pages/water_filter/Recharge/Recharge.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -331,14 +332,14 @@ Page({
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },

View File

@ -5,6 +5,7 @@ let apiArr = require('../../../../api/water_filter')
let PayJs = require('../../../../api/pay') let PayJs = require('../../../../api/pay')
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -187,7 +188,7 @@ Page({
util.postUrl2(PayJs.queryPay, { util.postUrl2(PayJs.queryPay, {
merchant_no: that.data.goodsMsg.merchant_no, merchant_no: that.data.goodsMsg.merchant_no,
term_no: that.data.goodsMsg.term_no, term_no: that.data.goodsMsg.term_no,
out_trade_no: that.data.orderMsg.OrderNo, out_trade_no: that.data.orderMsg.order_no,
}, res => { }, res => {
if (res.statusCode == '200') { if (res.statusCode == '200') {
@ -275,14 +276,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -2,7 +2,7 @@
<!-- <view class="nav-box" style="padding-top: {{ t }}px;;"> <!-- <view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;"> <view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-left" bindtap="handleNavigateBack"> <view class="nav-bar-left" bindtap="handleNavigateBack">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image src="https://static.hshuishang.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;"> <view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
充值记录 充值记录

View File

@ -166,10 +166,11 @@ Page({
}) })
}, },
replay(e) { replay(e) {
const that = this
wx.showLoading({ wx.showLoading({
title: '重置中...', title: '重置中...',
}) })
util.postUrl4(apiArr.resetFilter, { util.postUrl(apiArr.resetFilterUser, {
part_id: e.currentTarget.dataset.item.id, part_id: e.currentTarget.dataset.item.id,
device_id: e.currentTarget.dataset.item.device_id, device_id: e.currentTarget.dataset.item.device_id,
}, res => { }, res => {
@ -180,10 +181,10 @@ Page({
title: '重置成功!', title: '重置成功!',
icon: "none" icon: "none"
}) })
that.getfilterList() that.getInfo()
} else { } else {
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg || '重置失败',
icon: "none" icon: "none"
}) })
} }
@ -440,7 +441,7 @@ Page({
} }
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '确定要将设备转时长?请在设备通电开机状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定要转时长?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {
} }
@ -493,7 +494,7 @@ Page({
} }
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '确定要设备转流量?请在设备通电开机状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定要转流量?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {
} }
@ -530,7 +531,7 @@ Page({
let that = this let that = this
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '是否确认设置为零售模式?此操作请在设备通电开机的状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定仍设为零售?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {

View File

@ -1,18 +1,18 @@
<!--pages/water_filter/water_filter.wxml--> <!--pages/water_filter/water_filter.wxml-->
<!-- 人人爱净水页面 --> <!-- 人人爱净水页面 -->
<view class="water-filter"> <view class="water-filter">
<view class="top" style="background-image: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;"> <view class="top" style="background-image: url('https://static.hshuishang.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;">
<!-- 位置定位 --> <!-- 位置定位 -->
<view class="positioning"> <view class="positioning">
<view class="positioning-left"> <view class="positioning-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" /> <image src="https://static.hshuishang.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" />
<text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text> <text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text>
</view> </view>
</view> </view>
<!-- 净化前后数值 --> <!-- 净化前后数值 -->
<view class="purification-value"> <view class="purification-value">
<view class="purification-value-left"> <view class="purification-value-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化前</text> <text class="front puri-text">净化前</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -22,7 +22,7 @@
</view> </view>
<view class="purification-value-left purification-value-right"> <view class="purification-value-left purification-value-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化后</text> <text class="front puri-text">净化后</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -60,8 +60,8 @@
<view class="device-name">{{currentDevice.product_name}}</view> <view class="device-name">{{currentDevice.product_name}}</view>
<view class="device-state"> <view class="device-state">
<image wx:if="{{currentDevice.sevice_status == '2'}}" bind:tap="openOff" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status == '2'}}" bind:tap="openOff" src="https://static.hshuishang.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" />
<image wx:if="{{currentDevice.sevice_status == '1'}}" bind:tap="openOff" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/openBtn.png" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status == '1'}}" bind:tap="openOff" src="https://static.hshuishang.com/openBtn.png" mode="" class="switch-icon" />
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text>
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text>
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '3'}}">制水故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '3'}}">制水故障</text>
@ -69,8 +69,8 @@
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text>
<image wx:if="{{currentDevice.network_status != '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status != '1'}}" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode="" class="wifi-icon" />
<image wx:if="{{currentDevice.network_status == 1}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/mdicon4.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status == 1}}" src="https://static.hshuishang.com/mdicon4.png" mode="" class="wifi-icon" />
<text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text> <text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text>
</view> </view>

View File

@ -3,6 +3,7 @@ const apiArr = require('../../../../../api/water_filter')
const apiArr2 = require('../../../../../api/partner') const apiArr2 = require('../../../../../api/partner')
// packages/WaterPurifier/pages/device/deviceList/deviceList.js // packages/WaterPurifier/pages/device/deviceList/deviceList.js
const __staticUrl = require('../../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -249,14 +250,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -1,14 +1,14 @@
<view class="deviceList" class="page-container {{ dropdownOpen ? 'fixed-page' : '' }}"> <view class="deviceList" class="page-container {{ dropdownOpen ? 'fixed-page' : '' }}">
<view class="white"> <view class="white">
<view class="deviceImg"> <view class="deviceImg">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deviceList.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deviceList.png?1" mode="widthFix" />
</view> </view>
<view class="deviceText">设备总数:{{total}}</view> <view class="deviceText">设备总数:{{total}}</view>
<view class="deviceIpt"> <view class="deviceIpt">
<input type="text" confirm-type="search" bindconfirm="search2" value="{{searchText}}" bindinput="ipt1" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input type="text" confirm-type="search" bindconfirm="search2" value="{{searchText}}" bindinput="ipt1" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search2"> <view class="searchBox" bind:tap="search2">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -12,7 +12,7 @@
</van-checkbox> </van-checkbox>
<view class="filterItem_Msg"> <view class="filterItem_Msg">
<view class="filterItem_Img"> <view class="filterItem_Img">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/goods.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/goods.png" mode="widthFix" />
</view> </view>
<view class="filterItem_Con"> <view class="filterItem_Con">
<view class="filterItem_Con_tit">后置活性炭滤芯</view> <view class="filterItem_Con_tit">后置活性炭滤芯</view>
@ -78,7 +78,7 @@
</view> </view>
<view class="payItem_goods"> <view class="payItem_goods">
<view class="payItem_goods_img"> <view class="payItem_goods_img">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/goods.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/goods.png" mode="widthFix" />
</view> </view>
<view class="payItem_goods_msg"> <view class="payItem_goods_msg">
<view class="payItem_goods_msg_orderNum">订单编号20250228150122105</view> <view class="payItem_goods_msg_orderNum">订单编号20250228150122105</view>

View File

@ -16,19 +16,19 @@
</view> </view>
<view class="devicemsg3"> <view class="devicemsg3">
<view class="devicemsg3Item"> <view class="devicemsg3Item">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon1.png" mode=""/> <image src="https://static.hshuishang.com/water_filter/mdicon1.png" mode=""/>
{{item.status == '8'?'欠费':'在用'}} {{item.status == '8'?'欠费':'在用'}}
</view> </view>
<view class="devicemsg3Item"> <view class="devicemsg3Item">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon2.png" mode=""/> <image src="https://static.hshuishang.com/water_filter/mdicon2.png" mode=""/>
{{item.sevice_status == '1'?'在用':'停用'}} {{item.sevice_status == '1'?'在用':'停用'}}
</view> </view>
<view class="devicemsg3Item"> <view class="devicemsg3Item">
<image wx:if="{{item.network_status == '2'}}" id="wifi" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode=""/> <image wx:if="{{item.network_status == '2'}}" id="wifi" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode=""/>
<image wx:if="{{item.network_status == '1'}}" id="wifi" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon4.png" mode=""/> <image wx:if="{{item.network_status == '1'}}" id="wifi" src="https://static.hshuishang.com/water_filter/mdicon4.png" mode=""/>
{{item.network_status == '1'?'在线':'离线'}} {{item.network_status == '1'?'在线':'离线'}}
</view> </view>
</view> </view>

View File

@ -4,6 +4,7 @@ let PayJs = require('../../../../api/pay')
const app = getApp() const app = getApp()
// pages/water_filter/filter/filter.js // pages/water_filter/filter/filter.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -24,23 +25,23 @@ Page({
}, },
reset() { reset() {
let that = this let that = this
util.postUrl4(apiArr.resetFilter, { // 用户侧走 wechat 域 + ctoken勿依赖 atoken
util.postUrl(apiArr.resetFilterUser, {
device_id: that.data.currentFilter.device_id, device_id: that.data.currentFilter.device_id,
part_id: that.data.currentFilter.id, part_id: that.data.currentFilter.id,
}, res => { }, res => {
console.log(res, 'asdasd'); if (res && res.msg == '操作成功') {
// if (res.data.msg == '操作成功') {
wx.showToast({ wx.showToast({
title: '重置成功!', title: '重置成功!',
icon: "none" icon: "none"
}) })
that.getfilterList() that.getfilterList()
// } else { } else {
// wx.showToast({ wx.showToast({
// title: res.data.msg, title: (res && res.msg) || '重置失败',
// icon: "none" icon: "none"
// }) })
// } }
}) })
}, },
getDaysBetweenDates(inputDate) { getDaysBetweenDates(inputDate) {
@ -392,14 +393,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -2,7 +2,7 @@
<view class="nav-box" style="padding-top: {{ t }}px;;"> <view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;"> <view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-left" bindtap="handleNavigateBack"> <view class="nav-bar-left" bindtap="handleNavigateBack">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image src="https://static.hshuishang.com/water_filter/back_black.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;"> <view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
滤芯详情 滤芯详情
@ -23,7 +23,7 @@
<view class="filterItem" wx:for="{{filterList}}" bind:tap="showDesc" data-item="{{item}}"> <view class="filterItem" wx:for="{{filterList}}" bind:tap="showDesc" data-item="{{item}}">
<view class="filter_Item_Info"> <view class="filter_Item_Info">
<view class="filter_Item_Info_image"> <view class="filter_Item_Info_image">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/filter_item_icon.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/filter_item_icon.png" mode="widthFix" />
</view> </view>
<view class="filter_Item_Info_msg"> <view class="filter_Item_Info_msg">
<view class="filter_Item_Info_name">{{item.parts_name}}</view> <view class="filter_Item_Info_name">{{item.parts_name}}</view>

View File

@ -5,6 +5,7 @@ let apiArr = require('../../../../api/water_filter')
let PayJs = require('../../../../api/pay') let PayJs = require('../../../../api/pay')
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -107,11 +108,11 @@ Page({
customer_name: that.data.selectPackage.customer_name, customer_name: that.data.selectPackage.customer_name,
customer_phone: that.data.selectPackage.customer_phone, customer_phone: that.data.selectPackage.customer_phone,
total_price: Number(that.data.selectPackage.total_price), total_price: Number(that.data.selectPackage.total_price),
parts_ids: that.data.selectPackage.parts_ids, parts_ids: that.data.selectPackage.part_ids || that.data.selectPackage.parts_ids,
device_id: Number(wx.getStorageSync('device_id')), device_id: Number(wx.getStorageSync('device_id')),
region: that.data.selectPackage.region, region: that.data.selectPackage.region,
address: that.data.selectPackage.address, address: that.data.selectPackage.address,
parts_ids: that.data.selectPackage.part_ids, is_up_door: Number(that.data.selectPackage.is_up_door) || 1,
user_id: Number(wx.getStorageSync('userId')) user_id: Number(wx.getStorageSync('userId'))
}, res => { }, res => {
@ -262,14 +263,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -21,7 +21,7 @@
<view class="form_Item"> <view class="form_Item">
<view class="form_Item_ask">滤芯图片</view> <view class="form_Item_ask">滤芯图片</view>
<view class="form_Item_con"> <view class="form_Item_con">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/goods.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/goods.png" mode="widthFix"/>
</view> </view>
</view> </view>

View File

@ -6,7 +6,7 @@
<view class="payItem_tit_state">未支付</view> <view class="payItem_tit_state">未支付</view>
</view> </view>
<view class="payItem_goods"> <view class="payItem_goods">
<view class="payItem_goods_img"><image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/goods.png" mode="widthFix"/></view> <view class="payItem_goods_img"><image src="https://static.hshuishang.com/water_filter/goods.png" mode="widthFix"/></view>
<view class="payItem_goods_msg"> <view class="payItem_goods_msg">
<view class="payItem_goods_msg_orderNum">订单编号20250228150122105</view> <view class="payItem_goods_msg_orderNum">订单编号20250228150122105</view>
<view class="payItem_goods_msg_orderName">滤芯名称:后置活性炭</view> <view class="payItem_goods_msg_orderName">滤芯名称:后置活性炭</view>

View File

@ -5,6 +5,7 @@ const util = require("../../../../utils/util");
// pages/water_filter/repair/repair.js // pages/water_filter/repair/repair.js
const app = getApp() const app = getApp()
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -614,14 +615,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -72,7 +72,7 @@
</view> </view>
<!-- 报修成功 --> <!-- 报修成功 -->
<view wx:if="{{sucess}}" class="sucess"> <view wx:if="{{sucess}}" class="sucess">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintenance_sucess.png" mode="widthFix" id="sucess" /> <image src="https://static.hshuishang.com/water_filter/maintenance_sucess.png" mode="widthFix" id="sucess" />
<view class="sucess_msgTit">提交成功</view> <view class="sucess_msgTit">提交成功</view>
</view> </view>
</view> </view>

View File

@ -2,13 +2,14 @@ let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/WaterPurifier/pages/shareDerive/shareDerive.js // packages/WaterPurifier/pages/shareDerive/shareDerive.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
imagePath:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test_qrcode.jpg", imagePath:(__staticUrl + '/test_qrcode.jpg'),
}, },
getImg(){ getImg(){

View File

@ -2,6 +2,7 @@ import * as echarts from '../../component/ec-canvas/echarts';
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
const apiArr = require('../../../../api/water_filter') const apiArr = require('../../../../api/water_filter')
const app = getApp({allowDefault:true}) const app = getApp({allowDefault:true})
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -14,51 +15,51 @@ Page({
h: app.menu.height, // 胶囊高度 h: app.menu.height, // 胶囊高度
// 功能列表 // 功能列表
functional_List: [{ functional_List: [{
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_407.png", "image": (__staticUrl + '/water_filter/Group_407.png'),
"name": "一键报修", "name": "一键报修",
// "url": "packages/WaterPurifier/pages/repair/repair", // "url": "packages/WaterPurifier/pages/repair/repair",
"url": `../../../WaterPurifier/pages/repair/repair`, "url": `../../../WaterPurifier/pages/repair/repair`,
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_408.png", "image": (__staticUrl + '/water_filter/Group_408.png'),
"name": "购买滤芯", "name": "购买滤芯",
"url": "../Recharge/Recharge", "url": "../Recharge/Recharge",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_409.png", "image": (__staticUrl + '/water_filter/Group_409.png'),
"name": "充值记录", "name": "充值记录",
"url": "../RechargeRecord/RechargeRecord", "url": "../RechargeRecord/RechargeRecord",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_410.png", "image": (__staticUrl + '/water_filter/Group_410.png'),
"name": "滤芯详情", "name": "滤芯详情",
"url": "../filter/filter", "url": "../filter/filter",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_411.png", "image": (__staticUrl + '/water_filter/Group_411.png'),
"name": "设备分享", "name": "设备分享",
// "url": "https://zhsq.hshuishang.com/wap/community/order/community_id/0", // "url": "https://zhsq.hshuishang.com/wap/community/order/community_id/0",
"url":"../shareDerive/shareDerive", "url":"../shareDerive/shareDerive",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_412.png", "image": (__staticUrl + '/water_filter/Group_412.png'),
"name": "客服中心", "name": "客服中心",
// "url": "https://zhsq.hshuishang.com/user/appoint/index", // "url": "https://zhsq.hshuishang.com/user/appoint/index",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_413.png", "image": (__staticUrl + '/water_filter/Group_413.png'),
"name": "维修工单", "name": "维修工单",
"url": "../upKeep/upKeep", "url": "../upKeep/upKeep",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_414.png", "image": (__staticUrl + '/water_filter/Group_414.png'),
"name": "滤芯更换记录", "name": "滤芯更换记录",
// "url": "https://zhsq.hshuishang.com/user/exchange/index", // "url": "https://zhsq.hshuishang.com/user/exchange/index",
"type": "h5" "type": "h5"

View File

@ -1,11 +1,11 @@
<!--pages/water_filter/water_filter.wxml--> <!--pages/water_filter/water_filter.wxml-->
<!-- 人人爱净水页面 --> <!-- 人人爱净水页面 -->
<view class="water-filter"> <view class="water-filter">
<view class="top" style="background-image: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_401.png'); background-size: 100% 100%; height: 698rpx; width: 100%;"> <view class="top" style="background-image: url('https://static.hshuishang.com/water_filter/Group_401.png'); background-size: 100% 100%; height: 698rpx; width: 100%;">
<view class="nav-box" style="padding-top: {{ t }}px;;"> <view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;"> <view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-left" bindtap="handleNavigateBack"> <view class="nav-bar-left" bindtap="handleNavigateBack">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image src="https://static.hshuishang.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;"> <view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
我的设备 我的设备
@ -16,18 +16,18 @@
<!-- 位置定位 --> <!-- 位置定位 -->
<view class="positioning"> <view class="positioning">
<view class="positioning-left"> <view class="positioning-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" /> <image src="https://static.hshuishang.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" />
<text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text> <text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text>
</view> </view>
<view class="positioning-right"> <view class="positioning-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Vector_1.png" mode="" class="positioning-icon-right" /> <image src="https://static.hshuishang.com/water_filter/Vector_1.png" mode="" class="positioning-icon-right" />
<text class="positioning-text">设备</text> <text class="positioning-text">设备</text>
</view> </view>
</view> </view>
<!-- 净化前后数值 --> <!-- 净化前后数值 -->
<view class="purification-value"> <view class="purification-value">
<view class="purification-value-left"> <view class="purification-value-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化前</text> <text class="front puri-text">净化前</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -37,7 +37,7 @@
</view> </view>
<view class="purification-value-left purification-value-right"> <view class="purification-value-left purification-value-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化后</text> <text class="front puri-text">净化后</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -65,11 +65,11 @@
<view class="info-top"> <view class="info-top">
<view class="device-name">{{currentDevice.product_name}}</view> <view class="device-name">{{currentDevice.product_name}}</view>
<view class="device-state"> <view class="device-state">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_405.png" mode="" class="switch-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_405.png" mode="" class="switch-icon" />
<text class="switch-text text-color text-size">{{currentDevice.sevice_status == '1'?'在用':'停用'}}</text> <text class="switch-text text-color text-size">{{currentDevice.sevice_status == '1'?'在用':'停用'}}</text>
<image wx:if="{{currentDevice.network_status != '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status != '1'}}" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode="" class="wifi-icon" />
<image wx:if="{{currentDevice.network_status == '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon4.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status == '1'}}" src="https://static.hshuishang.com/water_filter/mdicon4.png" mode="" class="wifi-icon" />
<text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text> <text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text>
</view> </view>
</view> </view>

View File

@ -4,6 +4,7 @@ let apiArr2 = require('../../../../api/partner')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
// packages/WaterPurifier/pages/upKeep/upKeep.js // packages/WaterPurifier/pages/upKeep/upKeep.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -335,14 +336,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -22,7 +22,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -2,6 +2,7 @@ import * as echarts from '../../component/ec-canvas/echarts';
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
const apiArr = require('../../../../api/water_filter') const apiArr = require('../../../../api/water_filter')
const app = getApp({allowDefault:true}) const app = getApp({allowDefault:true})
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -14,50 +15,50 @@ Page({
h: app.menu.height, // 胶囊高度 h: app.menu.height, // 胶囊高度
// 功能列表 // 功能列表
functional_List: [{ functional_List: [{
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_407.png", "image": (__staticUrl + '/water_filter/Group_407.png'),
"name": "一键报修", "name": "一键报修",
// "url": "packages/WaterPurifier/pages/repair/repair", // "url": "packages/WaterPurifier/pages/repair/repair",
"url": `../../../WaterPurifier/pages/repair/repair`, "url": `../../../WaterPurifier/pages/repair/repair`,
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_408.png", "image": (__staticUrl + '/water_filter/Group_408.png'),
"name": "购买套餐", "name": "购买套餐",
"url": "../Recharge/Recharge", "url": "../Recharge/Recharge",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_409.png", "image": (__staticUrl + '/water_filter/Group_409.png'),
"name": "滤芯购买记录", "name": "滤芯购买记录",
"url": "../RechargeRecord/RechargeRecord", "url": "../RechargeRecord/RechargeRecord",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_410.png", "image": (__staticUrl + '/water_filter/Group_410.png'),
"name": "滤芯详情", "name": "滤芯详情",
"url": "../filter/filter", "url": "../filter/filter",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_411.png", "image": (__staticUrl + '/water_filter/Group_411.png'),
"name": "设备分享", "name": "设备分享",
// "url":"../shareDerive/shareDerive", // "url":"../shareDerive/shareDerive",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_412.png", "image": (__staticUrl + '/water_filter/Group_412.png'),
"name": "客服中心", "name": "客服中心",
"url": "../Addfriend/Addfriend", "url": "../Addfriend/Addfriend",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_413.png", "image": (__staticUrl + '/water_filter/Group_413.png'),
"name": "维修工单", "name": "维修工单",
"url": "../upKeep/upKeep", "url": "../upKeep/upKeep",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_414.png", "image": (__staticUrl + '/water_filter/Group_414.png'),
"name": "滤芯更换", "name": "滤芯更换",
// "url": "https://zhsq.hshuishang.com/user/exchange/index", // "url": "https://zhsq.hshuishang.com/user/exchange/index",
"url":"/packages/WaterPurifier/pages/water_change/water_change", "url":"/packages/WaterPurifier/pages/water_change/water_change",

View File

@ -1,11 +1,11 @@
<!--pages/water_filter/water_filter.wxml--> <!--pages/water_filter/water_filter.wxml-->
<!-- 人人爱净水页面 --> <!-- 人人爱净水页面 -->
<view class="water-filter"> <view class="water-filter">
<view class="top" style="background-image: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_401.png'); background-size: 100% 100%; height: 698rpx; width: 100%;"> <view class="top" style="background-image: url('https://static.hshuishang.com/water_filter/Group_401.png'); background-size: 100% 100%; height: 698rpx; width: 100%;">
<view class="nav-box" style="padding-top: {{ t }}px;;"> <view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;"> <view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-left" bindtap="handleNavigateBack"> <view class="nav-bar-left" bindtap="handleNavigateBack">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image src="https://static.hshuishang.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;"> <view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
我的设备 我的设备
@ -16,18 +16,18 @@
<!-- 位置定位 --> <!-- 位置定位 -->
<view class="positioning"> <view class="positioning">
<view class="positioning-left"> <view class="positioning-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" /> <image src="https://static.hshuishang.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" />
<text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text> <text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text>
</view> </view>
<view class="positioning-right" bind:tap="device"> <view class="positioning-right" bind:tap="device">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Vector_1.png" mode="" class="positioning-icon-right" /> <image src="https://static.hshuishang.com/water_filter/Vector_1.png" mode="" class="positioning-icon-right" />
<text class="positioning-text">设备</text> <text class="positioning-text">设备</text>
</view> </view>
</view> </view>
<!-- 净化前后数值 --> <!-- 净化前后数值 -->
<view class="purification-value"> <view class="purification-value">
<view class="purification-value-left"> <view class="purification-value-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化前</text> <text class="front puri-text">净化前</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -37,7 +37,7 @@
</view> </view>
<view class="purification-value-left purification-value-right"> <view class="purification-value-left purification-value-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化后</text> <text class="front puri-text">净化后</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -65,11 +65,11 @@
<view class="info-top"> <view class="info-top">
<view class="device-name">{{currentDevice.product_name}}</view> <view class="device-name">{{currentDevice.product_name}}</view>
<view class="device-state"> <view class="device-state">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_405.png" mode="" class="switch-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_405.png" mode="" class="switch-icon" />
<text class="switch-text text-color text-size">{{currentDevice.sevice_status == '1'?'在用':'停用'}}</text> <text class="switch-text text-color text-size">{{currentDevice.sevice_status == '1'?'在用':'停用'}}</text>
<image wx:if="{{currentDevice.network_status != '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status != '1'}}" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode="" class="wifi-icon" />
<image wx:if="{{currentDevice.network_status == '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon4.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status == '1'}}" src="https://static.hshuishang.com/water_filter/mdicon4.png" mode="" class="wifi-icon" />
<text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text> <text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text>
</view> </view>
@ -89,17 +89,17 @@
<view class="equi-contral" wx:if="{{is_deal}}"> <view class="equi-contral" wx:if="{{is_deal}}">
<view class="equi-contral-left" bind:tap="partner"> <view class="equi-contral-left" bind:tap="partner">
合伙人 合伙人
<image id="img1" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_left_img1.png" mode="widthFix" /> <image id="img1" src="https://static.hshuishang.com/water_filter/contral_left_img1.png" mode="widthFix" />
<image id="img2" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_left_img2.png" mode="widthFix" /> <image id="img2" src="https://static.hshuishang.com/water_filter/contral_left_img2.png" mode="widthFix" />
</view> </view>
<view class="equi-contral-right"> <view class="equi-contral-right">
<view class="equi-contral-right-btn1" bindtap="maintenanceList"> <view class="equi-contral-right-btn1" bindtap="maintenanceList">
报修记录 报修记录
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_MainRecord.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/contral_MainRecord.png" mode="widthFix" />
</view> </view>
<view class="equi-contral-right-btn2" bind:tap="buyFilter"> <view class="equi-contral-right-btn2" bind:tap="buyFilter">
滤芯购买 滤芯购买
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_buy.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/contral_buy.png" mode="widthFix" />
</view> </view>
</view> </view>
@ -109,11 +109,11 @@
<view class="equi-contral-right"> <view class="equi-contral-right">
<view class="equi-contral-right-btn1" bindtap="maintenanceList"> <view class="equi-contral-right-btn1" bindtap="maintenanceList">
报修记录 报修记录
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_MainRecord.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/contral_MainRecord.png" mode="widthFix" />
</view> </view>
<view class="equi-contral-right-btn2" bind:tap="buyFilter"> <view class="equi-contral-right-btn2" bind:tap="buyFilter">
滤芯购买 滤芯购买
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/contral_buy.png" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/contral_buy.png" mode="widthFix" />
</view> </view>
</view> </view>

View File

@ -1,9 +1,10 @@
let util = require('../../../utils/util') let util = require('../../../utils/util')
let apiArr = require('../../../api/water_filter') let apiArr = require('../../../api/water_filter')
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
data: { data: {
avatarUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/person/Group_309.png?2', avatarUrl: (__staticUrl + '/person/Group_309.png?2'),
userInfo: { userInfo: {
name: '张三', name: '张三',
phone: '13800138000' phone: '13800138000'
@ -163,14 +164,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}); });

View File

@ -127,11 +127,13 @@ Page({
}) })
}, },
replay(e){ replay(e){
const that = this
wx.showLoading({ wx.showLoading({
title: '重置中...', title: '重置中...',
}) })
// part_id 必须是 device_parts 行 id不是滤芯品类 parts_id
util.postUrl(apiArr.resetFilter,{ util.postUrl(apiArr.resetFilter,{
part_id:e.currentTarget.dataset.item.parts_id, part_id:e.currentTarget.dataset.item.id,
device_id:e.currentTarget.dataset.item.device_id, device_id:e.currentTarget.dataset.item.device_id,
},res=>{ },res=>{
wx.hideLoading() wx.hideLoading()
@ -141,10 +143,10 @@ Page({
title: '重置成功!', title: '重置成功!',
icon:"none" icon:"none"
}) })
that.getfilterList() that.getInfo()
}else{ }else{
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg || '重置失败',
icon:"none" icon:"none"
}) })
} }

View File

@ -1,18 +1,18 @@
<!--pages/water_filter/water_filter.wxml--> <!--pages/water_filter/water_filter.wxml-->
<!-- 人人爱净水页面 --> <!-- 人人爱净水页面 -->
<view class="water-filter"> <view class="water-filter">
<view class="top" style="background-image: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;"> <view class="top" style="background-image: url('https://static.hshuishang.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;">
<!-- 位置定位 --> <!-- 位置定位 -->
<view class="positioning"> <view class="positioning">
<view class="positioning-left"> <view class="positioning-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" /> <image src="https://static.hshuishang.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" />
<text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text> <text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text>
</view> </view>
</view> </view>
<!-- 净化前后数值 --> <!-- 净化前后数值 -->
<view class="purification-value"> <view class="purification-value">
<view class="purification-value-left"> <view class="purification-value-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化前</text> <text class="front puri-text">净化前</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -22,7 +22,7 @@
</view> </view>
<view class="purification-value-left purification-value-right"> <view class="purification-value-left purification-value-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化后</text> <text class="front puri-text">净化后</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -61,8 +61,8 @@
<view class="device-state"> <view class="device-state">
<image wx:if="{{currentDevice.sevice_status != 1}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status != 1}}" src="https://static.hshuishang.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" />
<image wx:if="{{currentDevice.sevice_status == 1}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/openBtn.png" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status == 1}}" src="https://static.hshuishang.com/openBtn.png" mode="" class="switch-icon" />
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text>
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text>
@ -70,8 +70,8 @@
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '4'}}">漏水故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '4'}}">漏水故障</text>
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text>
<image wx:if="{{currentDevice.network_status != '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status != '1'}}" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode="" class="wifi-icon" />
<image wx:if="{{currentDevice.network_status == 1}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/mdicon4.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status == 1}}" src="https://static.hshuishang.com/mdicon4.png" mode="" class="wifi-icon" />
<text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text> <text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text>
</view> </view>

View File

@ -2,6 +2,7 @@ let util = require('../../../utils/util')
let apiArr = require('../../../api/water_filter') let apiArr = require('../../../api/water_filter')
// packages/master/masterIndex/index.js // packages/master/masterIndex/index.js
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
/** /**
@ -11,27 +12,27 @@ Page({
funcList: [ funcList: [
{ {
text: "新装工单", text: "新装工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon3.png?1", img: (__staticUrl + '/water_filter/partner/partner_icon3.png?1'),
url: "../order/index?type=0", url: "../order/index?type=0",
}, },
{ {
text: "维修工单", text: "维修工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon4.png?1", img: (__staticUrl + '/water_filter/partner/partner_icon4.png?1'),
url: "../order/index?type=1", url: "../order/index?type=1",
}, },
{ {
text: "拆除工单", text: "拆除工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/removeIcon.png", img: (__staticUrl + '/removeIcon.png'),
url: "../order/index?type=3", url: "../order/index?type=3",
}, },
{ {
text: "滤芯更换工单", text: "滤芯更换工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/partsIcon.png", img: (__staticUrl + '/partsIcon.png'),
url: "../order/index?type=2", url: "../order/index?type=2",
}, },
{ {
text: "设备管理", text: "设备管理",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon2.png?1", img: (__staticUrl + '/water_filter/partner/partner_icon2.png?1'),
url: "../../WaterPurifier/pages/device/deviceList/deviceList", url: "../../WaterPurifier/pages/device/deviceList/deviceList",
} }
], ],

View File

@ -2,6 +2,7 @@ let util = require('../../../utils/util')
let apiArr = require('../../../api/water_filter') let apiArr = require('../../../api/water_filter')
// packages/master/masterInfo/index.js // packages/master/masterInfo/index.js
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
/** /**
@ -11,7 +12,7 @@ Page({
userInfo: {}, userInfo: {},
sexOptions: ['男', '女'], sexOptions: ['男', '女'],
sexIndex: "", sexIndex: "",
avatarUrl:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/person/Group_309.png?2", avatarUrl:(__staticUrl + '/person/Group_309.png?2'),
avatarUrl2:"", avatarUrl2:"",
fileList:[], fileList:[],
}, },

View File

@ -2,6 +2,7 @@ const app = getApp({ allowDefault: true })
let util = require('../../../utils/util') let util = require('../../../utils/util')
let apiArr = require('../../../api/water_filter') let apiArr = require('../../../api/water_filter')
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
data: { data: {
newOrderTotal: 200, newOrderTotal: 200,
@ -360,14 +361,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },

View File

@ -9,7 +9,7 @@
</view> </view>
<view class="nav-bar-right"> <view class="nav-bar-right">
<image style="opacity: 0;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image style="opacity: 0;" src="https://static.hshuishang.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
</view> </view>
</view> </view>
@ -31,7 +31,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,6 +1,7 @@
let util = require('../../../utils/util') let util = require('../../../utils/util')
let apiArr = require('../../../api/water_filter') let apiArr = require('../../../api/water_filter')
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
data: { data: {
type: "", type: "",
@ -712,14 +713,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },

View File

@ -24,7 +24,7 @@
<!-- wx:if="{{newOrderDesc.status == 2}}" --> <!-- wx:if="{{newOrderDesc.status == 2}}" -->
<view class="value value2" wx:if="{{newOrderDesc.status == 2}}"> <view class="value value2" wx:if="{{newOrderDesc.status == 2}}">
<input type="text" confirm-type="search" bindconfirm="iptSearch" bind:input="iptDeviceCode" value="{{deviceInfo.device_code}}" placeholder="请输入设备编码" /> <input type="text" confirm-type="search" bindconfirm="iptSearch" bind:input="iptDeviceCode" value="{{deviceInfo.device_code}}" placeholder="请输入设备编码" />
<image bind:tap="scanQrcode" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/scanIcon.png" mode="aspectFill"/> <image bind:tap="scanQrcode" src="https://static.hshuishang.com/scanIcon.png" mode="aspectFill"/>
</view> </view>
<text class="value" wx:else>{{newOrderDesc.device_code || '暂无数据'}}</text> <text class="value" wx:else>{{newOrderDesc.device_code || '暂无数据'}}</text>
</view> </view>

View File

@ -2,6 +2,7 @@ const app = getApp({ allowDefault: true })
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
let apiArr = require('../../../../api/partner') let apiArr = require('../../../../api/partner')
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
data: { data: {
newOrderTotal: 200, newOrderTotal: 200,
@ -282,14 +283,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },

View File

@ -2,6 +2,7 @@ let util = require('../../../../utils/util')
let apiArr = require('../../../../api/partner') let apiArr = require('../../../../api/partner')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
data: { data: {
s: app.system.statusBarHeight, // 状态栏高度 s: app.system.statusBarHeight, // 状态栏高度
@ -721,14 +722,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },

View File

@ -3,6 +3,7 @@ let apiArr = require('../../../../api/water_filter')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
// packages/WaterPurifier/pages/upKeep/upKeep.js // packages/WaterPurifier/pages/upKeep/upKeep.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -335,14 +336,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -21,7 +21,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -4,7 +4,7 @@
<input value="{{searchText}}" bindinput="ipt1" type="text" placeholder="请输入设备编码" placeholder-style="color: #999999;font-size: 26rpx;" /> <input value="{{searchText}}" bindinput="ipt1" type="text" placeholder="请输入设备编码" placeholder-style="color: #999999;font-size: 26rpx;" />
<view class="searchBox" bind:tap="search2"> <view class="searchBox" bind:tap="search2">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" />
</view> </view>
<van-icon bind:tap="scanQrcode" name="scan" size="28" /> <van-icon bind:tap="scanQrcode" name="scan" size="28" />

View File

@ -2,6 +2,7 @@
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/partner/pages/desk/desk.js // packages/partner/pages/desk/desk.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -187,14 +188,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -1,4 +1,4 @@
<view class="desk" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/deskBg.png?1);"> <view class="desk" style="background-image: url('https://static.hshuishang.com/water_filter/partner/deskBg.png?1');">
<Nav Text="收银台" backColor="#fff" color="#fff" NavPosition="relative"></Nav> <Nav Text="收银台" backColor="#fff" color="#fff" NavPosition="relative"></Nav>
<view class="money"> <view class="money">
{{banlance}} {{banlance}}
@ -8,15 +8,15 @@
</view> --> </view> -->
<view class="deskList"> <view class="deskList">
<view class="deskItem" bind:tap="income"> <view class="deskItem" bind:tap="income">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/desk_Icon1.png?1" mode="heightFix" /> <image src="https://static.hshuishang.com/water_filter/partner/desk_Icon1.png?1" mode="heightFix" />
<view>我的订单</view> <view>我的订单</view>
</view> </view>
<!-- <view class="deskItem" bind:tap="desc"> <!-- <view class="deskItem" bind:tap="desc">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/desk_Icon1.png" mode="heightFix" /> <image src="https://static.hshuishang.com/water_filter/partner/desk_Icon1.png" mode="heightFix" />
<view>提现记录</view> <view>提现记录</view>
</view> </view>
<view class="deskItem"> <view class="deskItem">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/desk_Icon1.png" mode="heightFix" /> <image src="https://static.hshuishang.com/water_filter/partner/desk_Icon1.png" mode="heightFix" />
<view>收款设置</view> <view>收款设置</view>
</view> --> </view> -->
</view> </view>

View File

@ -4,6 +4,7 @@ const apiArr2 = require('../../../../api/partner')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
// packages/WaterPurifier/pages/device/deviceList/deviceList.js // packages/WaterPurifier/pages/device/deviceList/deviceList.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -289,14 +290,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -18,14 +18,14 @@
<view class="deviceList" class="page-container {{ dropdownOpen ? 'fixed-page' : '' }}"> <view class="deviceList" class="page-container {{ dropdownOpen ? 'fixed-page' : '' }}">
<view class="white"> <view class="white">
<view class="deviceImg"> <view class="deviceImg">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deviceList.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deviceList.png?1" mode="widthFix" />
</view> </view>
<view class="deviceText">设备总数:{{total}}</view> <view class="deviceText">设备总数:{{total}}</view>
<view class="deviceIpt"> <view class="deviceIpt">
<input type="text" confirm-type="search" bindconfirm="search2" value="{{searchText}}" bindinput="ipt1" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input type="text" confirm-type="search" bindconfirm="search2" value="{{searchText}}" bindinput="ipt1" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search2"> <view class="searchBox" bind:tap="search2">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -140,6 +140,7 @@ Page({
}) })
}, },
replay(e) { replay(e) {
const that = this
wx.showLoading({ wx.showLoading({
title: '重置中...', title: '重置中...',
}) })
@ -154,10 +155,10 @@ Page({
title: '重置成功!', title: '重置成功!',
icon: "none" icon: "none"
}) })
that.getfilterList() that.getInfo()
} else { } else {
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg || '重置失败',
icon: "none" icon: "none"
}) })
} }
@ -439,7 +440,7 @@ Page({
} }
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '确定要将设备转时长?请在设备通电开机状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定要转时长?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {
} }
@ -492,7 +493,7 @@ Page({
} }
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '确定要设备转流量?请在设备通电开机状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定要转流量?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {
} }
@ -529,7 +530,7 @@ Page({
let that = this let that = this
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '是否确认设置为零售模式?此操作请在设备通电开机的状态下进行操作', content: '【厂商已废弃】计费模式切换(type=08)默认已拦截。确定仍设为零售?请在设备通电开机状态下操作;紧急需服务端开启 allow_deprecated_iot_cmd。',
complete: (res) => { complete: (res) => {
if (res.cancel) { if (res.cancel) {

View File

@ -1,18 +1,18 @@
<!--pages/water_filter/water_filter.wxml--> <!--pages/water_filter/water_filter.wxml-->
<!-- 人人爱净水页面 --> <!-- 人人爱净水页面 -->
<view class="water-filter"> <view class="water-filter">
<view class="top" style="background-image: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;"> <view class="top" style="background-image: url('https://static.hshuishang.com/water_filter/Group_401.png?v1'); background-size: 100% 100%; height: 698rpx; width: 100%;">
<!-- 位置定位 --> <!-- 位置定位 -->
<view class="positioning"> <view class="positioning">
<view class="positioning-left"> <view class="positioning-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" /> <image src="https://static.hshuishang.com/water_filter/Group 38.png" mode="" class="positioning-icon-left" />
<text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text> <text class="positioning-text">{{currentDevice.region + currentDevice.address}}</text>
</view> </view>
</view> </view>
<!-- 净化前后数值 --> <!-- 净化前后数值 -->
<view class="purification-value"> <view class="purification-value">
<view class="purification-value-left"> <view class="purification-value-left">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化前</text> <text class="front puri-text">净化前</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -22,7 +22,7 @@
</view> </view>
<view class="purification-value-left purification-value-right"> <view class="purification-value-left purification-value-right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" /> <image src="https://static.hshuishang.com/water_filter/Group_420.png?v1" mode="" class="purification-value-icon" />
<view class="purification-value-text"> <view class="purification-value-text">
<text class="front puri-text">净化后</text> <text class="front puri-text">净化后</text>
<text class="tds puri-text">水质TDS值</text> <text class="tds puri-text">水质TDS值</text>
@ -60,8 +60,8 @@
<view class="device-name">{{currentDevice.product_name}}</view> <view class="device-name">{{currentDevice.product_name}}</view>
<view class="device-state"> <view class="device-state">
<image wx:if="{{currentDevice.sevice_status == '2'}}" bind:tap="openOff" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status == '2'}}" bind:tap="openOff" src="https://static.hshuishang.com/water_filter/Group_405.png?v1" mode="" class="switch-icon" />
<image wx:if="{{currentDevice.sevice_status == '1'}}" bind:tap="openOff" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/openBtn.png" mode="" class="switch-icon" /> <image wx:if="{{currentDevice.sevice_status == '1'}}" bind:tap="openOff" src="https://static.hshuishang.com/openBtn.png" mode="" class="switch-icon" />
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '1'}}">开机</text>
<text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text> <text class="switch-text text-color text-size" bind:tap="openOff" wx:if="{{currentDevice.sevice_status == '2'}}">关机</text>
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '3'}}">制水故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '3'}}">制水故障</text>
@ -69,8 +69,8 @@
<text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text> <text class="switch-text text-color text-size" wx:if="{{currentDevice.sevice_status == '5'}}">主板故障</text>
<image wx:if="{{currentDevice.network_status != '1'}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/mdicon3.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status != '1'}}" src="https://static.hshuishang.com/water_filter/mdicon3.png" mode="" class="wifi-icon" />
<image wx:if="{{currentDevice.network_status == 1}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/mdicon4.png" mode="" class="wifi-icon" /> <image wx:if="{{currentDevice.network_status == 1}}" src="https://static.hshuishang.com/mdicon4.png" mode="" class="wifi-icon" />
<text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text> <text class="wifi-text text-color text-size">{{currentDevice.network_status == '1'?'在线':'离线'}}</text>
</view> </view>

View File

@ -7,7 +7,7 @@
<span class="label">设备编码:</span> <span class="label">设备编码:</span>
<input type="text" confirm-type="search" bindconfirm="search" value="{{deviceInfo.device_code}}" bind:input="iptDeviceCode" placeholder="请输入设备编码" /> <input type="text" confirm-type="search" bindconfirm="search" value="{{deviceInfo.device_code}}" bind:input="iptDeviceCode" placeholder="请输入设备编码" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>

View File

@ -4,6 +4,7 @@ let util = require('../../../../utils/util')
let apiArr = require('../../../../api/partner') let apiArr = require('../../../../api/partner')
// packages/master/masterInfo/index.js // packages/master/masterInfo/index.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -14,7 +15,7 @@ Page({
Info: {}, Info: {},
sexOptions: ['男', '女'], sexOptions: ['男', '女'],
sexIndex: "", sexIndex: "",
avatarUrl: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/person/Group_309.png?2", avatarUrl: (__staticUrl + '/person/Group_309.png?2'),
avatarUrl2: "", avatarUrl2: "",
fileList: [], fileList: [],
show: "", show: "",

View File

@ -1,6 +1,7 @@
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/partner/pages/income/income.js // packages/partner/pages/income/income.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -144,14 +145,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -1,4 +1,4 @@
<view class="income" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/incomeBg.png?1);"> <view class="income" style="background-image: url('https://static.hshuishang.com/water_filter/partner/incomeBg.png?1');">
<Nav Text="我的订单" backColor="#fff" color="#fff" NavPosition="relative"></Nav> <Nav Text="我的订单" backColor="#fff" color="#fff" NavPosition="relative"></Nav>
<!-- <view class="incomeList"> <!-- <view class="incomeList">

View File

@ -2,10 +2,10 @@
<Nav Text="邀请情况" backColor="#ffffff" color="#ffffff" NavPosition="relative"></Nav> <Nav Text="邀请情况" backColor="#ffffff" color="#ffffff" NavPosition="relative"></Nav>
<view class="text"> <view class="text">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/invite_text.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/invite_text.png" mode="widthFix"/>
</view> </view>
<view class="after"> <view class="after">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/invite.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/invite.png" mode="widthFix"/>
</view> </view>
<view class="phb"> <view class="phb">

View File

@ -1,5 +1,5 @@
<!--pages/login/login.wxml--> <!--pages/login/login.wxml-->
<view class="login" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/login/Group_491_jingshui.png);"> <view class="login" style="background-image: url('https://static.hshuishang.com/login/Group_491_jingshui.png');">
<view class="login-title"> <view class="login-title">
<view class="login-tip" style="font-size: 40rpx; color: #000000;">欢迎来到【人人爱净水】</view> <view class="login-tip" style="font-size: 40rpx; color: #000000;">欢迎来到【人人爱净水】</view>
<!-- <view class="login-tip" style="font-size: 28rpx; color: #555555; margin-top: 30rpx;">为了更好的体验,请选择登录方式</view> --> <!-- <view class="login-tip" style="font-size: 28rpx; color: #555555; margin-top: 30rpx;">为了更好的体验,请选择登录方式</view> -->

View File

@ -12,7 +12,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -12,7 +12,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -3,6 +3,7 @@ const util = require('../../../../utils/util')
const apiArr = require('../../../../api/water_filter') const apiArr = require('../../../../api/water_filter')
// packages/partner/pages/master/master.js // packages/partner/pages/master/master.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -139,14 +140,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -6,6 +6,7 @@ const app = getApp({ allowDefault: true })
// packages/partner/pages/partner.js // packages/partner/pages/partner.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -22,39 +23,39 @@ Page({
funcList:[ funcList:[
{ {
text:"设备管理", text:"设备管理",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon2.png?1", img:(__staticUrl + '/water_filter/partner/partner_icon2.png?1'),
url:"/packages/partner/pages/device/device", url:"/packages/partner/pages/device/device",
}, },
{ {
text:"师傅管理", text:"师傅管理",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon6.png?1", img:(__staticUrl + '/water_filter/partner/partner_icon6.png?1'),
url:"../master/master", url:"../master/master",
}, },
{ {
text:"收银台", text:"收银台",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon7.png?1", img:(__staticUrl + '/water_filter/partner/partner_icon7.png?1'),
// url:"../pages/desk/desk", // url:"../pages/desk/desk",
}, },
{ {
text:"分配经销商", text:"分配经销商",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/partner_icon_new1.png", img:(__staticUrl + '/partner_icon_new1.png'),
url:"/packages/partner/pages/distributor/distributor", url:"/packages/partner/pages/distributor/distributor",
}, },
{ {
text:"设备库存", text:"设备库存",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/equipmentStock.png", img:(__staticUrl + '/equipmentStock.png'),
url:"/packages/partner/pages/equipmentStock/equipmentStock", url:"/packages/partner/pages/equipmentStock/equipmentStock",
}, },
{ {
text:"滤芯库存", text:"滤芯库存",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/filterStock.png", img:(__staticUrl + '/filterStock.png'),
url:"/packages/partner/pages/filterStock/filterStock", url:"/packages/partner/pages/filterStock/filterStock",
}, },
{ {
text:"消息订阅", text:"消息订阅",
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/SubscribeMessageIcon.png", img:(__staticUrl + '/SubscribeMessageIcon.png'),
url:"/pages/SubscribeMessage/SubscribeMessage", url:"/pages/SubscribeMessage/SubscribeMessage",
}, },
], ],
@ -193,14 +194,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -7,7 +7,7 @@
</view> </view>
<view class="nav-bar-right"> <view class="nav-bar-right">
<image style="opacity: 0;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image style="opacity: 0;" src="https://static.hshuishang.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
</view> </view>
</view> </view>
@ -15,7 +15,7 @@
<view class="UserInfo"> <view class="UserInfo">
<view class="UserInfo_msg"> <view class="UserInfo_msg">
<view class="UserInfo_ava"> <view class="UserInfo_ava">
<image wx:if="{{!Info.deal_icon}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_person.png" mode="widthFix" /> <image wx:if="{{!Info.deal_icon}}" src="https://static.hshuishang.com/water_filter/partner/partner_person.png" mode="widthFix" />
<image wx:if="{{Info.deal_icon}}" src="{{Info.deal_icon}}" mode="widthFix" /> <image wx:if="{{Info.deal_icon}}" src="{{Info.deal_icon}}" mode="widthFix" />
</view> </view>
<view class="UserInfo_Info"> <view class="UserInfo_Info">
@ -25,7 +25,7 @@
</view> </view>
</view> </view>
<view class="UserInfo_level "> <view class="UserInfo_level ">
<!-- <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_level.png" mode="widthFix"/> <!-- <image src="https://static.hshuishang.com/water_filter/partner/partner_level.png" mode="widthFix"/>
<view>{{Info.invite_dealer_id?'初级合伙人':'高级合伙人'}}</view> --> <view>{{Info.invite_dealer_id?'初级合伙人':'高级合伙人'}}</view> -->
<view class="edit" bind:tap="editAdmin">修改</view> <view class="edit" bind:tap="editAdmin">修改</view>
</view> </view>

View File

@ -12,7 +12,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -3,7 +3,7 @@
<view class="ipt"> <view class="ipt">
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -8,6 +8,7 @@ const app = getApp({ allowDefault: true })
// packages/partner/pages/partner.js // packages/partner/pages/partner.js
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
/** /**
@ -25,46 +26,46 @@ Page({
{ {
text: "新装工单", text: "新装工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon3.png?1", img: (__staticUrl + '/water_filter/partner/partner_icon3.png?1'),
url: "../pages/WorkOrder/WorkOrder", url: "../pages/WorkOrder/WorkOrder",
}, },
{ {
text: "维修工单", text: "维修工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/partner_icon4.png?1", img: (__staticUrl + '/water_filter/partner/partner_icon4.png?1'),
url: "../../WaterPurifier/pages/upKeep/upKeep", url: "../../WaterPurifier/pages/upKeep/upKeep",
}, },
{ {
text: "拆除工单", text: "拆除工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/removeIcon.png", img: (__staticUrl + '/removeIcon.png'),
url: "../pages/removeOrder/removeOrder", url: "../pages/removeOrder/removeOrder",
}, },
{ {
text: "滤芯更换工单", text: "滤芯更换工单",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/partsIcon.png", img: (__staticUrl + '/partsIcon.png'),
url: "../pages/partsOrder/partsOrder", url: "../pages/partsOrder/partsOrder",
}, },
], ],
funcList2: [ funcList2: [
{ {
text: "滤芯预警营销", text: "滤芯预警营销",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/filterStock.png", img: (__staticUrl + '/filterStock.png'),
url: "/packages/partner/pages/marketingOrder1/marketingOrder1", url: "/packages/partner/pages/marketingOrder1/marketingOrder1",
}, },
{ {
text: "套餐预警营销", text: "套餐预警营销",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/filterStock.png", img: (__staticUrl + '/filterStock.png'),
url: "/packages/partner/pages/marketingOrder2/marketingOrder2", url: "/packages/partner/pages/marketingOrder2/marketingOrder2",
}, },
], ],
funcList3: [ funcList3: [
{ {
text: "滤芯订单(零售)", text: "滤芯订单(零售)",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/filterStock.png", img: (__staticUrl + '/filterStock.png'),
url: "/packages/partner/pages/order1/order1", url: "/packages/partner/pages/order1/order1",
}, },
{ {
text: "套餐订单(租赁)", text: "套餐订单(租赁)",
img: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/filterStock.png", img: (__staticUrl + '/filterStock.png'),
url: "/packages/partner/pages/order2/order2", url: "/packages/partner/pages/order2/order2",
}, },
], ],
@ -221,14 +222,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -7,7 +7,7 @@
</view> </view>
<view class="nav-bar-right"> <view class="nav-bar-right">
<image style="opacity: 0;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" /> <image style="opacity: 0;" src="https://static.hshuishang.com/water_filter/back.png" mode="widthFix" style="width:16rpx;height:28rpx" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -3,6 +3,7 @@ let apiArr = require('../../../../api/partner')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
// packages/WaterPurifier/pages/upKeep/upKeep.js // packages/WaterPurifier/pages/upKeep/upKeep.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -266,14 +267,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -20,7 +20,7 @@
<view class="ipt"> <view class="ipt">
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -4,6 +4,7 @@ let util = require('../../../../utils/util')
const apiArr = require('../../../../api/water_filter') const apiArr = require('../../../../api/water_filter')
let PayJs = require('../../../../api/pay') let PayJs = require('../../../../api/pay')
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -298,8 +299,7 @@ Page({
name:that.data.name, name:that.data.name,
region:that.data.region, region:that.data.region,
products, products,
// total_price:Number(that.data.price) total_price:Number(that.data.price)
total_price:Number(1)
},res=>{ },res=>{
that.setData({ that.setData({
orderMsg:res orderMsg:res
@ -441,14 +441,14 @@ queryPay(){
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -72,7 +72,7 @@
<view class="ipt"> <view class="ipt">
<input type="text" value="{{delId}}" bindinput="iptMt" placeholder="输订单编号" placeholder-style="color: #999999;font-size: 24rpx;" /> <input type="text" value="{{delId}}" bindinput="iptMt" placeholder="输订单编号" placeholder-style="color: #999999;font-size: 24rpx;" />
<view class="search"> <view class="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
<!-- <view class="select"> <!-- <view class="select">

View File

@ -2,6 +2,7 @@
let util = require('../../../../utils/util') let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/partner/pages/ranking/ranking.js // packages/partner/pages/ranking/ranking.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -88,14 +89,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -2,10 +2,10 @@
<Nav Text="销售排行" backColor="#ffffff" color="#ffffff" NavPosition="relative"></Nav> <Nav Text="销售排行" backColor="#ffffff" color="#ffffff" NavPosition="relative"></Nav>
<view class="text"> <view class="text">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/ranking_text.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/ranking_text.png" mode="widthFix"/>
</view> </view>
<view class="after"> <view class="after">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/ranking_img.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/ranking_img.png" mode="widthFix"/>
</view> </view>
<view class="phb"> <view class="phb">

View File

@ -4,6 +4,7 @@ let apiArr2 = require('../../../../api/water_filter')
const app = getApp({ allowDefault: true }) const app = getApp({ allowDefault: true })
// packages/WaterPurifier/pages/upKeep/upKeep.js // packages/WaterPurifier/pages/upKeep/upKeep.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -256,14 +257,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -19,7 +19,7 @@
<input value="{{searchText}}" confirm-type="search" bindconfirm="search" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" /> <input value="{{searchText}}" confirm-type="search" bindconfirm="search" confirm-type="search" bindconfirm="search" bindinput="ipt1" type="text" placeholder="设备编号/客户名称/客户手机/客户地址" placeholder-style="color: #999999;font-size: 28rpx;" />
<view class="searchBox" bind:tap="search"> <view class="searchBox" bind:tap="search">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/dervice/deriveSearch.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -3,6 +3,7 @@ let util = require('../../../../utils/util')
let apiArr = require('../../../../api/water_filter') let apiArr = require('../../../../api/water_filter')
// packages/partner/pages/team/team.js // packages/partner/pages/team/team.js
const __staticUrl = require('../../../../config/env.js').static_url
Page({ Page({
/** /**
@ -100,14 +101,14 @@ Page({
return { return {
title: '人人爱净水', // 分享卡片标题(必填) title: '人人爱净水', // 分享卡片标题(必填)
path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页) path: '/pages/water_filter/water_filter', // 用户点击后跳转的路径(可选,默认当前页)
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义图片(可选,比例建议 5:4 imageUrl: (__staticUrl + '/share.png') // 自定义图片(可选,比例建议 5:4
} }
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '人人爱净水', // 自定义标题 title: '人人爱净水', // 自定义标题
query: '', // 自定义页面路径中的参数 query: '', // 自定义页面路径中的参数
imageUrl: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/share.png' // 自定义分享图片路径 imageUrl: (__staticUrl + '/share.png') // 自定义分享图片路径
} }
}, },
}) })

View File

@ -2,7 +2,7 @@
<Nav Text="我的团队" backColor="#333333" NavPosition="relative"></Nav> <Nav Text="我的团队" backColor="#333333" NavPosition="relative"></Nav>
<view class="team_tit" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_img.png?1);"> <view class="team_tit" style="background-image: url('https://static.hshuishang.com/water_filter/partner/team_img.png?1');">
<view class="team_tit_item"> <view class="team_tit_item">
<view class="team_tit_item_num">{{Invite.city_operator_count}}</view> <view class="team_tit_item_num">{{Invite.city_operator_count}}</view>
<view class="team_tit_item_text">一级代理(位)</view> <view class="team_tit_item_text">一级代理(位)</view>
@ -20,7 +20,7 @@
<view class="teamMsg_item_left_text2">{{Invite.quilt_invite_total}}</view> <view class="teamMsg_item_left_text2">{{Invite.quilt_invite_total}}</view>
</view> </view>
<view class="teamMsg_item_right"> <view class="teamMsg_item_right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_icon1.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/partner/team_icon1.png?1" mode="widthFix" />
</view> </view>
</view> </view>
<view class="teamMsg_item"> <view class="teamMsg_item">
@ -29,19 +29,19 @@
<view class="teamMsg_item_left_text2">{{Invite.invite_name}}</view> <view class="teamMsg_item_left_text2">{{Invite.invite_name}}</view>
</view> </view>
<view class="teamMsg_item_right"> <view class="teamMsg_item_right">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_icon2.png?1" mode="widthFix" /> <image src="https://static.hshuishang.com/water_filter/partner/team_icon2.png?1" mode="widthFix" />
</view> </view>
</view> </view>
</view> </view>
<view class="team_form" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_img2.png?1);" bind:tap="Jump"> <view class="team_form" style="background-image: url('https://static.hshuishang.com/water_filter/partner/team_img2.png?1');" bind:tap="Jump">
销售排行榜 销售排行榜
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_icon3.png?1" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/team_icon3.png?1" mode="widthFix"/>
</view> </view>
<!-- <view class="team_form mr10" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_img3.png);" bind:tap="Jump2"> <!-- <view class="team_form mr10" style="background-image: url('https://static.hshuishang.com/water_filter/partner/team_img3.png');" bind:tap="Jump2">
邀请排行榜 邀请排行榜
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/partner/team_icon3.png" mode="widthFix"/> <image src="https://static.hshuishang.com/water_filter/partner/team_icon3.png" mode="widthFix"/>
</view> --> </view> -->
</view> </view>

View File

@ -1,16 +1,16 @@
<view> <view>
<!-- <view class="search-bar"> --> <!-- <view class="search-bar"> -->
<!-- <view class="search-bar__city"> --> <!-- <view class="search-bar__city"> -->
<!-- <image style="width: 33rpx; height: 33rpx;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/location.png"></image> --> <!-- <image style="width: 33rpx; height: 33rpx;" src="https://static.hshuishang.com/User/_assets/location.png"></image> -->
<!-- <text style="margin: 0 10rpx;">{{ '衡水市' }}</text> --> <!-- <text style="margin: 0 10rpx;">{{ '衡水市' }}</text> -->
<!-- <image --> <!-- <image -->
<!-- style="width: 12rpx; height: 22rpx; transform: rotate(90deg);" --> <!-- style="width: 12rpx; height: 22rpx; transform: rotate(90deg);" -->
<!-- src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/more.primary.12x22.png" --> <!-- src="https://static.hshuishang.com/User/_assets/more.primary.12x22.png" -->
<!-- > --> <!-- > -->
<!-- </image> --> <!-- </image> -->
<!-- </view> --> <!-- </view> -->
<!-- <view class="search-bar__input"> --> <!-- <view class="search-bar__input"> -->
<!-- <image style="width: 33rpx; height: 33rpx;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/search.png"></image> --> <!-- <image style="width: 33rpx; height: 33rpx;" src="https://static.hshuishang.com/User/_assets/search.png"></image> -->
<!-- <input class="search-bar__input-inner" placeholder="输入要搜索的社区名称"></input> --> <!-- <input class="search-bar__input-inner" placeholder="输入要搜索的社区名称"></input> -->
<!-- </view> --> <!-- </view> -->
<!-- </view> --> <!-- </view> -->
@ -39,11 +39,11 @@
</view> </view>
<view class="community-list-item__actions"> <view class="community-list-item__actions">
<view class="community-list-item__action community-list-item__nav"> <view class="community-list-item__action community-list-item__nav">
<image style="width: 24rpx; height: 24rpx;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/send.png"></image> <image style="width: 24rpx; height: 24rpx;" src="https://static.hshuishang.com/User/_assets/send.png"></image>
<text style="margin-left: 9rpx;">导航</text> <text style="margin-left: 9rpx;">导航</text>
</view> </view>
<view class="community-list-item__action community-list-item__call"> <view class="community-list-item__action community-list-item__call">
<image style="width: 24rpx; height: 24rpx;" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/phone.png"></image> <image style="width: 24rpx; height: 24rpx;" src="https://static.hshuishang.com/User/_assets/phone.png"></image>
<text style="margin-left: 9rpx;">电话</text> <text style="margin-left: 9rpx;">电话</text>
</view> </view>
<view style="flex: 1;"></view> <view style="flex: 1;"></view>

View File

@ -1,4 +1,5 @@
// packages/user/coupon/component/couponCard/index.js // packages/user/coupon/component/couponCard/index.js
const env = require('../../../../config/env.js')
Component({ Component({
/** /**
@ -15,7 +16,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
staticUrl: env.static_url,
}, },
/** /**

View File

@ -13,8 +13,8 @@
<view class="type_mode">全品类通用</view> <view class="type_mode">全品类通用</view>
</view> </view>
<view wx:if="{{item.state === 'usable'}}" class="right_btn" bindtap="headerUseClick">去使用</view> <view wx:if="{{item.state === 'usable'}}" class="right_btn" bindtap="headerUseClick">去使用</view>
<image wx:if="{{item.state === 'used'}}" class="icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_783.png" mode=""/> <image wx:if="{{item.state === 'used'}}" class="icon" src="https://static.hshuishang.com/User/_assets/Group_783.png" mode=""/>
<image wx:if="{{item.state === 'no'}}" class="icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_787.png" mode=""/> <image wx:if="{{item.state === 'no'}}" class="icon" src="https://static.hshuishang.com/User/_assets/Group_787.png" mode=""/>
</view> </view>
</view> </view>

View File

@ -1,6 +1,6 @@
<view class="container"> <view class="container">
<block wx:if="{{couponList.length === 0}}"> <block wx:if="{{couponList.length === 0}}">
<image class="no_coupon_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_no_coupon.png" mode=""/> <image class="no_coupon_pic" src="https://static.hshuishang.com/User/_assets/Group_no_coupon.png" mode=""/>
<view class="no_coupon_desc">您还没有可使用的优惠券~</view> <view class="no_coupon_desc">您还没有可使用的优惠券~</view>
</block> </block>
<block wx:if="{{couponList.length !== 0}}"> <block wx:if="{{couponList.length !== 0}}">

View File

@ -18,18 +18,18 @@
<view class="user_info" bindtap="headerPositionClick"> <view class="user_info" bindtap="headerPositionClick">
<view class="left"> <view class="left">
<view class="left_header"> <view class="left_header">
<image class="left_header_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Vector.png" mode=""/> <image class="left_header_icon" src="https://static.hshuishang.com/User/_assets/Vector.png" mode=""/>
<view class="desc">{{addAress.real_name}}</view> <view class="desc">{{addAress.real_name}}</view>
<van-icon class="contact_icon" name="phone-circle-o" /> <van-icon class="contact_icon" name="phone-circle-o" />
<view class="desc">{{addAress.mobile}}</view> <view class="desc">{{addAress.mobile}}</view>
</view> </view>
<view class="left_bottom">{{addAress.optionAddr}}</view> <view class="left_bottom">{{addAress.optionAddr}}</view>
</view> </view>
<image class="right_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Vector1.png" mode="" /> <image class="right_icon" src="https://static.hshuishang.com/User/_assets/Vector1.png" mode="" />
</view> </view>
<view class="payment_method"> <view class="payment_method">
<view class="payment"> <view class="payment">
<image class="payment_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Frame.png" mode=""/> <image class="payment_icon" src="https://static.hshuishang.com/User/_assets/Frame.png" mode=""/>
<view class="payment_right"> <view class="payment_right">
<view class="payment_right_left"> <view class="payment_right_left">
<view class="payment_title">微信支付</view> <view class="payment_title">微信支付</view>
@ -41,7 +41,7 @@
</view> </view>
</view> </view>
<!-- <view class="payment balance"> <!-- <view class="payment balance">
<image class="payment_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Frame1.png" mode=""/> <image class="payment_icon" src="https://static.hshuishang.com/User/_assets/Frame1.png" mode=""/>
<view class="payment_right"> <view class="payment_right">
<view class="payment_right_left"> <view class="payment_right_left">
<view class="payment_title">余额支付</view> <view class="payment_title">余额支付</view>

View File

@ -2,6 +2,7 @@ import { doNavigateWithUser } from '../../../utils/helper';
import { postUrl } from '../../../utils/util'; import { postUrl } from '../../../utils/util';
import waterApiArr from '../../../api/water_filter'; import waterApiArr from '../../../api/water_filter';
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
/** /**
@ -10,25 +11,25 @@ Page({
data: { data: {
functional_List: [ functional_List: [
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_25.png", "image": (__staticUrl + '/User/_assets/Group_25.png'),
"name": "推广海报", "name": "推广海报",
"url": "/packages/user/share/index", "url": "/packages/user/share/index",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_26.png", "image": (__staticUrl + '/User/_assets/Group_26.png'),
"name": "我的下级", "name": "我的下级",
"url": "", "url": "",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_35.png", "image": (__staticUrl + '/User/_assets/Group_35.png'),
"name": "下级订单", "name": "下级订单",
"url": "", "url": "",
"type": "h5" "type": "h5"
}, },
{ {
"image": "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_30.png", "image": (__staticUrl + '/User/_assets/Group_30.png'),
"name": "联系平台", "name": "联系平台",
"url": "", "url": "",
"type": "h5" "type": "h5"

View File

@ -1,7 +1,7 @@
<view class="container"> <view class="container">
<view class="header"> <view class="header">
<view class="left"> <view class="left">
<image class="avatar" src="{{userInfo.img ? userInfo.img : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/person/Group_309.png'}}"></image> <image class="avatar" src="{{userInfo.img ? userInfo.img : 'https://static.hshuishang.com/person/Group_309.png'}}"></image>
</view> </view>
<view class="right"> <view class="right">
<view class="user_name" bindtap="handleUserInfoClick"> <view class="user_name" bindtap="handleUserInfoClick">

View File

@ -8,7 +8,7 @@
<text class="points-overview__desc">积分规则</text> <text class="points-overview__desc">积分规则</text>
<image <image
style="width: 12rpx; height: 22rpx;" style="width: 12rpx; height: 22rpx;"
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/more.primary.12x22.png" src="https://static.hshuishang.com/User/_assets/more.primary.12x22.png"
> >
</image> </image>
</navigator > </navigator >

View File

@ -4,18 +4,18 @@
<view class="header"> <view class="header">
<view class="header_left"> <view class="header_left">
<view class="left_detail" bindtap="headerPointsClick"> <view class="left_detail" bindtap="headerPointsClick">
<image class="gold_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/401463152_31.png" mode=""/> <image class="gold_icon" src="https://static.hshuishang.com/User/_assets/401463152_31.png" mode=""/>
<text class="points">{{pointsNum}}</text> <text class="points">{{pointsNum}}</text>
<van-icon class="left_icon" color="#FFFFFF" name="arrow" /> <van-icon class="left_icon" color="#FFFFFF" name="arrow" />
</view> </view>
<view class="tomorrow_sign">明日签到+1</view> <view class="tomorrow_sign">明日签到+1</view>
</view> </view>
<view class="header_right"> <view class="header_right">
<image class="rigth_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/QIANDAO.png" mode=""/> <image class="rigth_icon" src="https://static.hshuishang.com/User/_assets/QIANDAO.png" mode=""/>
</view> </view>
</view> </view>
<view class="main" style="background-image: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Rectangle_112.png)"> <view class="main" style="background-image: url('https://static.hshuishang.com/User/_assets/Rectangle_112.png')">
<image class="center_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_311.png" mode=""/> <image class="center_icon" src="https://static.hshuishang.com/User/_assets/Group_311.png" mode=""/>
<view class="center_header"> <view class="center_header">
<view class="signed">本期已签到<text>{{checkedData}}</text>天</view> <view class="signed">本期已签到<text>{{checkedData}}</text>天</view>
<view class="center_time">{{starteTime}}~{{endTime}}</view> <view class="center_time">{{starteTime}}~{{endTime}}</view>
@ -30,8 +30,8 @@
<view class="item {{item.today && 'red_border'}}"> <view class="item {{item.today && 'red_border'}}">
<view wx:if="{{item.isSign}}" class="points_time {{!item.isSign && 'color_red'}}">{{item.time}}</view> <view wx:if="{{item.isSign}}" class="points_time {{!item.isSign && 'color_red'}}">{{item.time}}</view>
<view wx:if="{{!item.isSign}}" class="points_time {{!item.isSign && 'color_red'}}">+{{item.points}}</view> <view wx:if="{{!item.isSign}}" class="points_time {{!item.isSign && 'color_red'}}">+{{item.points}}</view>
<image class="points_icon" wx:if="{{item.isSign}}" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_518.png" mode=""/> <image class="points_icon" wx:if="{{item.isSign}}" src="https://static.hshuishang.com/User/_assets/Group_518.png" mode=""/>
<image class="points_icon" wx:else src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/401463152_31.png" mode=""/> <image class="points_icon" wx:else src="https://static.hshuishang.com/User/_assets/401463152_31.png" mode=""/>
</view> </view>
<view class="day_time">{{index +1}}天</view> <view class="day_time">{{index +1}}天</view>
</view> </view>

View File

@ -1,13 +1,14 @@
import util from '../../../utils/util'; import util from '../../../utils/util';
import apiArr from '../../../api/water_filter'; import apiArr from '../../../api/water_filter';
const __staticUrl = require('../../../config/env.js').static_url
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
imagePath: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test_qrcode.jpg', imagePath: (__staticUrl + '/test_qrcode.jpg'),
}, },
init() { init() {

View File

@ -3,7 +3,7 @@
height: 1334rpx; height: 1334rpx;
overflow-x: hidden; overflow-x: hidden;
/* position: relative; */ /* position: relative; */
background: url('https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Group_756.png'); background: url('https://static.hshuishang.com/User/_assets/Group_756.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.icon { .icon {

View File

@ -13,7 +13,7 @@
<view class="desc">配送地址</view> <view class="desc">配送地址</view>
<view class="header_addaress"> <view class="header_addaress">
<view class="desc">{{addAress.optionAddr}}</view> <view class="desc">{{addAress.optionAddr}}</view>
<image class="send_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Vector1.png" mode=""/> <image class="send_icon" src="https://static.hshuishang.com/User/_assets/Vector1.png" mode=""/>
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,4 +1,5 @@
import { import {
const __staticUrl = require('../../../config/env.js').static_url
pageTitle, pageTitle,
tabsList tabsList
} from './constant'; } from './constant';
@ -20,7 +21,7 @@ Page({
checked: 0, checked: 0,
allList: [{ allList: [{
number: "B123456", number: "B123456",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '白色乳胶记忆枕', title: '白色乳胶记忆枕',
amount: 45, amount: 45,
price: 60, price: 60,
@ -30,7 +31,7 @@ Page({
}, },
{ {
number: "A123456", number: "A123456",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '黑色涤纶裤子', title: '黑色涤纶裤子',
amount: 95, amount: 95,
price: 120, price: 120,
@ -39,7 +40,7 @@ Page({
}, },
{ {
number: "C9744123", number: "C9744123",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '紫色抱枕', title: '紫色抱枕',
amount: 600, amount: 600,
price: 600, price: 600,
@ -48,7 +49,7 @@ Page({
}, },
{ {
number: "B123456", number: "B123456",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '白色乳胶记忆枕', title: '白色乳胶记忆枕',
amount: 45, amount: 45,
price: 60, price: 60,
@ -57,7 +58,7 @@ Page({
}, },
{ {
number: "A123456", number: "A123456",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '黑色涤纶裤子', title: '黑色涤纶裤子',
amount: 95, amount: 95,
price: 120, price: 120,
@ -66,7 +67,7 @@ Page({
}, },
{ {
number: "C9744123", number: "C9744123",
icon: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Classroom.png', icon: (__staticUrl + '/User/_assets/Classroom.png'),
title: '紫色抱枕', title: '紫色抱枕',
amount: 600, amount: 600,
price: 600, price: 600,

View File

@ -6,7 +6,7 @@
<view wx:if="{{list.length === 0}}" class="no_ordes"> <view wx:if="{{list.length === 0}}" class="no_ordes">
<image class="no_orders_icon" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/Clip_path group.png" mode=""/> <image class="no_orders_icon" src="https://static.hshuishang.com/User/_assets/Clip_path group.png" mode=""/>
<view class="no_orders_desc">您还没有{{title}}的订单~</view> <view class="no_orders_desc">您还没有{{title}}的订单~</view>
</view> </view>
<view class="main" wx:else> <view class="main" wx:else>

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