Browse Source

no message

feature/v1.0
xpz2018 5 years ago
parent
commit
cf97ea67a1
6 changed files with 15 additions and 10 deletions
  1. 6
      api/user.js
  2. 8
      pages/login/index.js
  3. 5
      pages/process/index/index.js
  4. 2
      pages/process/order-price/index.js
  5. 2
      pages/process/order-price/index.wxml
  6. 2
      pages/process/payment/index.wxml

6
api/user.js

@ -18,6 +18,9 @@ const postCaptcha = (params) => mPost(`/uec/get/auth-captcha`, params, config)
const setPassword = (params) => mPost(`/uec/user/set/sign-in-password`, params, config)
const modifyMobile = (params) => mPost(`/uec/user/modify/mobile`, params, config)
const updateUserInfo = (params) => mPost('/uec/user/update/user-info', params, config)
const getAuthSession = () => mGet('/uec/create/identity-auth-session', null, config)
const certificateImage = (params) => mPost('/uec/recognize/certificate-img', params, config)
const certificateIdentity = (params) => mPost('/uec/identify/identity', params, config)
const generateCode = (params) => mPost('/uec/generate/qrcode', params, config)
const verifyCode = (code, params) => mGet(`/uec/verify/qrcode${code}`, params, config)
const applyEmplyee = (params) => mPost(`/uec/apply/to/be/employee/of/enterprise-department`, params, config)
@ -184,6 +187,9 @@ export {
finalizeToken,
wechatApplet,
updateUserInfo,
getAuthSession,
certificateImage,
certificateIdentity,
postCaptcha,
loginPwd,
loginCaptcha,

8
pages/login/index.js

@ -1,7 +1,7 @@
//获取应用实例
import Dialog from '../../components/dialog/dialog'
import { config, wechatApplet, loginWechat, postCaptcha, loginCaptcha, loginPwd, verifyCode, applyEmplyee } from "../../api/user"
import { sconfig, loginToken, getUserInfo, getBaseInfo, bindingAdmin } from "../../api/saas"
import { sconfig, loginToken, getUserInfo, bindingAdmin } from "../../api/saas"
const util = require('../../utils/util')
const storage = require('../../utils/storage')
const app = getApp()
@ -95,12 +95,6 @@ Page({
sconfig.header = { 'Authorization': 'QNT ' + result.data }
getUserInfo().then(result => {
wx.hideLoading()
// if(!result.data.isSaasPerssion){
// this.setData({ loging: false})
// Dialog.alert({ title: '温馨提示', message: '您还不是纸通宝SAAS的授权客户,无法使用,如有疑问请联系相关客服人员。' }).then(() => {
// })
// return
// }
app.userInfo = result.data
app.globalData.token = authorization
storage.put('Authorization', app.globalData.token)

5
pages/process/index/index.js

@ -53,6 +53,11 @@ Component({
}
},
orderList: function (e) {
// if(!app.userInfo.isSaasPerssion){
// Dialog.alert({ title: '温馨提示', message: '您还不是纸通宝SAAS的授权客户,无法使用,如有疑问请联系相关客服人员。' }).then(() => {
// })
// return
// }
if(app.userInfo.applicationStatus == 0){
Dialog.alert({ title: '温馨提示', message: '您的申请还在审核中,如有疑问请联系管理员。' }).then(() => {
})

2
pages/process/order-price/index.js

@ -62,7 +62,7 @@ Page({
this.data.nowItem = this.data.paperList[detail.index]
this.data.form.productId = this.data.nowItem.id
var unitPrice = this.data.nowItem.defaultUnitPrice
this.setData({ visible: false, ['form.productCategoryName']: detail.value, ['form.unitPrice']: unitPrice })
this.setData({ visible: false, ['form.productName']: detail.value, ['form.unitPrice']: unitPrice })
},
onHide: function(){
this.setData({ visible: false })

2
pages/process/order-price/index.wxml

@ -23,7 +23,7 @@
<text>废纸品类</text>
<text class="text-red text-xl">*</text>
</view>
<view class="text-gray">{{form.productCategoryName || '请选择废纸品类'}}</view>
<view class="text-gray">{{form.productName || '请选择废纸品类'}}</view>
</view>
</van-cell>
<van-index-anchor index="定价信息" />

2
pages/process/payment/index.wxml

@ -35,7 +35,7 @@
<view class="text-sm text-gray">2021年2月22日</view>
</view>
<view class="text-sm text-gray" style="line-height:54rpx">
<text>废纸品类:{{item.productCategoryName}}</text>
<text>废纸品类:{{item.productName}}</text>
<text style="margin-left:32rpx">金额:{{formate.formateAmount(item.settlePrice)}}元</text>
</view>
</view>

Loading…
Cancel
Save