| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <template>
- <view class="box">
- <u--form labelPosition="top" :model="userInfo" ref="form1">
- <u-form-item labelWidth="auto" labelAlign="right" label="被赠送会员编号" prop="phone">
- <u--input v-model="userInfo.memberNo" placeholder="请输入被赠送会员编号" border="bottom"
- ></u--input>
- </u-form-item>
- <u-form-item labelWidth="auto" labelAlign="right" label="被赠送会员手机号" prop="smsCode" width="120">
- <u--input v-model="userInfo.memberPhone" placeholder="请输入被赠送会员手机号" border="bottom"
- ></u--input>
- </u-form-item>
- </u--form>
- <view class="op-btn-wrap">
- <view class="h-btn" @click="handleGive">
- <text>确定</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "giveFamilyCard",
- data() {
- return {
- userInfo: {},
- giveUser: {}
- }
- },
- methods: {
- handleGive() {
- this.giveUser.memberNo = "Vip." + this.userInfo.memberNo
- this.giveUser.memberPhone = this.userInfo.memberPhone
- this.$api.giveFamilyCard(this.giveUser).then((res) => {
- console.log(res)
- uni.showToast({
- duration: 2000,
- title: '赠送成功'
- });
- uni.navigateBack({delta : 1})
- }
- )
- }
- }
- }
- </script>
- <style scoped>
- .box {
- padding: 24rpx 32rpx;
- }
- .h-btn {
- margin: 48rpx auto;
- text-align: center;
- width: 80vw;
- height: 42px;
- background: #FFE05C;
- border-radius: 27px;
- line-height: 42px;
- }
- </style>
|