Browse Source

对接H5支付

master
梁欣 1 year ago
parent
commit
3ed2757101
  1. 1
      .gitignore
  2. 4
      .hbuilderx/launch.json
  3. 2
      core/payment/alipay.js
  4. 2
      manifest.json
  5. 2
      pages/checkout/cashier/index.vue
  6. 229
      pages/user/settled/index.vue

1
.gitignore

@ -1,3 +1,4 @@
/unpackage /unpackage
/utils/request-1.js /utils/request-1.js
/node_modules/ /node_modules/
manifest.json

4
.hbuilderx/launch.json

@ -2,6 +2,10 @@
// launchtypelocalremote, localremote // launchtypelocalremote, localremote
"version": "0.0", "version": "0.0",
"configurations": [{ "configurations": [{
"app-plus" :
{
"launchtype" : "remote"
},
"default" : "default" :
{ {
"launchtype" : "remote" "launchtype" : "remote"

2
core/payment/alipay.js

@ -10,7 +10,7 @@ const paymentAsH5 = option => {
const options = { formHtml: '', ...option } const options = { formHtml: '', ...option }
// 跳转到支付宝支付页 // 跳转到支付宝支付页
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// console.log(options.formHtml)
console.log(options.formHtml)
if (options.formHtml) { if (options.formHtml) {
const div = document.createElement('div') const div = document.createElement('div')
div.innerHTML = options.formHtml div.innerHTML = options.formHtml

2
manifest.json

@ -1,6 +1,6 @@
{ {
"name" : "吉媒婚恋网互动平台", "name" : "吉媒婚恋网互动平台",
"appid" : "__UNI__EBF37B7",
"appid" : "__UNI__600B9D4",
"description" : "吉媒婚恋网互动平台", "description" : "吉媒婚恋网互动平台",
"versionName" : "2.0.6", "versionName" : "2.0.6",
"versionCode" : 206, "versionCode" : 206,

2
pages/checkout/cashier/index.vue

@ -258,7 +258,7 @@
} }
// //
if (method === PayMethodEnum.ALIPAY.value) { if (method === PayMethodEnum.ALIPAY.value) {
console.log('paymentData', paymentData)
console.log('paymentData', JSON.stringify(paymentData))
Alipay.payment(paymentData) Alipay.payment(paymentData)
.then(res => app.onPaySuccess(res)) .then(res => app.onPaySuccess(res))
.catch(err => app.onPayFail(err)) .catch(err => app.onPayFail(err))

229
pages/user/settled/index.vue

@ -10,7 +10,8 @@
<view <view
:style="step >= 1 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'" :style="step >= 1 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'"
style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;"> style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;">
1</view>
1
</view>
<text style="color: #9e9e9e;">主体类型</text> <text style="color: #9e9e9e;">主体类型</text>
</view> </view>
<view style="margin: 0 20rpx;color:#b53190;">...</view> <view style="margin: 0 20rpx;color:#b53190;">...</view>
@ -18,7 +19,8 @@
<view <view
:style="step >= 2 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'" :style="step >= 2 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'"
style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;"> style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;">
2</view>
2
</view>
<text style="color: #9e9e9e;">填写资料</text> <text style="color: #9e9e9e;">填写资料</text>
</view> </view>
<view style="margin: 0 20rpx;color:#b53190;">...</view> <view style="margin: 0 20rpx;color:#b53190;">...</view>
@ -26,7 +28,8 @@
<view <view
:style="step >= 3 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'" :style="step >= 3 ? 'background-color:#b53190;color:#fff;' : 'border: 1rpx solid #b53190;color:#b53190;'"
style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;"> style="width: 35rpx;height: 35rpx;border-radius: 50%;display: flex;justify-content: center;align-items: center;margin-right: 10rpx;line-height: 30rpx;">
3</view>
3
</view>
<text style="color: #9e9e9e;">填写资料</text> <text style="color: #9e9e9e;">填写资料</text>
</view> </view>
</view> </view>
@ -86,8 +89,12 @@
style="background-color: #fff;padding:30rpx 20rpx;border-radius: 10rpx;margin-bottom: 20rpx;"> style="background-color: #fff;padding:30rpx 20rpx;border-radius: 10rpx;margin-bottom: 20rpx;">
<view style="font-weight: bold;font-size: 32rpx;">商户基本信息</view> <view style="font-weight: bold;font-size: 32rpx;">商户基本信息</view>
<view class="gui-form-item gui-border-b"> <view class="gui-form-item gui-border-b">
<text class="gui-form-label" style="width: 150rpx;"><text
style="color: red;">*</text>商户LOGO</text>
<text class="gui-form-label" style="width: 150rpx;">
<text
style="color: red;">*
</text>
商户LOGO
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<view @tap="selectImg('logo_image')" v-if="!logo_image.image_id" <view @tap="selectImg('logo_image')" v-if="!logo_image.image_id"
style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;padding: 30rpx 0;margin-left: 380rpx;border-radius: 10rpx"> style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;padding: 30rpx 0;margin-left: 380rpx;border-radius: 10rpx">
@ -96,22 +103,32 @@
</view> </view>
<view @tap="selectImg('logo_image')" v-else <view @tap="selectImg('logo_image')" v-else
style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;margin-left: 380rpx;"> style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;margin-left: 380rpx;">
<image :src="logo_image.url" style="height: 160rpx;" mode="heightFix"></image>
<image :src="logo_image.url" style="height: 160rpx;"
mode="heightFix"></image>
</view> </view>
</view> </view>
</view> </view>
<view class="gui-form-item gui-border-b"> <view class="gui-form-item gui-border-b">
<text class="gui-form-label"><text style="color: red;">*</text>商户简称</text>
<text class="gui-form-label">
<text style="color: red;">*</text>
商户简称
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.shop_name" @input="inputsss($event,'shop_name')"
name="shop_name" placeholder="请输入商户简称" style="text-align: right;" />
<input type="text" class="gui-form-input" v-model="detail.shop_name"
@input="inputsss($event,'shop_name')"
name="shop_name" placeholder="请输入商户简称"
style="text-align: right;"/>
</view> </view>
</view> </view>
<view class="gui-form-item gui-border-b"> <view class="gui-form-item gui-border-b">
<text class="gui-form-label"><text style="color: red;">*</text>主营类目</text>
<text class="gui-form-label">
<text style="color: red;">*</text>
主营类目
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<picker class="item-picker" mode="selector" range-key="name" <picker class="item-picker" mode="selector" range-key="name"
@change="classifyChange" @columnchange="columnchange" :value="classifyIndex"
@change="classifyChange" @columnchange="columnchange"
:value="classifyIndex"
:range="classifyArr"> :range="classifyArr">
<view style="text-align: right;">{{ name }}</view> <view style="text-align: right;">{{ name }}</view>
</picker> </picker>
@ -119,22 +136,36 @@
<text class="gui-form-icon gui-icons gui-text-center">&#xe603;</text> <text class="gui-form-icon gui-icons gui-text-center">&#xe603;</text>
</view> </view>
<view class="gui-form-item "> <view class="gui-form-item ">
<text class="gui-form-label"><text style="color: red;">*</text>营业时间</text>
<text class="gui-form-label">
<text style="color: red;">*</text>
营业时间
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.shop_hours" @input="inputsss($event,'shop_hours')"
name="shop_hours" placeholder="请输入营业时间(如9:00-18:00)" style="text-align: right;" />
<input type="text" class="gui-form-input" v-model="detail.shop_hours"
@input="inputsss($event,'shop_hours')"
name="shop_hours" placeholder="请输入营业时间(如9:00-18:00)"
style="text-align: right;"/>
</view> </view>
</view> </view>
<view class="gui-form-item "> <view class="gui-form-item ">
<text class="gui-form-label"><text style="color: red;">*</text>客服电话</text>
<text class="gui-form-label">
<text style="color: red;">*</text>
客服电话
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.kftelephone" @input="inputsss($event,'kftelephone')"
name="kftelephone" placeholder="请输入客服电话" style="text-align: right;" />
<input type="text" class="gui-form-input" v-model="detail.kftelephone"
@input="inputsss($event,'kftelephone')"
name="kftelephone" placeholder="请输入客服电话"
style="text-align: right;"/>
</view> </view>
</view> </view>
<view class="gui-form-item gui-border-b"> <view class="gui-form-item gui-border-b">
<text class="gui-form-label" style="width: 200rpx;"><text
style="color: red;">*</text>客服微信二维码</text>
<text class="gui-form-label" style="width: 200rpx;">
<text
style="color: red;">*
</text>
客服微信二维码
</text>
<view class="gui-form-body"> <view class="gui-form-body">
<view @tap="selectImg('service')" v-if="!service.image_id" <view @tap="selectImg('service')" v-if="!service.image_id"
style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;padding: 30rpx 0;margin-left: 330rpx;border-radius: 10rpx"> style="width: 120rpx;color: #9e9e9e;background-color: #f5f6f7;height: 120rpx;text-align: center;padding: 30rpx 0;margin-left: 330rpx;border-radius: 10rpx">
@ -177,17 +208,20 @@
<view <view
style="background-color: #fff;padding:30rpx 20rpx;border-radius: 10rpx;margin-bottom: 20rpx;"> style="background-color: #fff;padding:30rpx 20rpx;border-radius: 10rpx;margin-bottom: 20rpx;">
<view style="font-weight: bold;font-size: 32rpx;margin-bottom: 20rpx;">经营者基本信息</view>
<view style="font-weight: bold;font-size: 32rpx;margin-bottom: 20rpx;">经营者基本信息
</view>
<view class="gui-form-item " <view class="gui-form-item "
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>姓名
<text style="color: red;">*</text>
姓名
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.name" name="name" @input="inputsss($event,'name')"
<input type="text" class="gui-form-input" v-model="detail.name" name="name"
@input="inputsss($event,'name')"
placeholder="请输入姓名"/> placeholder="请输入姓名"/>
</view> </view>
</view> </view>
@ -195,12 +229,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>邮箱
<text style="color: red;">*</text>
邮箱
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.mailbox" @input="inputsss($event,'mailbox')"
<input type="text" class="gui-form-input" v-model="detail.mailbox"
@input="inputsss($event,'mailbox')"
name="mailbox" placeholder="请输入邮箱"/> name="mailbox" placeholder="请输入邮箱"/>
</view> </view>
</view> </view>
@ -208,12 +244,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>手机号
<text style="color: red;">*</text>
手机号
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.phone" name="phone" @input="inputsss($event,'phone')"
<input type="text" class="gui-form-input" v-model="detail.phone" name="phone"
@input="inputsss($event,'phone')"
placeholder="请输入手机号"/> placeholder="请输入手机号"/>
</view> </view>
</view> </view>
@ -221,12 +259,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>身份证号
<text style="color: red;">*</text>
身份证号
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.IDCard" name="IDCard" @input="inputsss($event,'IDCard')"
<input type="text" class="gui-form-input" v-model="detail.IDCard" name="IDCard"
@input="inputsss($event,'IDCard')"
placeholder="请输入身份证号"/> placeholder="请输入身份证号"/>
</view> </view>
</view> </view>
@ -234,12 +274,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>身份证地址
<text style="color: red;">*</text>
身份证地址
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.IDCard_address" @input="inputsss($event,'IDCard_address')"
<input type="text" class="gui-form-input" v-model="detail.IDCard_address"
@input="inputsss($event,'IDCard_address')"
name="IDCard_address" placeholder="请输入身份证地址"/> name="IDCard_address" placeholder="请输入身份证地址"/>
</view> </view>
</view> </view>
@ -247,12 +289,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>微信号
<text style="color: red;">*</text>
微信号
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.WeChat" name="WeChat" @input="inputsss($event,'WeChat')"
<input type="text" class="gui-form-input" v-model="detail.WeChat" name="WeChat"
@input="inputsss($event,'WeChat')"
placeholder="请输入微信号"/> placeholder="请输入微信号"/>
</view> </view>
</view> </view>
@ -262,7 +306,8 @@
<view style="display: flex;"> <view style="display: flex;">
<view <view
style="width: 180rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> style="width: 180rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>身份证有效期
<text style="color: red;">*</text>
身份证有效期
</view> </view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
@ -271,7 +316,9 @@
<text class="gui-text" style="text-align: right;"></text> <text class="gui-text" style="text-align: right;"></text>
<picker mode="selector" :range="effective" @change="pickerEffective"> <picker mode="selector" :range="effective" @change="pickerEffective">
<text class="gui-form-icon gui-icons gui-text-center " <text class="gui-form-icon gui-icons gui-text-center "
style="width: 130rpx;color: #000;">{{effective[effectiveIndex]}}&#xe601;</text>
style="width: 130rpx;color: #000;">
{{ effective[effectiveIndex] }}&#xe601;
</text>
</picker> </picker>
</view> </view>
@ -282,10 +329,15 @@
:endValue="CardendValue2" :isTime="false"> :endValue="CardendValue2" :isTime="false">
<text class="demo gui-block-text gui-icons" v-if="CardendValue2" <text class="demo gui-block-text gui-icons" v-if="CardendValue2"
style="color: #f17487;"> style="color: #f17487;">
{{CardstartValue2}} <text style="margin: 0 10rpx;color: #000;"></text>
{{CardendValue2}}</text>
{{ CardstartValue2 }}
<text style="margin: 0 10rpx;color: #000;"></text>
{{ CardendValue2 }}
</text>
<text class="demo gui-block-text gui-icons" v-else style="color: #f17487;"> <text class="demo gui-block-text gui-icons" v-else style="color: #f17487;">
开始日期 <text style="margin: 0 10rpx;color: #000;"></text> 结束日期</text>
开始日期
<text style="margin: 0 10rpx;color: #000;"></text>
结束日期
</text>
</gui-datetime-between> </gui-datetime-between>
</view> </view>
</view> </view>
@ -298,7 +350,8 @@
<view style="display: flex;"> <view style="display: flex;">
<view <view
style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>经营地址
<text style="color: red;">*</text>
经营地址
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
@ -335,12 +388,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>营业执照名称
<text style="color: red;">*</text>
营业执照名称
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.license_name" @input="inputsss($event,'license_name')"
<input type="text" class="gui-form-input" v-model="detail.license_name"
@input="inputsss($event,'license_name')"
name="license_name" placeholder="请输入营业执照名称"/> name="license_name" placeholder="请输入营业执照名称"/>
</view> </view>
</view> </view>
@ -348,12 +403,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>统一社会信用代码
<text style="color: red;">*</text>
统一社会信用代码
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.credit_code" @input="inputsss($event,'credit_code')"
<input type="text" class="gui-form-input" v-model="detail.credit_code"
@input="inputsss($event,'credit_code')"
name="credit_code" placeholder="请输入统一社会信用代码"/> name="credit_code" placeholder="请输入统一社会信用代码"/>
</view> </view>
</view> </view>
@ -361,12 +418,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>营业执照地址
<text style="color: red;">*</text>
营业执照地址
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.license_address" @input="inputsss($event,'license_address')"
<input type="text" class="gui-form-input" v-model="detail.license_address"
@input="inputsss($event,'license_address')"
name="license_address" placeholder="请输入营业执照地址"/> name="license_address" placeholder="请输入营业执照地址"/>
</view> </view>
</view> </view>
@ -376,7 +435,8 @@
<view style="display: flex;"> <view style="display: flex;">
<view <view
style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> style="width: 240rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>营业执照有效期
<text style="color: red;">*</text>
营业执照有效期
</view> </view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
@ -386,7 +446,9 @@
<picker mode="selector" :range="licensestart" <picker mode="selector" :range="licensestart"
@change="pickerIicensestart"> @change="pickerIicensestart">
<text class="gui-form-icon gui-icons gui-text-center " <text class="gui-form-icon gui-icons gui-text-center "
style="width: 130rpx;color: #000;">{{licensestart[licensestartIndex]}}&#xe601;</text>
style="width: 130rpx;color: #000;">
{{ licensestart[licensestartIndex] }}&#xe601;
</text>
</picker> </picker>
</view> </view>
@ -395,15 +457,22 @@
<view style="text-align: right;padding-bottom: 20rpx;" <view style="text-align: right;padding-bottom: 20rpx;"
v-if="licensestartIndex == 0"> v-if="licensestartIndex == 0">
<gui-datetime-between @confirm="Licenseconfirm2" <gui-datetime-between @confirm="Licenseconfirm2"
:startValue="LicensestartValue2" :endValue="LicenseendValue2"
:startValue="LicensestartValue2"
:endValue="LicenseendValue2"
:isTime="false"> :isTime="false">
<text class="demo gui-block-text gui-icons" v-if="LicenseendValue2" <text class="demo gui-block-text gui-icons" v-if="LicenseendValue2"
style="color: #f17487;"> style="color: #f17487;">
{{LicensestartValue2}} <text
style="margin: 0 10rpx;color: #000;"></text>
{{LicenseendValue2}}</text>
{{ LicensestartValue2 }}
<text
style="margin: 0 10rpx;color: #000;">
</text>
{{ LicenseendValue2 }}
</text>
<text class="demo gui-block-text gui-icons" v-else style="color: #f17487;"> <text class="demo gui-block-text gui-icons" v-else style="color: #f17487;">
开始日期 <text style="margin: 0 10rpx;color: #000;"></text> 结束日期</text>
开始日期
<text style="margin: 0 10rpx;color: #000;"></text>
结束日期
</text>
</gui-datetime-between> </gui-datetime-between>
</view> </view>
</view> </view>
@ -495,12 +564,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>银行卡号
<text style="color: red;">*</text>
银行卡号
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" v-model="detail.bank_card" @input="inputsss($event,'bank_card')"
<input type="text" class="gui-form-input" v-model="detail.bank_card"
@input="inputsss($event,'bank_card')"
name="bank_card" placeholder="请填写银行卡号"/> name="bank_card" placeholder="请填写银行卡号"/>
</view> </view>
</view> </view>
@ -508,7 +579,8 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>开户地
<text style="color: red;">*</text>
开户地
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
@ -521,12 +593,14 @@
style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;"> style="background-color: #f5f6f7;padding: 0 20rpx ;margin-bottom: 20rpx;border-radius: 10rpx;">
<view style="display: flex;"> <view style="display: flex;">
<view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;"> <view style="width: 170rpx;color: #888888;font-weight: bold;font-size: 26rpx;">
<text style="color: red;">*</text>开户银行
<text style="color: red;">*</text>
开户银行
</view> </view>
<view style="color: #9e9e9e;">|</view> <view style="color: #9e9e9e;">|</view>
</view> </view>
<view class="gui-form-body"> <view class="gui-form-body">
<input type="text" class="gui-form-input" name="bank_deposit" v-model="detail.bank_deposit" @input="inputsss($event,'bank_deposit')"
<input type="text" class="gui-form-input" name="bank_deposit"
v-model="detail.bank_deposit" @input="inputsss($event,'bank_deposit')"
placeholder="请输入开户银行"/> placeholder="请输入开户银行"/>
<!-- <picker mode="selector" range-key="name" :range="yinhangList" <!-- <picker mode="selector" range-key="name" :range="yinhangList"
@change="pickerChange"> @change="pickerChange">
@ -541,13 +615,19 @@
</picker> --> </picker> -->
</view> </view>
</view> </view>
<view style="font-size: 26rpx;color: #9e9e9e;margin: 20rpx 0;">绑定银行卡将用于资金提现</view>
<view style="font-size: 26rpx;color: #9e9e9e;margin: 20rpx 0;">
绑定银行卡将用于资金提现
</view>
</view> </view>
<view class="gui-margin-top" style="display: flex;justify-content: center;align-items: center;">
<view class="gui-margin-top"
style="display: flex;justify-content: center;align-items: center;">
<gui-radio @change="radioChange" :checked="radiochecked"> <gui-radio @change="radioChange" :checked="radiochecked">
<text class="gui-text " style="color: #9e9e9e;">我已阅读并同意<text style="color: #b53190;"
@click="onagreement">商家入驻协议</text></text>
<text class="gui-text " style="color: #9e9e9e;">我已阅读并同意
<text style="color: #b53190;"
@click="onagreement">商家入驻协议
</text>
</text>
</gui-radio> </gui-radio>
</view> </view>
<button type="default" class="gui-button gui-bg-blue" <button type="default" class="gui-button gui-bg-blue"
@ -582,7 +662,8 @@
<view class="dealer-boot dis-flex flex-dir-column flex-y-center"> <view class="dealer-boot dis-flex flex-dir-column flex-y-center">
<view class="boot__msg f-30 dis-flex flex-dir-column flex-y-center"> <view class="boot__msg f-30 dis-flex flex-dir-column flex-y-center">
<text class="msg__icon iconfont icon-shenhezhong" style="color: #90178b;"></text> <text class="msg__icon iconfont icon-shenhezhong" style="color: #90178b;"></text>
<text class="msg__content m-top20 f-29 col-80" style="color: #b53190;">等待审核结果</text>
<text class="msg__content m-top20 f-29 col-80" style="color: #b53190;">等待审核结果
</text>
</view> </view>
<!-- 去商城逛逛 --> <!-- 去商城逛逛 -->
<view @tap="stepto(3)" <view @tap="stepto(3)"
@ -630,6 +711,9 @@
import * as CategoryApi from '@/api/shop/category' import * as CategoryApi from '@/api/shop/category'
import * as YinhangApi from '@/api/shop/yinhang' import * as YinhangApi from '@/api/shop/yinhang'
import * as InfoApi from '@/api/shop/info' import * as InfoApi from '@/api/shop/info'
import * as Api from '@/api/page'
import store from '@/store'
export default { export default {
data() { data() {
return { return {
@ -714,13 +798,25 @@
var systemInfo = graceJS.system(); var systemInfo = graceJS.system();
this.contentHeight = systemInfo.windowHeight * 0.65; this.contentHeight = systemInfo.windowHeight * 0.65;
}, },
onLoad() {
async onLoad() {
await this.getUserInfo()
this.getDetail() this.getDetail()
this.getCategory() this.getCategory()
this.getArticleDetail() this.getArticleDetail()
}, },
methods: { methods: {
getUserInfo(id, token) {
return new Promise(resolve => {
Api.getUserInfo(id, token)
.then(result => {
store.dispatch('Login', {
mobile: result.data.mobile
})
resolve()
})
})
},
hhhccc() { hhhccc() {
let _this = this let _this = this
let data = uni.getStorageSync('settledData') let data = uni.getStorageSync('settledData')
@ -866,8 +962,6 @@
} }
if (_this.detail.logo_image_id && _this.detail.logo_image_url) { if (_this.detail.logo_image_id && _this.detail.logo_image_url) {
_this.logo_image = { _this.logo_image = {
url: _this.detail.logo_image_url, url: _this.detail.logo_image_url,
@ -969,7 +1063,8 @@
for (let i = 0; i < dataLen; i++) { for (let i = 0; i < dataLen; i++) {
// push childArr // push childArr
//this.childArr.push(this.dataSource[i].children) //this.childArr.push(this.dataSource[i].children)
};
}
;
// //
this.classifyArr = this.dataSource; this.classifyArr = this.dataSource;
@ -986,7 +1081,8 @@
if (this.classifyArr.length != 0) { if (this.classifyArr.length != 0) {
this.name = this.classifyArr[this.classifyIndex].name this.name = this.classifyArr[this.classifyIndex].name
this.category_id = this.classifyArr[this.classifyIndex].category_id this.category_id = this.classifyArr[this.classifyIndex].category_id
};
}
;
// if (this.classifyArr[1].length != 0) { // if (this.classifyArr[1].length != 0) {
// this.name = this.classifyArr[1][this.classifyIndex[1]].name // this.name = this.classifyArr[1][this.classifyIndex[1]].name
@ -1083,7 +1179,6 @@
}, },
onagreement() { onagreement() {
this.$refs.guimodal.open(); this.$refs.guimodal.open();
}, },

Loading…
Cancel
Save