Commit f5fe0238 authored by Morson's avatar Morson

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents 1524117b 127ac223
(function () { (function () {
let NODE_ENV = 'dev'; // dev:开发环境 | test:测试环境 | prod:生产环境 let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null; let ENV_VAR = null;
let VERSION_NUMBER = '1.3.9';//版本号 let VERSION_NUMBER = '1.3.9';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频 //小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
......
...@@ -31,8 +31,14 @@ ...@@ -31,8 +31,14 @@
const self = this const self = this
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
self.dataValue = res.result let result = res.result
self.valueChange(res.result) if (result.substring(0, 4) === 'http') {
const arr = result.split('/#/')
console.log("arr", arr)
result = arr[1]
}
self.dataValue = result
self.valueChange(result)
} }
}); });
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</view> </view>
<view class="u-flex right"> <view class="u-flex right">
<view class="right-img"> <view class="right-img">
<u-image :src="info.images || noPartsImage" width="200rpx" height="200rpx" /> <u-image :src="partsImage(info.images)" width="200rpx" height="200rpx" />
</view> </view>
<view class="u-flex right-content"> <view class="u-flex right-content">
<view class="right-content-name">{{ info.name }}</view> <view class="right-content-name">{{ info.name }}</view>
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
} }
} }
}, },
computed: {
noPartsImage() {
return process.uniEnv.qn_base_url + 'morentupian.png'
}
},
data() { data() {
return { return {
} }
...@@ -57,6 +52,9 @@ ...@@ -57,6 +52,9 @@
created() { created() {
}, },
methods: { methods: {
partsImage(images) {
return images ? process.uniEnv.systemUrl.apiUrl + images : process.uniEnv.qn_base_url + 'morentupian.png'
},
selectChange(event) { selectChange(event) {
this.$emit('selectChange', event.value) this.$emit('selectChange', event.value)
}, },
......
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
}) })
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
<u-button :custom-style="customStyle" shape="circle" @click="handleClick" type="primary"> <u-button :custom-style="customStyle" shape="circle" @click="handleClick" type="primary">
{{buttonText}} {{buttonText}}
</u-button> </u-button>
</view>
<view>
<u-toast ref="uToast" />
</view> </view>
</view> </view>
</template> </template>
...@@ -194,7 +197,7 @@ ...@@ -194,7 +197,7 @@
}, },
methods: { methods: {
handleClick() { handleClick() {
this.$u.api[this.operateType](this.info.id).then(res => { this.$u.api[this.buttonOperateType](this.info.id).then(res => {
var type = 'error' var type = 'error'
var message = res.message var message = res.message
if (res.code == 200) { if (res.code == 200) {
...@@ -206,7 +209,7 @@ ...@@ -206,7 +209,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
var pages = getCurrentPages(); var pages = getCurrentPages();
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</view> </view>
<NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无备件信息" :customStyle="noPartsCustomStyle" /> <NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无备件信息" :customStyle="noPartsCustomStyle" />
<template v-else> <template v-else>
<view class="title-view"> <view class="title-view" v-if="this.loaded">
<view>备件列表</view> <view>备件列表</view>
<view class="title-right-view"> <view class="title-right-view">
<view class="bounce-view" v-if="!showBounce" @click="showBounce = true">退件</view> <view class="bounce-view" v-if="!showBounce" @click="showBounce = true">退件</view>
......
...@@ -924,7 +924,7 @@ ...@@ -924,7 +924,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
}) })
......
...@@ -31,7 +31,7 @@ const store = new Vuex.Store({ ...@@ -31,7 +31,7 @@ const store = new Vuex.Store({
state: { state: {
// 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量 // 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量
vuex_user: lifeData.vuex_user ? lifeData.vuex_user : {}, vuex_user: lifeData.vuex_user ? lifeData.vuex_user : {},
vuex_token: 'RTOKENe4a0c2fb1f93d97d58147a0d41004b00007b2e1e', //lifeData.vuex_token ? lifeData.vuex_token : '', vuex_token: lifeData.vuex_token ? lifeData.vuex_token : '',
vuex_cache: lifeData.vuex_cache ? lifeData.vuex_cache : {}, vuex_cache: lifeData.vuex_cache ? lifeData.vuex_cache : {},
vuex_version: '1.0.1', vuex_version: '1.0.1',
vuex_config: {}, vuex_config: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment