人人商城

follow.html 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {template '_header'}
  2. <div class="page-heading"> <h2>关注及分享设置</h2> </div>
  3. <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >
  4. <div class='form-group-title'>关注设置</div>
  5. <div class="form-group">
  6. <label class="col-sm-2 control-label">关注引导页</label>
  7. <div class="col-sm-9 col-xs-12">
  8. {ifp 'sysset.follow.edit'}
  9. <input type="text" name="data[followurl]" class="form-control" value="{$data['followurl']}" />
  10. <span class='help-block'>
  11. <p>用户未关注的引导页面,建议使用短链接:<a target="_blank" href="http://www.dwz.cn">短网址</a></p>
  12. <p>如果设置关注二维码则<span class="text-danger">优先弹出二维码</span></p>
  13. </span>
  14. {else}
  15. <input type="hidden" name="data[followurl]" value="{$data['followurl']}" />
  16. <div class='form-control-static'>{$data['followurl']}</div>
  17. {/if}
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-sm-2 control-label">关注二维码</label>
  22. <div class="col-sm-9 col-xs-12">
  23. {ifp 'sysset.follow.edit'}
  24. {php echo tpl_form_field_image('data[followqrcode]', $data['followqrcode']);}
  25. <span class='help-block'></a>
  26. {else}
  27. <input type="hidden" name="data[followqrcode]" value="{$data['followqrcode']}" />
  28. <div class='form-control-static'>{$data['followqrcode']}</div>
  29. {/if}
  30. </div>
  31. </div>
  32. <div class='form-group-title'>分享设置</div>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label">分享标题</label>
  35. <div class="col-sm-9 col-xs-12">
  36. {ifp 'sysset.follow.edit'}
  37. <input type="text" name="data[title]" class="form-control" value="{$data['title']}" />
  38. <span class="help-block">不填写默认商城名称</span>
  39. {else}
  40. <input type="hidden" name="data[title]" value="{$data['title']}" />
  41. <div class='form-control-static'>{$data['title']}</div>
  42. {/if}
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label class="col-sm-2 control-label">分享图标</label>
  47. <div class="col-sm-9 col-xs-12">
  48. {ifp 'sysset.follow.edit'}
  49. {php echo tpl_form_field_image('data[icon]', $data['icon']);}
  50. <span class="help-block">不选择默认商城LOGO</span>
  51. {else}
  52. <input type="hidden" name="data[icon]" value="{$data['icon']}" />
  53. {if !empty($data['icon'])}
  54. <a href='{php echo tomedia($data['icon'])}' target='_blank'>
  55. <img src="{php echo tomedia($data['icon'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
  56. </a>
  57. {/if}
  58. {/if}
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-sm-2 control-label">分享描述</label>
  63. <div class="col-sm-9 col-xs-12">
  64. {ifp 'sysset.follow.edit'}
  65. <textarea style="height:100px;" name="data[desc]" class="form-control" cols="60">{$data['desc']}</textarea>
  66. {else}
  67. <textarea style="height:100px;display: none" name="data[desc]" class="form-control" cols="60">{$data['desc']}</textarea>
  68. <div class='form-control-static'>{$data['desc']}</div>
  69. {/if}
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="col-sm-2 control-label">分享链接</label>
  74. <div class="col-sm-9 col-xs-12">
  75. {ifp 'sysset.follow.edit'}
  76. <div class="input-group form-group" style="margin: 0;">
  77. <input type="text" name="data[url]" class="form-control" value="{$data['url']}" id="shareurl" />
  78. <span data-input="#shareurl" data-toggle="selectUrl" data-full="true" class="input-group-addon btn btn-default">选择链接</span>
  79. </div>
  80. <span class='help-block'>用户分享出去的链接,默认为首页</span>
  81. {else}
  82. <input type="hidden" name="data[url]" value="{$data['url']}" />
  83. <div class='form-control-static'>{$data['url']}</div>
  84. {/if}
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label class="col-xs-12 col-sm-3 col-md-2 control-label">商品详情分享</label>
  89. <div class="col-sm-9">
  90. {ifp 'sysset.follows.edit'}
  91. <label class="radio-inline"><input type="radio" name="data[goods_detail_close]" value="1" {if $data['goods_detail_close']==1} checked="checked"{/if}/>关闭</label>
  92. <label class="radio-inline"><input type="radio" name="data[goods_detail_close]" value="0" {if empty($data['goods_detail_close'])} checked="checked"{/if}/>开启</label>
  93. <span class="help-block">商品详情页面按钮</span>
  94. {else}
  95. <div class='form-control-static'>{if $data['goods_detail_close']==1}开启{else}关闭{/if}</div>
  96. {/if}
  97. </div>
  98. </div>
  99. <div class="form-group">
  100. <label class="col-sm-2 control-label">商品详情分享文字</label>
  101. <div class="col-sm-9 col-xs-12">
  102. {ifp 'sysset.follow.edit'}
  103. <textarea style="height:100px;" name="data[goods_detail_text]" class="form-control" cols="60">{$data['goods_detail_text']}</textarea>
  104. <span class="help-block">商品详情页面按钮 按下 弹出文字 默认文字: <br/><span class="text-danger">请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买</span></span>
  105. {else}
  106. <textarea style="height:100px;display: none" name="data[goods_detail_text]" class="form-control" cols="60">{$data['goods_detail_text']}</textarea>
  107. <div class='form-control-static'>{$data['desc']}</div>
  108. {/if}
  109. </div>
  110. </div>
  111. <div class="form-group"></div>
  112. <div class="form-group">
  113. <label class="col-sm-2 control-label"></label>
  114. <div class="col-sm-9 col-xs-12">
  115. {ifp 'sysset.follow.edit'}
  116. <input type="submit" value="提交" class="btn btn-primary" />
  117. {/if}
  118. </div>
  119. </div>
  120. </form>
  121. {template '_footer'}