Merge pull request 'feature/mall_product' (#3) from feature/mall_product into master

Reviewed-on: http://117.33.142.185:3000/zenghuapei/cyywl_server/pulls/3
pull/4/head
tianyu 2023-05-30 10:21:40 +08:00
commit 269323dca5
6 changed files with 49 additions and 45 deletions

View File

@ -58,7 +58,7 @@
<el-input v-model="form.title" placeholder="请输入标题"/>
</el-form-item>
<el-form-item label="缩略图" prop="picUrl">
<imageUpload v-model="form.picUrl" :limit="1" :format="'163*163'"/>
<imageUpload v-model="form.picUrl" :limit="1" :format="'664*238'" />
</el-form-item>
<el-form-item label="跳转链接" prop="url">
<el-input v-model="form.url" placeholder="请输入跳转链接"/>
@ -213,7 +213,10 @@ export default {
</script>
<style scoped lang="scss">
//
:deep(.el-upload-list__item){
width: 332px;
height: 119px;
}
.img-height {
height: 150px;
}

View File

@ -119,7 +119,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="微信客地址" prop="wxKfUrl">
<el-form-item label="微信客地址" prop="wxKfUrl">
<el-input v-model="form.wxKfUrl" placeholder="请输入"/>
</el-form-item>
</el-col>
@ -131,7 +131,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="销售对接号码" prop="saleContactMobile">
<el-form-item label="销售对接号码" prop="saleContactMobile">
<el-input v-model="form.saleContactMobile" placeholder="请输入"/>
</el-form-item>
</el-col>
@ -156,7 +156,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="店铺状态" prop="status">
<el-form-item label="启用状态" prop="status">
<el-radio-group v-model="form.status">
<el-radio v-for="dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :label="parseInt(dict.value)">{{ dict.label }}
@ -459,6 +459,10 @@ export default {
};
</script>
<style lang="scss">
:deep(.el-upload-list__item){
width: 82px;
height: 82px;
}
.qrcode-wrap {
text-align: center;
}

View File

@ -48,7 +48,7 @@
{
"path": "pages/member_others/index",
"style": {
"navigationBarTitleText": "代他人续费"
"navigationBarTitleText": "代他人充值"
}
},
{

View File

@ -17,7 +17,7 @@
<image src='../../static/images/memberLogo.png'></image>
<text class="equity-member">我的会员权益</text>
</view>
<text class="equity-look">查看权益></text>
<!-- <text class="equity-look">查看权益></text> -->
</view>
<view class="equity-item" v-for="(item,index) in equityData" :key="index">
<view class="equity-grade">
@ -38,7 +38,7 @@
</view>
<view class="money-box money-term">
<text>带返还期额</text>
<text class="money-text">{{item.frequency}}x12</text>
<text class="money-text">{{list[list.findIndex((i) => item.gear == i.name)].frequency}}x12</text>
</view>
<view class="money-box money-time">
<text>返费结束时间</text>
@ -67,15 +67,18 @@
list: [
{
img:'../../static/images/member240.png',
name:360
name:"360",
frequency:30
},
{
img:'../../static/images/member400.png',
name:600
name:"600",
frequency:50
},
{
img:'../../static/images/member960.png',
name:900
img:'../../static/images/member640.png',
name:"960",
frequency:80
},
],
vipData:['普通会员','中级会员','高级会员'],

View File

@ -1,7 +1,7 @@
<template>
<view class="box">
<view class="box-phone">
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100">
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100" errorType="toast">
<u-form-item label="姓名" prop="userName">
<u--input v-model="form.userName" maxlength="11" placeholder="请输入您的姓名"></u--input>
</u-form-item>
@ -88,13 +88,13 @@
required: true,
message: '姓名不能为空',
// blurchange
trigger: ['change', 'blur']
trigger: ['blur']
}],
userPhone: [{
required: true,
message: '手机号不能为空',
// blurchange
trigger: ['change', 'blur']
trigger: ['blur']
},
{
pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g,
@ -103,14 +103,14 @@
return String(value);
},
message: '手机号不正确190.193号段不可充值)',
trigger: ['change', 'blur']
trigger: ['blur']
},
],
confirmPhone: [{
required: true,
message: '手机号确认不能为空',
// blurchange
trigger: ['change', 'blur']
trigger: ['blur']
},
{
validator: (rule, value, callback) => {
@ -118,7 +118,7 @@
return this.form.userPhone == this.form.confirmPhone
},
message: '手机号不一致',
trigger: ['change', 'blur'],
trigger: ['blur'],
}
]
}
@ -137,27 +137,19 @@
}
},
watch:{
'form.userPhone' (){
this.verify()
'form.userPhone' (val){
this.verify(val)
},
'form.confirmPhone' (){
this.verify()
'form.confirmPhone' (val){
this.verify(val)
}
},
methods: {
verify(){
this.$refs.uForm.validate().then(async res => {
uni.showLoading({
title: '加载中',
mask: true
});
try{
const res = await memberByHomeGradeInfo(this.form.confirmPhone)
async verify(phone){
if(this.form.userPhone == this.form.confirmPhone){
const res = await memberByHomeGradeInfo(phone)
this.memberData = res.data
} finally{
uni.hideLoading();
}
})
},
handleMember(value, index) {
if (!!parseInt(value.isExist)) return
@ -267,6 +259,7 @@
::v-deep .u-form-item__body__right__message{
margin-top: 10rpx;
color: #fff;
font-size: 26rpx;
}
.phone-money {

View File

@ -1,7 +1,7 @@
<template>
<view class="box">
<view class="box-phone">
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100">
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100" errorType="toast">
<u-form-item label="姓名" prop="userName">
<u--input v-model="form.userName" maxlength="11" placeholder="请输入您的姓名"></u--input>
</u-form-item>
@ -82,14 +82,14 @@ import store from '@/store/index';
required: true,
message: '姓名不能为空',
// blurchange
trigger: ['change', 'blur']
trigger: ['blur']
}],
userPhone: [
{
required: true,
message: '手机号不能为空',
// blurchange
trigger: ['change', 'blur']
trigger: [ 'blur']
},
{
pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g,
@ -98,7 +98,7 @@ import store from '@/store/index';
return String(value);
},
message: '手机号不正确190.193号段不可充值)',
trigger: ['change', 'blur']
trigger: ['blur']
},
]
}
@ -224,6 +224,7 @@ import store from '@/store/index';
::v-deep .u-form-item__body__right__message{
margin-top: 10rpx;
color: #fff;
font-size: 26rpx;
}
}