|
@@ -3,23 +3,65 @@
|
|
|
<view class="img_box" style="margin-top:30upx;">
|
|
<view class="img_box" style="margin-top:30upx;">
|
|
|
<image :src="gatherUrl" mode="heightFix" class="img_url"></image>
|
|
<image :src="gatherUrl" mode="heightFix" class="img_url"></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view style="font-size:32upx;text-align: center;margin:30upx 0 5upx 0;">打印尺寸 100mmx150mm</view>
|
|
|
|
|
|
|
+ <view style="font-size:30upx;text-align: center;margin:30upx 0 5upx 0;">支持信用卡和花呗,打印尺寸100mmx150mm</view>
|
|
|
<view class="confirm-btn">
|
|
<view class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" style="width:60vw;" @click="downloadImg(gatherUrl)">下载收款码</button>
|
|
<button class="admin-button-com big blue" style="width:60vw;" @click="downloadImg(gatherUrl)">下载收款码</button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="confirm-btn">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="width:60vw;" @click="startRenew(2,160)">购买音响</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view style="margin-top:30upx;text-align:center;margin-bottom:30upx;">
|
|
|
|
|
+ <image :src="laba" mode="widthFix" style="width:640upx;margin:0 auto;border-radius: 10upx;"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { miniGatheringCode } from '@/api/shop'
|
|
import { miniGatheringCode } from '@/api/shop'
|
|
|
|
|
+import wexinPay from "@/utils/pay/wxPay"
|
|
|
|
|
+import { renewShop,needRemind } from "@/api/renew"
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- gatherUrl:''
|
|
|
|
|
|
|
+ gatherUrl:'',
|
|
|
|
|
+ laba: `${this.$constant.hostUrl}/image/horn.jpg`,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
this.getImg()
|
|
this.getImg()
|
|
|
|
|
+ },
|
|
|
|
|
+ startRenew(type,price){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ that.$msg("APP不能操作,请打开微信小程序操作")
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
|
|
+ if(type == 1){
|
|
|
|
|
+ if(Number(price) <= 0){
|
|
|
|
|
+ that.$msg("请输入金额")
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.renewType = type
|
|
|
|
|
+ renewShop({price:price,type:type,remark:this.remark}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ wexinPay(res.data, this.getSuccess, this.getError)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ },
|
|
|
|
|
+ getSuccess(){
|
|
|
|
|
+ this.$util.pageTo({url:"/admin/shop/renewSuccess?type="+this.renewType,type:2})
|
|
|
|
|
+ },
|
|
|
|
|
+ getError(){
|
|
|
|
|
+ },
|
|
|
|
|
+ closeRenew(){
|
|
|
|
|
+ uni.navigateBack()
|
|
|
},
|
|
},
|
|
|
downloadImg(url){
|
|
downloadImg(url){
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|