Commit 2ead5caa by 张立顺

v12.1.0 功能开发

1 parent f4bcbfc8
{
"pages": [
"pages/tab/index/index",
"pages/tab/personal/personal",
"pages/auth/userInfo/userInfo",
"pages/auth/phone/phone",
"pages/route/to",
"pages/webpage/webpage",
"pages/upgrade/upgrade",
"pages/auth/login/login",
"pages/auth/index/index",
"pages/tab/logout/logout"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "我的智慧微店",
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#999999",
"selectedColor": "#333333",
"backgroundColor": "#FFFFFF",
"list": [
{
"pagePath": "pages/tab/index/index",
"text": "首页",
"iconPath": "images/home.png",
"selectedIconPath": "images/home_active.png"
},
{
"pagePath": "pages/tab/personal/personal",
"text": "我的",
"iconPath": "images/mine.png",
"selectedIconPath": "images/mine_active.png"
}
]
},
"usingComponents": {
"navigation-bar": "components/navigationBar/navigationBar",
"share": "components/share/share",
"list": "components/list/list",
"activity-list": "components/activityList/activityList",
"shop-order": "components/shopOrder/shopOrder",
"servicer-list": "components/servicerList/servicerList",
"coupon": "components/coupon/coupon",
"marquee": "components/marquee/marquee",
"auth-setting": "components/authSetting/authSetting",
"copy-wx": "components/copyWx/copyWx",
"my-mileage": "components/myMileage/myMileage",
"date-picker": "components/datePicker/datePicker",
"dropdown": "components/dropdown/dropdown",
"modal": "components/modal/modal",
"cell": "components/cell/cell",
"gl-textarea": "components/glTextarea/glTextarea",
"my-swiper": "components/mySwiper/mySwiper",
"label": "components/icon/label/label",
"order-list": "components/orderList/orderList",
"nav-tab": "components/navTab/navTab",
"left-nav-tab": "components/leftNavTab/leftNavTab",
"cmd-list": "components/cmdList/cmdList",
"star-score": "components/starScore/starScore",
"star-score-res": "components/starScoreRes/starScoreRes",
"error-msg": "components/errorMsg/errorMsg",
"err-msg-no-icon": "components/errMsgNoIcon/errMsgNoIcon",
"gl-tab": "components/glTab/glTab",
"calendar": "/components/Calendar/Calendar"
},
"permission": {
"scope.userLocation": {
"desc": "您的位置信息将用于小程序服务"
}
},
"plugins": {
"live-player-plugin": {
"version": "1.2.7",
"provider": "wx2b03c6e691cd7370"
}
},
"sitemapLocation": "sitemap.json",
"subpackages": [
{
"name": "homeindex",
"root": "packageIndex",
"pages": [
"pages/servicerAdviser/index/index",
"pages/servicerAdviser/detail/detail",
"pages/servicerAdviser/share/share",
"pages/servicerAdviser/merchant/merchant",
"pages/servicerAdviser/servicers/servicers",
"pages/servicerAdviser/viewActivity/viewActivity",
"pages/servicerAdviser/servicersInfo/servicersInfo",
"pages/remindService/index/index",
"pages/remindService/activity/activity",
"pages/remindService/activityDetail/activityDetail",
"pages/remindService/couponList/couponList",
"pages/quote/index/index",
"pages/quote/quoteRes/quoteRes",
"pages/index/index"
]
},
{
"name": "smartplus",
"root": "packageSmartPlus",
"pages": [
"pages/vehicleTracking/index/index",
"pages/vehicleTracking/share/share",
"pages/cloudSecurity/index/index",
"pages/cloudSecurity/setting/setting",
"pages/journey/index/index",
"pages/journey/detail/detail",
"pages/journey/share/share",
"pages/live/livePlay/livePlay",
"pages/live/reviewPlayList/reviewPlayList",
"pages/bindingDevice/bind/bind",
"pages/bindingDevice/index/index",
"pages/bindingDevice/devices/devices",
"pages/device/bindDevice/index",
"pages/device/boughtDevice/index"
]
},
{
"name": "personal",
"root": "packagePersonal",
"pages": [
"pages/vehicle/vehicle",
"pages/carBrandList/carBrandList",
"pages/coupon/list/list",
"pages/coupon/detail/detail",
"pages/order/order",
"pages/paid/paid",
"pages/message/message",
"pages/equity/equity",
"pages/address/address",
"pages/addOrEditAddress/addOrEditAddress",
"pages/refund/refund",
"pages/deliveryInfo/deliveryInfo",
"pages/successPay/successPay",
"pages/boutique/boutique",
"pages/boutiqueDetail/boutiqueDetail",
"pages/boutiqueMore/boutiqueMore",
"pages/boutiqueComment/boutiqueComment",
"pages/error/error",
"pages/boutiquePages/boutiquePay/boutiquePay",
"pages/boutiquePages/boutiquePaySuccess/boutiquePaySuccess",
"pages/boutiquePages/boutiqueInstall/boutiqueInstall",
"pages/boutiquePages/gift/gift",
"pages/boutiquePages/evaluation/evaluation",
"pages/boutiquePages/receiveSuccess/receiveSuccess",
"pages/smartplus/smartplus",
"pages/boutiqueList/boutiqueList",
"pages/boutiquePages/invite/invite",
"pages/boutiquePages/inviteSuccess/inviteSuccess"
]
}
],
"preloadRule": {
"pages/tab/index/index": {
"network": "all",
"packages": [
"homeindex"
]
},
"pages/tab/personal/personal": {
"network": "all",
"packages": [
"personal"
]
},
"packagePersonal/pages/smartplus/smartplus": {
"network": "all",
"packages": [
"smartplus"
]
}
}
}
\ No newline at end of file \ No newline at end of file
...@@ -8,10 +8,10 @@ import * as Sentry from './utils/sentry-miniapp.wx.min' ...@@ -8,10 +8,10 @@ import * as Sentry from './utils/sentry-miniapp.wx.min'
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
// console.log(Sentry) // console.log(Sentry)
// 初始化 Sentry 生产环境再开启 // 初始化 Sentry 生产环境再开启
// accountInfo.miniProgram.envVersion == 'release' && accountInfo.miniProgram.envVersion == 'release' &&
Sentry.init({ Sentry.init({
dsn: 'https://bcc13d39aab94cba95ce03b65035b5a5@sentry.glsx.com.cn/25' dsn: 'https://bcc13d39aab94cba95ce03b65035b5a5@sentry.glsx.com.cn/25'
}) })
//app.js //app.js
App({ App({
// 当小程序初始化完成时,会触发 onLaunch(全局只触发一次) // 当小程序初始化完成时,会触发 onLaunch(全局只触发一次)
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
{ {
"name": "payment", "name": "payment",
"root": "packagesPayment", "root": "packagesPayment",
"pages": ["pages/payment/index", "pages/QRPayment/QRPayment"] "pages": ["pages/payment/index", "pages/QRPayment/QRPayment", "pages/userCollaboration/userCollaboration"]
} }
], ],
"preloadRule": { "preloadRule": {
......
/**
*
0本地
1开发
2测试
3生产环境
*/
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false
const release = false
let index = 1
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// trial:体验版
// release:正式版
// console.log( systemInfo.platform);
// console.log(accountInfo.miniProgram.envVersion);
if (systemInfo.platform != 'devtools') {
switch (accountInfo.miniProgram.envVersion) {
case 'develop':
// this.globalData.url = 'http://192.168.0.252:3000/api'; //
break
case 'trial':
index = manual ? index : 2
break
case 'release':
index = release? index : 3
break
default:
index = 3
break
}
}
// console.log(index);
const secretKey_items = {
ip: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
uat: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
prod: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
}
}
const domain_items = {
// ip: 'http://192.168.2.59:8292',
ip:'http://192.168.1.129:8392',
// ip: 'http://192.168.2.3:8292',
dev: 'https://dj.dev.glsx.com.cn',
uat: 'https://dj.test.glsx.com.cn',
prod: 'https://dj.glsx.com.cn'
}
const target = ['ip', 'dev', 'uat', 'prod']
// console.log(domain_items[target[index]]);
module.exports = {
domain: domain_items[target[index]],
secretKey: secretKey_items[target[index]]
}
import environment from './environment.js'
import sha1 from './sha1.js'
const path = '/rop-dj-car-boutique/router'
import qs from './qs'
const sign = (params, secret, noSignAttr = []) => {
delete params.sign
var objStr = qs.stringify(params, {
arrayFormat: 'indices',
allowDots: true,
encodeValuesOnly: true
})
var objVal = objStr.split('&')
var realObj = {}
objVal.forEach(item => {
const idx = item.indexOf('=')
realObj[item.split('=')[0]] = decodeURIComponent(item.slice(idx + 1))
})
const keys = Object.keys(realObj).sort()
var str = []
var obj = null
for (const key in realObj) {
obj = realObj[key]
if (obj === null) {
obj = ''
} else if (typeof obj === 'object') {
obj = JSON.stringify(obj)
}
realObj[key] = obj
}
keys.forEach(e => {
!noSignAttr.includes(e) && str.push(e + realObj[e])
})
realObj.sign = sha1(secret + str.join('') + secret).toUpperCase()
return realObj
}
module.exports = {
...environment,
path,
sign
}
\ No newline at end of file \ No newline at end of file
...@@ -28,7 +28,9 @@ Page({ ...@@ -28,7 +28,9 @@ Page({
openId: 'oQ6Sh5cGirPd55Oc1J1oJSRpboFM', openId: 'oQ6Sh5cGirPd55Oc1J1oJSRpboFM',
// openId: '', // openId: '',
outTradeNo: '', outTradeNo: '',
workWechatQrcode:'' workWechatQrcode: '',
userCollaborationName: '',
userCollaborationCheck: false
}, },
/** /**
...@@ -44,21 +46,6 @@ Page({ ...@@ -44,21 +46,6 @@ Page({
console.log('隐藏成功!') console.log('隐藏成功!')
} }
}) })
// this.successInfo()
// api.createWxPayOrderH5({ merchantId: '44184606', receivedMoney: 22 }, res => {
// // util.hideLoading()
// console.log(res)
// // console.log(JSON.parse(res.data))
// // let jsapiPayInfo = res.data ? JSON.parse(res.data) : {}
// // _this.wxPayment(jsapiPayInfo)
// })
// api.queryPayOrderStatus({ outTradeNo: '0120220709547257827237044224' }, res => {
// // util.hideLoading()
// console.log(res)
// // console.log(JSON.parse(res.data))
// // let jsapiPayInfo = res.data ? JSON.parse(res.data) : {}
// // _this.wxPayment(jsapiPayInfo)
// })
// options = { // options = {
// sceneId%3D4 // sceneId%3D4
...@@ -70,13 +57,23 @@ Page({ ...@@ -70,13 +57,23 @@ Page({
// console.log(id) // console.log(id)
//获取门店信息 //获取门店信息
this.getMerthcantInfo(id) this.getMerthcantInfo(id)
// 获取用户隐私协议配置
this.getTitleByModule()
// this.navToUserCollaboration()
// this.setData({ // this.setData({
// merchantId: id // merchantId: id
// }) // })
}, },
navToUserCollaboration() {
gteOpenId: function () { wx.$router.go('userCollaboration')
// console.log(wx.$router.getRouterList())
},
handleRadio() {
this.setData({
userCollaborationCheck: !this.data.userCollaborationCheck
})
},
gteOpenId() {
// debugger // debugger
// 登录 // 登录
wx.login({ wx.login({
...@@ -127,20 +124,34 @@ Page({ ...@@ -127,20 +124,34 @@ Page({
} }
) )
}, },
getTitleByModule() {
api
.getTitleByModule({ module: 'PrivacyAgreement' })
.then(result => {
console.log(result)
let { data, code } = result
if (code == 0)
this.setData({
userCollaborationName: data
})
})
.catch(err => {
console.log(err)
})
},
// 获取企微二维码 // 获取企微二维码
getwxQrcode() { getwxQrcode() {
// let { merchantId: yqMerchantId } = this.data // let { merchantId: yqMerchantId } = this.data
let { merchantId: yqMerchantId } = this.data let { merchantId: yqMerchantId } = this.data
// api.yqMerchantDetail({ yqMerchantId:'44211025' }, res => { // api.yqMerchantDetail({ yqMerchantId:'44211025' }, res => {
// 去掉调试 // 去掉调试
api.yqMerchantDetail({ yqMerchantId }, res => { api.yqMerchantDetail({ yqMerchantId }, res => {
console.log(res) console.log(res)
let { returnCode, data } = res let { returnCode, data } = res
if (returnCode == '0') { if (returnCode == '0') {
if (data) { if (data) {
let {workWechatQrcode} = data let { workWechatQrcode } = data
this.setData({ this.setData({
workWechatQrcode workWechatQrcode
}) })
...@@ -202,7 +213,10 @@ Page({ ...@@ -202,7 +213,10 @@ Page({
// 支付 // 支付
handlePay() { handlePay() {
let _this = this let _this = this
const { payMoney, merchantId, openId, unPayMoneyList } = this.data const { payMoney, merchantId, openId, unPayMoneyList, userCollaborationName, userCollaborationCheck } = this.data
if (userCollaborationName && !userCollaborationCheck) {
return util.showToast(`请先阅读并勾选《${userCollaborationName}》`)
}
if (payMoney === '' || unPayMoneyList.includes(payMoney)) return if (payMoney === '' || unPayMoneyList.includes(payMoney)) return
// this.wxPayment(payMoney) // this.wxPayment(payMoney)
// console.log(Number(payMoney), '付款') // console.log(Number(payMoney), '付款')
......
<!-- packagesPayment/pages/QRPayment/QRPayment.wxml --> <!-- packagesPayment/pages/QRPayment/QRPayment.wxml -->
<!-- 二维码支付 --> <!-- 二维码支付 -->
<view wx:if="{{unpaid}}"> <view wx:if="{{unpaid}}">
<!-- <web-view src="https://img02.glsx.com.cn/zfSPSBsHw1.txt" /> -->
<view class="pay-container" catchtap="handleHiddenKey"> <view class="pay-container" catchtap="handleHiddenKey">
<view class="pay-header payCompanyInfo"> <view class="pay-header payCompanyInfo">
<!-- <view class=""> --> <!-- <view class=""> -->
...@@ -22,6 +23,13 @@ ...@@ -22,6 +23,13 @@
<view hidden="{{keyHidden}}" class="pay-cursor" /> <view hidden="{{keyHidden}}" class="pay-cursor" />
<view class="pay-after-icon">元</view> <view class="pay-after-icon">元</view>
</view> </view>
<view class="userCollaborationContainer" wx:if="{{userCollaborationName}}">
<!-- <label class="radio"> value="{{userCollaborationCheck}}" -->
<radio style="transform:scale(0.6)" checked="{{userCollaborationCheck}}" catchtap="handleRadio" />
<view catchtap="handleRadio">我已阅读并同意</view>
<!-- </label> -->
<view class="linkText" catchtap="navToUserCollaboration">《{{userCollaborationName}}》</view>
</view>
</view> </view>
</view> </view>
<view class="keyboard {{ !keyHidden && 'hind_box' }}"> <view class="keyboard {{ !keyHidden && 'hind_box' }}">
...@@ -85,12 +93,13 @@ ...@@ -85,12 +93,13 @@
<view class="info">{{item.info}}</view> <view class="info">{{item.info}}</view>
</view> </view>
</block> --> </block> -->
<view class="footerCon"> <view class="footerCon">
<block wx:if="{{workWechatQrcode}}"> <block wx:if="{{workWechatQrcode}}">
<view class="wxTips">长按识别扫码领取质保卡</view> <view class="wxTips">长按识别扫码领取质保卡</view>
<image show-menu-by-longpress="true" class="wxqrCon" src="{{workWechatQrcode}}" /> <image show-menu-by-longpress="true" class="wxqrCon" src="{{workWechatQrcode}}" />
</block> </block>
<image class="logoIcon" src="../../../images/djLogin.png" /></view> <image class="logoIcon" src="../../../images/djLogin.png" />
</view>
</view> </view>
</view> </view>
...@@ -19,6 +19,17 @@ ...@@ -19,6 +19,17 @@
/* flex-wrap: wrap; */ /* flex-wrap: wrap; */
} }
.userCollaborationContainer {
display: flex;
align-items: center;
margin-top: 15rpx;
font-size: 24rpx;
}
.linkText {
color: #3582EE;
}
.pay-header .shopIcon { .pay-header .shopIcon {
height: 88rpx; height: 88rpx;
width: 88rpx; width: 88rpx;
......
// packagesPayment/pages/userCollaboration/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!-- packagesPayment/pages/userCollaboration/index.wxml -->
<!-- <text>packagesPayment/pages/userCollaboration/index.wxml</text> -->
<web-view src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/userCollaboration.html" />
/* packagesPayment/pages/userCollaboration/index.wxss */
\ No newline at end of file \ No newline at end of file
import { secretKey, domain, path, sign } from './http.js'
import util from '../utils/util.js'
/**接口 */
class Request {
get(method, data, noSignAttr) {
return this.request('GET', method, data, noSignAttr)
}
post(method, data, noSignAttr) {
return this.request('POST', method, data, noSignAttr)
}
request(RequestMethods, method, data, noSignAttr = []) {
let _this = this
return new Promise((resolve, reject) => {
wx.showNavigationBarLoading()
if (!data) data = {}
let header =
RequestMethods === 'POST'
? {
'content-type': 'application/x-www-form-urlencoded'
}
: {}
data = _this.getData(data, method, noSignAttr)
wx.request({
url: `${domain}${path}?method=${method}`,
data,
method: RequestMethods,
header,
dataType: 'json',
responseType: 'text',
success(response) {
/**业务代码 */
let {
data: { code },
data
} = response
if (code == 20 || code == 21) {
wx.hideLoading()
wx.showModal({
title: '温馨提示',
content: '登录过期,请重新登录。',
showCancel: false,
confirmText: '去登录',
confirmColor: '#3582EE',
success(res) {
if (res.confirm) {
getApp().login(true)
}
}
})
} else {
resolve(data)
}
},
fail(error) {
wx.hideLoading()
console.error(`接口异常:${domain}${path}?method=${method}`, error)
wx.showToast({
title: '系统异常',
icon: 'error'
})
reject(error)
// if (fail && typeof fail == 'function') {
// fail(error, reject)
// } else {
// }
},
complete() {
wx.stopPullDownRefresh()
wx.hideNavigationBarLoading()
}
})
})
}
getData(data, method, noSignAttr) {
// let sessionId = util.getSessionId()
// if (sessionId) data['sessionId'] = sessionId
data['v'] = '1.0.0'
data['method'] = method
data['format'] = 'json'
data['locale'] = 'zh_CN'
data['source'] = 'dj-wechat'
data['appKey'] = secretKey.appKey
let obj = sign(data, secretKey.secret, noSignAttr)
//data['sign'] = obj.sign;
return obj
}
}
export default new Request()
const restapi = require('../utils/restapi.js') const restapi = require('../utils/restapi.js')
import api from './request.js'
module.exports = { module.exports = {
/** 获取订单数据*/ /** 获取订单数据*/
GETORDERINFO: function (oParams, success, fail) { GETORDERINFO: function (oParams, success, fail) {
...@@ -84,5 +84,9 @@ module.exports = { ...@@ -84,5 +84,9 @@ module.exports = {
success, success,
fail fail
) )
},
/** 获取用户协议配置 */
getTitleByModule(data) {
return api.post('dj.api.smartcarlife.privacyAgreement.getTitleByModule', data)
} }
} }
...@@ -175,12 +175,30 @@ module.exports = { ...@@ -175,12 +175,30 @@ module.exports = {
{ {
'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/x-www-form-urlencoded'
}, },
// 'POST', // 'POST',
'GET', 'GET',
'json', 'json',
'text', 'text',
success, success,
fail fail
) )
},
/** 获取隐私协议标题查询 */
getTitleByModule: function (params, success, fail) {
restapi.req(
'/rop-dj-car-boutique/router?method=dj.api.smartcarlife.privacyAgreement.getTitleByModule',
// '/rop-dj-car-boutique/smartcarlife/privacyAgreement/getTitleByModule',
// JSON.stringify(code),
params,
{
'content-type': 'application/x-www-form-urlencoded'
},
'POST',
// 'GET',
'json',
'text',
success,
fail
)
} }
} }
function encodeUTF8(s) {
var i, r = [], c, x;
for (i = 0; i < s.length; i++)
if ((c = s.charCodeAt(i)) < 0x80) r.push(c);
else if (c < 0x800) r.push(0xC0 + (c >> 6 & 0x1F), 0x80 + (c & 0x3F));
else {
if ((x = c ^ 0xD800) >> 10 == 0) //对四字节UTF-16转换为Unicode
c = (x << 10) + (s.charCodeAt(++i) ^ 0xDC00) + 0x10000,
r.push(0xF0 + (c >> 18 & 0x7), 0x80 + (c >> 12 & 0x3F));
else r.push(0xE0 + (c >> 12 & 0xF));
r.push(0x80 + (c >> 6 & 0x3F), 0x80 + (c & 0x3F));
};
return r;
}
// 字符串加密成 hex 字符串
function sha1(s) {
var data = new Uint8Array(encodeUTF8(s))
var i, j, t;
var l = ((data.length + 8) >>> 6 << 4) + 16, s = new Uint8Array(l << 2);
s.set(new Uint8Array(data.buffer)), s = new Uint32Array(s.buffer);
for (t = new DataView(s.buffer), i = 0; i < l; i++)s[i] = t.getUint32(i << 2);
s[data.length >> 2] |= 0x80 << (24 - (data.length & 3) * 8);
s[l - 1] = data.length << 3;
var w = [], f = [
function () { return m[1] & m[2] | ~m[1] & m[3]; },
function () { return m[1] ^ m[2] ^ m[3]; },
function () { return m[1] & m[2] | m[1] & m[3] | m[2] & m[3]; },
function () { return m[1] ^ m[2] ^ m[3]; }
], rol = function (n, c) { return n << c | n >>> (32 - c); },
k = [1518500249, 1859775393, -1894007588, -899497514],
m = [1732584193, -271733879, null, null, -1009589776];
m[2] = ~m[0], m[3] = ~m[1];
for (i = 0; i < s.length; i += 16) {
var o = m.slice(0);
for (j = 0; j < 80; j++)
w[j] = j < 16 ? s[i + j] : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1),
t = rol(m[0], 5) + f[j / 20 | 0]() + m[4] + w[j] + k[j / 20 | 0] | 0,
m[1] = rol(m[1], 30), m.pop(), m.unshift(t);
for (j = 0; j < 5; j++)m[j] = m[j] + o[j] | 0;
};
t = new DataView(new Uint32Array(m).buffer);
for (var i = 0; i < 5; i++)m[i] = t.getUint32(i << 2);
var hex = Array.prototype.map.call(new Uint8Array(new Uint32Array(m).buffer), function (e) {
return (e < 16 ? "0" : "") + e.toString(16);
}).join("");
return hex;
}
module.exports = sha1
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// const domain = 'http://192.168.3.181:9182' // const domain = 'http://192.168.3.181:9182'
// const domain = 'https://dj.dev.glsx.com.cn' // const domain = 'https://dj.dev.glsx.com.cn'
// env:uat // env:uat
// const domain = 'https://dj.test.glsx.com.cn' const domain = 'https://dj.test.glsx.com.cn'
// env:prod // env:prod
const domain = 'https://dj.glsx.com.cn' // const domain = 'https://dj.glsx.com.cn'
const app = getApp() const app = getApp()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!