32 changed files with 12534 additions and 965 deletions
-
10src/js/api.js
-
10src/manifest.json
-
22src/pages.json
-
39src/pages/index/index.vue
-
20src/pages/login/login.vue
-
425src/subpackage/party/components/popup-content/miniapp-change-jian-jie.vue
-
226src/subpackage/party/components/popup-content/miniapp-change-name-0.vue
-
231src/subpackage/party/components/popup-content/miniapp-change-name-1.vue
-
286src/subpackage/party/components/popup-content/miniapp-change-name-2.vue
-
480src/subpackage/party/components/popup-content/miniapp-change-name.vue
-
128src/subpackage/party/js/api.js
-
4637src/subpackage/party/js/china-area.js
-
178src/subpackage/party/pages/index/index.vue
-
21src/subpackage/party/pages/index/web_view.vue
-
161src/subpackage/party/pages/login/login.vue
-
1032src/subpackage/party/pages/login/regist.vue
-
65src/subpackage/party/pages/login/reviewing.vue
-
425src/subpackage/party/pages/miniapp/auth.vue
-
476src/subpackage/party/pages/miniapp/certify.vue
-
153src/subpackage/party/pages/miniapp/certify_res.vue
-
1483src/subpackage/party/pages/miniapp/record.vue
-
140src/subpackage/party/pages/miniapp/record_pre.vue
-
187src/subpackage/party/pages/miniapp/record_res.vue
-
726src/subpackage/party/pages/miniapp/regist.vue
-
81src/subpackage/party/pages/miniapp/regular.vue
-
21src/subpackage/party/pages/miniapp/unauth.vue
-
47src/subpackage/party/pages/miniapp/wx_auth_select.vue
-
10src/uni_modules/cc-defineQRCode/changelog.md
-
128src/uni_modules/cc-defineQRCode/components/cc-defineQRCode/cc-defineQRCode.vue
-
1380src/uni_modules/cc-defineQRCode/components/cc-defineQRCode/common/uqrcode.js
-
85src/uni_modules/cc-defineQRCode/package.json
-
162src/uni_modules/cc-defineQRCode/readme.md
@ -0,0 +1,425 @@ |
|||||
|
<template> |
||||
|
<!-- 弹窗 --> |
||||
|
<view class="m-popup b-popup " v-if="true" :class="[directionClass,{'b-popup-round':round},{'b-popup-animation':animation}]"> |
||||
|
<view class="b-popup-shade" @click="showPopup = false"></view> |
||||
|
<view class="b-popup-content"> |
||||
|
|
||||
|
<view class="b-content-view b-flex-y b-flex-c"> |
||||
|
<!-- 右上角关闭按钮 --> |
||||
|
<view class="b-flex-x b-flex-e b-mb-20 b-flex-as-e"> |
||||
|
<text class="b-icon icon-close b-t-gray b-t-44" @click="closeChange"></text> |
||||
|
</view> |
||||
|
<view class="b-t-B b-t-36 b-mb-40">小程序简介设置</view> |
||||
|
<input class="bc-input b-mb-50" v-model="userInputName" type="text" placeholder="请输入" |
||||
|
placeholder-class="input-hold-class"></input> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<view class=" b-flex-x b-mt-10 b-mb-30" > |
||||
|
<button class="b-btn b-btn-green " @click="clickChangeName">确认修改</button> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
<view class="rb-line"></view> |
||||
|
<view class="rb-text b-t-24 b-t-red b-p-40"> |
||||
|
<text >{{checkNameRes.message||checkNameRes.data.wording}}</text> |
||||
|
<!-- <text v-else>你申请的名称涉及特定地域范围或地理名称,需要经过平台审核后才可使用,你可以直接提交审核,或提供《商标注册证》等材料,以证明你可使用该地域范围或地理名称作为账号名称,否则可能审核不通过。</text> --> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/utils/util'; |
||||
|
import { servers } from '@/js/server'; |
||||
|
import party_api from '../../js/api.js'; |
||||
|
|
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
nameInfo: { |
||||
|
type: Object, |
||||
|
default: ()=>({ |
||||
|
showPopup:true, |
||||
|
}) |
||||
|
}, |
||||
|
appid: { |
||||
|
type: String, |
||||
|
default: '' |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
...mapState(['brandInfo']), |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
showPopup:true, |
||||
|
userInputName: '',//用户输入的名称 |
||||
|
checkNameRes: "",//查询名称是否可用 |
||||
|
|
||||
|
|
||||
|
// input_amount: "", |
||||
|
// selectType: 1, //默认1(停止计时) 2(完结订单) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
moveHandle(){}, |
||||
|
|
||||
|
clickChangeName(){ |
||||
|
if(this.userInputName == '')return util.showNone('请输入名称!'); |
||||
|
this.$emit('sure',this.userInputName); |
||||
|
}, |
||||
|
closeChange(){ |
||||
|
console.log("closeChange") |
||||
|
this.$emit('close'); |
||||
|
}, |
||||
|
async clickSure(){ |
||||
|
await this.setnickname().then(res=>{ |
||||
|
console.log("setnickname-res", res) |
||||
|
this.showPopup = false; |
||||
|
this.$emit('sure',this.nameInfo); |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
clickCheckName(){ |
||||
|
if(this.userInputName == '')return util.showNone('请输入名称!'); |
||||
|
|
||||
|
this.checkwxverifynickname(); |
||||
|
}, |
||||
|
async clickUploadImg(which){ |
||||
|
if(this.selectType=="")return util.showNone('请选择类型!'); |
||||
|
//whick id_card:身份证照片 mediaid,个人号必填 |
||||
|
//license 组织机构代码证或营业执照 mediaid,组织号必填 |
||||
|
this.localImg[which].url = await this.getLocalImg(); |
||||
|
|
||||
|
console.log("clickUploadImg-111", this.localImg[which]) |
||||
|
this.localImg[which].mediaid = await this.getUploadImgMediaId(this.localImg[which].url); |
||||
|
console.log("clickUploadImg-222", this.localImg[which]) |
||||
|
|
||||
|
//当需要回显数据时, 同时上传图片到服务器 |
||||
|
// this.localImg[which].url = await this.getUploadImgURL(this.localImg[which].url); |
||||
|
|
||||
|
}, |
||||
|
resetLocalImg(){ |
||||
|
this.localImg = { |
||||
|
id_card: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"身份证照片" |
||||
|
}, |
||||
|
license: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"组织机构代码证或营业执照" |
||||
|
}, |
||||
|
naming_other_stuff_1: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"关键词补充材料" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
getUploadImgURL(tempFilePath){ |
||||
|
return servers.uploadFile({ |
||||
|
url: party_api.webUpload, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'file', |
||||
|
formData: {} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
// console.log("uploadFile-url 上传成功1", res.data.data.url) |
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
// console.log("uploadFile-url 上传成功 接口真正数据", JSON.parse(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
return _data.url |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
//从相册获取照片 |
||||
|
getLocalImg() { |
||||
|
console.log("clickUploadImg"); |
||||
|
return new Promise((resolve, reject) => { |
||||
|
uni.chooseImage({ |
||||
|
count: 1, |
||||
|
sizeType: ['original', 'compressed'], |
||||
|
sourceType: ['album', 'camera'], |
||||
|
success: (res) => { |
||||
|
console.log("chooseImage", res) |
||||
|
let tempFilePaths = res.tempFilePaths[0]; |
||||
|
resolve(tempFilePaths) |
||||
|
}, |
||||
|
fail: (err) => { |
||||
|
console.log("chooseImage-err", err) |
||||
|
reject(err) |
||||
|
} |
||||
|
}); |
||||
|
}) |
||||
|
}, |
||||
|
getUploadImgMediaId(tempFilePath){ |
||||
|
let appid = this.appid |
||||
|
let _param_str = `module=/cgi-bin/media/upload&appid=${appid}` |
||||
|
let _url = party_api.gatewayDoDuplicate+"?"+_param_str |
||||
|
return servers.uploadFile({ |
||||
|
url: _url, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'image', |
||||
|
formData: { |
||||
|
'form.type':"image" |
||||
|
} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-gatewayDoDuplicate-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
|
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
console.log("uploadFile-gatewayDoDuplicate-上传成功 接口真正数据", _data) |
||||
|
return _data.media_id |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
getUploadImgURL(tempFilePath){ |
||||
|
return servers.uploadFile({ |
||||
|
url: party_api.webUpload, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'file', |
||||
|
formData: {} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
// console.log("uploadFile-url 上传成功1", res.data.data.url) |
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
// console.log("uploadFile-url 上传成功 接口真正数据", JSON.parse(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
return _data.url |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
setnickname(){ |
||||
|
let _data = this.getGateWayJson('setnickname') |
||||
|
_data.form.nick_name = this.userInputName |
||||
|
_data.form.id_card = this.localImg.id_card.mediaid |
||||
|
_data.form.license = this.localImg.license.mediaid |
||||
|
|
||||
|
console.log("setnickname:",_data) |
||||
|
return servers.post({ |
||||
|
url: party_api.gatewayDo, |
||||
|
data: _data, |
||||
|
isDefaultGet: false, |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("setnickname:", res.data) |
||||
|
if(res.data.code!=0){ |
||||
|
util.showNone("设置失败") |
||||
|
console.log("setnickname-err", res.data) |
||||
|
}else{ |
||||
|
util.showNone('设置成功') |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("setnickname-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
checkwxverifynickname(){ |
||||
|
this.checkNameRes = {} |
||||
|
let _data = this.getGateWayJson('checkwxverifynickname') |
||||
|
_data.form.nick_name = this.userInputName |
||||
|
console.log("getaccountbasicinfo:",_data) |
||||
|
servers.post({ |
||||
|
url: party_api.gatewayDo, |
||||
|
data: _data, |
||||
|
isDefaultGet: false, |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("checkwxverifynickname:", res.data) |
||||
|
if(res.data.code!=0){ |
||||
|
util.showNone("名称不可用") |
||||
|
console.log("checkwxverifynickname-err", res.data) |
||||
|
}else{ |
||||
|
util.showNone('名称可用') |
||||
|
if(!res.data.data.hit_condition){ |
||||
|
res.data.message = '名称可用(注意:改名次数将在自然年 1 月 1 日和微信认证审核通过后重置为 2 次.请慎重修改.)' |
||||
|
} |
||||
|
} |
||||
|
this.checkNameRes = res.data |
||||
|
console.log("checkwxverifynickname123123:", this.checkNameRes) |
||||
|
|
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("checkwxverifynickname-err", err) |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
getGateWayJson(jname){ |
||||
|
let appid = this.appid |
||||
|
let _data = party_api["gatewayDoJson"][jname] |
||||
|
if(!appid){ |
||||
|
console.error("当前page中: this.appid不存在") |
||||
|
return util.showNone("appid不存在") |
||||
|
} |
||||
|
if(!_data){ |
||||
|
console.error("先去api.js定义透传数据:",jname) |
||||
|
return util.showNone("接口不存在") |
||||
|
} |
||||
|
_data.appid = appid; |
||||
|
return _data |
||||
|
}, |
||||
|
confirmChange(){ |
||||
|
let { brandInfo, orderInfo, input_amount, selectType } = this |
||||
|
if(input_amount == '')return util.showNone('请输入金额!'); |
||||
|
util.showLoad(); |
||||
|
deviceServer.get({ |
||||
|
url: deviceApi.timeOrderEnd, |
||||
|
data: { |
||||
|
brand_id: brandInfo.brand.id, |
||||
|
order_no: orderInfo.order_no, |
||||
|
pay_amount: parseFloat(input_amount), |
||||
|
end_type: selectType==1?'end_timing':selectType==2?'end_order':'', |
||||
|
}, |
||||
|
failMsg: '加载失败!' |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
util.hideLoad() |
||||
|
util.showNone('操作成功!'); |
||||
|
this.$emit('close'); |
||||
|
// setTimeout(()=>uni.navigateBack(),1200); |
||||
|
this.$emit('timeEndBtn'); |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectBtn(type){ |
||||
|
this.selectType = type |
||||
|
}, |
||||
|
selectChange(e){ |
||||
|
console.log(e.detail) |
||||
|
this.selectType = e.detail.value |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" > |
||||
|
@import '~style/public.scss'; |
||||
|
@import '../../ui/maincss.scss'; |
||||
|
|
||||
|
.m-popup{ |
||||
|
.b-popup-shade{ |
||||
|
background: rgba(0,0,0,0.5); |
||||
|
position: fixed; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
z-index: 100; |
||||
|
} |
||||
|
.b-popup-content{ |
||||
|
position: fixed; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
background: #fff; |
||||
|
border-radius: 5rpx; |
||||
|
z-index: 101; |
||||
|
.b-content-view{ |
||||
|
width: 620rpx; |
||||
|
padding: 20rpx; |
||||
|
.b-content-title{ |
||||
|
|
||||
|
} |
||||
|
.bc-input{ |
||||
|
width: 538rpx; |
||||
|
height: 88rpx; |
||||
|
background: #FFFFFF; |
||||
|
border: 2rpx solid #D8D8D8; |
||||
|
border-radius: 10rpx; |
||||
|
padding-left: 30rpx; |
||||
|
} |
||||
|
.input-hold-class{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.rb-line{ |
||||
|
border-bottom: 1rpx solid #E5E5E5; |
||||
|
width: 100%; |
||||
|
} |
||||
|
.rb-btns{ |
||||
|
>button{ |
||||
|
width: 240rpx; |
||||
|
height: 88rpx; |
||||
|
} |
||||
|
>button:first-child{ |
||||
|
background: #fff; |
||||
|
color: $b-color-green; |
||||
|
// border: 1rpx solid $b-color-green; |
||||
|
} |
||||
|
} |
||||
|
.rb-text{ |
||||
|
>text{ |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
.rb-upload-list{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.rb-upload-item{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
// position: relative; |
||||
|
|
||||
|
.rb-upload-bg{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
|
||||
|
.rb-upload-cam{ |
||||
|
width: 48rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.rb-input-img-text{ |
||||
|
font-size: 24rpx; |
||||
|
margin-top: 24rpx; |
||||
|
color: #1A1A1A; |
||||
|
z-index: 2; |
||||
|
} |
||||
|
} |
||||
|
.idcard-width-170{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
.rb-upload-bg{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
.popup-demo{ |
||||
|
font-size: 32rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -0,0 +1,226 @@ |
|||||
|
<template> |
||||
|
<!-- 弹窗 --> |
||||
|
<view class="m-popup b-popup " v-if="showPopup" :class="[directionClass,{'b-popup-round':round},{'b-popup-animation':animation}]"> |
||||
|
<view class="b-popup-shade" @click="showPopup = false"></view> |
||||
|
<view class="b-popup-content"> |
||||
|
|
||||
|
<view class="b-content-view b-flex-y b-flex-c"> |
||||
|
<!-- 右上角关闭按钮 --> |
||||
|
<view class="b-flex-x b-flex-e b-mb-20 b-flex-as-e"> |
||||
|
<text class="b-icon icon-close b-t-gray b-t-44" @click="showPopup = false"></text> |
||||
|
</view> |
||||
|
<view class="b-t-B b-t-36 b-mb-40">小程序名称设置</view> |
||||
|
<input class="bc-input b-mb-50" type="text" placeholder="请输入" |
||||
|
placeholder-class="input-hold-class"></input> |
||||
|
<view class="rb-radio b-flex-x b-mb-40"> |
||||
|
<radio-group @change="idTimeChange"> |
||||
|
<radio value="1" checked style="transform:scale(0.9)" color="#009876">组织号</radio> |
||||
|
<radio value="2" style="transform:scale(0.9);margin-left: 40rpx;" color="#009876">个人号</radio> |
||||
|
</radio-group> |
||||
|
</view> |
||||
|
<view class="rb-line"></view> |
||||
|
<view class="rb-text b-t-24 b-t-red b-p-40"> |
||||
|
<text>你申请的名称涉及特定地域范围或地理名称,需要经过平台审核后才可使用,你可以直接提交审核,或提供《商标注册证》等材料,以证明你可使用该地域范围或地理名称作为账号名称,否则可能审核不通过。</text> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-upload-list b-flex-x b-flex-a b-mt-50"> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">拍照上传</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">关键词补充材料</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- <view class="b-flex-as-e b-ml-40 b-t-24 b-t-green b-t-B b-t-U">重新上传</view> --> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-btns b-flex-x b-mt-40 b-mb-50"> |
||||
|
<button class="b-btn b-btn-green b-mr-40" @click="showPopup = false">取消</button> |
||||
|
<button class="b-btn b-btn-green " @click="showPopup = false">确定</button> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/utils/util'; |
||||
|
import { servers } from '@/js/server'; |
||||
|
import party_api from '../../js/api.js'; |
||||
|
|
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
nameInfo: { |
||||
|
type: Object, |
||||
|
default: ()=>({}) |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
...mapState(['brandInfo']), |
||||
|
}, |
||||
|
onmounted(){ |
||||
|
console.log("onmounted123",this.nameInfo) |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
showPopup:true, |
||||
|
|
||||
|
input_amount: "", |
||||
|
selectType: 1, //默认1(停止计时) 2(完结订单) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
moveHandle(){}, |
||||
|
closeChange(){ |
||||
|
this.$emit('close'); |
||||
|
}, |
||||
|
|
||||
|
confirmChange(){ |
||||
|
let { brandInfo, orderInfo, input_amount, selectType } = this |
||||
|
if(input_amount == '')return util.showNone('请输入金额!'); |
||||
|
util.showLoad(); |
||||
|
deviceServer.get({ |
||||
|
url: deviceApi.timeOrderEnd, |
||||
|
data: { |
||||
|
brand_id: brandInfo.brand.id, |
||||
|
order_no: orderInfo.order_no, |
||||
|
pay_amount: parseFloat(input_amount), |
||||
|
end_type: selectType==1?'end_timing':selectType==2?'end_order':'', |
||||
|
}, |
||||
|
failMsg: '加载失败!' |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
util.hideLoad() |
||||
|
util.showNone('操作成功!'); |
||||
|
this.$emit('close'); |
||||
|
// setTimeout(()=>uni.navigateBack(),1200); |
||||
|
this.$emit('timeEndBtn'); |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectBtn(type){ |
||||
|
this.selectType = type |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" > |
||||
|
@import '~style/public.scss'; |
||||
|
@import '../../ui/maincss.scss'; |
||||
|
|
||||
|
.m-popup{ |
||||
|
.b-popup-shade{ |
||||
|
background: rgba(0,0,0,0.5); |
||||
|
position: fixed; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
z-index: 100; |
||||
|
} |
||||
|
.b-popup-content{ |
||||
|
position: fixed; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
background: #fff; |
||||
|
border-radius: 5rpx; |
||||
|
z-index: 101; |
||||
|
.b-content-view{ |
||||
|
width: 620rpx; |
||||
|
padding: 20rpx; |
||||
|
.b-content-title{ |
||||
|
|
||||
|
} |
||||
|
.bc-input{ |
||||
|
width: 538rpx; |
||||
|
height: 88rpx; |
||||
|
background: #FFFFFF; |
||||
|
border: 2rpx solid #D8D8D8; |
||||
|
border-radius: 10rpx; |
||||
|
padding-left: 30rpx; |
||||
|
} |
||||
|
.input-hold-class{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.rb-line{ |
||||
|
border-bottom: 1rpx solid #E5E5E5; |
||||
|
width: 100%; |
||||
|
} |
||||
|
.rb-btns{ |
||||
|
>button{ |
||||
|
width: 240rpx; |
||||
|
height: 88rpx; |
||||
|
} |
||||
|
>button:first-child{ |
||||
|
background: #fff; |
||||
|
color: $b-color-green; |
||||
|
// border: 1rpx solid $b-color-green; |
||||
|
} |
||||
|
} |
||||
|
.rb-text{ |
||||
|
>text{ |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
.rb-upload-list{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.rb-upload-item{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
// position: relative; |
||||
|
|
||||
|
.rb-upload-bg{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
|
||||
|
.rb-upload-cam{ |
||||
|
width: 48rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.rb-input-img-text{ |
||||
|
font-size: 24rpx; |
||||
|
margin-top: 24rpx; |
||||
|
color: #1A1A1A; |
||||
|
z-index: 2; |
||||
|
} |
||||
|
} |
||||
|
.idcard-width-170{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
.rb-upload-bg{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
.popup-demo{ |
||||
|
font-size: 32rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -0,0 +1,231 @@ |
|||||
|
<template> |
||||
|
<!-- 弹窗 --> |
||||
|
<view class="m-popup b-popup " v-if="true" :class="[directionClass,{'b-popup-round':round},{'b-popup-animation':animation}]"> |
||||
|
<view class="b-popup-shade" @click="showPopup = false"></view> |
||||
|
<view class="b-popup-content"> |
||||
|
|
||||
|
<view class="b-content-view b-flex-y b-flex-c"> |
||||
|
<!-- 右上角关闭按钮 --> |
||||
|
<view class="b-flex-x b-flex-e b-mb-20 b-flex-as-e"> |
||||
|
<text class="b-icon icon-close b-t-gray b-t-44" @click="showPopup = false"></text> |
||||
|
</view> |
||||
|
<view class="b-t-B b-t-36 b-mb-40">小程序名称设置</view> |
||||
|
<input class="bc-input b-mb-50" type="text" placeholder="请输入" |
||||
|
placeholder-class="input-hold-class"></input> |
||||
|
<view class="rb-radio b-flex-x b-mb-40"> |
||||
|
<radio-group @change="idTimeChange"> |
||||
|
<radio value="1" checked style="transform:scale(0.9)" color="#009876">组织号</radio> |
||||
|
<radio value="2" style="transform:scale(0.9);margin-left: 40rpx;" color="#009876">个人号</radio> |
||||
|
</radio-group> |
||||
|
</view> |
||||
|
<view class="rb-line"></view> |
||||
|
<view class="rb-text b-t-24 b-t-red b-p-40"> |
||||
|
<text>你申请的名称涉及特定地域范围或地理名称,需要经过平台审核后才可使用,你可以直接提交审核,或提供《商标注册证》等材料,以证明你可使用该地域范围或地理名称作为账号名称,否则可能审核不通过。</text> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-upload-list b-flex-x b-flex-a b-mt-50"> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">拍照上传</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">关键词补充材料</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- <view class="b-flex-as-e b-ml-40 b-t-24 b-t-green b-t-B b-t-U">重新上传</view> --> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-btns b-flex-x b-mt-40 b-mb-50"> |
||||
|
<button class="b-btn b-btn-green b-mr-40" @click="closeChange">取消</button> |
||||
|
<button class="b-btn b-btn-green " @click="clickSure">确定</button> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/utils/util'; |
||||
|
import { servers } from '@/js/server'; |
||||
|
import party_api from '../../js/api.js'; |
||||
|
|
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
nameInfo: { |
||||
|
type: Object, |
||||
|
default: ()=>({ |
||||
|
showPopup:true, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
...mapState(['brandInfo']), |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
showPopup:true, |
||||
|
|
||||
|
input_amount: "", |
||||
|
selectType: 1, //默认1(停止计时) 2(完结订单) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
moveHandle(){}, |
||||
|
closeChange(){ |
||||
|
this.$emit('close'); |
||||
|
}, |
||||
|
clickSure(){ |
||||
|
this.showPopup = false; |
||||
|
this.$emit('sure',this.nameInfo); |
||||
|
}, |
||||
|
confirmChange(){ |
||||
|
let { brandInfo, orderInfo, input_amount, selectType } = this |
||||
|
if(input_amount == '')return util.showNone('请输入金额!'); |
||||
|
util.showLoad(); |
||||
|
deviceServer.get({ |
||||
|
url: deviceApi.timeOrderEnd, |
||||
|
data: { |
||||
|
brand_id: brandInfo.brand.id, |
||||
|
order_no: orderInfo.order_no, |
||||
|
pay_amount: parseFloat(input_amount), |
||||
|
end_type: selectType==1?'end_timing':selectType==2?'end_order':'', |
||||
|
}, |
||||
|
failMsg: '加载失败!' |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
util.hideLoad() |
||||
|
util.showNone('操作成功!'); |
||||
|
this.$emit('close'); |
||||
|
// setTimeout(()=>uni.navigateBack(),1200); |
||||
|
this.$emit('timeEndBtn'); |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectBtn(type){ |
||||
|
this.selectType = type |
||||
|
}, |
||||
|
idTimeChange(e){ |
||||
|
console.log(e.detail) |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" > |
||||
|
@import '~style/public.scss'; |
||||
|
@import '../../ui/maincss.scss'; |
||||
|
|
||||
|
.m-popup{ |
||||
|
.b-popup-shade{ |
||||
|
background: rgba(0,0,0,0.5); |
||||
|
position: fixed; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
z-index: 100; |
||||
|
} |
||||
|
.b-popup-content{ |
||||
|
position: fixed; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
background: #fff; |
||||
|
border-radius: 5rpx; |
||||
|
z-index: 101; |
||||
|
.b-content-view{ |
||||
|
width: 620rpx; |
||||
|
padding: 20rpx; |
||||
|
.b-content-title{ |
||||
|
|
||||
|
} |
||||
|
.bc-input{ |
||||
|
width: 538rpx; |
||||
|
height: 88rpx; |
||||
|
background: #FFFFFF; |
||||
|
border: 2rpx solid #D8D8D8; |
||||
|
border-radius: 10rpx; |
||||
|
padding-left: 30rpx; |
||||
|
} |
||||
|
.input-hold-class{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.rb-line{ |
||||
|
border-bottom: 1rpx solid #E5E5E5; |
||||
|
width: 100%; |
||||
|
} |
||||
|
.rb-btns{ |
||||
|
>button{ |
||||
|
width: 240rpx; |
||||
|
height: 88rpx; |
||||
|
} |
||||
|
>button:first-child{ |
||||
|
background: #fff; |
||||
|
color: $b-color-green; |
||||
|
// border: 1rpx solid $b-color-green; |
||||
|
} |
||||
|
} |
||||
|
.rb-text{ |
||||
|
>text{ |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
.rb-upload-list{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.rb-upload-item{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
// position: relative; |
||||
|
|
||||
|
.rb-upload-bg{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
|
||||
|
.rb-upload-cam{ |
||||
|
width: 48rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.rb-input-img-text{ |
||||
|
font-size: 24rpx; |
||||
|
margin-top: 24rpx; |
||||
|
color: #1A1A1A; |
||||
|
z-index: 2; |
||||
|
} |
||||
|
} |
||||
|
.idcard-width-170{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
.rb-upload-bg{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
.popup-demo{ |
||||
|
font-size: 32rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -0,0 +1,286 @@ |
|||||
|
<template> |
||||
|
<!-- 弹窗 --> |
||||
|
<view class="m-popup b-popup " v-if="true" :class="[directionClass,{'b-popup-round':round},{'b-popup-animation':animation}]"> |
||||
|
<view class="b-popup-shade" @click="showPopup = false"></view> |
||||
|
<view class="b-popup-content"> |
||||
|
|
||||
|
<view class="b-content-view b-flex-y b-flex-c"> |
||||
|
<!-- 右上角关闭按钮 --> |
||||
|
<view class="b-flex-x b-flex-e b-mb-20 b-flex-as-e"> |
||||
|
<text class="b-icon icon-close b-t-gray b-t-44" @click="closeChange"></text> |
||||
|
</view> |
||||
|
<view class="b-t-B b-t-36 b-mb-40">小程序名称设置</view> |
||||
|
<input class="bc-input b-mb-50" v-model="userInputName" type="text" placeholder="请输入" |
||||
|
placeholder-class="input-hold-class"></input> |
||||
|
|
||||
|
<view class=" b-flex-x b-mt-10 b-mb-30"> |
||||
|
<button class="b-btn b-btn-green " @click="clickCheckName">下一步</button> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-radio b-flex-x b-mb-40"> |
||||
|
<radio-group @change="idTimeChange"> |
||||
|
<radio value="1" checked style="transform:scale(0.9)" color="#009876">组织号</radio> |
||||
|
<radio value="2" style="transform:scale(0.9);margin-left: 40rpx;" color="#009876">个人号</radio> |
||||
|
</radio-group> |
||||
|
</view> |
||||
|
<view class="rb-line"></view> |
||||
|
<view class="rb-text b-t-24 b-t-red b-p-40"> |
||||
|
<text>你申请的名称涉及特定地域范围或地理名称,需要经过平台审核后才可使用,你可以直接提交审核,或提供《商标注册证》等材料,以证明你可使用该地域范围或地理名称作为账号名称,否则可能审核不通过。</text> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-upload-list b-flex-x b-flex-a b-mt-50"> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">拍照上传</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="b-flex-y b-flex-c"> |
||||
|
<view class="b-mb-30">关键词补充材料</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- <view class="b-flex-as-e b-ml-40 b-t-24 b-t-green b-t-B b-t-U">重新上传</view> --> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-btns b-flex-x b-mt-40 b-mb-50"> |
||||
|
<button class="b-btn b-btn-green b-mr-40" @click="closeChange">取消</button> |
||||
|
<button class="b-btn b-btn-green " @click="clickSure">确定{{appid}}</button> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/utils/util'; |
||||
|
import { servers } from '@/js/server'; |
||||
|
import party_api from '../../js/api.js'; |
||||
|
|
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
nameInfo: { |
||||
|
type: Object, |
||||
|
default: ()=>({ |
||||
|
showPopup:true, |
||||
|
}) |
||||
|
}, |
||||
|
appid: { |
||||
|
type: String, |
||||
|
default: '' |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
...mapState(['brandInfo']), |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
showPopup:true, |
||||
|
userInputName: '',//用户输入的名称 |
||||
|
checkNameRes: {},//查询名称是否可用 |
||||
|
|
||||
|
input_amount: "", |
||||
|
selectType: 1, //默认1(停止计时) 2(完结订单) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
moveHandle(){}, |
||||
|
closeChange(){ |
||||
|
this.$emit('close'); |
||||
|
}, |
||||
|
clickSure(){ |
||||
|
this.showPopup = false; |
||||
|
this.$emit('sure',this.nameInfo); |
||||
|
}, |
||||
|
clickCheckName(){ |
||||
|
if(this.userInputName == '')return util.showNone('请输入名称!'); |
||||
|
this.checkwxverifynickname(); |
||||
|
}, |
||||
|
checkwxverifynickname(){ |
||||
|
// let appid = this.appid; |
||||
|
let _data = party_api["gatewayDoJson"]['checkwxverifynickname'] |
||||
|
_data.form.nick_name = this.userInputName |
||||
|
console.log("getaccountbasicinfo:",_data) |
||||
|
servers.post({ |
||||
|
url: party_api.gatewayDo, |
||||
|
data: _data, |
||||
|
isDefaultGet: false, |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("checkwxverifynickname:", res.data) |
||||
|
if(res.data.code!=0){ |
||||
|
util.showNone(res.data.message) |
||||
|
console.log("checkwxverifynickname-err", res.data) |
||||
|
}else{ |
||||
|
util.showNone('名称可用') |
||||
|
this.checkNameRes = res.data.data |
||||
|
} |
||||
|
|
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("checkwxverifynickname-err", err) |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
getGateWayJson(jname){ |
||||
|
let appid = this.appid |
||||
|
let _data = party_api["gatewayDoJson"][jname] |
||||
|
if(!appid){ |
||||
|
console.error("当前page中: this.appid不存在") |
||||
|
return util.showNone("appid不存在") |
||||
|
} |
||||
|
if(!_data){ |
||||
|
console.error("先去api.js定义透传数据:",jname) |
||||
|
return util.showNone("接口不存在") |
||||
|
} |
||||
|
_data.appid = appid; |
||||
|
return _data |
||||
|
}, |
||||
|
confirmChange(){ |
||||
|
let { brandInfo, orderInfo, input_amount, selectType } = this |
||||
|
if(input_amount == '')return util.showNone('请输入金额!'); |
||||
|
util.showLoad(); |
||||
|
deviceServer.get({ |
||||
|
url: deviceApi.timeOrderEnd, |
||||
|
data: { |
||||
|
brand_id: brandInfo.brand.id, |
||||
|
order_no: orderInfo.order_no, |
||||
|
pay_amount: parseFloat(input_amount), |
||||
|
end_type: selectType==1?'end_timing':selectType==2?'end_order':'', |
||||
|
}, |
||||
|
failMsg: '加载失败!' |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
util.hideLoad() |
||||
|
util.showNone('操作成功!'); |
||||
|
this.$emit('close'); |
||||
|
// setTimeout(()=>uni.navigateBack(),1200); |
||||
|
this.$emit('timeEndBtn'); |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectBtn(type){ |
||||
|
this.selectType = type |
||||
|
}, |
||||
|
idTimeChange(e){ |
||||
|
console.log(e.detail) |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" > |
||||
|
@import '~style/public.scss'; |
||||
|
@import '../../ui/maincss.scss'; |
||||
|
|
||||
|
.m-popup{ |
||||
|
.b-popup-shade{ |
||||
|
background: rgba(0,0,0,0.5); |
||||
|
position: fixed; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
z-index: 100; |
||||
|
} |
||||
|
.b-popup-content{ |
||||
|
position: fixed; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
background: #fff; |
||||
|
border-radius: 5rpx; |
||||
|
z-index: 101; |
||||
|
.b-content-view{ |
||||
|
width: 620rpx; |
||||
|
padding: 20rpx; |
||||
|
.b-content-title{ |
||||
|
|
||||
|
} |
||||
|
.bc-input{ |
||||
|
width: 538rpx; |
||||
|
height: 88rpx; |
||||
|
background: #FFFFFF; |
||||
|
border: 2rpx solid #D8D8D8; |
||||
|
border-radius: 10rpx; |
||||
|
padding-left: 30rpx; |
||||
|
} |
||||
|
.input-hold-class{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.rb-line{ |
||||
|
border-bottom: 1rpx solid #E5E5E5; |
||||
|
width: 100%; |
||||
|
} |
||||
|
.rb-btns{ |
||||
|
>button{ |
||||
|
width: 240rpx; |
||||
|
height: 88rpx; |
||||
|
} |
||||
|
>button:first-child{ |
||||
|
background: #fff; |
||||
|
color: $b-color-green; |
||||
|
// border: 1rpx solid $b-color-green; |
||||
|
} |
||||
|
} |
||||
|
.rb-text{ |
||||
|
>text{ |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
.rb-upload-list{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.rb-upload-item{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
// position: relative; |
||||
|
|
||||
|
.rb-upload-bg{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
|
||||
|
.rb-upload-cam{ |
||||
|
width: 48rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.rb-input-img-text{ |
||||
|
font-size: 24rpx; |
||||
|
margin-top: 24rpx; |
||||
|
color: #1A1A1A; |
||||
|
z-index: 2; |
||||
|
} |
||||
|
} |
||||
|
.idcard-width-170{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
.rb-upload-bg{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
.popup-demo{ |
||||
|
font-size: 32rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -0,0 +1,480 @@ |
|||||
|
<template> |
||||
|
<!-- 弹窗 --> |
||||
|
<view class="m-popup b-popup " v-if="true" :class="[directionClass,{'b-popup-round':round},{'b-popup-animation':animation}]"> |
||||
|
<view class="b-popup-shade" @click="showPopup = false"></view> |
||||
|
<view class="b-popup-content"> |
||||
|
|
||||
|
<view class="b-content-view b-flex-y b-flex-c"> |
||||
|
<!-- 右上角关闭按钮 --> |
||||
|
<view class="b-flex-x b-flex-e b-mb-20 b-flex-as-e"> |
||||
|
<text class="b-icon icon-close b-t-gray b-t-44" @click="closeChange"></text> |
||||
|
</view> |
||||
|
<view class="b-t-B b-t-36 b-mb-40">小程序名称设置</view> |
||||
|
<input class="bc-input b-mb-50" v-model="userInputName" type="text" placeholder="请输入" |
||||
|
placeholder-class="input-hold-class"></input> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<view class=" b-flex-x b-mt-10 b-mb-30" v-if="!checkNameRes"> |
||||
|
<button class="b-btn b-btn-green " @click="clickCheckName">下一步</button> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
<view class="rb-line"></view> |
||||
|
<view class="rb-text b-t-24 b-t-red b-p-40"> |
||||
|
<text >{{checkNameRes.message||checkNameRes.data.wording}}</text> |
||||
|
<!-- <text v-else>你申请的名称涉及特定地域范围或地理名称,需要经过平台审核后才可使用,你可以直接提交审核,或提供《商标注册证》等材料,以证明你可使用该地域范围或地理名称作为账号名称,否则可能审核不通过。</text> --> |
||||
|
</view> |
||||
|
|
||||
|
<block v-if="checkNameRes.code==0"> |
||||
|
<view class="rb-radio b-flex-x b-mb-40"> |
||||
|
<radio-group @change="selectChange"> |
||||
|
<!-- checked --> |
||||
|
<radio value="id_card" style="transform:scale(0.9)" color="#009876">个人号</radio> |
||||
|
<radio value="license" style="transform:scale(0.9);margin-left: 40rpx;" color="#009876">组织号</radio> |
||||
|
</radio-group> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-upload-list b-flex-x b-flex-a b-mt-50"> |
||||
|
<view v-if="(selectType=='id_card')" class="b-flex-y b-flex-c" @click="clickUploadImg('id_card')"> |
||||
|
<view class="b-mb-30 b-t-26">身份证照片</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view v-if="(selectType=='license')" class="b-flex-y b-flex-c" @click="clickUploadImg('license')"> |
||||
|
<view class="b-mb-30 b-t-26">营业执照</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view v-if="checkNameRes.data.hit_condition" class="b-flex-y b-flex-c" @click="clickUploadImg('naming_other_stuff_1')"> |
||||
|
<view class="b-mb-30 b-t-26">关键词补充材料</view> |
||||
|
<view class="rb-upload-item b-flex-y b-flex-c"> |
||||
|
<image class="rb-upload-bg" src="../../static/regist/upload_bg.png"></image> |
||||
|
<image class="rb-upload-cam" src="../../static/regist/camera.png"></image> |
||||
|
<text class="rb-input-img-text">点击上传</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- <view class="b-flex-as-e b-ml-40 b-t-24 b-t-green b-t-B b-t-U">重新上传</view> --> |
||||
|
</view> |
||||
|
|
||||
|
<view class="rb-btns b-flex-x b-mt-40 b-mb-50"> |
||||
|
<button class="b-btn b-btn-green b-mr-40" @click="closeChange">取消</button> |
||||
|
<button class="b-btn b-btn-green " @click="clickSure">确定</button> |
||||
|
</view> |
||||
|
</block> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/utils/util'; |
||||
|
import { servers } from '@/js/server'; |
||||
|
import party_api from '../../js/api.js'; |
||||
|
|
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
props: { |
||||
|
nameInfo: { |
||||
|
type: Object, |
||||
|
default: ()=>({ |
||||
|
showPopup:true, |
||||
|
}) |
||||
|
}, |
||||
|
appid: { |
||||
|
type: String, |
||||
|
default: '' |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
...mapState(['brandInfo']), |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
showPopup:true, |
||||
|
userInputName: '',//用户输入的名称 |
||||
|
checkNameRes: "",//查询名称是否可用 |
||||
|
|
||||
|
selectType:"",//选择的类型 |
||||
|
localImg :{ |
||||
|
id_card: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"身份证照片" |
||||
|
}, |
||||
|
license: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"组织机构代码证或营业执照" |
||||
|
}, |
||||
|
naming_other_stuff_1: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"关键词补充材料" |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
// input_amount: "", |
||||
|
// selectType: 1, //默认1(停止计时) 2(完结订单) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
moveHandle(){}, |
||||
|
closeChange(){ |
||||
|
this.$emit('close'); |
||||
|
}, |
||||
|
async clickSure(){ |
||||
|
await this.setnickname().then(res=>{ |
||||
|
console.log("setnickname-res", res) |
||||
|
this.showPopup = false; |
||||
|
this.$emit('sure',this.nameInfo); |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
clickCheckName(){ |
||||
|
if(this.userInputName == '')return util.showNone('请输入名称!'); |
||||
|
|
||||
|
this.checkwxverifynickname(); |
||||
|
}, |
||||
|
async clickUploadImg(which){ |
||||
|
if(this.selectType=="")return util.showNone('请选择类型!'); |
||||
|
//whick id_card:身份证照片 mediaid,个人号必填 |
||||
|
//license 组织机构代码证或营业执照 mediaid,组织号必填 |
||||
|
this.localImg[which].url = await this.getLocalImg(); |
||||
|
|
||||
|
console.log("clickUploadImg-111", this.localImg[which]) |
||||
|
this.localImg[which].mediaid = await this.getUploadImgMediaId(this.localImg[which].url); |
||||
|
console.log("clickUploadImg-222", this.localImg[which]) |
||||
|
|
||||
|
//当需要回显数据时, 同时上传图片到服务器 |
||||
|
// this.localImg[which].url = await this.getUploadImgURL(this.localImg[which].url); |
||||
|
|
||||
|
}, |
||||
|
resetLocalImg(){ |
||||
|
this.localImg = { |
||||
|
id_card: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"身份证照片" |
||||
|
}, |
||||
|
license: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"组织机构代码证或营业执照" |
||||
|
}, |
||||
|
naming_other_stuff_1: { |
||||
|
mediaid: '', |
||||
|
url: '', |
||||
|
txt:"关键词补充材料" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
getUploadImgURL(tempFilePath){ |
||||
|
return servers.uploadFile({ |
||||
|
url: party_api.webUpload, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'file', |
||||
|
formData: {} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
// console.log("uploadFile-url 上传成功1", res.data.data.url) |
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
// console.log("uploadFile-url 上传成功 接口真正数据", JSON.parse(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
return _data.url |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
//从相册获取照片 |
||||
|
getLocalImg() { |
||||
|
console.log("clickUploadImg"); |
||||
|
return new Promise((resolve, reject) => { |
||||
|
uni.chooseImage({ |
||||
|
count: 1, |
||||
|
sizeType: ['original', 'compressed'], |
||||
|
sourceType: ['album', 'camera'], |
||||
|
success: (res) => { |
||||
|
console.log("chooseImage", res) |
||||
|
let tempFilePaths = res.tempFilePaths[0]; |
||||
|
resolve(tempFilePaths) |
||||
|
}, |
||||
|
fail: (err) => { |
||||
|
console.log("chooseImage-err", err) |
||||
|
reject(err) |
||||
|
} |
||||
|
}); |
||||
|
}) |
||||
|
}, |
||||
|
getUploadImgMediaId(tempFilePath){ |
||||
|
let appid = this.appid |
||||
|
let _param_str = `module=/cgi-bin/media/upload&appid=${appid}` |
||||
|
let _url = party_api.gatewayDoDuplicate+"?"+_param_str |
||||
|
return servers.uploadFile({ |
||||
|
url: _url, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'image', |
||||
|
formData: { |
||||
|
'form.type':"image" |
||||
|
} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-gatewayDoDuplicate-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
|
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
console.log("uploadFile-gatewayDoDuplicate-上传成功 接口真正数据", _data) |
||||
|
return _data.media_id |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
getUploadImgURL(tempFilePath){ |
||||
|
return servers.uploadFile({ |
||||
|
url: party_api.webUpload, |
||||
|
filePath: tempFilePath, |
||||
|
name: 'file', |
||||
|
formData: {} |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("uploadFile-res", res) |
||||
|
if(res.statusCode == 200){ |
||||
|
// console.log("uploadFile-url 上传成功1", res.data.data.url) |
||||
|
let _data = JSON.parse(JSON.stringify(res.data)) |
||||
|
console.log("uploadFile-url return type", typeof(_data)) |
||||
|
// console.log("uploadFile-url 上传成功 接口真正数据", JSON.parse(_data)) |
||||
|
_data = JSON.parse(_data).data |
||||
|
return _data.url |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("uploadFile-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
setnickname(){ |
||||
|
let _data = this.getGateWayJson('setnickname') |
||||
|
_data.form.nick_name = this.userInputName |
||||
|
_data.form.id_card = this.localImg.id_card.mediaid |
||||
|
_data.form.license = this.localImg.license.mediaid |
||||
|
|
||||
|
console.log("setnickname:",_data) |
||||
|
return servers.post({ |
||||
|
url: party_api.gatewayDo, |
||||
|
data: _data, |
||||
|
isDefaultGet: false, |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("setnickname:", res.data) |
||||
|
if(res.data.code!=0){ |
||||
|
util.showNone("设置失败") |
||||
|
console.log("setnickname-err", res.data) |
||||
|
}else{ |
||||
|
util.showNone('设置成功') |
||||
|
} |
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("setnickname-err", err) |
||||
|
}) |
||||
|
}, |
||||
|
checkwxverifynickname(){ |
||||
|
this.checkNameRes = {} |
||||
|
let _data = this.getGateWayJson('checkwxverifynickname') |
||||
|
_data.form.nick_name = this.userInputName |
||||
|
console.log("getaccountbasicinfo:",_data) |
||||
|
servers.post({ |
||||
|
url: party_api.gatewayDo, |
||||
|
data: _data, |
||||
|
isDefaultGet: false, |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
console.log("checkwxverifynickname:", res.data) |
||||
|
if(res.data.code!=0){ |
||||
|
util.showNone("名称不可用") |
||||
|
console.log("checkwxverifynickname-err", res.data) |
||||
|
}else{ |
||||
|
util.showNone('名称可用') |
||||
|
if(!res.data.data.hit_condition){ |
||||
|
res.data.message = '名称可用(注意:改名次数将在自然年 1 月 1 日和微信认证审核通过后重置为 2 次.请慎重修改.)' |
||||
|
} |
||||
|
} |
||||
|
this.checkNameRes = res.data |
||||
|
console.log("checkwxverifynickname123123:", this.checkNameRes) |
||||
|
|
||||
|
}) |
||||
|
.catch(err=>{ |
||||
|
console.log("checkwxverifynickname-err", err) |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
getGateWayJson(jname){ |
||||
|
let appid = this.appid |
||||
|
let _data = party_api["gatewayDoJson"][jname] |
||||
|
if(!appid){ |
||||
|
console.error("当前page中: this.appid不存在") |
||||
|
return util.showNone("appid不存在") |
||||
|
} |
||||
|
if(!_data){ |
||||
|
console.error("先去api.js定义透传数据:",jname) |
||||
|
return util.showNone("接口不存在") |
||||
|
} |
||||
|
_data.appid = appid; |
||||
|
return _data |
||||
|
}, |
||||
|
confirmChange(){ |
||||
|
let { brandInfo, orderInfo, input_amount, selectType } = this |
||||
|
if(input_amount == '')return util.showNone('请输入金额!'); |
||||
|
util.showLoad(); |
||||
|
deviceServer.get({ |
||||
|
url: deviceApi.timeOrderEnd, |
||||
|
data: { |
||||
|
brand_id: brandInfo.brand.id, |
||||
|
order_no: orderInfo.order_no, |
||||
|
pay_amount: parseFloat(input_amount), |
||||
|
end_type: selectType==1?'end_timing':selectType==2?'end_order':'', |
||||
|
}, |
||||
|
failMsg: '加载失败!' |
||||
|
}) |
||||
|
.then(res=>{ |
||||
|
util.hideLoad() |
||||
|
util.showNone('操作成功!'); |
||||
|
this.$emit('close'); |
||||
|
// setTimeout(()=>uni.navigateBack(),1200); |
||||
|
this.$emit('timeEndBtn'); |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectBtn(type){ |
||||
|
this.selectType = type |
||||
|
}, |
||||
|
selectChange(e){ |
||||
|
console.log(e.detail) |
||||
|
this.selectType = e.detail.value |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" > |
||||
|
@import '~style/public.scss'; |
||||
|
@import '../../ui/maincss.scss'; |
||||
|
|
||||
|
.m-popup{ |
||||
|
.b-popup-shade{ |
||||
|
background: rgba(0,0,0,0.5); |
||||
|
position: fixed; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
z-index: 100; |
||||
|
} |
||||
|
.b-popup-content{ |
||||
|
position: fixed; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
background: #fff; |
||||
|
border-radius: 5rpx; |
||||
|
z-index: 101; |
||||
|
.b-content-view{ |
||||
|
width: 620rpx; |
||||
|
padding: 20rpx; |
||||
|
.b-content-title{ |
||||
|
|
||||
|
} |
||||
|
.bc-input{ |
||||
|
width: 538rpx; |
||||
|
height: 88rpx; |
||||
|
background: #FFFFFF; |
||||
|
border: 2rpx solid #D8D8D8; |
||||
|
border-radius: 10rpx; |
||||
|
padding-left: 30rpx; |
||||
|
} |
||||
|
.input-hold-class{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.rb-line{ |
||||
|
border-bottom: 1rpx solid #E5E5E5; |
||||
|
width: 100%; |
||||
|
} |
||||
|
.rb-btns{ |
||||
|
>button{ |
||||
|
width: 240rpx; |
||||
|
height: 88rpx; |
||||
|
} |
||||
|
>button:first-child{ |
||||
|
background: #fff; |
||||
|
color: $b-color-green; |
||||
|
// border: 1rpx solid $b-color-green; |
||||
|
} |
||||
|
} |
||||
|
.rb-text{ |
||||
|
>text{ |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
.rb-upload-list{ |
||||
|
width: 100%; |
||||
|
|
||||
|
.rb-upload-item{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
// position: relative; |
||||
|
|
||||
|
.rb-upload-bg{ |
||||
|
width: 168rpx; |
||||
|
height: 168rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
|
||||
|
.rb-upload-cam{ |
||||
|
width: 48rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.rb-input-img-text{ |
||||
|
font-size: 24rpx; |
||||
|
margin-top: 24rpx; |
||||
|
color: #1A1A1A; |
||||
|
z-index: 2; |
||||
|
} |
||||
|
} |
||||
|
.idcard-width-170{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
.rb-upload-bg{ |
||||
|
width: 280rpx; |
||||
|
height: 170rpx; |
||||
|
position: absolute; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
.popup-demo{ |
||||
|
font-size: 32rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</style> |
@ -1,40 +1,96 @@ |
|||||
import { ORIGIN } from '../../../js/api'; |
import { ORIGIN } from '../../../js/api'; |
||||
|
|
||||
export const ORDER_API = { |
|
||||
venueCourse_orderInfo:`${ORIGIN}/admin/venueCourse/orderInfo`, // 课程订单 - 详情
|
|
||||
userValueCardInfo:`${ORIGIN}/admin/userValueCard/get`, // 用户储值卡详情_copy
|
|
||||
userValueCardConsumes:`${ORIGIN}/admin/userValueCard/consumes`, // 用户储值卡消费记录_copy
|
|
||||
consumeTypeList:`${ORIGIN}/valueCard/consumeType/list`, // 用户储值卡消费场景列表
|
|
||||
userValueCardDeduct:`${ORIGIN}/admin/userValueCard/deduct`, // 用户储值卡-扣费_copy
|
|
||||
userValueCardRecharge:`${ORIGIN}/admin/userValueCard/recharge`, // 用户储值卡-充值_copy
|
|
||||
momentOrderInfo:`${ORIGIN}/admin/perfect/moment/order/get`, // 后台-高光时刻订单详情_copy
|
|
||||
hardwareOrderInfo:`${ORIGIN}/admin/assistant/hardware/order/get`, // 硬件管理-订单详情_copy
|
|
||||
rentballRefundDeposit:`${ORIGIN}/admin/assistant/rentball/refundDeposit`, // 退押金-后台
|
|
||||
hardwareOrderGet:`${ORIGIN}/admin/assistant/hardware/order/get`, // 硬件订单详情 储物柜/售货柜/水阀/咖啡机/租售柜
|
|
||||
lockEndBill:`${ORIGIN}/admin/stadium/locker/endBill`, // 储物柜-结束计费
|
|
||||
currentUser:`${ORIGIN}/admin/assistant/currentUser`, // 获取当前用户信息
|
|
||||
appointmentOrderInfo:`${ORIGIN}/admin/gameAppointment/orderInfo`, // 赛事订单详情
|
|
||||
matchOrderSonList:`${ORIGIN}/gameAppointment/match/orderSonList`, // 赛事订单-参赛成员列表
|
|
||||
matchGetOrderSon:`${ORIGIN}/gameAppointment/match/getOrderSon`, // 赛事订单_参赛成员详情
|
|
||||
shop2OrderInfo:`${ORIGIN}/admin/shop2/orderInfo`, // 商城订单 - 详情
|
|
||||
erpshList:`${ORIGIN}/stadium/erpsh/newList`, // 商城订单管理-统一的仓库列表
|
|
||||
shop2OrderLogistics:`${ORIGIN}/admin/shop2/orderLogistics`, // 商城订单管理 - 发货_
|
|
||||
logisticsCompanyLs:`${ORIGIN}/shop2/logisticsCompany/List`, // 商城订单管理 - 快递公司列表
|
|
||||
orderGoodsRefund:`${ORIGIN}/admin/shop2/orderGoodsRefund`, // 商城-商品退款_copy
|
|
||||
rentballOrderEnd:`${ORIGIN}/admin/assistant/rentball/order/end`, // 租球机-结束计费
|
|
||||
leaseOrderEnd:`${ORIGIN}/admin/stadium/leaseOrder/endBill`, // 租售柜-结束计费
|
|
||||
retailOrderInfo:`${ORIGIN}/admin/erp/retailOrder/info`, // 订单管理-零售订单详情
|
|
||||
retailOrderInfoRefundList: `${ORIGIN}/admin/stadium/order/refundList`, // 订单管理-零售订单详情退款列表
|
|
||||
userMonthlyCardInfo:`${ORIGIN}/admin/userMonthlyCard/get`, // 详情用户年月卡-后台
|
|
||||
ymCardInfoFace:`${ORIGIN}/upload/file/ym_card_face`, // 年月卡用户头像上传
|
|
||||
ymCardInfoFaceSave:`${ORIGIN}/admin/userMonthlyCard/updateFace`, // 年月卡用户头像保存
|
|
||||
ymCardUsage:`${ORIGIN}/admin/userMonthlyCard/usages`, // 用户年月卡使用记录-后台
|
|
||||
// 20220725
|
|
||||
userValueOrderGet:`${ORIGIN}/admin/userValueOrder/get`, // 储值卡订单详情
|
|
||||
// 20220726
|
|
||||
rentballEndBilling:`${ORIGIN}/admin/stadium/rentball/order/end`, // 结束订单-后台
|
|
||||
// 20220727
|
|
||||
rentBallOrderDetails:`${ORIGIN}/admin/stadium/hardware/order/rentBallOrderDetails`, // 硬件管理-订单详情_copy
|
|
||||
|
export const PARTY_API = { |
||||
|
webBrandUser: `${ORIGIN}/web/webBrandUser/GetOpenId`, //检测用户openid是否与账户绑定,
|
||||
|
captchaSms: `${ORIGIN}/captchaSms/send`, // 发送验证码
|
||||
|
webLogin: `${ORIGIN}/web/webBrandUser/login`, // 登录
|
||||
|
// webUserGet:`${ORIGIN}/web/webBrandUser/get`, // 获取用户信息
|
||||
|
webUpload: `${ORIGIN}/upload/file/businessLicense`, // 上传图片
|
||||
|
webOcr: `${ORIGIN}/ouxuanac/ocr`, // 营业执照识别
|
||||
|
webBrandUserSave: `${ORIGIN}/web/webBrandUser/save`, // 官网PC端用户品牌数据提交
|
||||
|
webBrandUserGet: `${ORIGIN}/web/webBrandUser/get`, // 官网PC端用户品牌数据提交
|
||||
|
webGenerateBrand: `${ORIGIN}/web/webBrandUser/generateBrand`, // 审核成功 获取账户
|
||||
|
getUserCurrent: `${ORIGIN}/user/current`, // 审核成功 获取账户
|
||||
|
|
||||
|
fastregisterbetaweapp: `${ORIGIN}/admin/wechatTpp/mini/tryout/fastregisterbetaweapp`, // 审核成功 获取账户
|
||||
|
getOpenIdByMobile: `${ORIGIN}/web/webBrandUser/getOpenId`, //获取openid
|
||||
|
getOpenIdByToken: `${ORIGIN}/web/webBrandUser/getUserOpenId`, //获取openid
|
||||
|
bindBrand: `${ORIGIN}/admin/tryout/bindBrand`, //绑定品牌
|
||||
|
getVerifyMiniAppInfo: `${ORIGIN}/admin/tryout/verifyMiniAppInfo/get`, //获取转正数据
|
||||
|
verifybetaweapp: `${ORIGIN}/admin/wechatTpp/mini/tryout/verifybetaweapp`, //转正
|
||||
|
|
||||
|
|
||||
|
|
||||
|
getCertifyInfo: `${ORIGIN}/admin/tryout/verifyMiniAppInfo/get`, //获取小程序认证信息
|
||||
|
|
||||
|
gatewayDo: `${ORIGIN}/tpp/miniapp/gatewayDo`, //透传接口
|
||||
|
gatewayDoDuplicate: `${ORIGIN}/tpp/miniapp/gatewayDoDuplicate`, //透传上传接口
|
||||
|
|
||||
|
editTempDraft0: `${ORIGIN}/web/webBrandUser/temp/edit`, //保存草稿
|
||||
|
getTempDraft0: `${ORIGIN}/web/webBrandUser/temp/get`, //获取草稿
|
||||
|
|
||||
|
editTempDraft: `${ORIGIN}/web/webBrandAuthenticationTemp/edit`, //保存草稿
|
||||
|
getTempDraft: `${ORIGIN}/web/webBrandAuthenticationTemp/get`, //获取草稿
|
||||
|
|
||||
} |
} |
||||
|
PARTY_API['gatewayDoJson'] = { |
||||
|
getaccountbasicinfo: { "appid": "wxeb7efb9a1cbdd554", "module": "/cgi-bin/account/getaccountbasicinfo", "method": "POST", "form": {} }, // 获取账户基本信息
|
||||
|
// checkwxverifynickname: { "appid": "wxeb7efb9a1cbdd554", "module": "/cgi-bin/wxverify/checkwxverifynickname", "method": "POST", "form": { "nick_name": "修改小程序名称" } },
|
||||
|
// modifywxverifynickname: {"appid":"wxeb7efb9a1cbdd554","module":"/wxa/setnickname","method":"POST","form":{"nick_name":"欧轩企业管理2","id_card":"BQGH4DpbizOg3wGtGhE_uWudXRoRhnbr7K5KkJYgHQfaK1to2O-u-CkZEN5Faeak","license":""}},
|
||||
|
getcategory: { "appid": "wx27f426fb3b167390", "module": "/cgi-bin/wxopen/getcategory", "method": "GET", "form": {} }, |
||||
|
get_icp_entrance_info: { "appid": "wx27f426fb3b167390", "module": "/wxa/icp/get_icp_entrance_info", "method": "GET", "form": {} }, |
||||
|
|
||||
|
// 小程序改名
|
||||
|
checkwxverifynickname: { "appid": "wx27f426fb3b167390", "module": "/cgi-bin/wxverify/checkwxverifynickname", "method": "POST", "form": { "nick_name": "修改小程序名称" } }, |
||||
|
modifywxverifynickname: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/setnickname", "method": "POST", "form": { "nick_name": "欧轩企业管理2", "id_card": "BQGH4DpbizOg3wGtGhE_uWudXRoRhnbr7K5KkJYgHQfaK1to2O-u-CkZEN5Faeak", "license": "" } }, |
||||
|
setnickname: { |
||||
|
"appid": "wxeb7efb9a1cbdd554", |
||||
|
"module": "/wxa/setnickname", |
||||
|
"method": "POST", |
||||
|
"form": { |
||||
|
"nick_name": "12312312312", |
||||
|
"id_card": "", |
||||
|
"license": "5Ib6JCPFTru8dllhg1iFQzxQ6JoVpt2O5JdWuN5tQrWz7T6p2I3jQ5znJ-Bf5voV" |
||||
|
} |
||||
|
}, |
||||
|
getwxauthinfo: { "module": "/wxa/sec/wxaauth", "appid": "wxeb7efb9a1cbdd554" }, |
||||
|
|
||||
|
wxauth: {//提交认证信息
|
||||
|
"appid": "wxeb7efb9a1cbdd554", |
||||
|
"module": "/wxa/sec/wxaauth", |
||||
|
"method": "POST", |
||||
|
"form": {} |
||||
|
}, |
||||
|
getwxauth: {//获取认证信息
|
||||
|
"appid": "wxeb7efb9a1cbdd554", |
||||
|
"module": "/wxa/sec/wxaauth", |
||||
|
"method": "GET", |
||||
|
"form": {} |
||||
|
}, |
||||
|
create_icp_verifytask: {//发起人身核身
|
||||
|
"appid": "wxeb7efb9a1cbdd554", |
||||
|
"module": "/wxa/icp/create_icp_verifytask", |
||||
|
"method": "POST", "form": {} |
||||
|
}, |
||||
|
apply_icp_filing: { //提交ICP备案信息
|
||||
|
"appid": "wxeb7efb9a1cbdd554", |
||||
|
"module": "/wxa/icp/apply_icp_filing", |
||||
|
"method": "POST", "form": {} |
||||
|
}, |
||||
|
query_icp_certificate_types: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/icp/query_icp_certificate_types", "method": "GET", "form": {} }, |
||||
|
query_icp_subject_types: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/icp/query_icp_subject_types", "method": "GET", "form": {} }, |
||||
|
query_icp_district_code: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/icp/query_icp_district_code", "method": "GET", "form": {} }, |
||||
|
query_icp_service_content_types: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/icp/query_icp_service_content_types", "method": "GET", "form": {} }, |
||||
|
|
||||
|
// apply_icp_filing: { "appid": "wxeb7efb9a1cbdd554", "module": "/wxa/icp/apply_icp_filing", "method": "POST", "form": {} },
|
||||
|
|
||||
|
addcategory:{"appid":"wxeb7efb9a1cbdd554","module":"/cgi-bin/wxopen/addcategory","method":"POST","form":{"categories":[{"certicates":[],"first":0,"second":0}]}}, |
||||
|
getcategory:{"appid":"wxeb7efb9a1cbdd554","module":"/cgi-bin/wxopen/getcategory","method":"GET","form":{}}, |
||||
|
|
||||
|
//查询认证信息
|
||||
|
queryauth: {"appid":"wxeb7efb9a1cbdd554","module":"/wxa/sec/queryauth","method":"POST","form":{"taskid":"$LAST_RESULT./wxa/sec/wxaauth.taskid"}}, |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
export default ORDER_API; |
|
||||
|
export default PARTY_API; |
4637
src/subpackage/party/js/china-area.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,21 @@ |
|||||
|
<template> |
||||
|
<web-view src="" :src="url"></web-view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { API,ORIGIN } from '@/js/api'; |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
url: 'https://testadmin.ouxuanzhineng.cn/' |
||||
|
} |
||||
|
}, |
||||
|
onLoad(opt){ |
||||
|
|
||||
|
console.log('web_view',opt,ORIGIN) |
||||
|
this.url = opt.url |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
1032
src/subpackage/party/pages/login/regist.vue
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1483
src/subpackage/party/pages/miniapp/record.vue
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,10 @@ |
|||||
|
## 2.1(2024-03-29) |
||||
|
优化使用说明 |
||||
|
## 2.0.3(2024-01-07) |
||||
|
组件优化 |
||||
|
## 2.0.2(2023-07-03) |
||||
|
组件优化 |
||||
|
## 2.0.1(2023-07-03) |
||||
|
组件优化 |
||||
|
## 2.0.0(2023-07-03) |
||||
|
组件优化 |
@ -0,0 +1,128 @@ |
|||||
|
<template> |
||||
|
<view class="content"> |
||||
|
|
||||
|
<view class="canvas"> |
||||
|
<!-- 二维码插件 width height设置宽高 --> |
||||
|
<canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}" /> |
||||
|
</view> |
||||
|
|
||||
|
<text class="list-text">{{ '预约号码:' + ' ' + myFormatData.yyh}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '预约窗口:' + ' ' + myFormatData.bsdmc}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '业务类型:' + ' ' + myFormatData.Yylxmc}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '预约日期:' + ' ' + myFormatData.yyrq}} |
||||
|
</text> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Vue from 'vue'; |
||||
|
import uQRCode from './common/uqrcode.js' |
||||
|
|
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
// 二维码标识串 |
||||
|
qrcodeText: 'eoruw20230528', |
||||
|
// 二维码尺寸 |
||||
|
qrcodeSize: 136, |
||||
|
|
||||
|
// 最终生成的二维码图片 |
||||
|
qrcodeSrc: '', |
||||
|
|
||||
|
|
||||
|
myFormatData: { |
||||
|
'yyh': 'eoruw20230528', |
||||
|
'bsdmc': '窗口1', |
||||
|
'Yylxmc': '租金缴纳', |
||||
|
'yyrq': '预约日期' |
||||
|
}, |
||||
|
} |
||||
|
}, |
||||
|
onLoad(e) { |
||||
|
|
||||
|
this.make(); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
make() { |
||||
|
uni.showLoading({ |
||||
|
title: '二维码生成中', |
||||
|
mask: true |
||||
|
}) |
||||
|
|
||||
|
uQRCode.make({ |
||||
|
canvasId: 'qrcode', |
||||
|
text: this.qrcodeText, |
||||
|
size: this.qrcodeSize, |
||||
|
margin: 10, |
||||
|
success: res => { |
||||
|
this.qrcodeSrc = res |
||||
|
console.log('qrcodeSrc = ' + this.qrcodeSrc); |
||||
|
}, |
||||
|
complete: () => { |
||||
|
uni.hideLoading() |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
page { |
||||
|
background-color: #FFFFFF; |
||||
|
} |
||||
|
|
||||
|
.content { |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
margin-top: var(--status-bar-height); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.text { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
margin-top: 46rpx; |
||||
|
margin-bottom: 6rpx; |
||||
|
font-size: 36rpx; |
||||
|
height: 44rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
.canvas { |
||||
|
margin-top: 50rpx; |
||||
|
margin-bottom: 36rpx; |
||||
|
text-align: center; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.list-text { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
width: 100%; |
||||
|
line-height: 60rpx; |
||||
|
font-size: 28rpx; |
||||
|
color: #666666; |
||||
|
} |
||||
|
|
||||
|
.button { |
||||
|
width: 88%; |
||||
|
margin-top: 52rpx; |
||||
|
|
||||
|
} |
||||
|
</style> |
1380
src/uni_modules/cc-defineQRCode/components/cc-defineQRCode/common/uqrcode.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,85 @@ |
|||||
|
{ |
||||
|
"id": "cc-defineQRCode", |
||||
|
"displayName": "基于uQRCode封装的跨平台二维码生成插件 生成二维码并返回二维码图片地址 ", |
||||
|
"version": "2.1", |
||||
|
"description": "基于uQRCode封装的二维码生成插件 生成二维码并返回图片地址 ,适用所有Javascript运行环境, 支持微信小程序", |
||||
|
"keywords": [ |
||||
|
"二维码", |
||||
|
"生成二维码", |
||||
|
"QR", |
||||
|
"qrcode", |
||||
|
"二维码生成" |
||||
|
], |
||||
|
"repository": "", |
||||
|
"engines": { |
||||
|
"HBuilderX": "^3.8.0" |
||||
|
}, |
||||
|
"dcloudext": { |
||||
|
"type": "component-vue", |
||||
|
"sale": { |
||||
|
"regular": { |
||||
|
"price": "0.00" |
||||
|
}, |
||||
|
"sourcecode": { |
||||
|
"price": "0.00" |
||||
|
} |
||||
|
}, |
||||
|
"contact": { |
||||
|
"qq": "" |
||||
|
}, |
||||
|
"declaration": { |
||||
|
"ads": "无", |
||||
|
"data": "无", |
||||
|
"permissions": "无" |
||||
|
}, |
||||
|
"npmurl": "" |
||||
|
}, |
||||
|
"uni_modules": { |
||||
|
"dependencies": [], |
||||
|
"encrypt": [], |
||||
|
"platforms": { |
||||
|
"cloud": { |
||||
|
"tcb": "y", |
||||
|
"aliyun": "y" |
||||
|
}, |
||||
|
"client": { |
||||
|
"Vue": { |
||||
|
"vue2": "y", |
||||
|
"vue3": "y" |
||||
|
}, |
||||
|
"App": { |
||||
|
"app-vue": "y", |
||||
|
"app-nvue": "y" |
||||
|
}, |
||||
|
"H5-mobile": { |
||||
|
"Safari": "y", |
||||
|
"Android Browser": "y", |
||||
|
"微信浏览器(Android)": "y", |
||||
|
"QQ浏览器(Android)": "y" |
||||
|
}, |
||||
|
"H5-pc": { |
||||
|
"Chrome": "y", |
||||
|
"IE": "y", |
||||
|
"Edge": "y", |
||||
|
"Firefox": "y", |
||||
|
"Safari": "y" |
||||
|
}, |
||||
|
"小程序": { |
||||
|
"微信": "y", |
||||
|
"阿里": "y", |
||||
|
"百度": "y", |
||||
|
"字节跳动": "y", |
||||
|
"QQ": "y", |
||||
|
"钉钉": "y", |
||||
|
"快手": "y", |
||||
|
"飞书": "y", |
||||
|
"京东": "y" |
||||
|
}, |
||||
|
"快应用": { |
||||
|
"华为": "y", |
||||
|
"联盟": "y" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,162 @@ |
|||||
|
# cc-defineQRCode |
||||
|
|
||||
|
### 二维码小程序已上线,小程序扫码体验地址 |
||||
|
|
||||
|
 |
||||
|
|
||||
|
|
||||
|
### 我的技术微信公众号 |
||||
|
|
||||
|
查看更多前端组件和框架信息,请关注我的技术微信公众号【前端组件开发】 |
||||
|
|
||||
|
 |
||||
|
|
||||
|
#### 使用方法 |
||||
|
|
||||
|
```使用方法 |
||||
|
#引入js文件 |
||||
|
import uQRCode from './common/uqrcode.js' |
||||
|
|
||||
|
<view class="canvas"> |
||||
|
<!-- 二维码插件 width height设置宽高 --> |
||||
|
<canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}" /> |
||||
|
</view> |
||||
|
``` |
||||
|
|
||||
|
#### HTML代码实现部分 |
||||
|
```html |
||||
|
<template> |
||||
|
<view class="content"> |
||||
|
|
||||
|
<view class="canvas"> |
||||
|
<!-- 二维码插件 width height设置宽高 --> |
||||
|
<canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}" /> |
||||
|
</view> |
||||
|
|
||||
|
<text class="list-text">{{ '预约号码:' + ' ' + myFormatData.yyh}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '预约窗口:' + ' ' + myFormatData.bsdmc}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '业务类型:' + ' ' + myFormatData.Yylxmc}} |
||||
|
</text> |
||||
|
|
||||
|
<text class="list-text"> {{ '预约日期:' + ' ' + myFormatData.yyrq}} |
||||
|
</text> |
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Vue from 'vue'; |
||||
|
import uQRCode from './common/uqrcode.js' |
||||
|
|
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
// 二维码标识串 |
||||
|
qrcodeText: 'eoruw20230528', |
||||
|
// 二维码尺寸 |
||||
|
qrcodeSize: 136, |
||||
|
|
||||
|
// 最终生成的二维码图片 |
||||
|
qrcodeSrc: '', |
||||
|
|
||||
|
|
||||
|
myFormatData: { |
||||
|
'yyh': 'eoruw20230528', |
||||
|
'bsdmc': '窗口1', |
||||
|
'Yylxmc': '租金缴纳', |
||||
|
'yyrq': '预约日期' |
||||
|
}, |
||||
|
} |
||||
|
}, |
||||
|
onLoad(e) { |
||||
|
|
||||
|
this.make(); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
make() { |
||||
|
uni.showLoading({ |
||||
|
title: '二维码生成中', |
||||
|
mask: true |
||||
|
}) |
||||
|
|
||||
|
uQRCode.make({ |
||||
|
canvasId: 'qrcode', |
||||
|
text: this.qrcodeText, |
||||
|
size: this.qrcodeSize, |
||||
|
margin: 10, |
||||
|
success: res => { |
||||
|
this.qrcodeSrc = res |
||||
|
console.log('qrcodeSrc = ' + this.qrcodeSrc); |
||||
|
}, |
||||
|
complete: () => { |
||||
|
uni.hideLoading() |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
page { |
||||
|
background-color: #FFFFFF; |
||||
|
} |
||||
|
|
||||
|
.content { |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
margin-top: var(--status-bar-height); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.text { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
margin-top: 46rpx; |
||||
|
margin-bottom: 6rpx; |
||||
|
font-size: 36rpx; |
||||
|
height: 44rpx; |
||||
|
color: #333333; |
||||
|
} |
||||
|
|
||||
|
.canvas { |
||||
|
margin-top: 50rpx; |
||||
|
margin-bottom: 36rpx; |
||||
|
text-align: center; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.list-text { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
width: 100%; |
||||
|
line-height: 60rpx; |
||||
|
font-size: 28rpx; |
||||
|
color: #666666; |
||||
|
} |
||||
|
|
||||
|
.button { |
||||
|
width: 88%; |
||||
|
margin-top: 52rpx; |
||||
|
|
||||
|
} |
||||
|
</style> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
``` |
Write
Preview
Loading…
Cancel
Save
Reference in new issue