Browse Source

yshop1.9.7,bug修复版本,修复后台删除拼团产品null、邮费问题等

master
hupeng 5 years ago
parent
commit
3a7da7f3c7
  1. 2
      src/views/dashboard/YshopInfo.vue
  2. 66
      src/views/wechat/config/postage.vue

2
src/views/dashboard/YshopInfo.vue

@ -36,7 +36,7 @@
<span style="font-weight: bolder">小程序演示</span>关注上面公众号之后选择yshop小程序体验即可 <span style="font-weight: bolder">小程序演示</span>关注上面公众号之后选择yshop小程序体验即可
</div> </div>
<div class="text item"> <div class="text item">
<span style="font-weight: bolder">H5演示</span><a target="_blank" href="https://h5.dayouqiantu.cn">https://h5.dayouqiantu.cn</a> <br /> <span style="font-weight: bolder">H5演示</span><a target="_blank" href="https://h5.yixiang.co">https://h5.yixiang.co</a> <br />
<span style="font-weight: bolder">H5测试号</span>hupeng/123456,也可以自行注册 <span style="font-weight: bolder">H5测试号</span>hupeng/123456,也可以自行注册
</div> </div>
</el-card> </el-card>

66
src/views/wechat/config/postage.vue

@ -0,0 +1,66 @@
<template>
<div class="app-container">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
<el-form-item label="邮费基础价">
<el-input v-model="form.store_postage" style="width: 370px;" />
</el-form-item>
<el-form-item label="满额包邮">
<el-input v-model="form.store_free_postage" style="width: 370px;" />
<p style="color: red">0表示包邮,大于0表示满多少包邮</p>
</el-form-item>
<el-form-item label="">
<el-button type="primary" @click="doSubmit">提交</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import checkPermission from '@/utils/permission'
import initData from '@/mixins/crud'
import { del, add, get } from '@/api/yxSystemConfig'
import eForm from './form'
import picUpload from '@/components/pic-upload'
import { Message } from 'element-ui'
export default {
components: { eForm, picUpload },
mixins: [initData],
data() {
return {
delLoading: false,
form: {
integral_ratio: ''
},
rules: {
}
}
},
created() {
get().then(rese => {
const newObj = {}
rese.content.map(function(key, value) {
const keyName = key.menuName
newObj[keyName] = key.value
})
this.form = newObj
})
},
methods: {
checkPermission,
doSubmit() {
add(this.form).then(res => {
Message({ message: '设置成功', type: 'success' })
}).catch(err => {
// this.loading = false
console.log(err.response.data.message)
})
}
}
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save